]>
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 | |
bf8cdd35 L |
622 | RANLIB_PLUGIN_OPTION |
623 | AR_PLUGIN_OPTION | |
5fee5ec3 | 624 | GDCFLAGS |
e7a82751 | 625 | READELF |
e4a9a572 | 626 | OTOOL |
5213506e RW |
627 | OBJDUMP |
628 | OBJCOPY | |
629 | WINDMC | |
630 | WINDRES | |
631 | STRIP | |
632 | RANLIB | |
633 | NM | |
634 | LIPO | |
635 | LD | |
3b5e8ee4 | 636 | DSYMUTIL |
5213506e RW |
637 | DLLTOOL |
638 | AS | |
639 | AR | |
640 | RUNTEST | |
641 | EXPECT | |
642 | MAKEINFO | |
643 | FLEX | |
644 | LEX | |
645 | M4 | |
646 | BISON | |
647 | YACC | |
5213506e RW |
648 | WINDRES_FOR_BUILD |
649 | WINDMC_FOR_BUILD | |
650 | RANLIB_FOR_BUILD | |
651 | NM_FOR_BUILD | |
652 | LD_FOR_BUILD | |
653 | LDFLAGS_FOR_BUILD | |
b4c522fa | 654 | GDC_FOR_BUILD |
632e2a07 | 655 | GOC_FOR_BUILD |
5213506e | 656 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 657 | DSYMUTIL_FOR_BUILD |
5213506e RW |
658 | DLLTOOL_FOR_BUILD |
659 | CXX_FOR_BUILD | |
660 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
661 | CPPFLAGS_FOR_BUILD |
662 | CPP_FOR_BUILD | |
5213506e RW |
663 | CFLAGS_FOR_BUILD |
664 | CC_FOR_BUILD | |
665 | AS_FOR_BUILD | |
666 | AR_FOR_BUILD | |
aae29963 | 667 | target_configdirs |
5213506e | 668 | configdirs |
5213506e | 669 | build_configdirs |
5213506e RW |
670 | INSTALL_GDB_TK |
671 | GDB_TK | |
672 | CONFIGURE_GDB_TK | |
673 | build_tooldir | |
674 | tooldir | |
675 | GCC_SHLIB_SUBDIR | |
676 | RPATH_ENVVAR | |
ffedf511 RW |
677 | target_configargs |
678 | host_configargs | |
679 | build_configargs | |
e12c4094 | 680 | BUILD_CONFIG |
6f57bdf6 | 681 | LDFLAGS_FOR_TARGET |
5213506e RW |
682 | CXXFLAGS_FOR_TARGET |
683 | CFLAGS_FOR_TARGET | |
684 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
685 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 686 | get_gcc_base_ver |
1c01ebf6 | 687 | extra_host_zlib_configure_flags |
d7f09764 | 688 | extra_host_libiberty_configure_flags |
fca38047 | 689 | stage1_languages |
cdfee50a | 690 | host_shared |
45b3824d TS |
691 | extra_linker_plugin_flags |
692 | extra_linker_plugin_configure_flags | |
33ad93b9 | 693 | islinc |
eae1a5d4 | 694 | isllibs |
5213506e | 695 | poststage1_ldflags |
ed2eaa9f | 696 | poststage1_libs |
5213506e | 697 | stage1_ldflags |
0b21f5d3 | 698 | stage1_libs |
0ff2d841 | 699 | extra_isl_gmp_configure_flags |
5213506e RW |
700 | extra_mpc_mpfr_configure_flags |
701 | extra_mpc_gmp_configure_flags | |
702 | extra_mpfr_configure_flags | |
703 | gmpinc | |
704 | gmplibs | |
7ffcf5d6 | 705 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 706 | HAVE_CXX11 |
5213506e | 707 | do_compare |
5fee5ec3 | 708 | GDC |
5213506e RW |
709 | GNATMAKE |
710 | GNATBIND | |
711 | ac_ct_CXX | |
712 | CXXFLAGS | |
713 | CXX | |
714 | OBJEXT | |
715 | EXEEXT | |
716 | ac_ct_CC | |
717 | CPPFLAGS | |
718 | LDFLAGS | |
719 | CFLAGS | |
720 | CC | |
5f520819 | 721 | extra_liboffloadmic_configure_flags |
5213506e RW |
722 | target_subdir |
723 | host_subdir | |
724 | build_subdir | |
725 | build_libsubdir | |
87264276 PB |
726 | AWK |
727 | SED | |
5213506e RW |
728 | LN_S |
729 | LN | |
730 | INSTALL_DATA | |
731 | INSTALL_SCRIPT | |
732 | INSTALL_PROGRAM | |
733 | target_os | |
734 | target_vendor | |
735 | target_cpu | |
736 | target | |
737 | host_os | |
738 | host_vendor | |
739 | host_cpu | |
740 | host | |
741 | target_noncanonical | |
742 | host_noncanonical | |
743 | build_noncanonical | |
744 | build_os | |
745 | build_vendor | |
746 | build_cpu | |
747 | build | |
748 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
749 | target_alias | |
750 | host_alias | |
751 | build_alias | |
752 | LIBS | |
753 | ECHO_T | |
754 | ECHO_N | |
755 | ECHO_C | |
756 | DEFS | |
757 | mandir | |
758 | localedir | |
759 | libdir | |
760 | psdir | |
761 | pdfdir | |
762 | dvidir | |
763 | htmldir | |
764 | infodir | |
765 | docdir | |
766 | oldincludedir | |
767 | includedir | |
768 | localstatedir | |
769 | sharedstatedir | |
770 | sysconfdir | |
771 | datadir | |
772 | datarootdir | |
773 | libexecdir | |
774 | sbindir | |
775 | bindir | |
776 | program_transform_name | |
777 | prefix | |
778 | exec_prefix | |
779 | PACKAGE_URL | |
780 | PACKAGE_BUGREPORT | |
781 | PACKAGE_STRING | |
782 | PACKAGE_VERSION | |
783 | PACKAGE_TARNAME | |
784 | PACKAGE_NAME | |
785 | PATH_SEPARATOR | |
786 | SHELL' | |
787 | ac_subst_files='serialization_dependencies | |
788 | host_makefile_frag | |
789 | target_makefile_frag | |
790 | alphaieee_frag | |
791 | ospace_frag' | |
792 | ac_user_opts=' | |
793 | enable_option_checking | |
794 | with_build_libsubdir | |
a05c2c75 | 795 | with_system_zlib |
85c64bbe BS |
796 | enable_as_accelerator_for |
797 | enable_offload_targets | |
fe5bfa67 | 798 | enable_offload_defaulted |
5213506e | 799 | enable_gold |
21539e2e | 800 | enable_ld |
78edb32f | 801 | enable_compressed_debug_sections |
87e6d9dc TB |
802 | enable_libquadmath |
803 | enable_libquadmath_support | |
5213506e RW |
804 | enable_libada |
805 | enable_libssp | |
1873ec0c | 806 | enable_libstdcxx |
5f520819 | 807 | enable_liboffloadmic |
ff3ac0f4 | 808 | enable_bootstrap |
5213506e RW |
809 | with_mpc |
810 | with_mpc_include | |
811 | with_mpc_lib | |
812 | with_mpfr_dir | |
813 | with_mpfr | |
814 | with_mpfr_include | |
815 | with_mpfr_lib | |
816 | with_gmp_dir | |
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] |
33ad93b9 | 1549 | --disable-isl-version-check |
560d18d3 | 1550 | disable check for isl version |
d7f09764 | 1551 | --enable-lto enable link time optimization support |
45b3824d TS |
1552 | --enable-linker-plugin-configure-flags=FLAGS |
1553 | additional flags for configuring linker plugins | |
1554 | [none] | |
1555 | --enable-linker-plugin-flags=FLAGS | |
1556 | additional flags for configuring and building linker | |
1557 | plugins [none] | |
cdfee50a | 1558 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1559 | --enable-stage1-languages[=all] |
1560 | choose additional languages to build during stage1. | |
1561 | Mostly useful for compiler development | |
43c40f3e RO |
1562 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1563 | Objective-C runtime | |
318a4e6d | 1564 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1565 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1566 | force sequential configuration of sub-packages for |
1567 | the host, target or build machine, or all | |
1568 | sub-packages | |
1569 | --enable-maintainer-mode | |
1570 | enable make rules and dependencies not useful (and | |
1571 | sometimes confusing) to the casual installer | |
1572 | --enable-stage1-checking[=all] | |
1573 | choose additional checking for stage1 of the | |
1574 | compiler | |
1c710c3c DJ |
1575 | --enable-werror enable -Werror in bootstrap stage2 and later |
1576 | ||
1577 | Optional Packages: | |
1578 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1579 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1580 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1581 | --with-system-zlib use installed libz |
33e39b66 AS |
1582 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1583 | Equivalent to --with-mpc-include=PATH/include plus | |
1584 | --with-mpc-lib=PATH/lib | |
1585 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1586 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1587 | --with-mpfr-dir=PATH this option has been REMOVED |
1588 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1589 | Equivalent to --with-mpfr-include=PATH/include plus |
1590 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1591 | --with-mpfr-include=PATH |
30b74385 RW |
1592 | specify directory for installed MPFR include files |
1593 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1594 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1595 | --with-gmp=PATH specify prefix directory for the installed GMP |
1596 | package. Equivalent to | |
1597 | --with-gmp-include=PATH/include plus | |
1598 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1599 | --with-gmp-include=PATH specify directory for installed GMP include files |
1600 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1601 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1602 | --with-static-standard-libraries |
1603 | use -static-libstdc++ and -static-libgcc | |
1604 | (default=auto) | |
33e39b66 AS |
1605 | --with-stage1-ldflags=FLAGS |
1606 | linker flags for stage1 | |
33e39b66 AS |
1607 | --with-boot-libs=LIBS libraries for stage2 and later |
1608 | --with-boot-ldflags=FLAGS | |
1609 | linker flags for stage2 and later | |
e357a5e0 | 1610 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1611 | package. Equivalent to |
33ad93b9 RG |
1612 | --with-isl-include=PATH/include plus |
1613 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1614 | --with-isl-include=PATH Specify directory for installed isl include files |
1615 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1616 | --with-target-bdw-gc=PATHLIST |
1617 | specify prefix directory for installed bdw-gc | |
1618 | package. Equivalent to | |
1619 | --with-target-bdw-gc-include=PATH/include plus | |
1620 | --with-target-bdw-gc-lib=PATH/lib | |
1621 | --with-target-bdw-gc-include=PATHLIST | |
1622 | specify directories for installed bdw-gc include | |
1623 | files | |
1624 | --with-target-bdw-gc-lib=PATHLIST | |
1625 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1626 | --with-gcc-major-version-only |
1627 | use only GCC major number in filesystem paths | |
30b74385 | 1628 | --with-build-sysroot=SYSROOT |
1c710c3c | 1629 | use sysroot as the system root during the build |
c8aea42c | 1630 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1631 | map A to B, C to D ... in debug information |
1632 | --with-build-config='NAME NAME2...' | |
1633 | use config/NAME.mk build configuration | |
30b74385 | 1634 | --with-build-time-tools=PATH |
1c710c3c | 1635 | use given path to find target tools during the build |
1c710c3c DJ |
1636 | |
1637 | Some influential environment variables: | |
1638 | CC C compiler command | |
1639 | CFLAGS C compiler flags | |
1640 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1641 | nonstandard directory <lib dir> | |
5213506e | 1642 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1643 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1644 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1645 | CXX C++ compiler command |
1646 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1647 | build_configargs |
1648 | additional configure arguments for build directories | |
1649 | host_configargs | |
1650 | additional configure arguments for host directories | |
1651 | target_configargs | |
1652 | additional configure arguments for target directories | |
278a7a38 AO |
1653 | AR AR for the host |
1654 | AS AS for the host | |
1655 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1656 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1657 | LD LD for the host |
1658 | LIPO LIPO for the host | |
1659 | NM NM for the host | |
1660 | RANLIB RANLIB for the host | |
1661 | STRIP STRIP for the host | |
1662 | WINDRES WINDRES for the host | |
901119ae | 1663 | WINDMC WINDMC for the host |
278a7a38 AO |
1664 | OBJCOPY OBJCOPY for the host |
1665 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1666 | OTOOL OTOOL for the host |
e7a82751 | 1667 | READELF READELF for the host |
278a7a38 AO |
1668 | CC_FOR_TARGET |
1669 | CC for the target | |
1670 | CXX_FOR_TARGET | |
1671 | CXX for the target | |
1672 | GCC_FOR_TARGET | |
1673 | GCC for the target | |
278a7a38 AO |
1674 | GFORTRAN_FOR_TARGET |
1675 | GFORTRAN for the target | |
632e2a07 ILT |
1676 | GOC_FOR_TARGET |
1677 | GOC for the target | |
b4c522fa IB |
1678 | GDC_FOR_TARGET |
1679 | GDC for the target | |
278a7a38 AO |
1680 | AR_FOR_TARGET |
1681 | AR for the target | |
1682 | AS_FOR_TARGET | |
1683 | AS for the target | |
1684 | DLLTOOL_FOR_TARGET | |
1685 | DLLTOOL for the target | |
3b5e8ee4 IS |
1686 | DSYMUTIL_FOR_TARGET |
1687 | DSYMUTIL for the target | |
278a7a38 AO |
1688 | LD_FOR_TARGET |
1689 | LD for the target | |
1690 | LIPO_FOR_TARGET | |
1691 | LIPO for the target | |
1692 | NM_FOR_TARGET | |
1693 | NM for the target | |
9bccfdf5 AP |
1694 | OBJCOPY_FOR_TARGET |
1695 | OBJCOPY for the target | |
278a7a38 AO |
1696 | OBJDUMP_FOR_TARGET |
1697 | OBJDUMP for the target | |
e4a9a572 IS |
1698 | OTOOL_FOR_TARGET |
1699 | OTOOL for the target | |
278a7a38 AO |
1700 | RANLIB_FOR_TARGET |
1701 | RANLIB for the target | |
e7a82751 RM |
1702 | READELF_FOR_TARGET |
1703 | READELF for the target | |
278a7a38 AO |
1704 | STRIP_FOR_TARGET |
1705 | STRIP for the target | |
1706 | WINDRES_FOR_TARGET | |
1707 | WINDRES for the target | |
901119ae KT |
1708 | WINDMC_FOR_TARGET |
1709 | WINDMC for the target | |
1c710c3c DJ |
1710 | |
1711 | Use these variables to override the choices made by `configure' or to help | |
1712 | it to find libraries and programs with nonstandard names/locations. | |
1713 | ||
5213506e | 1714 | Report bugs to the package provider. |
1c710c3c | 1715 | _ACEOF |
5213506e | 1716 | ac_status=$? |
1c710c3c DJ |
1717 | fi |
1718 | ||
1719 | if test "$ac_init_help" = "recursive"; then | |
1720 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1721 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1722 | test -d "$ac_dir" || |
1723 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1724 | continue | |
1c710c3c DJ |
1725 | ac_builddir=. |
1726 | ||
5213506e RW |
1727 | case "$ac_dir" in |
1728 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1729 | *) | |
1730 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1731 | # A ".." for each directory in $ac_dir_suffix. | |
1732 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1733 | case $ac_top_builddir_sub in | |
1734 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1735 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1736 | esac ;; | |
1737 | esac | |
1738 | ac_abs_top_builddir=$ac_pwd | |
1739 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1740 | # for backward compatibility: | |
1741 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1742 | |
1743 | case $srcdir in | |
5213506e | 1744 | .) # We are building in place. |
1c710c3c | 1745 | ac_srcdir=. |
5213506e RW |
1746 | ac_top_srcdir=$ac_top_builddir_sub |
1747 | ac_abs_top_srcdir=$ac_pwd ;; | |
1748 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1749 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1750 | ac_top_srcdir=$srcdir |
1751 | ac_abs_top_srcdir=$srcdir ;; | |
1752 | *) # Relative name. | |
1753 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1754 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1755 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1756 | esac |
5213506e RW |
1757 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1758 | ||
1759 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1760 | # Check for guested configure. | |
1761 | if test -f "$ac_srcdir/configure.gnu"; then | |
1762 | echo && | |
1763 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1764 | elif test -f "$ac_srcdir/configure"; then | |
1765 | echo && | |
1766 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1767 | else |
5213506e RW |
1768 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1769 | fi || ac_status=$? | |
1770 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1771 | done |
1772 | fi | |
1773 | ||
5213506e | 1774 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1775 | if $ac_init_version; then |
1776 | cat <<\_ACEOF | |
5213506e | 1777 | configure |
22e05272 | 1778 | generated by GNU Autoconf 2.69 |
1c710c3c | 1779 | |
22e05272 | 1780 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1781 | This configure script is free software; the Free Software Foundation |
1782 | gives unlimited permission to copy, distribute and modify it. | |
1783 | _ACEOF | |
5213506e | 1784 | exit |
0b0dc272 | 1785 | fi |
5213506e RW |
1786 | |
1787 | ## ------------------------ ## | |
1788 | ## Autoconf initialization. ## | |
1789 | ## ------------------------ ## | |
1790 | ||
1791 | # ac_fn_c_try_compile LINENO | |
1792 | # -------------------------- | |
1793 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1794 | ac_fn_c_try_compile () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | rm -f conftest.$ac_objext | |
1798 | if { { ac_try="$ac_compile" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_compile") 2>conftest.err | |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 | test $ac_status = 0; } && { | |
1814 | test -z "$ac_c_werror_flag" || | |
1815 | test ! -s conftest.err | |
1816 | } && test -s conftest.$ac_objext; then : | |
1817 | ac_retval=0 | |
1818 | else | |
1819 | $as_echo "$as_me: failed program was:" >&5 | |
1820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | ||
1822 | ac_retval=1 | |
1823 | fi | |
22e05272 JM |
1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1825 | as_fn_set_status $ac_retval | |
5213506e RW |
1826 | |
1827 | } # ac_fn_c_try_compile | |
1828 | ||
1829 | # ac_fn_cxx_try_compile LINENO | |
1830 | # ---------------------------- | |
1831 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1832 | ac_fn_cxx_try_compile () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | rm -f conftest.$ac_objext | |
1836 | if { { ac_try="$ac_compile" | |
1837 | case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_compile") 2>conftest.err | |
1844 | ac_status=$? | |
1845 | if test -s conftest.err; then | |
1846 | grep -v '^ *+' conftest.err >conftest.er1 | |
1847 | cat conftest.er1 >&5 | |
1848 | mv -f conftest.er1 conftest.err | |
1849 | fi | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; } && { | |
1852 | test -z "$ac_cxx_werror_flag" || | |
1853 | test ! -s conftest.err | |
1854 | } && test -s conftest.$ac_objext; then : | |
1855 | ac_retval=0 | |
1856 | else | |
1857 | $as_echo "$as_me: failed program was:" >&5 | |
1858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1859 | ||
1860 | ac_retval=1 | |
1861 | fi | |
22e05272 JM |
1862 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1863 | as_fn_set_status $ac_retval | |
5213506e RW |
1864 | |
1865 | } # ac_fn_cxx_try_compile | |
1866 | ||
0b21f5d3 EB |
1867 | # ac_fn_cxx_try_link LINENO |
1868 | # ------------------------- | |
1869 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1870 | ac_fn_cxx_try_link () | |
1871 | { | |
1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1874 | if { { ac_try="$ac_link" | |
1875 | case "(($ac_try" in | |
1876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1877 | *) ac_try_echo=$ac_try;; | |
1878 | esac | |
1879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1880 | $as_echo "$ac_try_echo"; } >&5 | |
1881 | (eval "$ac_link") 2>conftest.err | |
1882 | ac_status=$? | |
1883 | if test -s conftest.err; then | |
1884 | grep -v '^ *+' conftest.err >conftest.er1 | |
1885 | cat conftest.er1 >&5 | |
1886 | mv -f conftest.er1 conftest.err | |
1887 | fi | |
1888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1889 | test $ac_status = 0; } && { | |
1890 | test -z "$ac_cxx_werror_flag" || | |
1891 | test ! -s conftest.err | |
1892 | } && test -s conftest$ac_exeext && { | |
1893 | test "$cross_compiling" = yes || | |
22e05272 | 1894 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1895 | }; then : |
1896 | ac_retval=0 | |
1897 | else | |
1898 | $as_echo "$as_me: failed program was:" >&5 | |
1899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1900 | ||
1901 | ac_retval=1 | |
1902 | fi | |
1903 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1904 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1905 | # interfere with the next link command; also delete a directory that is | |
1906 | # left behind by Apple's compiler. We do this before executing the actions. | |
1907 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1908 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1909 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1910 | |
1911 | } # ac_fn_cxx_try_link | |
1912 | ||
5213506e RW |
1913 | # ac_fn_c_try_link LINENO |
1914 | # ----------------------- | |
1915 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1916 | ac_fn_c_try_link () | |
1917 | { | |
1918 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1920 | if { { ac_try="$ac_link" | |
1921 | case "(($ac_try" in | |
1922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1923 | *) ac_try_echo=$ac_try;; | |
1924 | esac | |
1925 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1926 | $as_echo "$ac_try_echo"; } >&5 | |
1927 | (eval "$ac_link") 2>conftest.err | |
1928 | ac_status=$? | |
1929 | if test -s conftest.err; then | |
1930 | grep -v '^ *+' conftest.err >conftest.er1 | |
1931 | cat conftest.er1 >&5 | |
1932 | mv -f conftest.er1 conftest.err | |
1933 | fi | |
1934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1935 | test $ac_status = 0; } && { | |
1936 | test -z "$ac_c_werror_flag" || | |
1937 | test ! -s conftest.err | |
1938 | } && test -s conftest$ac_exeext && { | |
1939 | test "$cross_compiling" = yes || | |
22e05272 | 1940 | test -x conftest$ac_exeext |
5213506e RW |
1941 | }; then : |
1942 | ac_retval=0 | |
1943 | else | |
1944 | $as_echo "$as_me: failed program was:" >&5 | |
1945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1946 | ||
1947 | ac_retval=1 | |
1948 | fi | |
1949 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1950 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1951 | # interfere with the next link command; also delete a directory that is | |
1952 | # left behind by Apple's compiler. We do this before executing the actions. | |
1953 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1955 | as_fn_set_status $ac_retval | |
5213506e RW |
1956 | |
1957 | } # ac_fn_c_try_link | |
1958 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1959 | This file contains any messages produced by compilers while |
1960 | running configure, to aid debugging if configure makes a mistake. | |
1961 | ||
1962 | It was created by $as_me, which was | |
22e05272 | 1963 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1964 | |
1965 | $ $0 $@ | |
1966 | ||
1967 | _ACEOF | |
5213506e | 1968 | exec 5>>config.log |
1c710c3c DJ |
1969 | { |
1970 | cat <<_ASUNAME | |
1971 | ## --------- ## | |
1972 | ## Platform. ## | |
1973 | ## --------- ## | |
1974 | ||
1975 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1976 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1977 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1978 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1979 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1980 | ||
1981 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1982 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1983 | ||
1984 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1985 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1986 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1987 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1988 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1989 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1990 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1991 | ||
1992 | _ASUNAME | |
1993 | ||
1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1995 | for as_dir in $PATH | |
1996 | do | |
1997 | IFS=$as_save_IFS | |
1998 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1999 | $as_echo "PATH: $as_dir" |
2000 | done | |
2001 | IFS=$as_save_IFS | |
1c710c3c DJ |
2002 | |
2003 | } >&5 | |
2004 | ||
2005 | cat >&5 <<_ACEOF | |
2006 | ||
2007 | ||
2008 | ## ----------- ## | |
2009 | ## Core tests. ## | |
2010 | ## ----------- ## | |
2011 | ||
2012 | _ACEOF | |
2013 | ||
2014 | ||
2015 | # Keep a trace of the command line. | |
2016 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2017 | # Strip out --silent because we don't want to record it for future runs. | |
2018 | # Also quote any args containing shell meta-characters. | |
2019 | # Make two passes to allow for proper duplicate-argument suppression. | |
2020 | ac_configure_args= | |
2021 | ac_configure_args0= | |
2022 | ac_configure_args1= | |
1c710c3c DJ |
2023 | ac_must_keep_next=false |
2024 | for ac_pass in 1 2 | |
2025 | do | |
2026 | for ac_arg | |
2027 | do | |
2028 | case $ac_arg in | |
2029 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2031 | | -silent | --silent | --silen | --sile | --sil) | |
2032 | continue ;; | |
5213506e RW |
2033 | *\'*) |
2034 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2035 | esac |
2036 | case $ac_pass in | |
5213506e | 2037 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2038 | 2) |
5213506e | 2039 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2040 | if test $ac_must_keep_next = true; then |
2041 | ac_must_keep_next=false # Got value, back to normal. | |
2042 | else | |
2043 | case $ac_arg in | |
2044 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2045 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2046 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2047 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2048 | case "$ac_configure_args0 " in | |
2049 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2050 | esac | |
2051 | ;; | |
2052 | -* ) ac_must_keep_next=true ;; | |
2053 | esac | |
2054 | fi | |
5213506e | 2055 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2056 | ;; |
2057 | esac | |
2058 | done | |
2059 | done | |
5213506e RW |
2060 | { ac_configure_args0=; unset ac_configure_args0;} |
2061 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2062 | |
2063 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2064 | # config.log. We remove comments because anyway the quotes in there | |
2065 | # would cause problems or look ugly. | |
5213506e RW |
2066 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2067 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2068 | trap 'exit_status=$? |
2069 | # Save into config.log some information that might help in debugging. | |
2070 | { | |
2071 | echo | |
2072 | ||
22e05272 | 2073 | $as_echo "## ---------------- ## |
1c710c3c | 2074 | ## Cache variables. ## |
22e05272 | 2075 | ## ---------------- ##" |
1c710c3c DJ |
2076 | echo |
2077 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2078 | ( |
2079 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2080 | eval ac_val=\$$ac_var | |
2081 | case $ac_val in #( | |
2082 | *${as_nl}*) | |
2083 | case $ac_var in #( | |
2084 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2085 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2086 | esac | |
2087 | case $ac_var in #( | |
2088 | _ | IFS | as_nl) ;; #( | |
2089 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2090 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2091 | esac ;; | |
2092 | esac | |
2093 | done | |
1c710c3c | 2094 | (set) 2>&1 | |
5213506e RW |
2095 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2096 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2097 | sed -n \ |
5213506e RW |
2098 | "s/'\''/'\''\\\\'\'''\''/g; |
2099 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2100 | ;; #( | |
1c710c3c | 2101 | *) |
5213506e | 2102 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2103 | ;; |
5213506e RW |
2104 | esac | |
2105 | sort | |
2106 | ) | |
1c710c3c DJ |
2107 | echo |
2108 | ||
22e05272 | 2109 | $as_echo "## ----------------- ## |
1c710c3c | 2110 | ## Output variables. ## |
22e05272 | 2111 | ## ----------------- ##" |
1c710c3c DJ |
2112 | echo |
2113 | for ac_var in $ac_subst_vars | |
2114 | do | |
5213506e RW |
2115 | eval ac_val=\$$ac_var |
2116 | case $ac_val in | |
2117 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2118 | esac | |
2119 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2120 | done | sort |
2121 | echo | |
2122 | ||
2123 | if test -n "$ac_subst_files"; then | |
22e05272 | 2124 | $as_echo "## ------------------- ## |
5213506e | 2125 | ## File substitutions. ## |
22e05272 | 2126 | ## ------------------- ##" |
1c710c3c DJ |
2127 | echo |
2128 | for ac_var in $ac_subst_files | |
2129 | do | |
5213506e RW |
2130 | eval ac_val=\$$ac_var |
2131 | case $ac_val in | |
2132 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2133 | esac | |
2134 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2135 | done | sort |
2136 | echo | |
2137 | fi | |
2138 | ||
2139 | if test -s confdefs.h; then | |
22e05272 | 2140 | $as_echo "## ----------- ## |
1c710c3c | 2141 | ## confdefs.h. ## |
22e05272 | 2142 | ## ----------- ##" |
1c710c3c | 2143 | echo |
5213506e | 2144 | cat confdefs.h |
1c710c3c DJ |
2145 | echo |
2146 | fi | |
2147 | test "$ac_signal" != 0 && | |
5213506e RW |
2148 | $as_echo "$as_me: caught signal $ac_signal" |
2149 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2150 | } >&5 |
5213506e RW |
2151 | rm -f core *.core core.conftest.* && |
2152 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2153 | exit $exit_status |
5213506e | 2154 | ' 0 |
1c710c3c | 2155 | for ac_signal in 1 2 13 15; do |
5213506e | 2156 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2157 | done |
2158 | ac_signal=0 | |
2159 | ||
2160 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2161 | rm -f -r conftest* confdefs.h |
2162 | ||
2163 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2164 | |
2165 | # Predefined preprocessor variables. | |
2166 | ||
2167 | cat >>confdefs.h <<_ACEOF | |
2168 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2169 | _ACEOF | |
2170 | ||
1c710c3c DJ |
2171 | cat >>confdefs.h <<_ACEOF |
2172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2173 | _ACEOF | |
2174 | ||
1c710c3c DJ |
2175 | cat >>confdefs.h <<_ACEOF |
2176 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2177 | _ACEOF | |
0b0dc272 | 2178 | |
1c710c3c DJ |
2179 | cat >>confdefs.h <<_ACEOF |
2180 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2181 | _ACEOF | |
2182 | ||
1c710c3c DJ |
2183 | cat >>confdefs.h <<_ACEOF |
2184 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2185 | _ACEOF | |
2186 | ||
5213506e RW |
2187 | cat >>confdefs.h <<_ACEOF |
2188 | #define PACKAGE_URL "$PACKAGE_URL" | |
2189 | _ACEOF | |
2190 | ||
1c710c3c DJ |
2191 | |
2192 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2193 | # Prefer an explicitly selected file to automatically selected ones. |
2194 | ac_site_file1=NONE | |
2195 | ac_site_file2=NONE | |
2196 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2197 | # We do not want a PATH search for config.site. |
2198 | case $CONFIG_SITE in #(( | |
2199 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2200 | */*) ac_site_file1=$CONFIG_SITE;; | |
2201 | *) ac_site_file1=./$CONFIG_SITE;; | |
2202 | esac | |
5213506e RW |
2203 | elif test "x$prefix" != xNONE; then |
2204 | ac_site_file1=$prefix/share/config.site | |
2205 | ac_site_file2=$prefix/etc/config.site | |
2206 | else | |
2207 | ac_site_file1=$ac_default_prefix/share/config.site | |
2208 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2209 | fi |
5213506e RW |
2210 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2211 | do | |
2212 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2213 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2215 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2216 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2217 | . "$ac_site_file" \ |
2218 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2220 | as_fn_error $? "failed to load site script $ac_site_file | |
2221 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2222 | fi |
2223 | done | |
2224 | ||
2225 | if test -r "$cache_file"; then | |
22e05272 JM |
2226 | # Some versions of bash will fail to source /dev/null (special files |
2227 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2228 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2230 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2231 | case $cache_file in |
5213506e RW |
2232 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2233 | *) . "./$cache_file";; | |
1c710c3c DJ |
2234 | esac |
2235 | fi | |
671aa708 | 2236 | else |
5213506e RW |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2238 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2239 | >$cache_file |
2240 | fi | |
2241 | ||
2242 | # Check that the precious variables saved in the cache have kept the same | |
2243 | # value. | |
2244 | ac_cache_corrupted=false | |
5213506e | 2245 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2246 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2247 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2248 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2249 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2250 | case $ac_old_set,$ac_new_set in |
2251 | set,) | |
5213506e RW |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2253 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2254 | ac_cache_corrupted=: ;; |
2255 | ,set) | |
5213506e RW |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2257 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2258 | ac_cache_corrupted=: ;; |
2259 | ,);; | |
2260 | *) | |
2261 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2262 | # differences in whitespace do not lead to failure. |
2263 | ac_old_val_w=`echo x $ac_old_val` | |
2264 | ac_new_val_w=`echo x $ac_new_val` | |
2265 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2267 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2268 | ac_cache_corrupted=: | |
2269 | else | |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2271 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2272 | eval $ac_var=\$ac_old_val | |
2273 | fi | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2275 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2277 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2278 | fi;; |
2279 | esac | |
2280 | # Pass precious variables to config.status. | |
2281 | if test "$ac_new_set" = set; then | |
2282 | case $ac_new_val in | |
5213506e | 2283 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2284 | *) ac_arg=$ac_var=$ac_new_val ;; |
2285 | esac | |
2286 | case " $ac_configure_args " in | |
2287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2288 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2289 | esac |
2290 | fi | |
2291 | done | |
2292 | if $ac_cache_corrupted; then | |
5213506e RW |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2294 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2296 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2297 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2298 | fi |
5213506e RW |
2299 | ## -------------------- ## |
2300 | ## Main body of script. ## | |
2301 | ## -------------------- ## | |
671aa708 | 2302 | |
2aeb72e9 DD |
2303 | ac_ext=c |
2304 | ac_cpp='$CPP $CPPFLAGS' | |
2305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2308 | ||
1c710c3c DJ |
2309 | |
2310 | ||
2311 | ||
1c710c3c DJ |
2312 | |
2313 | ||
0115d4a3 | 2314 | |
1c710c3c | 2315 | |
ad33ff57 RW |
2316 | progname=$0 |
2317 | # if PWD already has a value, it is probably wrong. | |
2318 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2319 | ||
2320 | # Export original configure arguments for use by sub-configures. | |
2321 | # Quote arguments with shell meta charatcers. | |
2322 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2323 | set -- "$progname" "$@" | |
2324 | for ac_arg | |
2325 | do | |
2326 | case "$ac_arg" in | |
2327 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2328 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2329 | # if the argument is of the form -foo=baz, quote the baz part only | |
2330 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2331 | *) ;; | |
2332 | esac | |
2333 | # Add the quoted argument to the list. | |
2334 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2335 | done | |
2336 | if test "$silent" = yes; then | |
2337 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2338 | fi | |
2339 | # Remove the initial space we just introduced and, as these will be | |
2340 | # expanded by make, quote '$'. | |
2341 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2342 | ||
1c710c3c DJ |
2343 | |
2344 | # Find the build, host, and target systems. | |
671aa708 | 2345 | ac_aux_dir= |
5213506e | 2346 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2347 | if test -f "$ac_dir/install-sh"; then |
2348 | ac_aux_dir=$ac_dir | |
2349 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2350 | break | |
2351 | elif test -f "$ac_dir/install.sh"; then | |
2352 | ac_aux_dir=$ac_dir | |
2353 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2354 | break | |
2355 | elif test -f "$ac_dir/shtool"; then | |
2356 | ac_aux_dir=$ac_dir | |
2357 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2358 | break | |
2359 | fi | |
671aa708 NN |
2360 | done |
2361 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2362 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2363 | fi |
5213506e RW |
2364 | |
2365 | # These three variables are undocumented and unsupported, | |
2366 | # and are intended to be withdrawn in a future Autoconf release. | |
2367 | # They can cause serious problems if a builder's source tree is in a directory | |
2368 | # whose full name contains unusual characters. | |
2369 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2370 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2371 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2372 | ||
671aa708 | 2373 | |
1c710c3c | 2374 | # Make sure we can run config.sub. |
5213506e | 2375 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2376 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2377 | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2379 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2380 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2381 | $as_echo_n "(cached) " >&6 |
2382 | else | |
2383 | ac_build_alias=$build_alias | |
2384 | test "x$ac_build_alias" = x && | |
2385 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2386 | test "x$ac_build_alias" = x && | |
22e05272 | 2387 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2388 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2389 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2390 | |
2391 | fi | |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2393 | $as_echo "$ac_cv_build" >&6; } | |
2394 | case $ac_cv_build in | |
2395 | *-*-*) ;; | |
22e05272 | 2396 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2397 | esac |
1c710c3c | 2398 | build=$ac_cv_build |
5213506e RW |
2399 | ac_save_IFS=$IFS; IFS='-' |
2400 | set x $ac_cv_build | |
2401 | shift | |
2402 | build_cpu=$1 | |
2403 | build_vendor=$2 | |
2404 | shift; shift | |
2405 | # Remember, the first character of IFS is used to create $*, | |
2406 | # except with old shells: | |
2407 | build_os=$* | |
2408 | IFS=$ac_save_IFS | |
2409 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2410 | |
671aa708 | 2411 | |
1c710c3c DJ |
2412 | case ${build_alias} in |
2413 | "") build_noncanonical=${build} ;; | |
2414 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2415 | esac |
2416 | ||
2417 | ||
af71363e | 2418 | |
1c710c3c DJ |
2419 | case ${host_alias} in |
2420 | "") host_noncanonical=${build_noncanonical} ;; | |
2421 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2422 | esac |
2423 | ||
af71363e | 2424 | |
1c710c3c DJ |
2425 | |
2426 | case ${target_alias} in | |
2427 | "") target_noncanonical=${host_noncanonical} ;; | |
2428 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2429 | esac |
2430 | ||
af71363e | 2431 | |
1c710c3c DJ |
2432 | |
2433 | ||
2434 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2435 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2436 | NONENONEs,x,x, && | |
1c710c3c | 2437 | program_transform_name=s,y,y, |
af71363e | 2438 | |
5213506e RW |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2440 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2441 | if ${ac_cv_host+:} false; then : |
5213506e | 2442 | $as_echo_n "(cached) " >&6 |
af71363e | 2443 | else |
5213506e RW |
2444 | if test "x$host_alias" = x; then |
2445 | ac_cv_host=$ac_cv_build | |
2446 | else | |
2447 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2448 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2449 | fi |
1c710c3c | 2450 | |
af71363e | 2451 | fi |
5213506e RW |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2453 | $as_echo "$ac_cv_host" >&6; } | |
2454 | case $ac_cv_host in | |
2455 | *-*-*) ;; | |
22e05272 | 2456 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2457 | esac |
1c710c3c | 2458 | host=$ac_cv_host |
5213506e RW |
2459 | ac_save_IFS=$IFS; IFS='-' |
2460 | set x $ac_cv_host | |
2461 | shift | |
2462 | host_cpu=$1 | |
2463 | host_vendor=$2 | |
2464 | shift; shift | |
2465 | # Remember, the first character of IFS is used to create $*, | |
2466 | # except with old shells: | |
2467 | host_os=$* | |
2468 | IFS=$ac_save_IFS | |
2469 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2470 | |
2471 | ||
5213506e RW |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2473 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2474 | if ${ac_cv_target+:} false; then : |
5213506e | 2475 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2476 | else |
5213506e RW |
2477 | if test "x$target_alias" = x; then |
2478 | ac_cv_target=$ac_cv_host | |
2479 | else | |
2480 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2481 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2482 | fi |
1c710c3c DJ |
2483 | |
2484 | fi | |
5213506e RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2486 | $as_echo "$ac_cv_target" >&6; } | |
2487 | case $ac_cv_target in | |
2488 | *-*-*) ;; | |
22e05272 | 2489 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2490 | esac |
1c710c3c | 2491 | target=$ac_cv_target |
5213506e RW |
2492 | ac_save_IFS=$IFS; IFS='-' |
2493 | set x $ac_cv_target | |
2494 | shift | |
2495 | target_cpu=$1 | |
2496 | target_vendor=$2 | |
2497 | shift; shift | |
2498 | # Remember, the first character of IFS is used to create $*, | |
2499 | # except with old shells: | |
2500 | target_os=$* | |
2501 | IFS=$ac_save_IFS | |
2502 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2503 | |
2504 | ||
2505 | # The aliases save the names the user supplied, while $host etc. | |
2506 | # will get canonicalized. | |
2507 | test -n "$target_alias" && | |
2508 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2509 | NONENONEs,x,x, && | |
2510 | program_prefix=${target_alias}- | |
5213506e | 2511 | |
671aa708 | 2512 | test "$program_prefix" != NONE && |
5213506e | 2513 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2514 | # Use a double $ so make ignores it. |
2515 | test "$program_suffix" != NONE && | |
5213506e RW |
2516 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2517 | # Double any \ or $. | |
1c710c3c | 2518 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2519 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2520 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2521 | |
671aa708 NN |
2522 | |
2523 | ||
775956d0 NN |
2524 | # Get 'install' or 'install-sh' and its variants. |
2525 | # Find a good install program. We prefer a C program (faster), | |
2526 | # so one script is as good as another. But avoid the broken or | |
2527 | # incompatible versions: | |
2528 | # SysV /etc/install, /usr/sbin/install | |
2529 | # SunOS /usr/etc/install | |
2530 | # IRIX /sbin/install | |
2531 | # AIX /bin/install | |
1c710c3c | 2532 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2533 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2534 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2535 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2536 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2537 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2538 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2540 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2541 | if test -z "$INSTALL"; then |
22e05272 | 2542 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2543 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2544 | else |
2545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2546 | for as_dir in $PATH | |
2547 | do | |
2548 | IFS=$as_save_IFS | |
2549 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2550 | # Account for people who put trailing slashes in PATH elements. |
2551 | case $as_dir/ in #(( | |
2552 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2553 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2554 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2555 | /usr/ucb/* ) ;; |
2556 | *) | |
2557 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2558 | # Don't use installbsd from OSF since it installs stuff as root | |
2559 | # by default. | |
2560 | for ac_prog in ginstall scoinst install; do | |
2561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2562 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2563 | if test $ac_prog = install && |
1c710c3c | 2564 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2565 | # AIX install. It has an incompatible calling convention. |
2566 | : | |
1c710c3c DJ |
2567 | elif test $ac_prog = install && |
2568 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2569 | # program-specific install script used by HP pwplus--don't use. | |
2570 | : | |
775956d0 | 2571 | else |
38d24731 RW |
2572 | rm -rf conftest.one conftest.two conftest.dir |
2573 | echo one > conftest.one | |
2574 | echo two > conftest.two | |
2575 | mkdir conftest.dir | |
2576 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2577 | test -s conftest.one && test -s conftest.two && | |
2578 | test -s conftest.dir/conftest.one && | |
2579 | test -s conftest.dir/conftest.two | |
2580 | then | |
2581 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2582 | break 3 | |
2583 | fi | |
775956d0 NN |
2584 | fi |
2585 | fi | |
2586 | done | |
1c710c3c DJ |
2587 | done |
2588 | ;; | |
2589 | esac | |
5213506e RW |
2590 | |
2591 | done | |
2592 | IFS=$as_save_IFS | |
1c710c3c | 2593 | |
38d24731 | 2594 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2595 | |
2596 | fi | |
2597 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2598 | INSTALL=$ac_cv_path_install |
775956d0 | 2599 | else |
38d24731 RW |
2600 | # As a last resort, use the slow shell script. Don't cache a |
2601 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2602 | # break other packages using the cache if that directory is |
38d24731 | 2603 | # removed, or if the value is a relative name. |
1c710c3c | 2604 | INSTALL=$ac_install_sh |
775956d0 NN |
2605 | fi |
2606 | fi | |
5213506e RW |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2608 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2609 | |
2610 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2611 | # It thinks the first close brace ends the variable substitution. | |
2612 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2613 | ||
1c710c3c | 2614 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2615 | |
2616 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2617 | ||
5213506e RW |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2619 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2620 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2621 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2622 | else |
2623 | rm -f conftestdata_t | |
2624 | echo >conftestdata_f | |
2625 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2626 | then | |
2627 | acx_cv_prog_LN=ln | |
2628 | else | |
2629 | acx_cv_prog_LN=no | |
2630 | fi | |
2631 | rm -f conftestdata_f conftestdata_t | |
2632 | ||
2633 | fi | |
2634 | if test $acx_cv_prog_LN = no; then | |
2635 | LN="cp" | |
5213506e RW |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2637 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2638 | else |
2639 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2641 | $as_echo "yes" >&6; } | |
ad6717df PB |
2642 | fi |
2643 | ||
5213506e RW |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2645 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2646 | LN_S=$as_ln_s |
2647 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2649 | $as_echo "yes" >&6; } | |
fb0103e5 | 2650 | else |
5213506e RW |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2652 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2653 | fi |
2654 | ||
87264276 PB |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2656 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2657 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2658 | $as_echo_n "(cached) " >&6 |
2659 | else | |
2660 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2661 | for ac_i in 1 2 3 4 5 6 7; do | |
2662 | ac_script="$ac_script$as_nl$ac_script" | |
2663 | done | |
2664 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2665 | { ac_script=; unset ac_script;} | |
2666 | if test -z "$SED"; then | |
2667 | ac_path_SED_found=false | |
2668 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2670 | for as_dir in $PATH | |
2671 | do | |
2672 | IFS=$as_save_IFS | |
2673 | test -z "$as_dir" && as_dir=. | |
2674 | for ac_prog in sed gsed; do | |
2675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2676 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2677 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2678 | # Check for GNU ac_path_SED and select it if it is found. |
2679 | # Check for GNU $ac_path_SED | |
2680 | case `"$ac_path_SED" --version 2>&1` in | |
2681 | *GNU*) | |
2682 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2683 | *) | |
2684 | ac_count=0 | |
2685 | $as_echo_n 0123456789 >"conftest.in" | |
2686 | while : | |
2687 | do | |
2688 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2689 | mv "conftest.tmp" "conftest.in" | |
2690 | cp "conftest.in" "conftest.nl" | |
2691 | $as_echo '' >> "conftest.nl" | |
2692 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2693 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2694 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2695 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2696 | # Best one so far, save it but keep looking for a better one | |
2697 | ac_cv_path_SED="$ac_path_SED" | |
2698 | ac_path_SED_max=$ac_count | |
2699 | fi | |
2700 | # 10*(2^10) chars as input seems more than enough | |
2701 | test $ac_count -gt 10 && break | |
2702 | done | |
2703 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2704 | esac | |
2705 | ||
2706 | $ac_path_SED_found && break 3 | |
2707 | done | |
2708 | done | |
2709 | done | |
2710 | IFS=$as_save_IFS | |
2711 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2712 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2713 | fi |
2714 | else | |
2715 | ac_cv_path_SED=$SED | |
2716 | fi | |
2717 | ||
2718 | fi | |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2720 | $as_echo "$ac_cv_path_SED" >&6; } | |
2721 | SED="$ac_cv_path_SED" | |
2722 | rm -f conftest.sed | |
2723 | ||
2724 | for ac_prog in gawk mawk nawk awk | |
2725 | do | |
2726 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2727 | set dummy $ac_prog; ac_word=$2 | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2730 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2731 | $as_echo_n "(cached) " >&6 |
2732 | else | |
2733 | if test -n "$AWK"; then | |
2734 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2743 | ac_cv_prog_AWK="$ac_prog" |
2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
2748 | done | |
2749 | IFS=$as_save_IFS | |
2750 | ||
2751 | fi | |
2752 | fi | |
2753 | AWK=$ac_cv_prog_AWK | |
2754 | if test -n "$AWK"; then | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2756 | $as_echo "$AWK" >&6; } | |
2757 | else | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2759 | $as_echo "no" >&6; } | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | test -n "$AWK" && break | |
2764 | done | |
2765 | ||
775956d0 | 2766 | |
ee6a22df L |
2767 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2768 | ||
2769 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2770 | # a relative path. | |
2771 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2772 | INSTALL="${srcpwd}/install-sh -c" | |
2773 | fi | |
2774 | ||
671aa708 NN |
2775 | # Set srcdir to "." if that's what it is. |
2776 | # This is important for multilib support. | |
2777 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2778 | if test "${pwd}" = "${srcpwd}" ; then |
2779 | srcdir=. | |
79c06341 JL |
2780 | fi |
2781 | ||
671aa708 | 2782 | topsrcdir=$srcpwd |
5d4a5ee6 | 2783 | |
671aa708 | 2784 | extra_host_args= |
afabd8e6 | 2785 | |
671aa708 NN |
2786 | ### To add a new directory to the tree, first choose whether it is a target |
2787 | ### or a host dependent tool. Then put it into the appropriate list | |
2788 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2789 | |
1c710c3c | 2790 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2791 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2792 | |
1c710c3c DJ |
2793 | # Dependency sorting is only needed when *configuration* must be done in |
2794 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2795 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2796 | |
671aa708 NN |
2797 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2798 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2799 | |
23f6b2f9 PB |
2800 | # these library is used by various programs built for the build |
2801 | # environment | |
2802 | # | |
929315a9 | 2803 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2804 | |
2805 | # these tools are built for the build environment | |
85bfb75e | 2806 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2807 | |
671aa708 | 2808 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2809 | #f |
36230329 | 2810 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2811 | |
671aa708 NN |
2812 | # these tools are built for the host environment |
2813 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2814 | # know that we are building the simulator. | |
2815 | # binutils, gas and ld appear in that order because it makes sense to run | |
2816 | # "make check" in that particular order. | |
38e3d868 | 2817 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2818 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
671aa708 | 2819 | |
671aa708 NN |
2820 | # these libraries are built for the target environment, and are built after |
2821 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2822 | # Note that libiberty is not a target library. |
291f172e | 2823 | target_libraries="target-libgcc \ |
eff02e4f | 2824 | target-libbacktrace \ |
671aa708 NN |
2825 | target-libgloss \ |
2826 | target-newlib \ | |
6d3b5aea | 2827 | target-libgomp \ |
5f520819 | 2828 | target-liboffloadmic \ |
48310492 | 2829 | target-libatomic \ |
0a35513e | 2830 | target-libitm \ |
cb543528 | 2831 | target-libstdc++-v3 \ |
f35db108 | 2832 | target-libsanitizer \ |
2077db1b | 2833 | target-libvtv \ |
77008252 | 2834 | target-libssp \ |
1ec601bf | 2835 | target-libquadmath \ |
6de9cd9a | 2836 | target-libgfortran \ |
012447ea | 2837 | target-libffi \ |
d9cdb878 | 2838 | target-libobjc \ |
632e2a07 | 2839 | target-libada \ |
b4c522fa | 2840 | target-libgo \ |
bb50312e IB |
2841 | target-libphobos \ |
2842 | target-zlib" | |
671aa708 | 2843 | |
4dbda6f0 NN |
2844 | # these tools are built using the target libraries, and are intended to |
2845 | # run only in the target environment | |
671aa708 | 2846 | # |
4dbda6f0 | 2847 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2848 | # list belongs in this list. |
671aa708 | 2849 | # |
85bfb75e | 2850 | target_tools="target-rda" |
79c06341 | 2851 | |
671aa708 | 2852 | ################################################################################ |
79c06341 | 2853 | |
671aa708 NN |
2854 | ## All tools belong in one of the four categories, and are assigned above |
2855 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2856 | ## is important because configure will choke if they ever get through. | |
2857 | ## ${configdirs} is directories we build using the host tools. | |
2858 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2859 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2860 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2861 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2862 | |
ac9e6043 RW |
2863 | |
2864 | ||
671aa708 | 2865 | ################################################################################ |
79c06341 | 2866 | |
671aa708 | 2867 | srcname="gnu development package" |
79c06341 | 2868 | |
671aa708 NN |
2869 | # This gets set non-empty for some net releases of packages. |
2870 | appdirs="" | |
79c06341 | 2871 | |
671aa708 NN |
2872 | # Define is_cross_compiler to save on calls to 'test'. |
2873 | is_cross_compiler= | |
2874 | if test x"${host}" = x"${target}" ; then | |
2875 | is_cross_compiler=no | |
79c06341 | 2876 | else |
671aa708 | 2877 | is_cross_compiler=yes |
1c710c3c | 2878 | fi |
79c06341 | 2879 | |
b4acb5ef | 2880 | # Find the build and target subdir names. |
8b87bb96 | 2881 | |
2e9e6f68 DJ |
2882 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2883 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2884 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2885 | # However, they still use the build modules, because the corresponding | |
2886 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2887 | # finishes. So: | |
2888 | # - build_subdir is where we find build modules, and never changes. | |
2889 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2890 | ||
2891 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2892 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2893 | |
5213506e RW |
2894 | # Check whether --with-build-libsubdir was given. |
2895 | if test "${with_build_libsubdir+set}" = set; then : | |
2896 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2897 | else |
2898 | build_libsubdir="$build_subdir" | |
5213506e RW |
2899 | fi |
2900 | ||
215c351a PB |
2901 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2902 | if ( test $srcdir = . && test -d gcc ) \ | |
2903 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2904 | host_subdir="host-${host_noncanonical}" | |
2905 | else | |
2906 | host_subdir=. | |
2907 | fi | |
8b87bb96 NN |
2908 | # No prefix. |
2909 | target_subdir=${target_noncanonical} | |
1c710c3c | 2910 | |
0db770bd RW |
2911 | # Be sure to cover against remnants of an in-tree build. |
2912 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2913 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2914 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2915 | fi | |
79c06341 | 2916 | |
671aa708 NN |
2917 | # Skipdirs are removed silently. |
2918 | skipdirs= | |
2919 | # Noconfigdirs are removed loudly. | |
2920 | noconfigdirs="" | |
79c06341 | 2921 | |
671aa708 NN |
2922 | use_gnu_ld= |
2923 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2924 | if test x$with_gnu_ld = xno ; then | |
2925 | use_gnu_ld=no | |
5afab7ad | 2926 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2927 | fi |
2928 | ||
671aa708 NN |
2929 | use_gnu_as= |
2930 | # Make sure we don't let GNU as be added if we didn't want it. | |
2931 | if test x$with_gnu_as = xno ; then | |
2932 | use_gnu_as=no | |
2933 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2934 | fi |
2935 | ||
d7f09764 | 2936 | use_included_zlib= |
a05c2c75 L |
2937 | |
2938 | # Check whether --with-system-zlib was given. | |
2939 | if test "${with_system_zlib+set}" = set; then : | |
2940 | withval=$with_system_zlib; | |
2941 | fi | |
2942 | ||
d7f09764 DN |
2943 | # Make sure we don't let ZLIB be added if we didn't want it. |
2944 | if test x$with_system_zlib = xyes ; then | |
2945 | use_included_zlib=no | |
2946 | noconfigdirs="$noconfigdirs zlib" | |
2947 | fi | |
2948 | ||
1c710c3c | 2949 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2950 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2951 | |
671aa708 NN |
2952 | case ${with_x} in |
2953 | yes | "") ;; # the default value for this tree is that X11 is available | |
2954 | no) | |
b4f96efe | 2955 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2956 | # We won't be able to build gdbtk without X. |
1c710c3c | 2957 | enable_gdbtk=no |
671aa708 NN |
2958 | ;; |
2959 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2960 | esac | |
79c06341 | 2961 | |
1bcce263 | 2962 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2963 | # Remove these if host=target. |
2964 | cross_only="target-libgloss target-newlib target-opcodes" | |
2965 | ||
2966 | case $is_cross_compiler in | |
2967 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2968 | esac |
79c06341 | 2969 | |
671aa708 NN |
2970 | # If both --with-headers and --with-libs are specified, default to |
2971 | # --without-newlib. | |
ee6a22df L |
2972 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2973 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2974 | if test x"${with_newlib}" = x ; then |
2975 | with_newlib=no | |
2976 | fi | |
79c06341 JL |
2977 | fi |
2978 | ||
671aa708 NN |
2979 | # Recognize --with-newlib/--without-newlib. |
2980 | case ${with_newlib} in | |
2981 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2982 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2983 | esac | |
79c06341 | 2984 | |
85c64bbe BS |
2985 | # Check whether --enable-as-accelerator-for was given. |
2986 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2987 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2988 | fi |
2989 | ||
2990 | ||
2991 | # Check whether --enable-offload-targets was given. | |
2992 | if test "${enable_offload_targets+set}" = set; then : | |
2993 | enableval=$enable_offload_targets; | |
2994 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2995 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2996 | fi |
2997 | ||
2998 | else | |
2999 | enable_offload_targets= | |
3000 | fi | |
3001 | ||
3002 | ||
fe5bfa67 TB |
3003 | # Check whether --enable-offload-defaulted was given. |
3004 | if test "${enable_offload_defaulted+set}" = set; then : | |
3005 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3006 | else | |
3007 | enable_offload_defaulted= | |
3008 | fi | |
3009 | ||
3010 | ||
21539e2e MK |
3011 | # Handle --enable-gold, --enable-ld. |
3012 | # --disable-gold [--enable-ld] | |
3013 | # Build only ld. Default option. | |
9580395f L |
3014 | # --enable-gold [--enable-ld] |
3015 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3016 | # as "ld.bfd" and "ld". | |
3017 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3018 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3019 | # install ld as "ld.bfd". | |
3020 | # --enable-gold[=default] --disable-ld | |
3021 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3022 | # --enable-gold --enable-ld=default | |
9580395f L |
3023 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3024 | # and ld.bfd). | |
21539e2e MK |
3025 | # In other words, ld is default |
3026 | # --enable-gold=default --enable-ld=default | |
3027 | # Error. | |
3028 | ||
3029 | default_ld= | |
5213506e RW |
3030 | # Check whether --enable-gold was given. |
3031 | if test "${enable_gold+set}" = set; then : | |
3032 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3033 | else |
3034 | ENABLE_GOLD=no | |
5213506e RW |
3035 | fi |
3036 | ||
21539e2e MK |
3037 | case "${ENABLE_GOLD}" in |
3038 | yes|default) | |
38e3d868 RM |
3039 | # Check for ELF target. |
3040 | is_elf=no | |
3041 | case "${target}" in | |
3042 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3043 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3044 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3045 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3046 | case "${target}" in |
3047 | *-*-linux*aout* | *-*-linux*oldld*) | |
3048 | ;; | |
3049 | *) | |
3050 | is_elf=yes | |
3051 | ;; | |
3052 | esac | |
3053 | esac | |
3054 | ||
3055 | if test "$is_elf" = "yes"; then | |
3056 | # Check for target supported by gold. | |
5afab7ad | 3057 | case "${target}" in |
7705dfd1 | 3058 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3059 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
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. |
1873ec0c L |
3389 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3390 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3391 | case "${target}" in | |
3392 | *-*-vxworks*) | |
3393 | # VxWorks uses the Dinkumware C++ library. | |
3394 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3395 | ;; | |
afa3d80e TS |
3396 | amdgcn*-*-*) |
3397 | # Not ported/fails to build when using newlib. | |
3398 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3399 | ;; | |
1873ec0c L |
3400 | arm*-wince-pe*) |
3401 | # the C++ libraries don't build on top of CE's C libraries | |
3402 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3403 | ;; | |
3404 | avr-*-*) | |
3405 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3406 | ;; | |
91dfef96 JM |
3407 | bpf-*-*) |
3408 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3409 | ;; | |
fef939d6 JB |
3410 | ft32-*-*) |
3411 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3412 | ;; | |
1873ec0c L |
3413 | esac |
3414 | fi | |
1e9e0e23 | 3415 | |
91dfef96 JM |
3416 | # Disable C++ on systems where it is known to not work. |
3417 | # For testing, you can override this with --enable-languages=c++. | |
3418 | case ,${enable_languages}, in | |
3419 | *,c++,*) | |
3420 | ;; | |
3421 | *) | |
3422 | case "${target}" in | |
3423 | bpf-*-*) | |
3424 | unsupported_languages="$unsupported_languages c++" | |
3425 | ;; | |
3426 | esac | |
3427 | ;; | |
3428 | esac | |
3429 | ||
3430 | # Disable Objc on systems where it is known to not work. | |
3431 | # For testing, you can override this with --enable-languages=objc. | |
3432 | case ,${enable_languages}, in | |
3433 | *,objc,*) | |
3434 | ;; | |
3435 | *) | |
3436 | case "${target}" in | |
3437 | bpf-*-*) | |
3438 | unsupported_languages="$unsupported_languages objc" | |
3439 | ;; | |
3440 | esac | |
3441 | ;; | |
3442 | esac | |
3443 | ||
260eedb9 IB |
3444 | # Disable D on systems where it is known to not work. |
3445 | # For testing, you can override this with --enable-languages=d. | |
3446 | case ,${enable_languages}, in | |
3447 | *,d,*) | |
3448 | ;; | |
3449 | *) | |
3450 | case "${target}" in | |
91dfef96 | 3451 | bpf-*-*) |
260eedb9 IB |
3452 | unsupported_languages="$unsupported_languages d" |
3453 | ;; | |
3454 | esac | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable libphobos on unsupported systems. | |
3459 | # For testing, you can override this with --enable-libphobos. | |
3460 | if test -d ${srcdir}/libphobos; then | |
3461 | if test x$enable_libphobos = x; then | |
3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3463 | $as_echo_n "checking for libphobos support... " >&6; } | |
3464 | if (srcdir=${srcdir}/libphobos; \ | |
3465 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3466 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3467 | then |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3469 | $as_echo "no" >&6; } | |
3470 | noconfigdirs="$noconfigdirs target-libphobos" | |
3471 | else | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3473 | $as_echo "yes" >&6; } | |
3474 | fi | |
3475 | fi | |
3476 | fi | |
3477 | ||
1e9e0e23 JM |
3478 | # Disable Fortran for some systems. |
3479 | case "${target}" in | |
3480 | mmix-*-*) | |
3481 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3482 | unsupported_languages="$unsupported_languages fortran" | |
3483 | ;; | |
91dfef96 JM |
3484 | bpf-*-*) |
3485 | unsupported_languages="$unsupported_languages fortran" | |
3486 | ;; | |
1e9e0e23 JM |
3487 | esac |
3488 | ||
012447ea JJ |
3489 | # Disable libffi for some systems. |
3490 | case "${target}" in | |
3491 | powerpc-*-darwin*) | |
3492 | ;; | |
3493 | i[3456789]86-*-darwin*) | |
3494 | ;; | |
3495 | x86_64-*-darwin[912]*) | |
3496 | ;; | |
3497 | *-*-darwin*) | |
3498 | noconfigdirs="$noconfigdirs target-libffi" | |
3499 | ;; | |
3500 | *-*-netware*) | |
3501 | noconfigdirs="$noconfigdirs target-libffi" | |
3502 | ;; | |
3503 | *-*-phoenix*) | |
3504 | noconfigdirs="$noconfigdirs target-libffi" | |
3505 | ;; | |
3506 | *-*-rtems*) | |
3507 | noconfigdirs="$noconfigdirs target-libffi" | |
3508 | ;; | |
3509 | *-*-tpf*) | |
3510 | noconfigdirs="$noconfigdirs target-libffi" | |
3511 | ;; | |
3512 | *-*-uclinux*) | |
3513 | noconfigdirs="$noconfigdirs target-libffi" | |
3514 | ;; | |
3515 | *-*-vxworks*) | |
3516 | noconfigdirs="$noconfigdirs target-libffi" | |
3517 | ;; | |
b20e7532 AT |
3518 | aarch64*-*-freebsd*) |
3519 | noconfigdirs="$noconfigdirs target-libffi" | |
3520 | ;; | |
012447ea JJ |
3521 | alpha*-*-*vms*) |
3522 | noconfigdirs="$noconfigdirs target-libffi" | |
3523 | ;; | |
3524 | arm*-*-freebsd*) | |
3525 | noconfigdirs="$noconfigdirs target-libffi" | |
3526 | ;; | |
3527 | arm-wince-pe) | |
3528 | noconfigdirs="$noconfigdirs target-libffi" | |
3529 | ;; | |
3530 | arm*-*-symbianelf*) | |
3531 | noconfigdirs="$noconfigdirs target-libffi" | |
3532 | ;; | |
91dfef96 JM |
3533 | bpf-*-*) |
3534 | noconfigdirs="$noconfigdirs target-libffi" | |
3535 | ;; | |
012447ea JJ |
3536 | cris-*-* | crisv32-*-*) |
3537 | case "${target}" in | |
3538 | *-*-linux*) | |
3539 | ;; | |
3540 | *) # See PR46792 regarding target-libffi. | |
3541 | noconfigdirs="$noconfigdirs target-libffi";; | |
3542 | esac | |
3543 | ;; | |
3544 | hppa*64*-*-hpux*) | |
3545 | noconfigdirs="$noconfigdirs target-libffi" | |
3546 | ;; | |
3547 | hppa*-hp-hpux11*) | |
3548 | ;; | |
3549 | hppa*-*-hpux*) | |
3550 | noconfigdirs="$noconfigdirs target-libffi" | |
3551 | ;; | |
3552 | ia64*-*-*vms*) | |
3553 | noconfigdirs="$noconfigdirs target-libffi" | |
3554 | ;; | |
3555 | i[3456789]86-w64-mingw*) | |
3556 | noconfigdirs="$noconfigdirs target-libffi" | |
3557 | ;; | |
3558 | i[3456789]86-*-mingw*) | |
3559 | noconfigdirs="$noconfigdirs target-libffi" | |
3560 | ;; | |
3561 | x86_64-*-mingw*) | |
3562 | noconfigdirs="$noconfigdirs target-libffi" | |
3563 | ;; | |
3564 | mmix-*-*) | |
3565 | noconfigdirs="$noconfigdirs target-libffi" | |
3566 | ;; | |
3567 | powerpc-*-aix*) | |
012447ea JJ |
3568 | ;; |
3569 | rs6000-*-aix*) | |
012447ea JJ |
3570 | ;; |
3571 | ft32-*-*) | |
3572 | noconfigdirs="$noconfigdirs target-libffi" | |
3573 | ;; | |
3574 | *-*-lynxos*) | |
3575 | noconfigdirs="$noconfigdirs target-libffi" | |
3576 | ;; | |
3577 | esac | |
3578 | ||
3579 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3580 | # this in sync with contrib/config-list.mk. | |
3581 | case "${target}" in | |
91dfef96 | 3582 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3583 | unsupported_languages="$unsupported_languages go" |
3584 | ;; | |
3585 | esac | |
3586 | ||
f9d09df0 TT |
3587 | # Only allow gdbserver on some systems. |
3588 | if test -d ${srcdir}/gdbserver; then | |
3589 | if test x$enable_gdbserver = x; then | |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3591 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3592 | if (srcdir=${srcdir}/gdbserver; \ | |
3593 | . ${srcdir}/configure.srv; \ | |
3594 | test -n "$UNSUPPORTED") | |
3595 | then | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3597 | $as_echo "no" >&6; } | |
3598 | noconfigdirs="$noconfigdirs gdbserver" | |
3599 | else | |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3601 | $as_echo "yes" >&6; } | |
3602 | fi | |
3603 | fi | |
3604 | fi | |
3605 | ||
cdbc9e92 ILT |
3606 | # Disable libgo for some systems where it is known to not work. |
3607 | # For testing, you can easily override this with --enable-libgo. | |
3608 | if test x$enable_libgo = x; then | |
3609 | case "${target}" in | |
3610 | *-*-darwin*) | |
3611 | # PR 46986 | |
3612 | noconfigdirs="$noconfigdirs target-libgo" | |
3613 | ;; | |
3614 | *-*-cygwin* | *-*-mingw*) | |
3615 | noconfigdirs="$noconfigdirs target-libgo" | |
3616 | ;; | |
91dfef96 JM |
3617 | bpf-*-*) |
3618 | noconfigdirs="$noconfigdirs target-libgo" | |
3619 | ;; | |
cdbc9e92 ILT |
3620 | esac |
3621 | fi | |
3622 | ||
c03353e2 RIL |
3623 | # Default libgloss CPU subdirectory. |
3624 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3625 | |
fbcf0dca JM |
3626 | case "${target}" in |
3627 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3628 | libgloss_dir=wince | |
3629 | ;; | |
4dddfc74 YZ |
3630 | aarch64*-*-* ) |
3631 | libgloss_dir=aarch64 | |
3632 | ;; | |
fbcf0dca JM |
3633 | arm*-*-*) |
3634 | libgloss_dir=arm | |
3635 | ;; | |
3636 | cris-*-* | crisv32-*-*) | |
3637 | libgloss_dir=cris | |
3638 | ;; | |
3639 | hppa*-*-*) | |
3640 | libgloss_dir=pa | |
3641 | ;; | |
3642 | i[3456789]86-*-*) | |
3643 | libgloss_dir=i386 | |
3644 | ;; | |
3645 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3646 | libgloss_dir=m68hc11 | |
3647 | ;; | |
3648 | m68*-*-* | fido-*-*) | |
3649 | libgloss_dir=m68k | |
3650 | ;; | |
3651 | mips*-*-*) | |
3652 | libgloss_dir=mips | |
3653 | ;; | |
3654 | powerpc*-*-*) | |
3655 | libgloss_dir=rs6000 | |
3656 | ;; | |
8d2af3a2 DD |
3657 | pru-*-*) |
3658 | libgloss_dir=pru | |
3659 | ;; | |
fbcf0dca JM |
3660 | sparc*-*-*) |
3661 | libgloss_dir=sparc | |
3662 | ;; | |
3663 | esac | |
3664 | ||
6a789d5e | 3665 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3666 | case "${target}" in |
6a789d5e JM |
3667 | alpha*-dec-osf*) |
3668 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3669 | ;; | |
3670 | i[3456789]86-*-linux*) | |
3671 | # This section makes it possible to build newlib natively on linux. | |
3672 | # If we are using a cross compiler then don't configure newlib. | |
3673 | if test x${is_cross_compiler} != xno ; then | |
3674 | noconfigdirs="$noconfigdirs target-newlib" | |
3675 | fi | |
3676 | noconfigdirs="$noconfigdirs target-libgloss" | |
3677 | # If we are not using a cross compiler, do configure newlib. | |
3678 | # Note however, that newlib will only be configured in this situation | |
3679 | # if the --with-newlib option has been given, because otherwise | |
3680 | # 'target-newlib' will appear in skipdirs. | |
3681 | ;; | |
3682 | i[3456789]86-*-rdos*) | |
3683 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3684 | ;; | |
3685 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3686 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3687 | ;; | |
3688 | sparc-*-sunos4*) | |
3689 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3690 | ;; | |
91dfef96 JM |
3691 | bpf-*-*) |
3692 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3693 | ;; | |
6a789d5e JM |
3694 | *-*-aix*) |
3695 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3696 | ;; | |
3697 | *-*-beos*) | |
3698 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3699 | ;; | |
671aa708 | 3700 | *-*-chorusos) |
0036370f | 3701 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3702 | ;; |
6a789d5e JM |
3703 | *-*-dragonfly*) |
3704 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3705 | ;; | |
3706 | *-*-freebsd*) | |
3707 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3708 | ;; | |
3709 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3710 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3711 | ;; | |
3712 | *-*-lynxos*) | |
3713 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3714 | ;; | |
3715 | *-*-mingw*) | |
3716 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3717 | ;; | |
3718 | *-*-netbsd*) | |
3719 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3720 | ;; | |
3721 | *-*-netware*) | |
3722 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3723 | ;; | |
3724 | *-*-tpf*) | |
3725 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3726 | ;; | |
3727 | *-*-uclinux*) | |
3728 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3729 | ;; | |
3730 | *-*-vxworks*) | |
3731 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3732 | ;; | |
3733 | esac | |
3734 | ||
3735 | case "${target}" in | |
3736 | *-*-chorusos) | |
3737 | ;; | |
3be96231 TG |
3738 | aarch64-*-darwin*) |
3739 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3740 | noconfigdirs="$noconfigdirs sim target-rda" | |
3741 | ;; | |
7431c1a1 AS |
3742 | amdgcn*-*-*) |
3743 | ;; | |
3be96231 TG |
3744 | arm-*-darwin*) |
3745 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3746 | noconfigdirs="$noconfigdirs sim target-rda" | |
3747 | ;; | |
75eeae1a | 3748 | powerpc-*-darwin*) |
e1514c3f | 3749 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3750 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3751 | ;; |
354ebf88 RW |
3752 | i[3456789]86-*-darwin*) |
3753 | noconfigdirs="$noconfigdirs ld gprof" | |
3754 | noconfigdirs="$noconfigdirs sim target-rda" | |
3755 | ;; | |
3756 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3757 | noconfigdirs="$noconfigdirs ld gas gprof" |
3758 | noconfigdirs="$noconfigdirs sim target-rda" | |
3759 | ;; | |
42c1cd8a AT |
3760 | *-*-darwin*) |
3761 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3762 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3763 | ;; |
8c6d158a | 3764 | *-*-dragonfly*) |
8c6d158a | 3765 | ;; |
c3f84f61 | 3766 | *-*-freebsd*) |
6de9cd9a | 3767 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
c0d0a722 | 3768 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3769 | && test -f /usr/local/include/gmp.h; then |
3770 | with_gmp=/usr/local | |
3771 | fi | |
6de9cd9a | 3772 | ;; |
ef4e7569 US |
3773 | *-*-kaos*) |
3774 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3775 | noconfigdirs="$noconfigdirs target-libgloss" |
3776 | ;; | |
671aa708 | 3777 | *-*-netbsd*) |
671aa708 | 3778 | ;; |
61fec9ff | 3779 | *-*-netware*) |
671aa708 | 3780 | ;; |
fd6487af JS |
3781 | *-*-phoenix*) |
3782 | noconfigdirs="$noconfigdirs target-libgloss" | |
3783 | ;; | |
671aa708 | 3784 | *-*-rtems*) |
2909494b | 3785 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3786 | ;; |
a8ba31f2 EC |
3787 | # The tpf target doesn't support gdb yet. |
3788 | *-*-tpf*) | |
6a789d5e | 3789 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3790 | ;; |
5785c0ed | 3791 | *-*-uclinux*) |
6a789d5e | 3792 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3793 | ;; |
671aa708 | 3794 | *-*-vxworks*) |
671aa708 NN |
3795 | ;; |
3796 | alpha*-dec-osf*) | |
3797 | # ld works, but does not support shared libraries. | |
671aa708 | 3798 | # gas doesn't generate exception information. |
6a789d5e | 3799 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3800 | ;; |
3801 | alpha*-*-*vms*) | |
2909494b | 3802 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3803 | ;; |
671aa708 NN |
3804 | alpha*-*-*) |
3805 | # newlib is not 64 bit ready | |
2909494b | 3806 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3807 | ;; |
91dfef96 JM |
3808 | bpf-*-*) |
3809 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3810 | ;; | |
671aa708 | 3811 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3812 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3813 | ;; |
2fd88f4f AK |
3814 | arc*-*-*) |
3815 | noconfigdirs="$noconfigdirs sim" | |
3816 | ;; | |
671aa708 | 3817 | arm-*-pe*) |
2909494b | 3818 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3819 | ;; |
671aa708 | 3820 | arm-*-riscix*) |
0036370f | 3821 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3822 | ;; |
b588ae30 GJL |
3823 | avr-*-*) |
3824 | if test x${with_avrlibc} != xno; then | |
3825 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3826 | fi | |
3827 | ;; | |
671aa708 | 3828 | c4x-*-* | tic4x-*-*) |
0036370f | 3829 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3830 | ;; |
0036370f JM |
3831 | tic54x-*-*) |
3832 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3833 | ;; |
671aa708 | 3834 | d10v-*-*) |
0036370f | 3835 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3836 | ;; |
3837 | d30v-*-*) | |
0036370f | 3838 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3839 | ;; |
3840 | fr30-*-elf*) | |
2909494b | 3841 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3842 | ;; |
a05c2c75 L |
3843 | ft32-*-*) |
3844 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3845 | ;; | |
55f2d967 | 3846 | moxie-*-*) |
a05c2c75 | 3847 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3848 | ;; |
671aa708 | 3849 | h8300*-*-*) |
2909494b | 3850 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3851 | ;; |
3852 | h8500-*-*) | |
0036370f | 3853 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3854 | ;; |
ee6a22df | 3855 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3856 | ;; |
a05c2c75 L |
3857 | hppa*64*-*-hpux*) |
3858 | noconfigdirs="$noconfigdirs gdb" | |
3859 | ;; | |
3860 | hppa*-*-hpux11*) | |
3861 | noconfigdirs="$noconfigdirs gdb ld" | |
3862 | ;; | |
4569f85e | 3863 | hppa*64*-*-linux*) |
671aa708 | 3864 | ;; |
56f8587a | 3865 | hppa*-*-linux*) |
3e732ba0 | 3866 | ;; |
671aa708 | 3867 | hppa*-*-*elf* | \ |
671aa708 NN |
3868 | hppa*-*-lites* | \ |
3869 | hppa*-*-openbsd* | \ | |
3870 | hppa*64*-*-*) | |
671aa708 | 3871 | ;; |
c03353e2 | 3872 | hppa*-*-pro*) |
c03353e2 | 3873 | ;; |
671aa708 | 3874 | hppa*-*-*) |
2909494b | 3875 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3876 | ;; |
fb87ad5d | 3877 | i960-*-*) |
0036370f | 3878 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3879 | ;; |
671aa708 NN |
3880 | ia64*-*-elf*) |
3881 | # No gdb support yet. | |
1bcce263 | 3882 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3883 | ;; |
3884 | ia64*-**-hpux*) | |
5a2931d1 | 3885 | # No ld support yet. |
a05c2c75 | 3886 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3887 | ;; |
52535a64 | 3888 | ia64*-*-*vms*) |
091fe9ca TG |
3889 | # No ld support yet. |
3890 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3891 | ;; |
ef4c4300 | 3892 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3893 | ;; |
3894 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3895 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3896 | ;; |
671aa708 NN |
3897 | *-*-cygwin*) |
3898 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3899 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3900 | # always build newlib if winsup directory is present. |
b91f0a41 | 3901 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3902 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3903 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3904 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3905 | fi |
1c710c3c | 3906 | ;; |
f2a0e225 | 3907 | i[3456789]86-*-pe) |
ebb9f8b0 | 3908 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3909 | ;; |
f2a0e225 | 3910 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3911 | # The linker does not yet know about weak symbols in COFF, |
3912 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3913 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3914 | ;; |
f2a0e225 | 3915 | i[3456789]86-*-sco*) |
0036370f | 3916 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3917 | ;; |
fbdd5d87 | 3918 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3919 | noconfigdirs="$noconfigdirs target-libgloss" |
3920 | ;; | |
f2a0e225 | 3921 | i[3456789]86-*-sysv4*) |
0036370f | 3922 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3923 | ;; |
f2a0e225 | 3924 | i[3456789]86-*-beos*) |
6a789d5e | 3925 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3926 | ;; |
d1f8db0c | 3927 | i[3456789]86-*-rdos*) |
6a789d5e | 3928 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3929 | ;; |
671aa708 | 3930 | mmix-*-*) |
2909494b | 3931 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3932 | ;; |
ab34901f | 3933 | mt-*-*) |
79dd769c AH |
3934 | noconfigdirs="$noconfigdirs sim" |
3935 | ;; | |
58b40a67 FT |
3936 | nfp-*-*) |
3937 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3938 | noconfigdirs="$noconfigdirs $target_libraries" | |
3939 | ;; | |
e6cbe965 SC |
3940 | pdp11-*-*) |
3941 | noconfigdirs="$noconfigdirs gdb gprof" | |
3942 | ;; | |
671aa708 NN |
3943 | powerpc-*-aix*) |
3944 | # copied from rs6000-*-* entry | |
6a789d5e | 3945 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3946 | ;; |
4569f85e | 3947 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3948 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3949 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3950 | # always build newlib. |
3951 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3952 | ;; | |
3953 | # This is temporary until we can link against shared libraries | |
3954 | powerpcle-*-solaris*) | |
0036370f | 3955 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3956 | ;; |
3957 | powerpc-*-beos*) | |
6a789d5e | 3958 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3959 | ;; |
671aa708 | 3960 | rs6000-*-lynxos*) |
6a789d5e | 3961 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3962 | ;; |
3963 | rs6000-*-aix*) | |
6a789d5e | 3964 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3965 | ;; |
3966 | rs6000-*-*) | |
2909494b | 3967 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3968 | ;; |
3969 | m68k-apollo-*) | |
0036370f | 3970 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3971 | ;; |
ca9fe997 | 3972 | microblaze*) |
2909494b | 3973 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3974 | ;; |
d896cc4d | 3975 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3976 | if test x$with_newlib = xyes; then |
3977 | noconfigdirs="$noconfigdirs gprof" | |
3978 | fi | |
d9dced13 | 3979 | ;; |
671aa708 | 3980 | mips*-*-irix5*) |
0036370f | 3981 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3982 | ;; |
3983 | mips*-*-irix6*) | |
2909494b | 3984 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3985 | ;; |
671aa708 | 3986 | mips*-*-bsd*) |
bc98bcc4 | 3987 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3988 | ;; |
671aa708 | 3989 | mips*-*-linux*) |
671aa708 | 3990 | ;; |
bc98bcc4 JBG |
3991 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3992 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3993 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3994 | ;; | |
671aa708 | 3995 | mips*-*-*) |
2909494b | 3996 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3997 | ;; |
738f2522 | 3998 | nvptx*-*-*) |
738f2522 BS |
3999 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4000 | ;; | |
bc6d9014 | 4001 | sh-*-*) |
ea2002ba CB |
4002 | case "${target}" in |
4003 | sh*-*-elf) | |
2909494b | 4004 | ;; |
ea2002ba | 4005 | *) |
2909494b | 4006 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4007 | esac |
671aa708 | 4008 | ;; |
671aa708 | 4009 | sparc-*-sunos4*) |
6a789d5e | 4010 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4011 | use_gnu_ld=no |
4012 | fi | |
4013 | ;; | |
b42f0d7e | 4014 | tic6x-*-*) |
0d557ff8 | 4015 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4016 | ;; |
341c653c | 4017 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4018 | noconfigdirs="$noconfigdirs sim" |
4019 | ;; | |
671aa708 | 4020 | v810-*-*) |
0036370f | 4021 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4022 | ;; |
4023 | vax-*-*) | |
2909494b | 4024 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4025 | ;; |
1fc1d82e MR |
4026 | wasm32-*-*) |
4027 | noconfigdirs="$noconfigdirs ld" | |
4028 | ;; | |
671aa708 | 4029 | esac |
79c06341 | 4030 | |
671aa708 NN |
4031 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4032 | # depends upon some newlib header files. | |
4033 | case "${noconfigdirs}" in | |
4034 | *target-libgloss*) ;; | |
4035 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4036 | esac | |
4037 | ||
671aa708 | 4038 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4039 | host_makefile_frag=/dev/null |
4040 | if test -d ${srcdir}/config ; then | |
4041 | case "${host}" in | |
f2a0e225 | 4042 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4043 | host_makefile_frag="config/mh-djgpp" |
4044 | ;; | |
4045 | *-cygwin*) | |
2a79c47f | 4046 | |
5213506e RW |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4048 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4049 | echo a >cygwin-cat-check |
e25a8c82 | 4050 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4051 | rm cygwin-cat-check |
5213506e RW |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4053 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4054 | else |
4055 | rm cygwin-cat-check | |
5213506e RW |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4057 | $as_echo "no" >&6; } | |
22e05272 | 4058 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4059 | Please either mount the build directory in binary mode or run the following |
4060 | commands before running any configure script: | |
4061 | set -o igncr | |
4062 | export SHELLOPTS | |
5213506e | 4063 | " "$LINENO" 5 |
2a79c47f NC |
4064 | fi |
4065 | ||
671aa708 NN |
4066 | host_makefile_frag="config/mh-cygwin" |
4067 | ;; | |
c53a18d3 | 4068 | *-mingw*) |
1f5a6b84 | 4069 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4070 | ;; |
cabb9d59 | 4071 | alpha*-linux*) |
13be44ed UB |
4072 | host_makefile_frag="config/mh-alpha-linux" |
4073 | ;; | |
efd41714 | 4074 | hppa*-hp-hpux10*) |
efd41714 | 4075 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4076 | ;; |
111eeb6e | 4077 | hppa*-hp-hpux*) |
efd41714 PB |
4078 | host_makefile_frag="config/mh-pa" |
4079 | ;; | |
4080 | hppa*-*) | |
4081 | host_makefile_frag="config/mh-pa" | |
4082 | ;; | |
54258e22 | 4083 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4084 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4085 | ;; |
d19bca38 PB |
4086 | powerpc-*-aix*) |
4087 | host_makefile_frag="config/mh-ppc-aix" | |
4088 | ;; | |
4089 | rs6000-*-aix*) | |
4090 | host_makefile_frag="config/mh-ppc-aix" | |
4091 | ;; | |
671aa708 NN |
4092 | esac |
4093 | fi | |
4094 | ||
55ffb5ed | 4095 | if test "${build}" != "${host}" ; then |
0999159b PB |
4096 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4097 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4098 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4099 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4100 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4101 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4102 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4103 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4104 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4105 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4106 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4107 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4108 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4109 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4110 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4111 | else | |
4112 | AR_FOR_BUILD="\$(AR)" | |
4113 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4114 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4115 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4116 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4117 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4118 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4119 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4120 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4121 | LD_FOR_BUILD="\$(LD)" | |
4122 | NM_FOR_BUILD="\$(NM)" | |
4123 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4124 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4125 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4126 | fi |
4127 | ||
4128 | ac_ext=c | |
1c710c3c DJ |
4129 | ac_cpp='$CPP $CPPFLAGS' |
4130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4133 | if test -n "$ac_tool_prefix"; then | |
4134 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4135 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4137 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4138 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4139 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4140 | else |
4141 | if test -n "$CC"; then | |
4142 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4143 | else | |
4144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4145 | for as_dir in $PATH | |
4146 | do | |
4147 | IFS=$as_save_IFS | |
4148 | test -z "$as_dir" && as_dir=. | |
5213506e | 4149 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4151 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4153 | break 2 |
4154 | fi | |
4155 | done | |
5213506e RW |
4156 | done |
4157 | IFS=$as_save_IFS | |
1c710c3c DJ |
4158 | |
4159 | fi | |
4160 | fi | |
4161 | CC=$ac_cv_prog_CC | |
4162 | if test -n "$CC"; then | |
5213506e RW |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4164 | $as_echo "$CC" >&6; } | |
1c710c3c | 4165 | else |
5213506e RW |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4167 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4168 | fi |
4169 | ||
5213506e | 4170 | |
1c710c3c DJ |
4171 | fi |
4172 | if test -z "$ac_cv_prog_CC"; then | |
4173 | ac_ct_CC=$CC | |
fb0103e5 RG |
4174 | # Extract the first word of "gcc", so it can be a program name with args. |
4175 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4177 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4178 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4179 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4180 | else |
4181 | if test -n "$ac_ct_CC"; then | |
4182 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4183 | else | |
4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4185 | for as_dir in $PATH | |
4186 | do | |
4187 | IFS=$as_save_IFS | |
4188 | test -z "$as_dir" && as_dir=. | |
5213506e | 4189 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4191 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4193 | break 2 |
4194 | fi | |
4195 | done | |
5213506e RW |
4196 | done |
4197 | IFS=$as_save_IFS | |
1c710c3c DJ |
4198 | |
4199 | fi | |
4200 | fi | |
4201 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4202 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4204 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4205 | else |
5213506e RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4207 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4208 | fi |
4209 | ||
5213506e RW |
4210 | if test "x$ac_ct_CC" = x; then |
4211 | CC="" | |
4212 | else | |
4213 | case $cross_compiling:$ac_tool_warned in | |
4214 | yes:) | |
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4216 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4217 | ac_tool_warned=yes ;; | |
4218 | esac | |
4219 | CC=$ac_ct_CC | |
4220 | fi | |
1c710c3c DJ |
4221 | else |
4222 | CC="$ac_cv_prog_CC" | |
4223 | fi | |
4224 | ||
4225 | if test -z "$CC"; then | |
5213506e RW |
4226 | if test -n "$ac_tool_prefix"; then |
4227 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4228 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4230 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4231 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4232 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4233 | else |
4234 | if test -n "$CC"; then | |
4235 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4236 | else | |
1c710c3c DJ |
4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4238 | for as_dir in $PATH | |
4239 | do | |
4240 | IFS=$as_save_IFS | |
4241 | test -z "$as_dir" && as_dir=. | |
5213506e | 4242 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4244 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4246 | break 2 |
4247 | fi | |
4248 | done | |
5213506e RW |
4249 | done |
4250 | IFS=$as_save_IFS | |
1c710c3c | 4251 | |
0b0dc272 | 4252 | fi |
0b0dc272 | 4253 | fi |
1c710c3c | 4254 | CC=$ac_cv_prog_CC |
af71363e | 4255 | if test -n "$CC"; then |
5213506e RW |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4257 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4258 | else |
5213506e RW |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4260 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4261 | fi |
4262 | ||
2aeb72e9 | 4263 | |
5213506e | 4264 | fi |
1c710c3c | 4265 | fi |
55ffb5ed NN |
4266 | if test -z "$CC"; then |
4267 | # Extract the first word of "cc", so it can be a program name with args. | |
4268 | set dummy cc; ac_word=$2 | |
5213506e RW |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4270 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4271 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4272 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4273 | else |
4274 | if test -n "$CC"; then | |
4275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4276 | else | |
0b0dc272 | 4277 | ac_prog_rejected=no |
1c710c3c DJ |
4278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4279 | for as_dir in $PATH | |
4280 | do | |
4281 | IFS=$as_save_IFS | |
4282 | test -z "$as_dir" && as_dir=. | |
5213506e | 4283 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4285 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4286 | ac_prog_rejected=yes | |
4287 | continue | |
4288 | fi | |
4289 | ac_cv_prog_CC="cc" | |
5213506e | 4290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4291 | break 2 |
4292 | fi | |
4293 | done | |
5213506e RW |
4294 | done |
4295 | IFS=$as_save_IFS | |
1c710c3c | 4296 | |
55ffb5ed NN |
4297 | if test $ac_prog_rejected = yes; then |
4298 | # We found a bogon in the path, so make sure we never use it. | |
4299 | set dummy $ac_cv_prog_CC | |
4300 | shift | |
1c710c3c | 4301 | if test $# != 0; then |
55ffb5ed NN |
4302 | # We chose a different compiler from the bogus one. |
4303 | # However, it has the same basename, so the bogon will be chosen | |
4304 | # first if we set CC to just the basename; use the full file name. | |
4305 | shift | |
1c710c3c | 4306 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4307 | fi |
4308 | fi | |
4309 | fi | |
4310 | fi | |
1c710c3c | 4311 | CC=$ac_cv_prog_CC |
55ffb5ed | 4312 | if test -n "$CC"; then |
5213506e RW |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4314 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4315 | else |
5213506e RW |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4317 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4318 | fi |
4319 | ||
5213506e | 4320 | |
1c710c3c DJ |
4321 | fi |
4322 | if test -z "$CC"; then | |
4323 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4324 | for ac_prog in cl.exe |
1c710c3c DJ |
4325 | do |
4326 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4327 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4329 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4330 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4331 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4332 | else |
4333 | if test -n "$CC"; then | |
4334 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4335 | else | |
1c710c3c DJ |
4336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4337 | for as_dir in $PATH | |
4338 | do | |
4339 | IFS=$as_save_IFS | |
4340 | test -z "$as_dir" && as_dir=. | |
5213506e | 4341 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4343 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4345 | break 2 |
4346 | fi | |
4347 | done | |
5213506e RW |
4348 | done |
4349 | IFS=$as_save_IFS | |
1c710c3c | 4350 | |
55ffb5ed NN |
4351 | fi |
4352 | fi | |
1c710c3c | 4353 | CC=$ac_cv_prog_CC |
55ffb5ed | 4354 | if test -n "$CC"; then |
5213506e RW |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4356 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4357 | else |
5213506e RW |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4359 | $as_echo "no" >&6; } | |
fb0103e5 | 4360 | fi |
af71363e | 4361 | |
5213506e | 4362 | |
1c710c3c DJ |
4363 | test -n "$CC" && break |
4364 | done | |
af71363e | 4365 | fi |
1c710c3c DJ |
4366 | if test -z "$CC"; then |
4367 | ac_ct_CC=$CC | |
5213506e | 4368 | for ac_prog in cl.exe |
1c710c3c DJ |
4369 | do |
4370 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4371 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4373 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4374 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4375 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4376 | else |
1c710c3c DJ |
4377 | if test -n "$ac_ct_CC"; then |
4378 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4379 | else |
1c710c3c DJ |
4380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4381 | for as_dir in $PATH | |
4382 | do | |
4383 | IFS=$as_save_IFS | |
4384 | test -z "$as_dir" && as_dir=. | |
5213506e | 4385 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4387 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4389 | break 2 |
4390 | fi | |
4391 | done | |
5213506e RW |
4392 | done |
4393 | IFS=$as_save_IFS | |
1c710c3c | 4394 | |
af71363e AS |
4395 | fi |
4396 | fi | |
1c710c3c DJ |
4397 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4398 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4400 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4401 | else |
5213506e RW |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4403 | $as_echo "no" >&6; } | |
af71363e | 4404 | fi |
0b0dc272 | 4405 | |
5213506e | 4406 | |
1c710c3c DJ |
4407 | test -n "$ac_ct_CC" && break |
4408 | done | |
4409 | ||
5213506e RW |
4410 | if test "x$ac_ct_CC" = x; then |
4411 | CC="" | |
4412 | else | |
4413 | case $cross_compiling:$ac_tool_warned in | |
4414 | yes:) | |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4416 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4417 | ac_tool_warned=yes ;; | |
4418 | esac | |
4419 | CC=$ac_ct_CC | |
4420 | fi | |
1c710c3c DJ |
4421 | fi |
4422 | ||
4423 | fi | |
4424 | ||
4425 | ||
5213506e RW |
4426 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4427 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4428 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4429 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4430 | |
4431 | # Provide some information about the compiler. | |
5213506e RW |
4432 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4433 | set X $ac_compile | |
4434 | ac_compiler=$2 | |
4435 | for ac_option in --version -v -V -qversion; do | |
4436 | { { ac_try="$ac_compiler $ac_option >&5" | |
4437 | case "(($ac_try" in | |
4438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4439 | *) ac_try_echo=$ac_try;; | |
4440 | esac | |
4441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4442 | $as_echo "$ac_try_echo"; } >&5 | |
4443 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4444 | ac_status=$? |
5213506e RW |
4445 | if test -s conftest.err; then |
4446 | sed '10a\ | |
4447 | ... rest of stderr output deleted ... | |
4448 | 10q' conftest.err >conftest.er1 | |
4449 | cat conftest.er1 >&5 | |
5213506e | 4450 | fi |
22e05272 | 4451 | rm -f conftest.er1 conftest.err |
5213506e RW |
4452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4453 | test $ac_status = 0; } | |
4454 | done | |
1c710c3c | 4455 | |
5213506e | 4456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4457 | /* end confdefs.h. */ |
4458 | ||
4459 | int | |
4460 | main () | |
4461 | { | |
4462 | ||
4463 | ; | |
4464 | return 0; | |
4465 | } | |
4466 | _ACEOF | |
4467 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4468 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4469 | # Try to create an executable without -o first, disregard a.out. |
4470 | # It will help us diagnose broken compilers, and finding out an intuition | |
4471 | # of exeext. | |
22e05272 JM |
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4473 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4474 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4475 | ||
4476 | # The possible output files: | |
4477 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4478 | ||
4479 | ac_rmfiles= | |
4480 | for ac_file in $ac_files | |
4481 | do | |
4482 | case $ac_file in | |
4483 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4484 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4485 | esac | |
4486 | done | |
4487 | rm -f $ac_rmfiles | |
4488 | ||
4489 | if { { ac_try="$ac_link_default" | |
4490 | case "(($ac_try" in | |
4491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4492 | *) ac_try_echo=$ac_try;; | |
4493 | esac | |
4494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4495 | $as_echo "$ac_try_echo"; } >&5 | |
4496 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4497 | ac_status=$? |
5213506e RW |
4498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4499 | test $ac_status = 0; }; then : | |
4500 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4501 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4502 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4503 | # so that the user can short-circuit this test for compilers unknown to | |
4504 | # Autoconf. | |
4505 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4506 | do |
4507 | test -f "$ac_file" || continue | |
4508 | case $ac_file in | |
5213506e | 4509 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4510 | ;; |
4511 | [ab].out ) | |
4512 | # We found the default executable, but exeext='' is most | |
4513 | # certainly right. | |
4514 | break;; | |
4515 | *.* ) | |
5213506e RW |
4516 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4517 | then :; else | |
4518 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4519 | fi | |
4520 | # We set ac_cv_exeext here because the later test for it is not | |
4521 | # safe: cross compilers may not add the suffix if given an `-o' | |
4522 | # argument, so we may need to know it at that point already. | |
4523 | # Even if this section looks crufty: it has the advantage of | |
4524 | # actually working. | |
1c710c3c DJ |
4525 | break;; |
4526 | * ) | |
4527 | break;; | |
4528 | esac | |
4529 | done | |
5213506e RW |
4530 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4531 | ||
1c710c3c | 4532 | else |
5213506e RW |
4533 | ac_file='' |
4534 | fi | |
5213506e | 4535 | if test -z "$ac_file"; then : |
22e05272 JM |
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4537 | $as_echo "no" >&6; } | |
4538 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4539 | sed 's/^/| /' conftest.$ac_ext >&5 |
4540 | ||
5213506e RW |
4541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4543 | as_fn_error 77 "C compiler cannot create executables |
4544 | See \`config.log' for more details" "$LINENO" 5; } | |
4545 | else | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4547 | $as_echo "yes" >&6; } | |
1c710c3c | 4548 | fi |
22e05272 JM |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4550 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4552 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4553 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4554 | |
22e05272 | 4555 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4556 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4558 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4559 | if { { ac_try="$ac_link" | |
4560 | case "(($ac_try" in | |
4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4562 | *) ac_try_echo=$ac_try;; | |
4563 | esac | |
4564 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4565 | $as_echo "$ac_try_echo"; } >&5 | |
4566 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4567 | ac_status=$? |
5213506e RW |
4568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4569 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4570 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4571 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4572 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4573 | # `rm'. | |
4574 | for ac_file in conftest.exe conftest conftest.*; do | |
4575 | test -f "$ac_file" || continue | |
4576 | case $ac_file in | |
5213506e | 4577 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4578 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4579 | break;; |
4580 | * ) break;; | |
4581 | esac | |
4582 | done | |
af71363e | 4583 | else |
5213506e RW |
4584 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4585 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4586 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4587 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4588 | fi |
22e05272 | 4589 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4591 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4592 | |
4593 | rm -f conftest.$ac_ext | |
4594 | EXEEXT=$ac_cv_exeext | |
4595 | ac_exeext=$EXEEXT | |
22e05272 JM |
4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4597 | /* end confdefs.h. */ | |
4598 | #include <stdio.h> | |
4599 | int | |
4600 | main () | |
4601 | { | |
4602 | FILE *f = fopen ("conftest.out", "w"); | |
4603 | return ferror (f) || fclose (f) != 0; | |
4604 | ||
4605 | ; | |
4606 | return 0; | |
4607 | } | |
4608 | _ACEOF | |
4609 | ac_clean_files="$ac_clean_files conftest.out" | |
4610 | # Check that the compiler produces executables we can run. If not, either | |
4611 | # the compiler is broken, or we cross compile. | |
4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4613 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4614 | if test "$cross_compiling" != yes; then | |
4615 | { { ac_try="$ac_link" | |
4616 | case "(($ac_try" in | |
4617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4618 | *) ac_try_echo=$ac_try;; | |
4619 | esac | |
4620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4621 | $as_echo "$ac_try_echo"; } >&5 | |
4622 | (eval "$ac_link") 2>&5 | |
4623 | ac_status=$? | |
4624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4625 | test $ac_status = 0; } | |
4626 | if { ac_try='./conftest$ac_cv_exeext' | |
4627 | { { case "(($ac_try" in | |
4628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4629 | *) ac_try_echo=$ac_try;; | |
4630 | esac | |
4631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4632 | $as_echo "$ac_try_echo"; } >&5 | |
4633 | (eval "$ac_try") 2>&5 | |
4634 | ac_status=$? | |
4635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4636 | test $ac_status = 0; }; }; then | |
4637 | cross_compiling=no | |
4638 | else | |
4639 | if test "$cross_compiling" = maybe; then | |
4640 | cross_compiling=yes | |
4641 | else | |
4642 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4644 | as_fn_error $? "cannot run C compiled programs. | |
4645 | If you meant to cross compile, use \`--host'. | |
4646 | See \`config.log' for more details" "$LINENO" 5; } | |
4647 | fi | |
4648 | fi | |
4649 | fi | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4651 | $as_echo "$cross_compiling" >&6; } | |
4652 | ||
4653 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4654 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4656 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4657 | if ${ac_cv_objext+:} false; then : |
5213506e | 4658 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4659 | else |
5213506e | 4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4661 | /* end confdefs.h. */ |
4662 | ||
4663 | int | |
4664 | main () | |
4665 | { | |
4666 | ||
4667 | ; | |
4668 | return 0; | |
4669 | } | |
4670 | _ACEOF | |
4671 | rm -f conftest.o conftest.obj | |
5213506e RW |
4672 | if { { ac_try="$ac_compile" |
4673 | case "(($ac_try" in | |
4674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4675 | *) ac_try_echo=$ac_try;; | |
4676 | esac | |
4677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4678 | $as_echo "$ac_try_echo"; } >&5 | |
4679 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4680 | ac_status=$? |
5213506e RW |
4681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4682 | test $ac_status = 0; }; then : | |
4683 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4684 | test -f "$ac_file" || continue; | |
1c710c3c | 4685 | case $ac_file in |
5213506e | 4686 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4687 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4688 | break;; | |
4689 | esac | |
4690 | done | |
4691 | else | |
5213506e | 4692 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
4694 | ||
5213506e RW |
4695 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4696 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4697 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4698 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4699 | fi |
1c710c3c DJ |
4700 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4701 | fi | |
5213506e RW |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4703 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4704 | OBJEXT=$ac_cv_objext |
4705 | ac_objext=$OBJEXT | |
5213506e RW |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4707 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4708 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4709 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4710 | else |
5213506e | 4711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4712 | /* end confdefs.h. */ |
4713 | ||
4714 | int | |
4715 | main () | |
4716 | { | |
4717 | #ifndef __GNUC__ | |
4718 | choke me | |
4719 | #endif | |
4720 | ||
4721 | ; | |
4722 | return 0; | |
4723 | } | |
4724 | _ACEOF | |
5213506e | 4725 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4726 | ac_compiler_gnu=yes |
4727 | else | |
5213506e | 4728 | ac_compiler_gnu=no |
1c710c3c | 4729 | fi |
5213506e | 4730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4731 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4732 | ||
4733 | fi | |
5213506e RW |
4734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4735 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4736 | if test $ac_compiler_gnu = yes; then | |
4737 | GCC=yes | |
4738 | else | |
4739 | GCC= | |
4740 | fi | |
1c710c3c DJ |
4741 | ac_test_CFLAGS=${CFLAGS+set} |
4742 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4744 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4745 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4746 | $as_echo_n "(cached) " >&6 |
4747 | else | |
4748 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4749 | ac_c_werror_flag=yes | |
4750 | ac_cv_prog_cc_g=no | |
4751 | CFLAGS="-g" | |
4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4753 | /* end confdefs.h. */ |
4754 | ||
4755 | int | |
4756 | main () | |
4757 | { | |
4758 | ||
4759 | ; | |
4760 | return 0; | |
4761 | } | |
4762 | _ACEOF | |
5213506e | 4763 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4764 | ac_cv_prog_cc_g=yes |
4765 | else | |
5213506e RW |
4766 | CFLAGS="" |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | ||
4770 | int | |
4771 | main () | |
4772 | { | |
4773 | ||
4774 | ; | |
4775 | return 0; | |
4776 | } | |
4777 | _ACEOF | |
4778 | if ac_fn_c_try_compile "$LINENO"; then : | |
4779 | ||
4780 | else | |
4781 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4782 | CFLAGS="-g" | |
4783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4784 | /* end confdefs.h. */ | |
af71363e | 4785 | |
5213506e RW |
4786 | int |
4787 | main () | |
4788 | { | |
4789 | ||
4790 | ; | |
4791 | return 0; | |
4792 | } | |
4793 | _ACEOF | |
4794 | if ac_fn_c_try_compile "$LINENO"; then : | |
4795 | ac_cv_prog_cc_g=yes | |
4796 | fi | |
4797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4798 | fi |
5213506e | 4799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4800 | fi |
5213506e RW |
4801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4802 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4803 | fi | |
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4805 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4806 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4807 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4808 | elif test $ac_cv_prog_cc_g = yes; then |
4809 | if test "$GCC" = yes; then | |
4810 | CFLAGS="-g -O2" | |
4811 | else | |
4812 | CFLAGS="-g" | |
4813 | fi | |
4814 | else | |
4815 | if test "$GCC" = yes; then | |
4816 | CFLAGS="-O2" | |
4817 | else | |
4818 | CFLAGS= | |
4819 | fi | |
4820 | fi | |
5213506e RW |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4822 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4823 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4824 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4825 | else |
5213506e | 4826 | ac_cv_prog_cc_c89=no |
1c710c3c | 4827 | ac_save_CC=$CC |
5213506e | 4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4829 | /* end confdefs.h. */ |
4830 | #include <stdarg.h> | |
4831 | #include <stdio.h> | |
22e05272 | 4832 | struct stat; |
1c710c3c DJ |
4833 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4834 | struct buf { int x; }; | |
4835 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4836 | static char *e (p, i) | |
4837 | char **p; | |
4838 | int i; | |
4839 | { | |
4840 | return p[i]; | |
4841 | } | |
4842 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4843 | { | |
4844 | char *s; | |
4845 | va_list v; | |
4846 | va_start (v,p); | |
4847 | s = g (p, va_arg (v,int)); | |
4848 | va_end (v); | |
4849 | return s; | |
4850 | } | |
4851 | ||
4852 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4853 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4854 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4855 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4856 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4857 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4858 | that's true only with -std. */ |
1c710c3c DJ |
4859 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4860 | ||
5213506e RW |
4861 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4862 | inside strings and character constants. */ | |
4863 | #define FOO(x) 'x' | |
4864 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4865 | ||
1c710c3c DJ |
4866 | int test (int i, double x); |
4867 | struct s1 {int (*f) (int a);}; | |
4868 | struct s2 {int (*f) (double a);}; | |
4869 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4870 | int argc; | |
4871 | char **argv; | |
4872 | int | |
4873 | main () | |
4874 | { | |
4875 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4876 | ; | |
4877 | return 0; | |
4878 | } | |
4879 | _ACEOF | |
5213506e RW |
4880 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4881 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4882 | do |
4883 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4884 | if ac_fn_c_try_compile "$LINENO"; then : |
4885 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4886 | fi |
5213506e RW |
4887 | rm -f core conftest.err conftest.$ac_objext |
4888 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4889 | done |
5213506e | 4890 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4891 | CC=$ac_save_CC |
4892 | ||
4893 | fi | |
5213506e RW |
4894 | # AC_CACHE_VAL |
4895 | case "x$ac_cv_prog_cc_c89" in | |
4896 | x) | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4898 | $as_echo "none needed" >&6; } ;; | |
4899 | xno) | |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4901 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4902 | *) |
5213506e RW |
4903 | CC="$CC $ac_cv_prog_cc_c89" |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4905 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4906 | esac |
5213506e | 4907 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4908 | |
2aeb72e9 DD |
4909 | fi |
4910 | ||
2aeb72e9 DD |
4911 | ac_ext=c |
4912 | ac_cpp='$CPP $CPPFLAGS' | |
4913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4916 | ||
91743432 NC |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4918 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4919 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4920 | $as_echo_n "(cached) " >&6 | |
4921 | else | |
4922 | ac_cv_prog_cc_c99=no | |
4923 | ac_save_CC=$CC | |
4924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4925 | /* end confdefs.h. */ | |
4926 | #include <stdarg.h> | |
4927 | #include <stdbool.h> | |
4928 | #include <stdlib.h> | |
4929 | #include <wchar.h> | |
4930 | #include <stdio.h> | |
4931 | ||
4932 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4933 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4934 | #define showlist(...) puts (#__VA_ARGS__) | |
4935 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4936 | static void | |
4937 | test_varargs_macros (void) | |
4938 | { | |
4939 | int x = 1234; | |
4940 | int y = 5678; | |
4941 | debug ("Flag"); | |
4942 | debug ("X = %d\n", x); | |
4943 | showlist (The first, second, and third items.); | |
4944 | report (x>y, "x is %d but y is %d", x, y); | |
4945 | } | |
4946 | ||
4947 | // Check long long types. | |
4948 | #define BIG64 18446744073709551615ull | |
4949 | #define BIG32 4294967295ul | |
4950 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4951 | #if !BIG_OK | |
4952 | your preprocessor is broken; | |
4953 | #endif | |
4954 | #if BIG_OK | |
4955 | #else | |
4956 | your preprocessor is broken; | |
4957 | #endif | |
4958 | static long long int bignum = -9223372036854775807LL; | |
4959 | static unsigned long long int ubignum = BIG64; | |
4960 | ||
4961 | struct incomplete_array | |
4962 | { | |
4963 | int datasize; | |
4964 | double data[]; | |
4965 | }; | |
4966 | ||
4967 | struct named_init { | |
4968 | int number; | |
4969 | const wchar_t *name; | |
4970 | double average; | |
4971 | }; | |
4972 | ||
4973 | typedef const char *ccp; | |
4974 | ||
4975 | static inline int | |
4976 | test_restrict (ccp restrict text) | |
4977 | { | |
4978 | // See if C++-style comments work. | |
4979 | // Iterate through items via the restricted pointer. | |
4980 | // Also check for declarations in for loops. | |
4981 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4982 | continue; | |
4983 | return 0; | |
4984 | } | |
4985 | ||
4986 | // Check varargs and va_copy. | |
4987 | static void | |
4988 | test_varargs (const char *format, ...) | |
4989 | { | |
4990 | va_list args; | |
4991 | va_start (args, format); | |
4992 | va_list args_copy; | |
4993 | va_copy (args_copy, args); | |
4994 | ||
4995 | const char *str; | |
4996 | int number; | |
4997 | float fnumber; | |
4998 | ||
4999 | while (*format) | |
5000 | { | |
5001 | switch (*format++) | |
5002 | { | |
5003 | case 's': // string | |
5004 | str = va_arg (args_copy, const char *); | |
5005 | break; | |
5006 | case 'd': // int | |
5007 | number = va_arg (args_copy, int); | |
5008 | break; | |
5009 | case 'f': // float | |
5010 | fnumber = va_arg (args_copy, double); | |
5011 | break; | |
5012 | default: | |
5013 | break; | |
5014 | } | |
5015 | } | |
5016 | va_end (args_copy); | |
5017 | va_end (args); | |
5018 | } | |
5019 | ||
5020 | int | |
5021 | main () | |
5022 | { | |
5023 | ||
5024 | // Check bool. | |
5025 | _Bool success = false; | |
5026 | ||
5027 | // Check restrict. | |
5028 | if (test_restrict ("String literal") == 0) | |
5029 | success = true; | |
5030 | char *restrict newvar = "Another string"; | |
5031 | ||
5032 | // Check varargs. | |
5033 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5034 | test_varargs_macros (); | |
5035 | ||
5036 | // Check flexible array members. | |
5037 | struct incomplete_array *ia = | |
5038 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5039 | ia->datasize = 10; | |
5040 | for (int i = 0; i < ia->datasize; ++i) | |
5041 | ia->data[i] = i * 1.234; | |
5042 | ||
5043 | // Check named initializers. | |
5044 | struct named_init ni = { | |
5045 | .number = 34, | |
5046 | .name = L"Test wide string", | |
5047 | .average = 543.34343, | |
5048 | }; | |
5049 | ||
5050 | ni.number = 58; | |
5051 | ||
5052 | int dynamic_array[ni.number]; | |
5053 | dynamic_array[ni.number - 1] = 543; | |
5054 | ||
5055 | // work around unused variable warnings | |
5056 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5057 | || dynamic_array[ni.number - 1] != 543); | |
5058 | ||
5059 | ; | |
5060 | return 0; | |
5061 | } | |
5062 | _ACEOF | |
5063 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5064 | do | |
5065 | CC="$ac_save_CC $ac_arg" | |
5066 | if ac_fn_c_try_compile "$LINENO"; then : | |
5067 | ac_cv_prog_cc_c99=$ac_arg | |
5068 | fi | |
5069 | rm -f core conftest.err conftest.$ac_objext | |
5070 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5071 | done | |
5072 | rm -f conftest.$ac_ext | |
5073 | CC=$ac_save_CC | |
5074 | ||
5075 | fi | |
5076 | # AC_CACHE_VAL | |
5077 | case "x$ac_cv_prog_cc_c99" in | |
5078 | x) | |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5080 | $as_echo "none needed" >&6; } ;; | |
5081 | xno) | |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5083 | $as_echo "unsupported" >&6; } ;; | |
5084 | *) | |
5085 | CC="$CC $ac_cv_prog_cc_c99" | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5087 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5088 | esac | |
5089 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5090 | ||
5091 | fi | |
5092 | ||
5093 | ||
5213506e | 5094 | ac_ext=cpp |
2aeb72e9 DD |
5095 | ac_cpp='$CXXCPP $CPPFLAGS' |
5096 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5097 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5098 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5099 | if test -z "$CXX"; then |
5100 | if test -n "$CCC"; then | |
5101 | CXX=$CCC | |
5102 | else | |
5103 | if test -n "$ac_tool_prefix"; then | |
5104 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5105 | do |
5106 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5107 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5109 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5110 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5111 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5112 | else |
5113 | if test -n "$CXX"; then | |
5114 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5115 | else | |
5116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5117 | for as_dir in $PATH | |
5118 | do | |
5119 | IFS=$as_save_IFS | |
5120 | test -z "$as_dir" && as_dir=. | |
5213506e | 5121 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5123 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5125 | break 2 |
5126 | fi | |
5127 | done | |
5213506e RW |
5128 | done |
5129 | IFS=$as_save_IFS | |
55ffb5ed | 5130 | |
c3a86da9 DJ |
5131 | fi |
5132 | fi | |
5133 | CXX=$ac_cv_prog_CXX | |
5134 | if test -n "$CXX"; then | |
5213506e RW |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5136 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5137 | else |
5213506e RW |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5139 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5140 | fi |
5141 | ||
5213506e | 5142 | |
c3a86da9 DJ |
5143 | test -n "$CXX" && break |
5144 | done | |
5145 | fi | |
5146 | if test -z "$CXX"; then | |
5147 | ac_ct_CXX=$CXX | |
5213506e | 5148 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5149 | do |
5150 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5151 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5153 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5154 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5155 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5156 | else |
5157 | if test -n "$ac_ct_CXX"; then | |
5158 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5159 | else | |
5160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5161 | for as_dir in $PATH | |
5162 | do | |
5163 | IFS=$as_save_IFS | |
5164 | test -z "$as_dir" && as_dir=. | |
5213506e | 5165 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5167 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5169 | break 2 |
5170 | fi | |
5171 | done | |
5213506e RW |
5172 | done |
5173 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5174 | |
5175 | fi | |
5176 | fi | |
5177 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5178 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5180 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5181 | else |
5213506e RW |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5183 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5184 | fi |
5185 | ||
5213506e | 5186 | |
c3a86da9 DJ |
5187 | test -n "$ac_ct_CXX" && break |
5188 | done | |
c3a86da9 | 5189 | |
5213506e RW |
5190 | if test "x$ac_ct_CXX" = x; then |
5191 | CXX="g++" | |
5192 | else | |
5193 | case $cross_compiling:$ac_tool_warned in | |
5194 | yes:) | |
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5196 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5197 | ac_tool_warned=yes ;; | |
5198 | esac | |
5199 | CXX=$ac_ct_CXX | |
5200 | fi | |
c3a86da9 DJ |
5201 | fi |
5202 | ||
5213506e RW |
5203 | fi |
5204 | fi | |
c3a86da9 | 5205 | # Provide some information about the compiler. |
5213506e RW |
5206 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5207 | set X $ac_compile | |
5208 | ac_compiler=$2 | |
5209 | for ac_option in --version -v -V -qversion; do | |
5210 | { { ac_try="$ac_compiler $ac_option >&5" | |
5211 | case "(($ac_try" in | |
5212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5213 | *) ac_try_echo=$ac_try;; | |
5214 | esac | |
5215 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5216 | $as_echo "$ac_try_echo"; } >&5 | |
5217 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5218 | ac_status=$? |
5213506e RW |
5219 | if test -s conftest.err; then |
5220 | sed '10a\ | |
5221 | ... rest of stderr output deleted ... | |
5222 | 10q' conftest.err >conftest.er1 | |
5223 | cat conftest.er1 >&5 | |
5213506e | 5224 | fi |
22e05272 | 5225 | rm -f conftest.er1 conftest.err |
5213506e RW |
5226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5227 | test $ac_status = 0; } | |
5228 | done | |
c3a86da9 | 5229 | |
5213506e RW |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5231 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5232 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5233 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5234 | else |
5213506e | 5235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5236 | /* end confdefs.h. */ |
5237 | ||
5238 | int | |
5239 | main () | |
5240 | { | |
5241 | #ifndef __GNUC__ | |
5242 | choke me | |
5243 | #endif | |
5244 | ||
5245 | ; | |
5246 | return 0; | |
5247 | } | |
5248 | _ACEOF | |
5213506e | 5249 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5250 | ac_compiler_gnu=yes |
5251 | else | |
5213506e | 5252 | ac_compiler_gnu=no |
c3a86da9 | 5253 | fi |
5213506e | 5254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5255 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5256 | ||
5257 | fi | |
5213506e RW |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5259 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5260 | if test $ac_compiler_gnu = yes; then | |
5261 | GXX=yes | |
5262 | else | |
5263 | GXX= | |
5264 | fi | |
c3a86da9 DJ |
5265 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5266 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5268 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5269 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5270 | $as_echo_n "(cached) " >&6 |
5271 | else | |
5272 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5273 | ac_cxx_werror_flag=yes | |
5274 | ac_cv_prog_cxx_g=no | |
5275 | CXXFLAGS="-g" | |
5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5277 | /* end confdefs.h. */ |
5278 | ||
5279 | int | |
5280 | main () | |
5281 | { | |
5282 | ||
5283 | ; | |
5284 | return 0; | |
5285 | } | |
5286 | _ACEOF | |
5213506e | 5287 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5288 | ac_cv_prog_cxx_g=yes |
5289 | else | |
5213506e RW |
5290 | CXXFLAGS="" |
5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5292 | /* end confdefs.h. */ |
5213506e | 5293 | |
c3a86da9 DJ |
5294 | int |
5295 | main () | |
5296 | { | |
5213506e | 5297 | |
c3a86da9 DJ |
5298 | ; |
5299 | return 0; | |
5300 | } | |
5301 | _ACEOF | |
5213506e | 5302 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5303 | |
5213506e RW |
5304 | else |
5305 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5306 | CXXFLAGS="-g" | |
5307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5308 | /* end confdefs.h. */ |
5213506e | 5309 | |
c3a86da9 DJ |
5310 | int |
5311 | main () | |
5312 | { | |
5213506e | 5313 | |
c3a86da9 DJ |
5314 | ; |
5315 | return 0; | |
5316 | } | |
5317 | _ACEOF | |
5213506e RW |
5318 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5319 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5320 | fi |
5213506e RW |
5321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5322 | fi | |
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5324 | fi | |
5325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5326 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5327 | fi | |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5329 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5330 | if test "$ac_test_CXXFLAGS" = set; then | |
5331 | CXXFLAGS=$ac_save_CXXFLAGS | |
5332 | elif test $ac_cv_prog_cxx_g = yes; then | |
5333 | if test "$GXX" = yes; then | |
5334 | CXXFLAGS="-g -O2" | |
5335 | else | |
5336 | CXXFLAGS="-g" | |
5337 | fi | |
5338 | else | |
5339 | if test "$GXX" = yes; then | |
5340 | CXXFLAGS="-O2" | |
5341 | else | |
5342 | CXXFLAGS= | |
5343 | fi | |
c3a86da9 | 5344 | fi |
c3a86da9 DJ |
5345 | ac_ext=c |
5346 | ac_cpp='$CPP $CPPFLAGS' | |
5347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5350 | ||
5351 | ||
5352 | # We must set the default linker to the linker used by gcc for the correct | |
5353 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5354 | # set the LD default to the ld used by gcc. | |
5355 | if test -z "$LD"; then | |
5356 | if test "$GCC" = yes; then | |
5357 | case $build in | |
5358 | *-*-mingw*) | |
5359 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5360 | *) | |
5361 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5362 | esac | |
5363 | case $gcc_prog_ld in | |
5364 | # Accept absolute paths. | |
5365 | [\\/]* | [A-Za-z]:[\\/]*) | |
5366 | LD="$gcc_prog_ld" ;; | |
5367 | esac | |
5368 | fi | |
23f6b2f9 PB |
5369 | fi |
5370 | ||
0b21f5d3 EB |
5371 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5372 | have_static_libs=no | |
5373 | if test "$GCC" = yes; then | |
5374 | saved_LDFLAGS="$LDFLAGS" | |
5375 | ||
5376 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5378 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5379 | ac_ext=cpp | |
5380 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5381 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5382 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5383 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5384 | ||
5385 | ||
5386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5387 | /* end confdefs.h. */ | |
0d6414b2 EB |
5388 | |
5389 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5390 | #error -static-libstdc++ not implemented | |
5391 | #endif | |
0b21f5d3 EB |
5392 | int main() {} |
5393 | _ACEOF | |
5394 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5396 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5397 | else | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5399 | $as_echo "no" >&6; } | |
5400 | fi | |
5401 | rm -f core conftest.err conftest.$ac_objext \ | |
5402 | conftest$ac_exeext conftest.$ac_ext | |
5403 | ac_ext=c | |
5404 | ac_cpp='$CPP $CPPFLAGS' | |
5405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5408 | ||
5409 | ||
5410 | LDFLAGS="$saved_LDFLAGS" | |
5411 | fi | |
5412 | ||
23f6b2f9 PB |
5413 | |
5414 | ||
55ffb5ed | 5415 | |
1c710c3c DJ |
5416 | if test -n "$ac_tool_prefix"; then |
5417 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5418 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5420 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5421 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5422 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5423 | else |
5424 | if test -n "$GNATBIND"; then | |
5425 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5426 | else | |
1c710c3c DJ |
5427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5428 | for as_dir in $PATH | |
5429 | do | |
5430 | IFS=$as_save_IFS | |
5431 | test -z "$as_dir" && as_dir=. | |
5213506e | 5432 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5434 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5436 | break 2 |
5437 | fi | |
5438 | done | |
5213506e RW |
5439 | done |
5440 | IFS=$as_save_IFS | |
1c710c3c | 5441 | |
55ffb5ed NN |
5442 | fi |
5443 | fi | |
1c710c3c | 5444 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5445 | if test -n "$GNATBIND"; then |
5213506e RW |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5447 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5448 | else |
5213506e RW |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5450 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5451 | fi |
5452 | ||
5213506e | 5453 | |
1c710c3c | 5454 | fi |
55ffb5ed | 5455 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5456 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5457 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5458 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5460 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5461 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5462 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5463 | else |
1c710c3c DJ |
5464 | if test -n "$ac_ct_GNATBIND"; then |
5465 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5466 | else |
1c710c3c DJ |
5467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5468 | for as_dir in $PATH | |
5469 | do | |
5470 | IFS=$as_save_IFS | |
5471 | test -z "$as_dir" && as_dir=. | |
5213506e | 5472 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5474 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5476 | break 2 |
5477 | fi | |
5478 | done | |
5213506e RW |
5479 | done |
5480 | IFS=$as_save_IFS | |
1c710c3c | 5481 | |
55ffb5ed NN |
5482 | fi |
5483 | fi | |
1c710c3c DJ |
5484 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5485 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5487 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5488 | else |
5213506e RW |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5490 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5491 | fi |
5492 | ||
5213506e RW |
5493 | if test "x$ac_ct_GNATBIND" = x; then |
5494 | GNATBIND="no" | |
5495 | else | |
5496 | case $cross_compiling:$ac_tool_warned in | |
5497 | yes:) | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5499 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5500 | ac_tool_warned=yes ;; | |
5501 | esac | |
5502 | GNATBIND=$ac_ct_GNATBIND | |
5503 | fi | |
55ffb5ed | 5504 | else |
1c710c3c | 5505 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5506 | fi |
5507 | ||
1c710c3c DJ |
5508 | if test -n "$ac_tool_prefix"; then |
5509 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5510 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5512 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5513 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5514 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5515 | else |
5516 | if test -n "$GNATMAKE"; then | |
5517 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5518 | else | |
1c710c3c DJ |
5519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5520 | for as_dir in $PATH | |
5521 | do | |
5522 | IFS=$as_save_IFS | |
5523 | test -z "$as_dir" && as_dir=. | |
5213506e | 5524 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5526 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5528 | break 2 |
5529 | fi | |
5530 | done | |
5213506e RW |
5531 | done |
5532 | IFS=$as_save_IFS | |
1c710c3c | 5533 | |
5305be7e RG |
5534 | fi |
5535 | fi | |
1c710c3c | 5536 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5537 | if test -n "$GNATMAKE"; then |
5213506e RW |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5539 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5540 | else |
5213506e RW |
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5542 | $as_echo "no" >&6; } | |
5305be7e RG |
5543 | fi |
5544 | ||
5213506e | 5545 | |
1c710c3c | 5546 | fi |
5305be7e | 5547 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5548 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5549 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5550 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5552 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5553 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5554 | $as_echo_n "(cached) " >&6 |
5305be7e | 5555 | else |
1c710c3c DJ |
5556 | if test -n "$ac_ct_GNATMAKE"; then |
5557 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5558 | else |
1c710c3c DJ |
5559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5560 | for as_dir in $PATH | |
5561 | do | |
5562 | IFS=$as_save_IFS | |
5563 | test -z "$as_dir" && as_dir=. | |
5213506e | 5564 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5566 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5568 | break 2 |
5569 | fi | |
5570 | done | |
5213506e RW |
5571 | done |
5572 | IFS=$as_save_IFS | |
1c710c3c | 5573 | |
5305be7e RG |
5574 | fi |
5575 | fi | |
1c710c3c DJ |
5576 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5577 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5579 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5580 | else |
5213506e RW |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5582 | $as_echo "no" >&6; } | |
5305be7e RG |
5583 | fi |
5584 | ||
5213506e RW |
5585 | if test "x$ac_ct_GNATMAKE" = x; then |
5586 | GNATMAKE="no" | |
5587 | else | |
5588 | case $cross_compiling:$ac_tool_warned in | |
5589 | yes:) | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5591 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5592 | ac_tool_warned=yes ;; | |
5593 | esac | |
5594 | GNATMAKE=$ac_ct_GNATMAKE | |
5595 | fi | |
5305be7e | 5596 | else |
1c710c3c | 5597 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5598 | fi |
5599 | ||
5213506e RW |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5601 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5602 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5603 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5604 | else |
5605 | cat >conftest.adb <<EOF | |
5606 | procedure conftest is begin null; end conftest; | |
5607 | EOF | |
5608 | acx_cv_cc_gcc_supports_ada=no | |
5609 | # There is a bug in old released versions of GCC which causes the | |
5610 | # driver to exit successfully when the appropriate language module | |
5611 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5612 | # Therefore we must check for the error message as well as an | |
5613 | # unsuccessful exit. | |
1db673ca RO |
5614 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5615 | # given a .adb file, but produce no object file. So we must check | |
5616 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5617 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5618 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5619 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5620 | fi |
5621 | rm -f conftest.* | |
5622 | fi | |
5213506e RW |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5624 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5625 | |
7cb62ef1 | 5626 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5627 | have_gnat=yes |
5628 | else | |
5629 | have_gnat=no | |
5630 | fi | |
5631 | ||
5fee5ec3 IB |
5632 | |
5633 | ||
5634 | if test -n "$ac_tool_prefix"; then | |
5635 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5636 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5638 | $as_echo_n "checking for $ac_word... " >&6; } | |
5639 | if ${ac_cv_prog_GDC+:} false; then : | |
5640 | $as_echo_n "(cached) " >&6 | |
5641 | else | |
5642 | if test -n "$GDC"; then | |
5643 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5644 | else | |
5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5646 | for as_dir in $PATH | |
5647 | do | |
5648 | IFS=$as_save_IFS | |
5649 | test -z "$as_dir" && as_dir=. | |
5650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5652 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5654 | break 2 | |
5655 | fi | |
5656 | done | |
5657 | done | |
5658 | IFS=$as_save_IFS | |
5659 | ||
5660 | fi | |
5661 | fi | |
5662 | GDC=$ac_cv_prog_GDC | |
5663 | if test -n "$GDC"; then | |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5665 | $as_echo "$GDC" >&6; } | |
5666 | else | |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5668 | $as_echo "no" >&6; } | |
5669 | fi | |
5670 | ||
5671 | ||
5672 | fi | |
5673 | if test -z "$ac_cv_prog_GDC"; then | |
5674 | ac_ct_GDC=$GDC | |
5675 | # Extract the first word of "gdc", so it can be a program name with args. | |
5676 | set dummy gdc; ac_word=$2 | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5678 | $as_echo_n "checking for $ac_word... " >&6; } | |
5679 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5680 | $as_echo_n "(cached) " >&6 | |
5681 | else | |
5682 | if test -n "$ac_ct_GDC"; then | |
5683 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5684 | else | |
5685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5686 | for as_dir in $PATH | |
5687 | do | |
5688 | IFS=$as_save_IFS | |
5689 | test -z "$as_dir" && as_dir=. | |
5690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5692 | ac_cv_prog_ac_ct_GDC="gdc" | |
5693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5694 | break 2 | |
5695 | fi | |
5696 | done | |
5697 | done | |
5698 | IFS=$as_save_IFS | |
5699 | ||
5700 | fi | |
5701 | fi | |
5702 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5703 | if test -n "$ac_ct_GDC"; then | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5705 | $as_echo "$ac_ct_GDC" >&6; } | |
5706 | else | |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5708 | $as_echo "no" >&6; } | |
5709 | fi | |
5710 | ||
5711 | if test "x$ac_ct_GDC" = x; then | |
5712 | GDC="no" | |
5713 | else | |
5714 | case $cross_compiling:$ac_tool_warned in | |
5715 | yes:) | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5717 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5718 | ac_tool_warned=yes ;; | |
5719 | esac | |
5720 | GDC=$ac_ct_GDC | |
5721 | fi | |
5722 | else | |
5723 | GDC="$ac_cv_prog_GDC" | |
5724 | fi | |
5725 | ||
5726 | if test "x$GDC" != xno; then | |
5727 | have_gdc=yes | |
5728 | else | |
5729 | have_gdc=no | |
5730 | fi | |
5731 | ||
5213506e RW |
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5733 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5734 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5735 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5736 | else |
5737 | echo abfoo >t1 | |
5738 | echo cdfoo >t2 | |
b55e6680 | 5739 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5740 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5741 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5742 | : | |
5743 | else | |
5744 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5745 | fi | |
5746 | fi | |
a76494aa PB |
5747 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5748 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5749 | : |
a76494aa PB |
5750 | else |
5751 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5752 | fi | |
5753 | fi | |
5754 | rm t1 t2 | |
5755 | ||
5756 | fi | |
5213506e RW |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5758 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5759 | do_compare="$gcc_cv_prog_cmp_skip" |
5760 | ||
5761 | ||
55ffb5ed | 5762 | |
ff3ac0f4 ILT |
5763 | # Check whether --enable-bootstrap was given. |
5764 | if test "${enable_bootstrap+set}" = set; then : | |
5765 | enableval=$enable_bootstrap; | |
5766 | else | |
5767 | enable_bootstrap=default | |
5768 | fi | |
5769 | ||
5770 | ||
5771 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5772 | if test -r $srcdir/gcc/configure; then |
5773 | have_compiler=yes | |
5774 | else | |
5775 | have_compiler=no | |
5776 | fi | |
ff3ac0f4 ILT |
5777 | |
5778 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5779 | *:*:*:no) ;; | |
5780 | ||
5781 | # Default behavior. Enable bootstrap if we have a compiler | |
5782 | # and we are in a native configuration. | |
5783 | yes:$build:$build:default) | |
5784 | enable_bootstrap=yes ;; | |
5785 | ||
5786 | *:*:*:default) | |
5787 | enable_bootstrap=no ;; | |
5788 | ||
5789 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5790 | yes:$build:$build:yes) | |
5791 | ;; | |
5792 | ||
5793 | # Other configurations, but we have a compiler. Assume the user knows | |
5794 | # what he's doing. | |
5795 | yes:*:*:yes) | |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5797 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5798 | ;; | |
5799 | ||
5800 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5801 | no:*:*:yes) | |
22e05272 | 5802 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5803 | |
5804 | # Fail if wrong command line | |
5805 | *) | |
22e05272 | 5806 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5807 | ;; |
5808 | esac | |
5809 | ||
5329b59a | 5810 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5811 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5812 | # require C++11 (or higher). | |
46070488 | 5813 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5814 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5815 | elif test "$have_compiler" = yes; then |
5816 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5817 | ac_ext=cpp | |
5818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5822 | ac_success=no | |
5823 | ||
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5825 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5826 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5827 | $as_echo_n "(cached) " >&6 | |
5828 | else | |
5829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5830 | /* end confdefs.h. */ | |
5831 | ||
5832 | ||
5833 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5834 | // Hopefully, this will speed up the test. | |
5835 | ||
5836 | #ifndef __cplusplus | |
5837 | ||
5838 | #error "This is not a C++ compiler" | |
5839 | ||
5840 | #elif __cplusplus < 201103L | |
5841 | ||
5842 | #error "This is not a C++11 compiler" | |
5843 | ||
5844 | #else | |
5845 | ||
5846 | namespace cxx11 | |
5847 | { | |
5848 | ||
5849 | namespace test_static_assert | |
5850 | { | |
5851 | ||
5852 | template <typename T> | |
5853 | struct check | |
5854 | { | |
5855 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5856 | }; | |
5857 | ||
5858 | } | |
5859 | ||
5860 | namespace test_final_override | |
5861 | { | |
5862 | ||
5863 | struct Base | |
5864 | { | |
5865 | virtual ~Base() {} | |
5866 | virtual void f() {} | |
5867 | }; | |
5868 | ||
5869 | struct Derived : public Base | |
5870 | { | |
5871 | virtual ~Derived() override {} | |
5872 | virtual void f() override {} | |
5873 | }; | |
5874 | ||
5875 | } | |
5876 | ||
5877 | namespace test_double_right_angle_brackets | |
5878 | { | |
5879 | ||
5880 | template < typename T > | |
5881 | struct check {}; | |
5882 | ||
5883 | typedef check<void> single_type; | |
5884 | typedef check<check<void>> double_type; | |
5885 | typedef check<check<check<void>>> triple_type; | |
5886 | typedef check<check<check<check<void>>>> quadruple_type; | |
5887 | ||
5888 | } | |
5889 | ||
5890 | namespace test_decltype | |
5891 | { | |
5892 | ||
5893 | int | |
5894 | f() | |
5895 | { | |
5896 | int a = 1; | |
5897 | decltype(a) b = 2; | |
5898 | return a + b; | |
5899 | } | |
5900 | ||
5901 | } | |
5902 | ||
5903 | namespace test_type_deduction | |
5904 | { | |
5905 | ||
5906 | template < typename T1, typename T2 > | |
5907 | struct is_same | |
5908 | { | |
5909 | static const bool value = false; | |
5910 | }; | |
5911 | ||
5912 | template < typename T > | |
5913 | struct is_same<T, T> | |
5914 | { | |
5915 | static const bool value = true; | |
5916 | }; | |
5917 | ||
5918 | template < typename T1, typename T2 > | |
5919 | auto | |
5920 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5921 | { | |
5922 | return a1 + a2; | |
5923 | } | |
5924 | ||
5925 | int | |
5926 | test(const int c, volatile int v) | |
5927 | { | |
5928 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5929 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5930 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5931 | auto ac = c; | |
5932 | auto av = v; | |
5933 | auto sumi = ac + av + 'x'; | |
5934 | auto sumf = ac + av + 1.0; | |
5935 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5936 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5937 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5938 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5939 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5940 | return (sumf > 0.0) ? sumi : add(c, v); | |
5941 | } | |
5942 | ||
5943 | } | |
5944 | ||
5945 | namespace test_noexcept | |
5946 | { | |
5947 | ||
5948 | int f() { return 0; } | |
5949 | int g() noexcept { return 0; } | |
5950 | ||
5951 | static_assert(noexcept(f()) == false, ""); | |
5952 | static_assert(noexcept(g()) == true, ""); | |
5953 | ||
5954 | } | |
5955 | ||
5956 | namespace test_constexpr | |
5957 | { | |
5958 | ||
5959 | template < typename CharT > | |
5960 | unsigned long constexpr | |
5961 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5962 | { | |
5963 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5964 | } | |
5965 | ||
5966 | template < typename CharT > | |
5967 | unsigned long constexpr | |
5968 | strlen_c(const CharT *const s) noexcept | |
5969 | { | |
5970 | return strlen_c_r(s, 0UL); | |
5971 | } | |
5972 | ||
5973 | static_assert(strlen_c("") == 0UL, ""); | |
5974 | static_assert(strlen_c("1") == 1UL, ""); | |
5975 | static_assert(strlen_c("example") == 7UL, ""); | |
5976 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5977 | ||
5978 | } | |
5979 | ||
5980 | namespace test_rvalue_references | |
5981 | { | |
5982 | ||
5983 | template < int N > | |
5984 | struct answer | |
5985 | { | |
5986 | static constexpr int value = N; | |
5987 | }; | |
5988 | ||
5989 | answer<1> f(int&) { return answer<1>(); } | |
5990 | answer<2> f(const int&) { return answer<2>(); } | |
5991 | answer<3> f(int&&) { return answer<3>(); } | |
5992 | ||
5993 | void | |
5994 | test() | |
5995 | { | |
5996 | int i = 0; | |
5997 | const int c = 0; | |
5998 | static_assert(decltype(f(i))::value == 1, ""); | |
5999 | static_assert(decltype(f(c))::value == 2, ""); | |
6000 | static_assert(decltype(f(0))::value == 3, ""); | |
6001 | } | |
6002 | ||
6003 | } | |
6004 | ||
6005 | namespace test_uniform_initialization | |
6006 | { | |
6007 | ||
6008 | struct test | |
6009 | { | |
6010 | static const int zero {}; | |
6011 | static const int one {1}; | |
6012 | }; | |
6013 | ||
6014 | static_assert(test::zero == 0, ""); | |
6015 | static_assert(test::one == 1, ""); | |
6016 | ||
6017 | } | |
6018 | ||
6019 | namespace test_lambdas | |
6020 | { | |
6021 | ||
6022 | void | |
6023 | test1() | |
6024 | { | |
6025 | auto lambda1 = [](){}; | |
6026 | auto lambda2 = lambda1; | |
6027 | lambda1(); | |
6028 | lambda2(); | |
6029 | } | |
6030 | ||
6031 | int | |
6032 | test2() | |
6033 | { | |
6034 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6035 | auto b = []() -> int { return '0'; }(); | |
6036 | auto c = [=](){ return a + b; }(); | |
6037 | auto d = [&](){ return c; }(); | |
6038 | auto e = [a, &b](int x) mutable { | |
6039 | const auto identity = [](int y){ return y; }; | |
6040 | for (auto i = 0; i < a; ++i) | |
6041 | a += b--; | |
6042 | return x + identity(a + b); | |
6043 | }(0); | |
6044 | return a + b + c + d + e; | |
6045 | } | |
6046 | ||
6047 | int | |
6048 | test3() | |
6049 | { | |
6050 | const auto nullary = [](){ return 0; }; | |
6051 | const auto unary = [](int x){ return x; }; | |
6052 | using nullary_t = decltype(nullary); | |
6053 | using unary_t = decltype(unary); | |
6054 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6055 | const auto higher2nd = [unary](nullary_t f1){ | |
6056 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6057 | }; | |
6058 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6059 | } | |
6060 | ||
6061 | } | |
6062 | ||
6063 | namespace test_variadic_templates | |
6064 | { | |
6065 | ||
6066 | template <int...> | |
6067 | struct sum; | |
6068 | ||
6069 | template <int N0, int... N1toN> | |
6070 | struct sum<N0, N1toN...> | |
6071 | { | |
6072 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6073 | }; | |
6074 | ||
6075 | template <> | |
6076 | struct sum<> | |
6077 | { | |
6078 | static constexpr auto value = 0; | |
6079 | }; | |
6080 | ||
6081 | static_assert(sum<>::value == 0, ""); | |
6082 | static_assert(sum<1>::value == 1, ""); | |
6083 | static_assert(sum<23>::value == 23, ""); | |
6084 | static_assert(sum<1, 2>::value == 3, ""); | |
6085 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6086 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6087 | ||
6088 | } | |
6089 | ||
6090 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6091 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6092 | // because of this. | |
6093 | namespace test_template_alias_sfinae | |
6094 | { | |
6095 | ||
6096 | struct foo {}; | |
6097 | ||
6098 | template<typename T> | |
6099 | using member = typename T::member_type; | |
6100 | ||
6101 | template<typename T> | |
6102 | void func(...) {} | |
6103 | ||
6104 | template<typename T> | |
6105 | void func(member<T>*) {} | |
6106 | ||
6107 | void test(); | |
6108 | ||
6109 | void test() { func<foo>(0); } | |
6110 | ||
6111 | } | |
6112 | ||
6113 | } // namespace cxx11 | |
6114 | ||
6115 | #endif // __cplusplus >= 201103L | |
6116 | ||
6117 | ||
6118 | ||
6119 | _ACEOF | |
6120 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6121 | ax_cv_cxx_compile_cxx11=yes | |
6122 | else | |
6123 | ax_cv_cxx_compile_cxx11=no | |
6124 | fi | |
6125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6126 | fi | |
6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6128 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6129 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6130 | ac_success=yes | |
6131 | fi | |
6132 | ||
6133 | if test x$ac_success = xno; then | |
6134 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6135 | switch="-std=gnu++${alternative}" | |
6136 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6138 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6139 | if eval \${$cachevar+:} false; then : | |
6140 | $as_echo_n "(cached) " >&6 | |
6141 | else | |
6142 | ac_save_CXX="$CXX" | |
6143 | CXX="$CXX $switch" | |
6144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6145 | /* end confdefs.h. */ | |
6146 | ||
6147 | ||
6148 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6149 | // Hopefully, this will speed up the test. | |
6150 | ||
6151 | #ifndef __cplusplus | |
6152 | ||
6153 | #error "This is not a C++ compiler" | |
6154 | ||
6155 | #elif __cplusplus < 201103L | |
6156 | ||
6157 | #error "This is not a C++11 compiler" | |
6158 | ||
6159 | #else | |
6160 | ||
6161 | namespace cxx11 | |
6162 | { | |
6163 | ||
6164 | namespace test_static_assert | |
6165 | { | |
6166 | ||
6167 | template <typename T> | |
6168 | struct check | |
6169 | { | |
6170 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6171 | }; | |
6172 | ||
6173 | } | |
6174 | ||
6175 | namespace test_final_override | |
6176 | { | |
6177 | ||
6178 | struct Base | |
6179 | { | |
6180 | virtual ~Base() {} | |
6181 | virtual void f() {} | |
6182 | }; | |
6183 | ||
6184 | struct Derived : public Base | |
6185 | { | |
6186 | virtual ~Derived() override {} | |
6187 | virtual void f() override {} | |
6188 | }; | |
6189 | ||
6190 | } | |
6191 | ||
6192 | namespace test_double_right_angle_brackets | |
6193 | { | |
6194 | ||
6195 | template < typename T > | |
6196 | struct check {}; | |
6197 | ||
6198 | typedef check<void> single_type; | |
6199 | typedef check<check<void>> double_type; | |
6200 | typedef check<check<check<void>>> triple_type; | |
6201 | typedef check<check<check<check<void>>>> quadruple_type; | |
6202 | ||
6203 | } | |
6204 | ||
6205 | namespace test_decltype | |
6206 | { | |
6207 | ||
6208 | int | |
6209 | f() | |
6210 | { | |
6211 | int a = 1; | |
6212 | decltype(a) b = 2; | |
6213 | return a + b; | |
6214 | } | |
6215 | ||
6216 | } | |
6217 | ||
6218 | namespace test_type_deduction | |
6219 | { | |
6220 | ||
6221 | template < typename T1, typename T2 > | |
6222 | struct is_same | |
6223 | { | |
6224 | static const bool value = false; | |
6225 | }; | |
6226 | ||
6227 | template < typename T > | |
6228 | struct is_same<T, T> | |
6229 | { | |
6230 | static const bool value = true; | |
6231 | }; | |
6232 | ||
6233 | template < typename T1, typename T2 > | |
6234 | auto | |
6235 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6236 | { | |
6237 | return a1 + a2; | |
6238 | } | |
6239 | ||
6240 | int | |
6241 | test(const int c, volatile int v) | |
6242 | { | |
6243 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6244 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6245 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6246 | auto ac = c; | |
6247 | auto av = v; | |
6248 | auto sumi = ac + av + 'x'; | |
6249 | auto sumf = ac + av + 1.0; | |
6250 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6251 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6252 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6253 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6254 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6255 | return (sumf > 0.0) ? sumi : add(c, v); | |
6256 | } | |
6257 | ||
6258 | } | |
6259 | ||
6260 | namespace test_noexcept | |
6261 | { | |
6262 | ||
6263 | int f() { return 0; } | |
6264 | int g() noexcept { return 0; } | |
6265 | ||
6266 | static_assert(noexcept(f()) == false, ""); | |
6267 | static_assert(noexcept(g()) == true, ""); | |
6268 | ||
6269 | } | |
6270 | ||
6271 | namespace test_constexpr | |
6272 | { | |
6273 | ||
6274 | template < typename CharT > | |
6275 | unsigned long constexpr | |
6276 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6277 | { | |
6278 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6279 | } | |
6280 | ||
6281 | template < typename CharT > | |
6282 | unsigned long constexpr | |
6283 | strlen_c(const CharT *const s) noexcept | |
6284 | { | |
6285 | return strlen_c_r(s, 0UL); | |
6286 | } | |
6287 | ||
6288 | static_assert(strlen_c("") == 0UL, ""); | |
6289 | static_assert(strlen_c("1") == 1UL, ""); | |
6290 | static_assert(strlen_c("example") == 7UL, ""); | |
6291 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6292 | ||
6293 | } | |
6294 | ||
6295 | namespace test_rvalue_references | |
6296 | { | |
6297 | ||
6298 | template < int N > | |
6299 | struct answer | |
6300 | { | |
6301 | static constexpr int value = N; | |
6302 | }; | |
6303 | ||
6304 | answer<1> f(int&) { return answer<1>(); } | |
6305 | answer<2> f(const int&) { return answer<2>(); } | |
6306 | answer<3> f(int&&) { return answer<3>(); } | |
6307 | ||
6308 | void | |
6309 | test() | |
6310 | { | |
6311 | int i = 0; | |
6312 | const int c = 0; | |
6313 | static_assert(decltype(f(i))::value == 1, ""); | |
6314 | static_assert(decltype(f(c))::value == 2, ""); | |
6315 | static_assert(decltype(f(0))::value == 3, ""); | |
6316 | } | |
6317 | ||
6318 | } | |
6319 | ||
6320 | namespace test_uniform_initialization | |
6321 | { | |
6322 | ||
6323 | struct test | |
6324 | { | |
6325 | static const int zero {}; | |
6326 | static const int one {1}; | |
6327 | }; | |
6328 | ||
6329 | static_assert(test::zero == 0, ""); | |
6330 | static_assert(test::one == 1, ""); | |
6331 | ||
6332 | } | |
6333 | ||
6334 | namespace test_lambdas | |
6335 | { | |
6336 | ||
6337 | void | |
6338 | test1() | |
6339 | { | |
6340 | auto lambda1 = [](){}; | |
6341 | auto lambda2 = lambda1; | |
6342 | lambda1(); | |
6343 | lambda2(); | |
6344 | } | |
6345 | ||
6346 | int | |
6347 | test2() | |
6348 | { | |
6349 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6350 | auto b = []() -> int { return '0'; }(); | |
6351 | auto c = [=](){ return a + b; }(); | |
6352 | auto d = [&](){ return c; }(); | |
6353 | auto e = [a, &b](int x) mutable { | |
6354 | const auto identity = [](int y){ return y; }; | |
6355 | for (auto i = 0; i < a; ++i) | |
6356 | a += b--; | |
6357 | return x + identity(a + b); | |
6358 | }(0); | |
6359 | return a + b + c + d + e; | |
6360 | } | |
6361 | ||
6362 | int | |
6363 | test3() | |
6364 | { | |
6365 | const auto nullary = [](){ return 0; }; | |
6366 | const auto unary = [](int x){ return x; }; | |
6367 | using nullary_t = decltype(nullary); | |
6368 | using unary_t = decltype(unary); | |
6369 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6370 | const auto higher2nd = [unary](nullary_t f1){ | |
6371 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6372 | }; | |
6373 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6374 | } | |
6375 | ||
6376 | } | |
6377 | ||
6378 | namespace test_variadic_templates | |
6379 | { | |
6380 | ||
6381 | template <int...> | |
6382 | struct sum; | |
6383 | ||
6384 | template <int N0, int... N1toN> | |
6385 | struct sum<N0, N1toN...> | |
6386 | { | |
6387 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6388 | }; | |
6389 | ||
6390 | template <> | |
6391 | struct sum<> | |
6392 | { | |
6393 | static constexpr auto value = 0; | |
6394 | }; | |
6395 | ||
6396 | static_assert(sum<>::value == 0, ""); | |
6397 | static_assert(sum<1>::value == 1, ""); | |
6398 | static_assert(sum<23>::value == 23, ""); | |
6399 | static_assert(sum<1, 2>::value == 3, ""); | |
6400 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6401 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6402 | ||
6403 | } | |
6404 | ||
6405 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6406 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6407 | // because of this. | |
6408 | namespace test_template_alias_sfinae | |
6409 | { | |
6410 | ||
6411 | struct foo {}; | |
6412 | ||
6413 | template<typename T> | |
6414 | using member = typename T::member_type; | |
6415 | ||
6416 | template<typename T> | |
6417 | void func(...) {} | |
6418 | ||
6419 | template<typename T> | |
6420 | void func(member<T>*) {} | |
6421 | ||
6422 | void test(); | |
6423 | ||
6424 | void test() { func<foo>(0); } | |
6425 | ||
6426 | } | |
6427 | ||
6428 | } // namespace cxx11 | |
6429 | ||
6430 | #endif // __cplusplus >= 201103L | |
6431 | ||
6432 | ||
6433 | ||
6434 | _ACEOF | |
6435 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6436 | eval $cachevar=yes | |
6437 | else | |
6438 | eval $cachevar=no | |
6439 | fi | |
6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6441 | CXX="$ac_save_CXX" | |
6442 | fi | |
6443 | eval ac_res=\$$cachevar | |
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6445 | $as_echo "$ac_res" >&6; } | |
6446 | if eval test x\$$cachevar = xyes; then | |
6447 | CXX="$CXX $switch" | |
6448 | if test -n "$CXXCPP" ; then | |
6449 | CXXCPP="$CXXCPP $switch" | |
6450 | fi | |
6451 | ac_success=yes | |
6452 | break | |
6453 | fi | |
6454 | done | |
6455 | fi | |
6456 | ||
6457 | if test x$ac_success = xno; then | |
6458 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6459 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6460 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6462 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6463 | if eval \${$cachevar+:} false; then : | |
6464 | $as_echo_n "(cached) " >&6 | |
6465 | else | |
6466 | ac_save_CXX="$CXX" | |
6467 | CXX="$CXX $switch" | |
6468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6469 | /* end confdefs.h. */ | |
6470 | ||
6471 | ||
6472 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6473 | // Hopefully, this will speed up the test. | |
6474 | ||
6475 | #ifndef __cplusplus | |
6476 | ||
6477 | #error "This is not a C++ compiler" | |
6478 | ||
6479 | #elif __cplusplus < 201103L | |
6480 | ||
6481 | #error "This is not a C++11 compiler" | |
6482 | ||
6483 | #else | |
6484 | ||
6485 | namespace cxx11 | |
6486 | { | |
6487 | ||
6488 | namespace test_static_assert | |
6489 | { | |
6490 | ||
6491 | template <typename T> | |
6492 | struct check | |
6493 | { | |
6494 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6495 | }; | |
6496 | ||
6497 | } | |
6498 | ||
6499 | namespace test_final_override | |
6500 | { | |
6501 | ||
6502 | struct Base | |
6503 | { | |
6504 | virtual ~Base() {} | |
6505 | virtual void f() {} | |
6506 | }; | |
6507 | ||
6508 | struct Derived : public Base | |
6509 | { | |
6510 | virtual ~Derived() override {} | |
6511 | virtual void f() override {} | |
6512 | }; | |
6513 | ||
6514 | } | |
6515 | ||
6516 | namespace test_double_right_angle_brackets | |
6517 | { | |
6518 | ||
6519 | template < typename T > | |
6520 | struct check {}; | |
6521 | ||
6522 | typedef check<void> single_type; | |
6523 | typedef check<check<void>> double_type; | |
6524 | typedef check<check<check<void>>> triple_type; | |
6525 | typedef check<check<check<check<void>>>> quadruple_type; | |
6526 | ||
6527 | } | |
6528 | ||
6529 | namespace test_decltype | |
6530 | { | |
6531 | ||
6532 | int | |
6533 | f() | |
6534 | { | |
6535 | int a = 1; | |
6536 | decltype(a) b = 2; | |
6537 | return a + b; | |
6538 | } | |
6539 | ||
6540 | } | |
6541 | ||
6542 | namespace test_type_deduction | |
6543 | { | |
6544 | ||
6545 | template < typename T1, typename T2 > | |
6546 | struct is_same | |
6547 | { | |
6548 | static const bool value = false; | |
6549 | }; | |
6550 | ||
6551 | template < typename T > | |
6552 | struct is_same<T, T> | |
6553 | { | |
6554 | static const bool value = true; | |
6555 | }; | |
6556 | ||
6557 | template < typename T1, typename T2 > | |
6558 | auto | |
6559 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6560 | { | |
6561 | return a1 + a2; | |
6562 | } | |
6563 | ||
6564 | int | |
6565 | test(const int c, volatile int v) | |
6566 | { | |
6567 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6568 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6569 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6570 | auto ac = c; | |
6571 | auto av = v; | |
6572 | auto sumi = ac + av + 'x'; | |
6573 | auto sumf = ac + av + 1.0; | |
6574 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6575 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6576 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6577 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6578 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6579 | return (sumf > 0.0) ? sumi : add(c, v); | |
6580 | } | |
6581 | ||
6582 | } | |
6583 | ||
6584 | namespace test_noexcept | |
6585 | { | |
6586 | ||
6587 | int f() { return 0; } | |
6588 | int g() noexcept { return 0; } | |
6589 | ||
6590 | static_assert(noexcept(f()) == false, ""); | |
6591 | static_assert(noexcept(g()) == true, ""); | |
6592 | ||
6593 | } | |
6594 | ||
6595 | namespace test_constexpr | |
6596 | { | |
6597 | ||
6598 | template < typename CharT > | |
6599 | unsigned long constexpr | |
6600 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6601 | { | |
6602 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6603 | } | |
6604 | ||
6605 | template < typename CharT > | |
6606 | unsigned long constexpr | |
6607 | strlen_c(const CharT *const s) noexcept | |
6608 | { | |
6609 | return strlen_c_r(s, 0UL); | |
6610 | } | |
6611 | ||
6612 | static_assert(strlen_c("") == 0UL, ""); | |
6613 | static_assert(strlen_c("1") == 1UL, ""); | |
6614 | static_assert(strlen_c("example") == 7UL, ""); | |
6615 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6616 | ||
6617 | } | |
6618 | ||
6619 | namespace test_rvalue_references | |
6620 | { | |
6621 | ||
6622 | template < int N > | |
6623 | struct answer | |
6624 | { | |
6625 | static constexpr int value = N; | |
6626 | }; | |
6627 | ||
6628 | answer<1> f(int&) { return answer<1>(); } | |
6629 | answer<2> f(const int&) { return answer<2>(); } | |
6630 | answer<3> f(int&&) { return answer<3>(); } | |
6631 | ||
6632 | void | |
6633 | test() | |
6634 | { | |
6635 | int i = 0; | |
6636 | const int c = 0; | |
6637 | static_assert(decltype(f(i))::value == 1, ""); | |
6638 | static_assert(decltype(f(c))::value == 2, ""); | |
6639 | static_assert(decltype(f(0))::value == 3, ""); | |
6640 | } | |
6641 | ||
6642 | } | |
6643 | ||
6644 | namespace test_uniform_initialization | |
6645 | { | |
6646 | ||
6647 | struct test | |
6648 | { | |
6649 | static const int zero {}; | |
6650 | static const int one {1}; | |
6651 | }; | |
6652 | ||
6653 | static_assert(test::zero == 0, ""); | |
6654 | static_assert(test::one == 1, ""); | |
6655 | ||
6656 | } | |
6657 | ||
6658 | namespace test_lambdas | |
6659 | { | |
6660 | ||
6661 | void | |
6662 | test1() | |
6663 | { | |
6664 | auto lambda1 = [](){}; | |
6665 | auto lambda2 = lambda1; | |
6666 | lambda1(); | |
6667 | lambda2(); | |
6668 | } | |
6669 | ||
6670 | int | |
6671 | test2() | |
6672 | { | |
6673 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6674 | auto b = []() -> int { return '0'; }(); | |
6675 | auto c = [=](){ return a + b; }(); | |
6676 | auto d = [&](){ return c; }(); | |
6677 | auto e = [a, &b](int x) mutable { | |
6678 | const auto identity = [](int y){ return y; }; | |
6679 | for (auto i = 0; i < a; ++i) | |
6680 | a += b--; | |
6681 | return x + identity(a + b); | |
6682 | }(0); | |
6683 | return a + b + c + d + e; | |
6684 | } | |
6685 | ||
6686 | int | |
6687 | test3() | |
6688 | { | |
6689 | const auto nullary = [](){ return 0; }; | |
6690 | const auto unary = [](int x){ return x; }; | |
6691 | using nullary_t = decltype(nullary); | |
6692 | using unary_t = decltype(unary); | |
6693 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6694 | const auto higher2nd = [unary](nullary_t f1){ | |
6695 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6696 | }; | |
6697 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6698 | } | |
6699 | ||
6700 | } | |
6701 | ||
6702 | namespace test_variadic_templates | |
6703 | { | |
6704 | ||
6705 | template <int...> | |
6706 | struct sum; | |
6707 | ||
6708 | template <int N0, int... N1toN> | |
6709 | struct sum<N0, N1toN...> | |
6710 | { | |
6711 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6712 | }; | |
6713 | ||
6714 | template <> | |
6715 | struct sum<> | |
6716 | { | |
6717 | static constexpr auto value = 0; | |
6718 | }; | |
6719 | ||
6720 | static_assert(sum<>::value == 0, ""); | |
6721 | static_assert(sum<1>::value == 1, ""); | |
6722 | static_assert(sum<23>::value == 23, ""); | |
6723 | static_assert(sum<1, 2>::value == 3, ""); | |
6724 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6725 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6726 | ||
6727 | } | |
6728 | ||
6729 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6730 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6731 | // because of this. | |
6732 | namespace test_template_alias_sfinae | |
6733 | { | |
6734 | ||
6735 | struct foo {}; | |
6736 | ||
6737 | template<typename T> | |
6738 | using member = typename T::member_type; | |
6739 | ||
6740 | template<typename T> | |
6741 | void func(...) {} | |
6742 | ||
6743 | template<typename T> | |
6744 | void func(member<T>*) {} | |
6745 | ||
6746 | void test(); | |
6747 | ||
6748 | void test() { func<foo>(0); } | |
6749 | ||
6750 | } | |
6751 | ||
6752 | } // namespace cxx11 | |
6753 | ||
6754 | #endif // __cplusplus >= 201103L | |
6755 | ||
6756 | ||
6757 | ||
6758 | _ACEOF | |
6759 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6760 | eval $cachevar=yes | |
6761 | else | |
6762 | eval $cachevar=no | |
6763 | fi | |
6764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6765 | CXX="$ac_save_CXX" | |
6766 | fi | |
6767 | eval ac_res=\$$cachevar | |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6769 | $as_echo "$ac_res" >&6; } | |
6770 | if eval test x\$$cachevar = xyes; then | |
6771 | CXX="$CXX $switch" | |
6772 | if test -n "$CXXCPP" ; then | |
6773 | CXXCPP="$CXXCPP $switch" | |
6774 | fi | |
6775 | ac_success=yes | |
6776 | break | |
6777 | fi | |
6778 | done | |
6779 | if test x$ac_success = xyes; then | |
6780 | break | |
6781 | fi | |
6782 | done | |
6783 | fi | |
7ffcf5d6 | 6784 | |
ffac9597 JM |
6785 | ac_ext=c |
6786 | ac_cpp='$CPP $CPPFLAGS' | |
6787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6790 | ||
6791 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6792 | if test x$ac_success = xno; then | |
6793 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6794 | fi | |
6795 | fi | |
6796 | if test x$ac_success = xno; then | |
6797 | HAVE_CXX11=0 | |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6799 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6800 | else | |
6801 | HAVE_CXX11=1 | |
6802 | ||
6803 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6804 | ||
6805 | fi | |
6806 | ||
6807 | ||
7ffcf5d6 TB |
6808 | |
6809 | if test "${build}" != "${host}"; then | |
6810 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6811 | ac_ext=cpp | |
6812 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6813 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6814 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6815 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6816 | ac_success=no | |
6817 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6818 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6819 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6820 | CXX="$CXX_FOR_BUILD" | |
6821 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6822 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6824 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6825 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6826 | $as_echo_n "(cached) " >&6 | |
6827 | else | |
6828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6829 | /* end confdefs.h. */ | |
6830 | ||
6831 | ||
6832 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6833 | // Hopefully, this will speed up the test. | |
6834 | ||
6835 | #ifndef __cplusplus | |
6836 | ||
6837 | #error "This is not a C++ compiler" | |
6838 | ||
6839 | #elif __cplusplus < 201103L | |
6840 | ||
6841 | #error "This is not a C++11 compiler" | |
6842 | ||
6843 | #else | |
6844 | ||
6845 | namespace cxx11 | |
6846 | { | |
6847 | ||
6848 | namespace test_static_assert | |
6849 | { | |
6850 | ||
6851 | template <typename T> | |
6852 | struct check | |
6853 | { | |
6854 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6855 | }; | |
6856 | ||
6857 | } | |
6858 | ||
6859 | namespace test_final_override | |
6860 | { | |
6861 | ||
6862 | struct Base | |
6863 | { | |
6864 | virtual ~Base() {} | |
6865 | virtual void f() {} | |
6866 | }; | |
6867 | ||
6868 | struct Derived : public Base | |
6869 | { | |
6870 | virtual ~Derived() override {} | |
6871 | virtual void f() override {} | |
6872 | }; | |
6873 | ||
6874 | } | |
6875 | ||
6876 | namespace test_double_right_angle_brackets | |
6877 | { | |
6878 | ||
6879 | template < typename T > | |
6880 | struct check {}; | |
6881 | ||
6882 | typedef check<void> single_type; | |
6883 | typedef check<check<void>> double_type; | |
6884 | typedef check<check<check<void>>> triple_type; | |
6885 | typedef check<check<check<check<void>>>> quadruple_type; | |
6886 | ||
6887 | } | |
6888 | ||
6889 | namespace test_decltype | |
6890 | { | |
6891 | ||
6892 | int | |
6893 | f() | |
6894 | { | |
6895 | int a = 1; | |
6896 | decltype(a) b = 2; | |
6897 | return a + b; | |
6898 | } | |
6899 | ||
6900 | } | |
6901 | ||
6902 | namespace test_type_deduction | |
6903 | { | |
6904 | ||
6905 | template < typename T1, typename T2 > | |
6906 | struct is_same | |
6907 | { | |
6908 | static const bool value = false; | |
6909 | }; | |
6910 | ||
6911 | template < typename T > | |
6912 | struct is_same<T, T> | |
6913 | { | |
6914 | static const bool value = true; | |
6915 | }; | |
6916 | ||
6917 | template < typename T1, typename T2 > | |
6918 | auto | |
6919 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6920 | { | |
6921 | return a1 + a2; | |
6922 | } | |
6923 | ||
6924 | int | |
6925 | test(const int c, volatile int v) | |
6926 | { | |
6927 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6928 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6929 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6930 | auto ac = c; | |
6931 | auto av = v; | |
6932 | auto sumi = ac + av + 'x'; | |
6933 | auto sumf = ac + av + 1.0; | |
6934 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6935 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6936 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6937 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6938 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6939 | return (sumf > 0.0) ? sumi : add(c, v); | |
6940 | } | |
6941 | ||
6942 | } | |
6943 | ||
6944 | namespace test_noexcept | |
6945 | { | |
6946 | ||
6947 | int f() { return 0; } | |
6948 | int g() noexcept { return 0; } | |
6949 | ||
6950 | static_assert(noexcept(f()) == false, ""); | |
6951 | static_assert(noexcept(g()) == true, ""); | |
6952 | ||
6953 | } | |
6954 | ||
6955 | namespace test_constexpr | |
6956 | { | |
6957 | ||
6958 | template < typename CharT > | |
6959 | unsigned long constexpr | |
6960 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6961 | { | |
6962 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6963 | } | |
6964 | ||
6965 | template < typename CharT > | |
6966 | unsigned long constexpr | |
6967 | strlen_c(const CharT *const s) noexcept | |
6968 | { | |
6969 | return strlen_c_r(s, 0UL); | |
6970 | } | |
6971 | ||
6972 | static_assert(strlen_c("") == 0UL, ""); | |
6973 | static_assert(strlen_c("1") == 1UL, ""); | |
6974 | static_assert(strlen_c("example") == 7UL, ""); | |
6975 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6976 | ||
6977 | } | |
6978 | ||
6979 | namespace test_rvalue_references | |
6980 | { | |
6981 | ||
6982 | template < int N > | |
6983 | struct answer | |
6984 | { | |
6985 | static constexpr int value = N; | |
6986 | }; | |
6987 | ||
6988 | answer<1> f(int&) { return answer<1>(); } | |
6989 | answer<2> f(const int&) { return answer<2>(); } | |
6990 | answer<3> f(int&&) { return answer<3>(); } | |
6991 | ||
6992 | void | |
6993 | test() | |
6994 | { | |
6995 | int i = 0; | |
6996 | const int c = 0; | |
6997 | static_assert(decltype(f(i))::value == 1, ""); | |
6998 | static_assert(decltype(f(c))::value == 2, ""); | |
6999 | static_assert(decltype(f(0))::value == 3, ""); | |
7000 | } | |
7001 | ||
7002 | } | |
7003 | ||
7004 | namespace test_uniform_initialization | |
7005 | { | |
7006 | ||
7007 | struct test | |
7008 | { | |
7009 | static const int zero {}; | |
7010 | static const int one {1}; | |
7011 | }; | |
7012 | ||
7013 | static_assert(test::zero == 0, ""); | |
7014 | static_assert(test::one == 1, ""); | |
7015 | ||
7016 | } | |
7017 | ||
7018 | namespace test_lambdas | |
7019 | { | |
7020 | ||
7021 | void | |
7022 | test1() | |
7023 | { | |
7024 | auto lambda1 = [](){}; | |
7025 | auto lambda2 = lambda1; | |
7026 | lambda1(); | |
7027 | lambda2(); | |
7028 | } | |
7029 | ||
7030 | int | |
7031 | test2() | |
7032 | { | |
7033 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7034 | auto b = []() -> int { return '0'; }(); | |
7035 | auto c = [=](){ return a + b; }(); | |
7036 | auto d = [&](){ return c; }(); | |
7037 | auto e = [a, &b](int x) mutable { | |
7038 | const auto identity = [](int y){ return y; }; | |
7039 | for (auto i = 0; i < a; ++i) | |
7040 | a += b--; | |
7041 | return x + identity(a + b); | |
7042 | }(0); | |
7043 | return a + b + c + d + e; | |
7044 | } | |
7045 | ||
7046 | int | |
7047 | test3() | |
7048 | { | |
7049 | const auto nullary = [](){ return 0; }; | |
7050 | const auto unary = [](int x){ return x; }; | |
7051 | using nullary_t = decltype(nullary); | |
7052 | using unary_t = decltype(unary); | |
7053 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7054 | const auto higher2nd = [unary](nullary_t f1){ | |
7055 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7056 | }; | |
7057 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7058 | } | |
7059 | ||
7060 | } | |
7061 | ||
7062 | namespace test_variadic_templates | |
7063 | { | |
7064 | ||
7065 | template <int...> | |
7066 | struct sum; | |
7067 | ||
7068 | template <int N0, int... N1toN> | |
7069 | struct sum<N0, N1toN...> | |
7070 | { | |
7071 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7072 | }; | |
7073 | ||
7074 | template <> | |
7075 | struct sum<> | |
7076 | { | |
7077 | static constexpr auto value = 0; | |
7078 | }; | |
7079 | ||
7080 | static_assert(sum<>::value == 0, ""); | |
7081 | static_assert(sum<1>::value == 1, ""); | |
7082 | static_assert(sum<23>::value == 23, ""); | |
7083 | static_assert(sum<1, 2>::value == 3, ""); | |
7084 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7085 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7086 | ||
7087 | } | |
7088 | ||
7089 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7090 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7091 | // because of this. | |
7092 | namespace test_template_alias_sfinae | |
7093 | { | |
7094 | ||
7095 | struct foo {}; | |
7096 | ||
7097 | template<typename T> | |
7098 | using member = typename T::member_type; | |
7099 | ||
7100 | template<typename T> | |
7101 | void func(...) {} | |
7102 | ||
7103 | template<typename T> | |
7104 | void func(member<T>*) {} | |
7105 | ||
7106 | void test(); | |
7107 | ||
7108 | void test() { func<foo>(0); } | |
7109 | ||
7110 | } | |
7111 | ||
7112 | } // namespace cxx11 | |
7113 | ||
7114 | #endif // __cplusplus >= 201103L | |
7115 | ||
7116 | ||
7117 | ||
7118 | _ACEOF | |
7119 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7120 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7121 | else | |
7122 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7123 | fi | |
7124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7125 | fi | |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7127 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7128 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7129 | ac_success=yes | |
7130 | fi | |
7131 | ||
7132 | if test x$ac_success = xno; then | |
7133 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7134 | switch="-std=gnu++${alternative}" | |
7135 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7137 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7138 | if eval \${$cachevar+:} false; then : | |
7139 | $as_echo_n "(cached) " >&6 | |
7140 | else | |
7141 | ac_save_CXX="$CXX" | |
7142 | CXX="$CXX $switch" | |
7143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7144 | /* end confdefs.h. */ | |
7145 | ||
7146 | ||
7147 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7148 | // Hopefully, this will speed up the test. | |
7149 | ||
7150 | #ifndef __cplusplus | |
7151 | ||
7152 | #error "This is not a C++ compiler" | |
7153 | ||
7154 | #elif __cplusplus < 201103L | |
7155 | ||
7156 | #error "This is not a C++11 compiler" | |
7157 | ||
7158 | #else | |
7159 | ||
7160 | namespace cxx11 | |
7161 | { | |
7162 | ||
7163 | namespace test_static_assert | |
7164 | { | |
7165 | ||
7166 | template <typename T> | |
7167 | struct check | |
7168 | { | |
7169 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7170 | }; | |
7171 | ||
7172 | } | |
7173 | ||
7174 | namespace test_final_override | |
7175 | { | |
7176 | ||
7177 | struct Base | |
7178 | { | |
7179 | virtual ~Base() {} | |
7180 | virtual void f() {} | |
7181 | }; | |
7182 | ||
7183 | struct Derived : public Base | |
7184 | { | |
7185 | virtual ~Derived() override {} | |
7186 | virtual void f() override {} | |
7187 | }; | |
7188 | ||
7189 | } | |
7190 | ||
7191 | namespace test_double_right_angle_brackets | |
7192 | { | |
7193 | ||
7194 | template < typename T > | |
7195 | struct check {}; | |
7196 | ||
7197 | typedef check<void> single_type; | |
7198 | typedef check<check<void>> double_type; | |
7199 | typedef check<check<check<void>>> triple_type; | |
7200 | typedef check<check<check<check<void>>>> quadruple_type; | |
7201 | ||
7202 | } | |
7203 | ||
7204 | namespace test_decltype | |
7205 | { | |
7206 | ||
7207 | int | |
7208 | f() | |
7209 | { | |
7210 | int a = 1; | |
7211 | decltype(a) b = 2; | |
7212 | return a + b; | |
7213 | } | |
7214 | ||
7215 | } | |
7216 | ||
7217 | namespace test_type_deduction | |
7218 | { | |
7219 | ||
7220 | template < typename T1, typename T2 > | |
7221 | struct is_same | |
7222 | { | |
7223 | static const bool value = false; | |
7224 | }; | |
7225 | ||
7226 | template < typename T > | |
7227 | struct is_same<T, T> | |
7228 | { | |
7229 | static const bool value = true; | |
7230 | }; | |
7231 | ||
7232 | template < typename T1, typename T2 > | |
7233 | auto | |
7234 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7235 | { | |
7236 | return a1 + a2; | |
7237 | } | |
7238 | ||
7239 | int | |
7240 | test(const int c, volatile int v) | |
7241 | { | |
7242 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7243 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7244 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7245 | auto ac = c; | |
7246 | auto av = v; | |
7247 | auto sumi = ac + av + 'x'; | |
7248 | auto sumf = ac + av + 1.0; | |
7249 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7250 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7251 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7252 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7253 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7254 | return (sumf > 0.0) ? sumi : add(c, v); | |
7255 | } | |
7256 | ||
7257 | } | |
7258 | ||
7259 | namespace test_noexcept | |
7260 | { | |
7261 | ||
7262 | int f() { return 0; } | |
7263 | int g() noexcept { return 0; } | |
7264 | ||
7265 | static_assert(noexcept(f()) == false, ""); | |
7266 | static_assert(noexcept(g()) == true, ""); | |
7267 | ||
7268 | } | |
7269 | ||
7270 | namespace test_constexpr | |
7271 | { | |
7272 | ||
7273 | template < typename CharT > | |
7274 | unsigned long constexpr | |
7275 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7276 | { | |
7277 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7278 | } | |
7279 | ||
7280 | template < typename CharT > | |
7281 | unsigned long constexpr | |
7282 | strlen_c(const CharT *const s) noexcept | |
7283 | { | |
7284 | return strlen_c_r(s, 0UL); | |
7285 | } | |
7286 | ||
7287 | static_assert(strlen_c("") == 0UL, ""); | |
7288 | static_assert(strlen_c("1") == 1UL, ""); | |
7289 | static_assert(strlen_c("example") == 7UL, ""); | |
7290 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7291 | ||
7292 | } | |
7293 | ||
7294 | namespace test_rvalue_references | |
7295 | { | |
7296 | ||
7297 | template < int N > | |
7298 | struct answer | |
7299 | { | |
7300 | static constexpr int value = N; | |
7301 | }; | |
7302 | ||
7303 | answer<1> f(int&) { return answer<1>(); } | |
7304 | answer<2> f(const int&) { return answer<2>(); } | |
7305 | answer<3> f(int&&) { return answer<3>(); } | |
7306 | ||
7307 | void | |
7308 | test() | |
7309 | { | |
7310 | int i = 0; | |
7311 | const int c = 0; | |
7312 | static_assert(decltype(f(i))::value == 1, ""); | |
7313 | static_assert(decltype(f(c))::value == 2, ""); | |
7314 | static_assert(decltype(f(0))::value == 3, ""); | |
7315 | } | |
7316 | ||
7317 | } | |
7318 | ||
7319 | namespace test_uniform_initialization | |
7320 | { | |
7321 | ||
7322 | struct test | |
7323 | { | |
7324 | static const int zero {}; | |
7325 | static const int one {1}; | |
7326 | }; | |
7327 | ||
7328 | static_assert(test::zero == 0, ""); | |
7329 | static_assert(test::one == 1, ""); | |
7330 | ||
7331 | } | |
7332 | ||
7333 | namespace test_lambdas | |
7334 | { | |
7335 | ||
7336 | void | |
7337 | test1() | |
7338 | { | |
7339 | auto lambda1 = [](){}; | |
7340 | auto lambda2 = lambda1; | |
7341 | lambda1(); | |
7342 | lambda2(); | |
7343 | } | |
7344 | ||
7345 | int | |
7346 | test2() | |
7347 | { | |
7348 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7349 | auto b = []() -> int { return '0'; }(); | |
7350 | auto c = [=](){ return a + b; }(); | |
7351 | auto d = [&](){ return c; }(); | |
7352 | auto e = [a, &b](int x) mutable { | |
7353 | const auto identity = [](int y){ return y; }; | |
7354 | for (auto i = 0; i < a; ++i) | |
7355 | a += b--; | |
7356 | return x + identity(a + b); | |
7357 | }(0); | |
7358 | return a + b + c + d + e; | |
7359 | } | |
7360 | ||
7361 | int | |
7362 | test3() | |
7363 | { | |
7364 | const auto nullary = [](){ return 0; }; | |
7365 | const auto unary = [](int x){ return x; }; | |
7366 | using nullary_t = decltype(nullary); | |
7367 | using unary_t = decltype(unary); | |
7368 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7369 | const auto higher2nd = [unary](nullary_t f1){ | |
7370 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7371 | }; | |
7372 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7373 | } | |
7374 | ||
7375 | } | |
7376 | ||
7377 | namespace test_variadic_templates | |
7378 | { | |
7379 | ||
7380 | template <int...> | |
7381 | struct sum; | |
7382 | ||
7383 | template <int N0, int... N1toN> | |
7384 | struct sum<N0, N1toN...> | |
7385 | { | |
7386 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7387 | }; | |
7388 | ||
7389 | template <> | |
7390 | struct sum<> | |
7391 | { | |
7392 | static constexpr auto value = 0; | |
7393 | }; | |
7394 | ||
7395 | static_assert(sum<>::value == 0, ""); | |
7396 | static_assert(sum<1>::value == 1, ""); | |
7397 | static_assert(sum<23>::value == 23, ""); | |
7398 | static_assert(sum<1, 2>::value == 3, ""); | |
7399 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7400 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7401 | ||
7402 | } | |
7403 | ||
7404 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7405 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7406 | // because of this. | |
7407 | namespace test_template_alias_sfinae | |
7408 | { | |
7409 | ||
7410 | struct foo {}; | |
7411 | ||
7412 | template<typename T> | |
7413 | using member = typename T::member_type; | |
7414 | ||
7415 | template<typename T> | |
7416 | void func(...) {} | |
7417 | ||
7418 | template<typename T> | |
7419 | void func(member<T>*) {} | |
7420 | ||
7421 | void test(); | |
7422 | ||
7423 | void test() { func<foo>(0); } | |
7424 | ||
7425 | } | |
7426 | ||
7427 | } // namespace cxx11 | |
7428 | ||
7429 | #endif // __cplusplus >= 201103L | |
7430 | ||
7431 | ||
7432 | ||
7433 | _ACEOF | |
7434 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7435 | eval $cachevar=yes | |
7436 | else | |
7437 | eval $cachevar=no | |
7438 | fi | |
7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7440 | CXX="$ac_save_CXX" | |
7441 | fi | |
7442 | eval ac_res=\$$cachevar | |
7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7444 | $as_echo "$ac_res" >&6; } | |
7445 | if eval test x\$$cachevar = xyes; then | |
7446 | CXX="$CXX $switch" | |
7447 | if test -n "$CXXCPP" ; then | |
7448 | CXXCPP="$CXXCPP $switch" | |
7449 | fi | |
7450 | ac_success=yes | |
7451 | break | |
7452 | fi | |
7453 | done | |
7454 | fi | |
7455 | ||
7456 | if test x$ac_success = xno; then | |
7457 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7458 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7459 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7461 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7462 | if eval \${$cachevar+:} false; then : | |
7463 | $as_echo_n "(cached) " >&6 | |
7464 | else | |
7465 | ac_save_CXX="$CXX" | |
7466 | CXX="$CXX $switch" | |
7467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7468 | /* end confdefs.h. */ | |
7469 | ||
7470 | ||
7471 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7472 | // Hopefully, this will speed up the test. | |
7473 | ||
7474 | #ifndef __cplusplus | |
7475 | ||
7476 | #error "This is not a C++ compiler" | |
7477 | ||
7478 | #elif __cplusplus < 201103L | |
7479 | ||
7480 | #error "This is not a C++11 compiler" | |
7481 | ||
7482 | #else | |
7483 | ||
7484 | namespace cxx11 | |
7485 | { | |
7486 | ||
7487 | namespace test_static_assert | |
7488 | { | |
7489 | ||
7490 | template <typename T> | |
7491 | struct check | |
7492 | { | |
7493 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7494 | }; | |
7495 | ||
7496 | } | |
7497 | ||
7498 | namespace test_final_override | |
7499 | { | |
7500 | ||
7501 | struct Base | |
7502 | { | |
7503 | virtual ~Base() {} | |
7504 | virtual void f() {} | |
7505 | }; | |
7506 | ||
7507 | struct Derived : public Base | |
7508 | { | |
7509 | virtual ~Derived() override {} | |
7510 | virtual void f() override {} | |
7511 | }; | |
7512 | ||
7513 | } | |
7514 | ||
7515 | namespace test_double_right_angle_brackets | |
7516 | { | |
7517 | ||
7518 | template < typename T > | |
7519 | struct check {}; | |
7520 | ||
7521 | typedef check<void> single_type; | |
7522 | typedef check<check<void>> double_type; | |
7523 | typedef check<check<check<void>>> triple_type; | |
7524 | typedef check<check<check<check<void>>>> quadruple_type; | |
7525 | ||
7526 | } | |
7527 | ||
7528 | namespace test_decltype | |
7529 | { | |
7530 | ||
7531 | int | |
7532 | f() | |
7533 | { | |
7534 | int a = 1; | |
7535 | decltype(a) b = 2; | |
7536 | return a + b; | |
7537 | } | |
7538 | ||
7539 | } | |
7540 | ||
7541 | namespace test_type_deduction | |
7542 | { | |
7543 | ||
7544 | template < typename T1, typename T2 > | |
7545 | struct is_same | |
7546 | { | |
7547 | static const bool value = false; | |
7548 | }; | |
7549 | ||
7550 | template < typename T > | |
7551 | struct is_same<T, T> | |
7552 | { | |
7553 | static const bool value = true; | |
7554 | }; | |
7555 | ||
7556 | template < typename T1, typename T2 > | |
7557 | auto | |
7558 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7559 | { | |
7560 | return a1 + a2; | |
7561 | } | |
7562 | ||
7563 | int | |
7564 | test(const int c, volatile int v) | |
7565 | { | |
7566 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7567 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7568 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7569 | auto ac = c; | |
7570 | auto av = v; | |
7571 | auto sumi = ac + av + 'x'; | |
7572 | auto sumf = ac + av + 1.0; | |
7573 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7574 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7575 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7576 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7577 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7578 | return (sumf > 0.0) ? sumi : add(c, v); | |
7579 | } | |
7580 | ||
7581 | } | |
7582 | ||
7583 | namespace test_noexcept | |
7584 | { | |
7585 | ||
7586 | int f() { return 0; } | |
7587 | int g() noexcept { return 0; } | |
7588 | ||
7589 | static_assert(noexcept(f()) == false, ""); | |
7590 | static_assert(noexcept(g()) == true, ""); | |
7591 | ||
7592 | } | |
7593 | ||
7594 | namespace test_constexpr | |
7595 | { | |
7596 | ||
7597 | template < typename CharT > | |
7598 | unsigned long constexpr | |
7599 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7600 | { | |
7601 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7602 | } | |
7603 | ||
7604 | template < typename CharT > | |
7605 | unsigned long constexpr | |
7606 | strlen_c(const CharT *const s) noexcept | |
7607 | { | |
7608 | return strlen_c_r(s, 0UL); | |
7609 | } | |
7610 | ||
7611 | static_assert(strlen_c("") == 0UL, ""); | |
7612 | static_assert(strlen_c("1") == 1UL, ""); | |
7613 | static_assert(strlen_c("example") == 7UL, ""); | |
7614 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7615 | ||
7616 | } | |
7617 | ||
7618 | namespace test_rvalue_references | |
7619 | { | |
7620 | ||
7621 | template < int N > | |
7622 | struct answer | |
7623 | { | |
7624 | static constexpr int value = N; | |
7625 | }; | |
7626 | ||
7627 | answer<1> f(int&) { return answer<1>(); } | |
7628 | answer<2> f(const int&) { return answer<2>(); } | |
7629 | answer<3> f(int&&) { return answer<3>(); } | |
7630 | ||
7631 | void | |
7632 | test() | |
7633 | { | |
7634 | int i = 0; | |
7635 | const int c = 0; | |
7636 | static_assert(decltype(f(i))::value == 1, ""); | |
7637 | static_assert(decltype(f(c))::value == 2, ""); | |
7638 | static_assert(decltype(f(0))::value == 3, ""); | |
7639 | } | |
7640 | ||
7641 | } | |
7642 | ||
7643 | namespace test_uniform_initialization | |
7644 | { | |
7645 | ||
7646 | struct test | |
7647 | { | |
7648 | static const int zero {}; | |
7649 | static const int one {1}; | |
7650 | }; | |
7651 | ||
7652 | static_assert(test::zero == 0, ""); | |
7653 | static_assert(test::one == 1, ""); | |
7654 | ||
7655 | } | |
7656 | ||
7657 | namespace test_lambdas | |
7658 | { | |
7659 | ||
7660 | void | |
7661 | test1() | |
7662 | { | |
7663 | auto lambda1 = [](){}; | |
7664 | auto lambda2 = lambda1; | |
7665 | lambda1(); | |
7666 | lambda2(); | |
7667 | } | |
7668 | ||
7669 | int | |
7670 | test2() | |
7671 | { | |
7672 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7673 | auto b = []() -> int { return '0'; }(); | |
7674 | auto c = [=](){ return a + b; }(); | |
7675 | auto d = [&](){ return c; }(); | |
7676 | auto e = [a, &b](int x) mutable { | |
7677 | const auto identity = [](int y){ return y; }; | |
7678 | for (auto i = 0; i < a; ++i) | |
7679 | a += b--; | |
7680 | return x + identity(a + b); | |
7681 | }(0); | |
7682 | return a + b + c + d + e; | |
7683 | } | |
7684 | ||
7685 | int | |
7686 | test3() | |
7687 | { | |
7688 | const auto nullary = [](){ return 0; }; | |
7689 | const auto unary = [](int x){ return x; }; | |
7690 | using nullary_t = decltype(nullary); | |
7691 | using unary_t = decltype(unary); | |
7692 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7693 | const auto higher2nd = [unary](nullary_t f1){ | |
7694 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7695 | }; | |
7696 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7697 | } | |
7698 | ||
7699 | } | |
7700 | ||
7701 | namespace test_variadic_templates | |
7702 | { | |
7703 | ||
7704 | template <int...> | |
7705 | struct sum; | |
7706 | ||
7707 | template <int N0, int... N1toN> | |
7708 | struct sum<N0, N1toN...> | |
7709 | { | |
7710 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7711 | }; | |
7712 | ||
7713 | template <> | |
7714 | struct sum<> | |
7715 | { | |
7716 | static constexpr auto value = 0; | |
7717 | }; | |
7718 | ||
7719 | static_assert(sum<>::value == 0, ""); | |
7720 | static_assert(sum<1>::value == 1, ""); | |
7721 | static_assert(sum<23>::value == 23, ""); | |
7722 | static_assert(sum<1, 2>::value == 3, ""); | |
7723 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7724 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7725 | ||
7726 | } | |
7727 | ||
7728 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7729 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7730 | // because of this. | |
7731 | namespace test_template_alias_sfinae | |
7732 | { | |
7733 | ||
7734 | struct foo {}; | |
7735 | ||
7736 | template<typename T> | |
7737 | using member = typename T::member_type; | |
7738 | ||
7739 | template<typename T> | |
7740 | void func(...) {} | |
7741 | ||
7742 | template<typename T> | |
7743 | void func(member<T>*) {} | |
7744 | ||
7745 | void test(); | |
7746 | ||
7747 | void test() { func<foo>(0); } | |
7748 | ||
7749 | } | |
7750 | ||
7751 | } // namespace cxx11 | |
7752 | ||
7753 | #endif // __cplusplus >= 201103L | |
7754 | ||
7755 | ||
7756 | ||
7757 | _ACEOF | |
7758 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7759 | eval $cachevar=yes | |
7760 | else | |
7761 | eval $cachevar=no | |
7762 | fi | |
7763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7764 | CXX="$ac_save_CXX" | |
7765 | fi | |
7766 | eval ac_res=\$$cachevar | |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7768 | $as_echo "$ac_res" >&6; } | |
7769 | if eval test x\$$cachevar = xyes; then | |
7770 | CXX="$CXX $switch" | |
7771 | if test -n "$CXXCPP" ; then | |
7772 | CXXCPP="$CXXCPP $switch" | |
7773 | fi | |
7774 | ac_success=yes | |
7775 | break | |
7776 | fi | |
7777 | done | |
7778 | if test x$ac_success = xyes; then | |
7779 | break | |
7780 | fi | |
7781 | done | |
7782 | fi | |
7783 | CXX_FOR_BUILD="$CXX" | |
7784 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7785 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7786 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7787 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7788 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7789 | ac_ext=c | |
7790 | ac_cpp='$CPP $CPPFLAGS' | |
7791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7794 | ||
7795 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7796 | if test x$ac_success = xno; then | |
7797 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7798 | fi | |
7799 | fi | |
7800 | if test x$ac_success = xno; then | |
7801 | HAVE_CXX11_FOR_BUILD=0 | |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7803 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7804 | else | |
7805 | HAVE_CXX11_FOR_BUILD=1 | |
7806 | ||
7807 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7808 | ||
7809 | fi | |
7810 | ||
7811 | ||
7812 | fi | |
46070488 JM |
7813 | fi |
7814 | ||
592c90ff KG |
7815 | # Used for setting $lt_cv_objdir |
7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7817 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7818 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7819 | $as_echo_n "(cached) " >&6 |
7820 | else | |
7821 | rm -f .libs 2>/dev/null | |
7822 | mkdir .libs 2>/dev/null | |
7823 | if test -d .libs; then | |
7824 | lt_cv_objdir=.libs | |
7825 | else | |
7826 | # MS-DOS does not allow filenames that begin with a dot. | |
7827 | lt_cv_objdir=_libs | |
7828 | fi | |
7829 | rmdir .libs 2>/dev/null | |
7830 | fi | |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7832 | $as_echo "$lt_cv_objdir" >&6; } | |
7833 | objdir=$lt_cv_objdir | |
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | cat >>confdefs.h <<_ACEOF | |
7840 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7841 | _ACEOF | |
7842 | ||
7843 | ||
7844 | ||
acd26225 | 7845 | # Check for GMP, MPFR and MPC |
3a5729ea | 7846 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7847 | gmpinc= |
e69bf64b | 7848 | have_gmp=no |
acd26225 KG |
7849 | |
7850 | # Specify a location for mpc | |
7851 | # check for this first so it ends up on the link line before mpfr. | |
7852 | ||
5213506e RW |
7853 | # Check whether --with-mpc was given. |
7854 | if test "${with_mpc+set}" = set; then : | |
7855 | withval=$with_mpc; | |
7856 | fi | |
acd26225 | 7857 | |
acd26225 | 7858 | |
9965e3cd | 7859 | # Check whether --with-mpc-include was given. |
5213506e RW |
7860 | if test "${with_mpc_include+set}" = set; then : |
7861 | withval=$with_mpc_include; | |
7862 | fi | |
acd26225 | 7863 | |
acd26225 | 7864 | |
9965e3cd | 7865 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7866 | if test "${with_mpc_lib+set}" = set; then : |
7867 | withval=$with_mpc_lib; | |
7868 | fi | |
acd26225 | 7869 | |
acd26225 KG |
7870 | |
7871 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7872 | gmplibs="-L$with_mpc/lib $gmplibs" |
7873 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7874 | fi |
7875 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7876 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7877 | fi |
7878 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7879 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7880 | fi |
7881 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7882 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7883 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7884 | # Do not test the mpc version. Assume that it is sufficient, since |
7885 | # it is in the source tree, and the library has not been built yet | |
7886 | # but it would be included on the link line in the version check below | |
7887 | # hence making the test fail. | |
3a5729ea | 7888 | have_gmp=yes |
acd26225 | 7889 | fi |
e69bf64b | 7890 | |
bebf829d PB |
7891 | # Specify a location for mpfr |
7892 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7893 | |
5213506e RW |
7894 | # Check whether --with-mpfr-dir was given. |
7895 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 7896 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
7897 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
7898 | fi | |
7899 | ||
bebf829d PB |
7900 | |
7901 | ||
5213506e RW |
7902 | # Check whether --with-mpfr was given. |
7903 | if test "${with_mpfr+set}" = set; then : | |
7904 | withval=$with_mpfr; | |
7905 | fi | |
1c710c3c | 7906 | |
bebf829d | 7907 | |
9965e3cd | 7908 | # Check whether --with-mpfr-include was given. |
5213506e RW |
7909 | if test "${with_mpfr_include+set}" = set; then : |
7910 | withval=$with_mpfr_include; | |
7911 | fi | |
1c710c3c | 7912 | |
8a877c9c | 7913 | |
9965e3cd | 7914 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
7915 | if test "${with_mpfr_lib+set}" = set; then : |
7916 | withval=$with_mpfr_lib; | |
7917 | fi | |
8a877c9c | 7918 | |
bebf829d PB |
7919 | |
7920 | if test "x$with_mpfr" != x; then | |
7921 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 7922 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 7923 | fi |
8a877c9c | 7924 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 7925 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
7926 | fi |
7927 | if test "x$with_mpfr_lib" != x; then | |
7928 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
7929 | fi | |
e69bf64b | 7930 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
7931 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
7932 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 7933 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 7934 | fi |
00f35794 BE |
7935 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
7936 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
7937 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
7938 | # Do not test the mpfr version. Assume that it is sufficient, since |
7939 | # it is in the source tree, and the library has not been built yet | |
7940 | # but it would be included on the link line in the version check below | |
7941 | # hence making the test fail. | |
7942 | have_gmp=yes | |
7943 | fi | |
bebf829d | 7944 | |
6de9cd9a | 7945 | # Specify a location for gmp |
1c710c3c | 7946 | |
5213506e RW |
7947 | # Check whether --with-gmp-dir was given. |
7948 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 7949 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
7950 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
7951 | fi | |
7952 | ||
6de9cd9a | 7953 | |
6de9cd9a | 7954 | |
5213506e RW |
7955 | # Check whether --with-gmp was given. |
7956 | if test "${with_gmp+set}" = set; then : | |
7957 | withval=$with_gmp; | |
7958 | fi | |
1c710c3c | 7959 | |
6de9cd9a | 7960 | |
9965e3cd | 7961 | # Check whether --with-gmp-include was given. |
5213506e RW |
7962 | if test "${with_gmp_include+set}" = set; then : |
7963 | withval=$with_gmp_include; | |
7964 | fi | |
1c710c3c | 7965 | |
8a877c9c | 7966 | |
9965e3cd | 7967 | # Check whether --with-gmp-lib was given. |
5213506e RW |
7968 | if test "${with_gmp_lib+set}" = set; then : |
7969 | withval=$with_gmp_lib; | |
7970 | fi | |
8a877c9c KG |
7971 | |
7972 | ||
6de9cd9a | 7973 | |
bebf829d PB |
7974 | if test "x$with_gmp" != x; then |
7975 | gmplibs="-L$with_gmp/lib $gmplibs" | |
7976 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 7977 | fi |
8a877c9c KG |
7978 | if test "x$with_gmp_include" != x; then |
7979 | gmpinc="-I$with_gmp_include $gmpinc" | |
7980 | fi | |
7981 | if test "x$with_gmp_lib" != x; then | |
7982 | gmplibs="-L$with_gmp_lib $gmplibs" | |
7983 | fi | |
e69bf64b | 7984 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 7985 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 7986 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 7987 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 7988 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 7989 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
7990 | # Do not test the gmp version. Assume that it is sufficient, since |
7991 | # it is in the source tree, and the library has not been built yet | |
7992 | # but it would be included on the link line in the version check below | |
7993 | # hence making the test fail. | |
7994 | have_gmp=yes | |
7995 | fi | |
6de9cd9a | 7996 | |
d943d7c4 | 7997 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
7998 | have_gmp=yes |
7999 | saved_CFLAGS="$CFLAGS" | |
8000 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8001 | # Check for the recommended and required versions of GMP. |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8003 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
8004 | |
8005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
8006 | /* end confdefs.h. */ |
8007 | #include "gmp.h" | |
8008 | int | |
8009 | main () | |
8010 | { | |
8011 | ||
8012 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8013 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8014 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8015 | choke me |
8016 | #endif | |
8017 | ||
8018 | ; | |
8019 | return 0; | |
8020 | } | |
8021 | _ACEOF | |
8022 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8024 | /* end confdefs.h. */ |
362c6d2f | 8025 | #include <gmp.h> |
1c710c3c DJ |
8026 | int |
8027 | main () | |
8028 | { | |
6de9cd9a | 8029 | |
362c6d2f KG |
8030 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8031 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8032 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8033 | choke me |
8034 | #endif | |
1c710c3c DJ |
8035 | |
8036 | ; | |
8037 | return 0; | |
8038 | } | |
8039 | _ACEOF | |
5213506e RW |
8040 | if ac_fn_c_try_compile "$LINENO"; then : |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8042 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8043 | else |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8045 | $as_echo "buggy but acceptable" >&6; } | |
8046 | fi | |
8047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8048 | else |
5213506e RW |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8050 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8051 | fi |
5213506e | 8052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8053 | |
acd26225 | 8054 | # If we have GMP, check the MPFR version. |
e69bf64b | 8055 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8056 | # Check for the recommended and required versions of MPFR. |
8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8058 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8060 | /* end confdefs.h. */ |
70ec446f | 8061 | #include <gmp.h> |
e69bf64b | 8062 | #include <mpfr.h> |
1c710c3c DJ |
8063 | int |
8064 | main () | |
8065 | { | |
e48d66a9 | 8066 | |
8be34204 | 8067 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8068 | choke me |
8069 | #endif | |
1c710c3c DJ |
8070 | |
8071 | ; | |
8072 | return 0; | |
8073 | } | |
8074 | _ACEOF | |
5213506e RW |
8075 | if ac_fn_c_try_compile "$LINENO"; then : |
8076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8077 | /* end confdefs.h. */ |
a3993f33 | 8078 | #include <gmp.h> |
e69bf64b | 8079 | #include <mpfr.h> |
1c710c3c DJ |
8080 | int |
8081 | main () | |
8082 | { | |
a3993f33 | 8083 | |
8be34204 | 8084 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8085 | choke me |
8086 | #endif | |
acd26225 KG |
8087 | |
8088 | ; | |
8089 | return 0; | |
8090 | } | |
8091 | _ACEOF | |
5213506e RW |
8092 | if ac_fn_c_try_compile "$LINENO"; then : |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8094 | $as_echo "yes" >&6; } | |
acd26225 | 8095 | else |
5213506e RW |
8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8097 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8098 | fi |
5213506e | 8099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8100 | else |
5213506e RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8102 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8103 | fi |
5213506e | 8104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8105 | fi |
8106 | ||
8107 | # Check for the MPC header version. | |
3a5729ea | 8108 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 8109 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8111 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8113 | /* end confdefs.h. */ |
8114 | #include <mpc.h> | |
8115 | int | |
8116 | main () | |
8117 | { | |
8118 | ||
362c6d2f KG |
8119 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8120 | choke me | |
8121 | #endif | |
8122 | ||
8123 | ; | |
8124 | return 0; | |
8125 | } | |
8126 | _ACEOF | |
8127 | if ac_fn_c_try_compile "$LINENO"; then : | |
8128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8129 | /* end confdefs.h. */ | |
8130 | #include <mpc.h> | |
8131 | int | |
8132 | main () | |
8133 | { | |
8134 | ||
8135 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8136 | choke me |
8137 | #endif | |
8138 | ||
8139 | ; | |
8140 | return 0; | |
8141 | } | |
8142 | _ACEOF | |
5213506e RW |
8143 | if ac_fn_c_try_compile "$LINENO"; then : |
8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8145 | $as_echo "yes" >&6; } |
362c6d2f KG |
8146 | else |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8148 | $as_echo "buggy but acceptable" >&6; } | |
8149 | fi | |
8150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8151 | else |
5213506e | 8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8153 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8154 | fi |
5213506e | 8155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8156 | fi |
8157 | ||
8158 | # Now check the MPFR library. | |
8159 | if test x"$have_gmp" = xyes; then | |
8160 | saved_LIBS="$LIBS" | |
8161 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8163 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 8164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8165 | /* end confdefs.h. */ |
3a5729ea | 8166 | #include <mpc.h> |
acd26225 KG |
8167 | int |
8168 | main () | |
8169 | { | |
8170 | ||
8171 | mpfr_t n; | |
8172 | mpfr_t x; | |
3a5729ea | 8173 | mpc_t c; |
acd26225 KG |
8174 | int t; |
8175 | mpfr_init (n); | |
8176 | mpfr_init (x); | |
90ca6847 TB |
8177 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8178 | mpfr_erfc (n, x, MPFR_RNDN); | |
8179 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8180 | mpfr_clear(n); |
8181 | mpfr_clear(x); | |
8182 | mpc_init2 (c, 53); | |
8183 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8184 | mpc_cosh (c, c, MPC_RNDNN); | |
8185 | mpc_pow (c, c, c, MPC_RNDNN); | |
8186 | mpc_acosh (c, c, MPC_RNDNN); | |
8187 | mpc_clear (c); | |
1c710c3c DJ |
8188 | |
8189 | ; | |
8190 | return 0; | |
8191 | } | |
8192 | _ACEOF | |
5213506e RW |
8193 | if ac_fn_c_try_link "$LINENO"; then : |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8195 | $as_echo "yes" >&6; } | |
1c710c3c | 8196 | else |
5213506e RW |
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8198 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8199 | fi |
5213506e RW |
8200 | rm -f core conftest.err conftest.$ac_objext \ |
8201 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8202 | LIBS="$saved_LIBS" |
8203 | fi | |
8204 | ||
e69bf64b | 8205 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8206 | |
362c6d2f KG |
8207 | # The library versions listed in the error message below should match |
8208 | # the HARD-minimums enforced above. | |
e69bf64b | 8209 | if test x$have_gmp != xyes; then |
8be34204 | 8210 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
8211 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8212 | their locations. Source code for these libraries can be found at | |
8213 | their respective hosting sites as well as at | |
aeebd94c | 8214 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
8215 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8216 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8217 | make sure that you have installed both the libraries and the header | |
8218 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 8219 | fi |
70ec446f KG |
8220 | fi |
8221 | ||
acd26225 KG |
8222 | # Flags needed for both GMP, MPFR and/or MPC. |
8223 | ||
8224 | ||
6de9cd9a DN |
8225 | |
8226 | ||
8227 | ||
9e3eba15 | 8228 | |
0ff2d841 | 8229 | |
0b21f5d3 | 8230 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8231 | |
0b21f5d3 EB |
8232 | # Check whether --with-stage1-libs was given. |
8233 | if test "${with_stage1_libs+set}" = set; then : | |
8234 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8235 | stage1_libs= | |
00020c16 | 8236 | else |
0b21f5d3 | 8237 | stage1_libs=$withval |
00020c16 ILT |
8238 | fi |
8239 | else | |
5dc85f7e | 8240 | stage1_libs= |
5213506e RW |
8241 | fi |
8242 | ||
00020c16 ILT |
8243 | |
8244 | ||
aac9103b TT |
8245 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8246 | # default is yes if gcc is being built; no otherwise. The reason for | |
8247 | # this default is that gdb is sometimes linked against GNU Source | |
8248 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8249 | # this case, -static-libstdc++ will cause crashes. | |
8250 | ||
8251 | # Check whether --with-static-standard-libraries was given. | |
8252 | if test "${with_static_standard_libraries+set}" = set; then : | |
8253 | withval=$with_static_standard_libraries; | |
8254 | else | |
8255 | with_static_standard_libraries=auto | |
8256 | fi | |
8257 | ||
8258 | if test "$with_static_standard_libraries" = auto; then | |
8259 | with_static_standard_libraries=$have_compiler | |
8260 | fi | |
8261 | ||
0b21f5d3 | 8262 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8263 | |
0b21f5d3 EB |
8264 | # Check whether --with-stage1-ldflags was given. |
8265 | if test "${with_stage1_ldflags+set}" = set; then : | |
8266 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8267 | stage1_ldflags= | |
00020c16 | 8268 | else |
0b21f5d3 | 8269 | stage1_ldflags=$withval |
00020c16 ILT |
8270 | fi |
8271 | else | |
0b21f5d3 EB |
8272 | stage1_ldflags= |
8273 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8274 | # if supported. But if the user explicitly specified the libraries to use, | |
8275 | # trust that they are doing what they want. | |
aac9103b TT |
8276 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8277 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8278 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8279 | fi | |
5213506e RW |
8280 | fi |
8281 | ||
00020c16 ILT |
8282 | |
8283 | ||
5dc85f7e | 8284 | # Libraries to use for stage2 and later builds. |
00020c16 | 8285 | |
5213506e RW |
8286 | # Check whether --with-boot-libs was given. |
8287 | if test "${with_boot_libs+set}" = set; then : | |
8288 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8289 | poststage1_libs= |
8290 | else | |
8291 | poststage1_libs=$withval | |
8292 | fi | |
8293 | else | |
5dc85f7e | 8294 | poststage1_libs= |
5213506e RW |
8295 | fi |
8296 | ||
00020c16 ILT |
8297 | |
8298 | ||
ed2eaa9f ILT |
8299 | # Linker flags to use for stage2 and later builds. |
8300 | ||
8301 | # Check whether --with-boot-ldflags was given. | |
8302 | if test "${with_boot_ldflags+set}" = set; then : | |
8303 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8304 | poststage1_ldflags= | |
8305 | else | |
8306 | poststage1_ldflags=$withval | |
8307 | fi | |
8308 | else | |
8309 | poststage1_ldflags= | |
bec93d73 ILT |
8310 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8311 | # statically. But if the user explicitly specified the libraries to | |
8312 | # use, trust that they are doing what they want. | |
8313 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8314 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8315 | fi | |
8316 | fi | |
8317 | ||
8318 | ||
8319 | ||
e357a5e0 | 8320 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8321 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8322 | |
8323 | ||
33ad93b9 RG |
8324 | # Check whether --with-isl was given. |
8325 | if test "${with_isl+set}" = set; then : | |
8326 | withval=$with_isl; | |
5213506e | 8327 | fi |
f8bf9252 | 8328 | |
f8bf9252 | 8329 | |
eae1a5d4 | 8330 | # Treat --without-isl as a request to disable |
625afa23 | 8331 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8332 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8333 | # Check for isl |
625afa23 RG |
8334 | |
8335 | ||
33ad93b9 RG |
8336 | # Check whether --with-isl-include was given. |
8337 | if test "${with_isl_include+set}" = set; then : | |
8338 | withval=$with_isl_include; | |
5213506e RW |
8339 | fi |
8340 | ||
f8bf9252 | 8341 | |
33ad93b9 RG |
8342 | # Check whether --with-isl-lib was given. |
8343 | if test "${with_isl_lib+set}" = set; then : | |
8344 | withval=$with_isl_lib; | |
5213506e | 8345 | fi |
f8bf9252 | 8346 | |
f8bf9252 | 8347 | |
33ad93b9 RG |
8348 | # Check whether --enable-isl-version-check was given. |
8349 | if test "${enable_isl_version_check+set}" = set; then : | |
8350 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8351 | else | |
8352 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8353 | fi |
8354 | ||
8355 | ||
33ad93b9 RG |
8356 | # Initialize isllibs and islinc. |
8357 | case $with_isl in | |
8358 | no) | |
8359 | isllibs= | |
8360 | islinc= | |
8361 | ;; | |
8362 | "" | yes) | |
8363 | ;; | |
8364 | *) | |
8365 | isllibs="-L$with_isl/lib" | |
8366 | islinc="-I$with_isl/include" | |
8367 | ;; | |
8368 | esac | |
8369 | if test "x${with_isl_include}" != x ; then | |
8370 | islinc="-I$with_isl_include" | |
8371 | fi | |
8372 | if test "x${with_isl_lib}" != x; then | |
8373 | isllibs="-L$with_isl_lib" | |
8374 | fi | |
8375 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8376 | && test -d ${srcdir}/isl; then | |
8377 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8378 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8379 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8381 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8382 | fi |
7d32a440 | 8383 | |
eae1a5d4 RG |
8384 | isllibs="${isllibs} -lisl" |
8385 | ||
7d32a440 | 8386 | |
7d32a440 | 8387 | |
9847828b RB |
8388 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8389 | _isl_saved_CFLAGS=$CFLAGS | |
8390 | _isl_saved_LDFLAGS=$LDFLAGS | |
8391 | _isl_saved_LIBS=$LIBS | |
8392 | ||
8393 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8394 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8395 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8396 | |
f877b3ad RB |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8398 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8400 | /* end confdefs.h. */ |
f877b3ad | 8401 | #include <isl/schedule.h> |
622dbadf BC |
8402 | int |
8403 | main () | |
8404 | { | |
f877b3ad | 8405 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8406 | ; |
8407 | return 0; | |
8408 | } | |
8409 | _ACEOF | |
8410 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8411 | gcc_cv_isl=yes |
622dbadf BC |
8412 | else |
8413 | gcc_cv_isl=no | |
8414 | fi | |
8415 | rm -f core conftest.err conftest.$ac_objext \ | |
8416 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8418 | $as_echo "$gcc_cv_isl" >&6; } | |
8419 | ||
560d18d3 | 8420 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8422 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8423 | fi |
8424 | ||
9847828b RB |
8425 | CFLAGS=$_isl_saved_CFLAGS |
8426 | LDFLAGS=$_isl_saved_LDFLAGS | |
8427 | LIBS=$_isl_saved_LIBS | |
8428 | fi | |
8429 | ||
8430 | ||
f8bf9252 | 8431 | |
f8bf9252 | 8432 | |
33ad93b9 RG |
8433 | |
8434 | ||
33ad93b9 RG |
8435 | if test "x${with_isl}" = xno; then |
8436 | graphite_requested=no | |
8437 | elif test "x${with_isl}" != x \ | |
8438 | || test "x${with_isl_include}" != x \ | |
8439 | || test "x${with_isl_lib}" != x ; then | |
8440 | graphite_requested=yes | |
8441 | else | |
8442 | graphite_requested=no | |
7d32a440 | 8443 | fi |
d789184e | 8444 | |
d789184e SP |
8445 | |
8446 | ||
33ad93b9 RG |
8447 | if test "${gcc_cv_isl}" = no ; then |
8448 | isllibs= | |
8449 | islinc= | |
8450 | fi | |
8451 | ||
8452 | if test "${graphite_requested}" = yes \ | |
8453 | && test "x${isllibs}" = x \ | |
8454 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8455 | |
22e05272 | 8456 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8457 | fi |
f8bf9252 | 8458 | |
d32ef397 | 8459 | |
d32ef397 AS |
8460 | fi |
8461 | ||
e357a5e0 | 8462 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8463 | if test "x$with_isl" = xno || |
625afa23 | 8464 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8465 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8466 | islinc= |
32d024bf RG |
8467 | fi |
8468 | ||
625afa23 RG |
8469 | |
8470 | ||
8471 | ||
d7f09764 DN |
8472 | # Check for LTO support. |
8473 | # Check whether --enable-lto was given. | |
8474 | if test "${enable_lto+set}" = set; then : | |
8475 | enableval=$enable_lto; enable_lto=$enableval | |
8476 | else | |
8477 | enable_lto=yes; default_enable_lto=yes | |
8478 | fi | |
8479 | ||
8480 | ||
7413962d | 8481 | |
9a02962b DK |
8482 | |
8483 | ||
8484 | target_elf=no | |
8485 | case $target in | |
8486 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8487 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8488 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8489 | nvptx-*-none) |
9a02962b DK |
8490 | target_elf=no |
8491 | ;; | |
8492 | *) | |
8493 | target_elf=yes | |
8494 | ;; | |
8495 | esac | |
8496 | ||
8497 | if test $target_elf = yes; then : | |
48215350 DK |
8498 | # ELF platforms build the lto-plugin always. |
8499 | build_lto_plugin=yes | |
9a02962b | 8500 | |
9a02962b DK |
8501 | else |
8502 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8503 | case $target in |
deeba76a | 8504 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8505 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8506 | *) enable_lto=no ;; |
8507 | esac | |
9a02962b | 8508 | else |
db50fe7d IS |
8509 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8510 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8511 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8512 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8513 | # -flto it won't be needed until after installation anyway. | |
8514 | case $target in | |
9e530bcd | 8515 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8516 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8517 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8518 | fi |
8519 | ;; | |
8520 | esac | |
8521 | fi | |
1cd0b716 | 8522 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8523 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8524 | case $target in |
48215350 | 8525 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8526 | *) ;; |
8527 | esac | |
48215350 | 8528 | |
9a02962b DK |
8529 | fi |
8530 | ||
d7f09764 | 8531 | |
45b3824d TS |
8532 | # Check whether --enable-linker-plugin-configure-flags was given. |
8533 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8534 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8535 | else | |
8536 | extra_linker_plugin_configure_flags= | |
8537 | fi | |
8538 | ||
8539 | ||
8540 | # Check whether --enable-linker-plugin-flags was given. | |
8541 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8542 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8543 | else | |
8544 | extra_linker_plugin_flags= | |
8545 | fi | |
8546 | ||
8547 | ||
8548 | ||
cdfee50a NS |
8549 | # Enable --enable-host-shared. |
8550 | # Checked early to determine whether jit is an 'all' language | |
8551 | # Check whether --enable-host-shared was given. | |
8552 | if test "${enable_host_shared+set}" = set; then : | |
8553 | enableval=$enable_host_shared; host_shared=$enableval | |
a1d2b162 IS |
8554 | case $target in |
8555 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8556 | if test x$host_shared != xyes ; then | |
8557 | # PIC is the default, and actually cannot be switched off. | |
8558 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8559 | host_shared=yes | |
8560 | fi ;; | |
8561 | *) ;; | |
8562 | esac | |
cdfee50a | 8563 | else |
a1d2b162 IS |
8564 | case $target in |
8565 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8566 | *) host_shared=no ;; | |
8567 | esac | |
cdfee50a NS |
8568 | fi |
8569 | ||
8570 | ||
f8bf9252 | 8571 | |
0823efed | 8572 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8573 | stage1_languages=,c, |
2805b53a | 8574 | |
00020c16 | 8575 | # Target libraries that we bootstrap. |
ad1e5170 | 8576 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8577 | |
55ffb5ed NN |
8578 | # Figure out what language subdirectories are present. |
8579 | # Look if the user specified --enable-languages="..."; if not, use | |
8580 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8581 | # go away some day. | |
8582 | # NB: embedded tabs in this IF block -- do not untabify | |
8583 | if test -d ${srcdir}/gcc; then | |
8584 | if test x"${enable_languages+set}" != xset; then | |
8585 | if test x"${LANGUAGES+set}" = xset; then | |
8586 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8587 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8588 | else |
cdfee50a | 8589 | enable_languages=default |
55ffb5ed NN |
8590 | fi |
8591 | else | |
8592 | if test x"${enable_languages}" = x || | |
8593 | test x"${enable_languages}" = xyes; | |
8594 | then | |
6b1786aa | 8595 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8596 | exit 1 |
8597 | fi | |
8598 | fi | |
8599 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8600 | ||
7f26dfa3 FXC |
8601 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8602 | # and make the substitution. | |
8603 | case ,${enable_languages}, in | |
8604 | *,f95,*) | |
6b1786aa | 8605 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8606 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8607 | ;; | |
8608 | esac | |
8609 | ||
0823efed DN |
8610 | # If bootstrapping, C++ must be enabled. |
8611 | case ",$enable_languages,:$enable_bootstrap" in | |
8612 | *,c++,*:*) ;; | |
8613 | *:yes) | |
ff3ac0f4 ILT |
8614 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8615 | enable_languages="${enable_languages},c++" | |
8616 | else | |
22e05272 | 8617 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8618 | fi |
8619 | ;; | |
8620 | esac | |
8621 | ||
55ffb5ed NN |
8622 | # First scan to see if an enabled language requires some other language. |
8623 | # We assume that a given config-lang.in will list all the language | |
8624 | # front ends it requires, even if some are required indirectly. | |
8625 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8626 | case ${lang_frag} in | |
8627 | ..) ;; | |
8628 | # The odd quoting in the next line works around | |
8629 | # an apparent bug in bash 1.12 on linux. | |
8630 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8631 | *) | |
69ecd18f ILT |
8632 | # From the config-lang.in, get $language, $lang_requires, and |
8633 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8634 | language= |
8635 | lang_requires= | |
69ecd18f | 8636 | lang_requires_boot_languages= |
d4360477 NS |
8637 | # set srcdir during sourcing lang_frag to the gcc dir. |
8638 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8639 | # polutes this shell | |
8640 | saved_srcdir=${srcdir} | |
8641 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8642 | srcdir=${saved_srcdir} | |
69ecd18f | 8643 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8644 | case ,${enable_languages}, in |
8645 | *,$other,*) ;; | |
cdfee50a | 8646 | *,default,*) ;; |
55ffb5ed NN |
8647 | *,all,*) ;; |
8648 | *,$language,*) | |
8649 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8650 | enable_languages="${enable_languages},${other}" | |
8651 | ;; | |
8652 | esac | |
8653 | done | |
69ecd18f ILT |
8654 | for other in ${lang_requires_boot_languages} ; do |
8655 | if test "$other" != "c"; then | |
8656 | case ,${enable_stage1_languages}, in | |
8657 | *,$other,*) ;; | |
cdfee50a | 8658 | *,default,*) ;; |
69ecd18f ILT |
8659 | *,all,*) ;; |
8660 | *) | |
8661 | case ,${enable_languages}, in | |
8662 | *,$language,*) | |
8663 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8664 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8665 | ;; | |
8666 | esac | |
8667 | ;; | |
8668 | esac | |
8669 | fi | |
8670 | done | |
55ffb5ed NN |
8671 | ;; |
8672 | esac | |
8673 | done | |
8674 | ||
e1888513 | 8675 | new_enable_languages=,c, |
d7f09764 DN |
8676 | |
8677 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8678 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8679 | case ,${enable_languages}, in |
8680 | *,lto,*) ;; | |
8681 | *) enable_languages="${enable_languages},lto" ;; | |
8682 | esac | |
1cd0b716 | 8683 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8684 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8685 | fi |
8686 | fi | |
8687 | ||
426c1eb0 TS |
8688 | # If we're building an offloading compiler, add the LTO front end. |
8689 | if test x"$enable_as_accelerator_for" != x ; then | |
8690 | case ,${enable_languages}, in | |
8691 | *,lto,*) ;; | |
8692 | *) enable_languages="${enable_languages},lto" ;; | |
8693 | esac | |
8694 | fi | |
8695 | ||
cdfee50a | 8696 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8697 | potential_languages=,c, |
55ffb5ed | 8698 | |
4da3b0f8 ILT |
8699 | enabled_target_libs= |
8700 | disabled_target_libs= | |
8701 | ||
55ffb5ed NN |
8702 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8703 | case ${lang_frag} in | |
8704 | ..) ;; | |
8705 | # The odd quoting in the next line works around | |
8706 | # an apparent bug in bash 1.12 on linux. | |
8707 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8708 | *) | |
1c710c3c | 8709 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8710 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8711 | language= |
8712 | target_libs= | |
8713 | lang_dirs= | |
1546bb64 | 8714 | subdir_requires= |
e1888513 PB |
8715 | boot_language=no |
8716 | build_by_default=yes | |
d4360477 NS |
8717 | # set srcdir during sourcing. See above about save & restore |
8718 | saved_srcdir=${srcdir} | |
8719 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8720 | srcdir=${saved_srcdir} | |
e1888513 PB |
8721 | if test x${language} = x; then |
8722 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8723 | exit 1 | |
8724 | fi | |
8725 | ||
78767fd9 | 8726 | if test "$language" = "c++"; then |
0823efed | 8727 | boot_language=yes |
00020c16 ILT |
8728 | fi |
8729 | ||
178f875a | 8730 | add_this_lang=no |
cdfee50a NS |
8731 | # C is always enabled, so no need to add it again |
8732 | if test "$language" != "c"; then | |
8733 | case ,${enable_languages}, in | |
8734 | *,${language},*) | |
8735 | # Language was explicitly selected; include it | |
d4a10d0a | 8736 | add_this_lang=yes |
cdfee50a NS |
8737 | ;; |
8738 | *,all,*) | |
8739 | # All languages are enabled | |
8740 | add_this_lang=all | |
8741 | ;; | |
8742 | *,default,*) | |
8743 | # 'default' was selected, select it if it is a default language | |
178f875a | 8744 | add_this_lang=${build_by_default} |
cdfee50a NS |
8745 | ;; |
8746 | esac | |
8747 | fi | |
6de9cd9a | 8748 | |
1546bb64 | 8749 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8750 | for i in $subdir_requires; do |
b6348cb3 | 8751 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8752 | case ${add_this_lang} in |
8753 | yes) | |
1546bb64 | 8754 | # Specifically requested language; tell them. |
22e05272 | 8755 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8756 | ;; |
cdfee50a NS |
8757 | all) |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8759 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8760 | add_this_lang=unsupported | |
8761 | ;; | |
1546bb64 PB |
8762 | *) |
8763 | # Silently disable. | |
e1888513 | 8764 | add_this_lang=unsupported |
1546bb64 PB |
8765 | ;; |
8766 | esac | |
8767 | done | |
8768 | ||
e1888513 | 8769 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8770 | case ${add_this_lang}:${language}:${have_gnat} in |
8771 | yes:ada:no) | |
e1888513 | 8772 | # Specifically requested language; tell them. |
22e05272 | 8773 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8774 | ;; |
cdfee50a NS |
8775 | all:ada:no) |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8777 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8778 | add_this_lang=unsupported | |
8779 | ;; | |
e1888513 PB |
8780 | *:ada:no) |
8781 | # Silently disable. | |
8782 | add_this_lang=unsupported | |
8783 | ;; | |
8784 | esac | |
8785 | ||
5fee5ec3 IB |
8786 | # Disable D if no preexisting GDC is available. |
8787 | case ${add_this_lang}:${language}:${have_gdc} in | |
8788 | yes:d:no) | |
8789 | # Specifically requested language; tell them. | |
8790 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8791 | ;; | |
8792 | all:d:no) | |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8794 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8795 | add_this_lang=unsupported | |
8796 | ;; | |
8797 | *:d:no) | |
8798 | # Silently disable. | |
8799 | add_this_lang=unsupported | |
8800 | ;; | |
8801 | esac | |
8802 | ||
cdfee50a | 8803 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8804 | # but not if building for Mingw. All code in Windows |
8805 | # is position independent code (PIC). | |
c83027f3 NB |
8806 | case $target in |
8807 | *mingw*) ;; | |
8808 | *) | |
8809 | case ${add_this_lang}:${language}:${host_shared} in | |
8810 | yes:jit:no) | |
8811 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8812 | as_fn_error $? " |
cdfee50a NS |
8813 | Enabling language \"jit\" requires --enable-host-shared. |
8814 | ||
8815 | --enable-host-shared typically slows the rest of the compiler down by | |
8816 | a few %, so you must explicitly enable it. | |
8817 | ||
8818 | If you want to build both the jit and the regular compiler, it is often | |
8819 | best to do this via two separate configure/builds, in separate | |
8820 | directories, to avoid imposing the performance cost of | |
8821 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8822 | ;; |
8823 | all:jit:no) | |
8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8825 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8826 | add_this_lang=unsupported |
8827 | ;; | |
8828 | *:jit:no) | |
8829 | # Silently disable. | |
8830 | add_this_lang=unsupported | |
8831 | ;; | |
8832 | esac | |
8833 | ;; | |
8834 | esac | |
cdfee50a NS |
8835 | |
8836 | # Disable a language that is unsupported by the target. | |
8837 | case "${add_this_lang}: $unsupported_languages " in | |
8838 | no:*) ;; | |
8839 | unsupported:*) ;; | |
8840 | *:*" $language "*) | |
8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8842 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8843 | add_this_lang=unsupported |
4fab7234 HPN |
8844 | ;; |
8845 | esac | |
8846 | ||
6de9cd9a | 8847 | case $add_this_lang in |
e1888513 | 8848 | unsupported) |
55ffb5ed | 8849 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8850 | disabled_target_libs="$disabled_target_libs $target_libs" |
8851 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8852 | ;; |
e1888513 PB |
8853 | no) |
8854 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8855 | disabled_target_libs="$disabled_target_libs $target_libs" |
8856 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8857 | potential_languages="${potential_languages}${language}," |
8858 | ;; | |
cdfee50a | 8859 | all|yes) |
e1888513 PB |
8860 | new_enable_languages="${new_enable_languages}${language}," |
8861 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8862 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8863 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8864 | case "${boot_language}:,$enable_stage1_languages," in |
8865 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8866 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8867 | case ",$stage1_languages," in |
8868 | *,$language,* | ,yes, | ,all,) ;; | |
8869 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8870 | esac | |
00020c16 | 8871 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 8872 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
8873 | ;; |
8874 | esac | |
8875 | ;; | |
55ffb5ed NN |
8876 | esac |
8877 | ;; | |
8878 | esac | |
8879 | done | |
8880 | ||
4da3b0f8 ILT |
8881 | # Add target libraries which are only needed for disabled languages |
8882 | # to noconfigdirs. | |
8883 | if test -n "$disabled_target_libs"; then | |
8884 | for dir in $disabled_target_libs; do | |
8885 | case " $enabled_target_libs " in | |
8886 | *" ${dir} "*) ;; | |
8887 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8888 | esac | |
8889 | done | |
8890 | fi | |
8891 | ||
5213506e RW |
8892 | # Check whether --enable-stage1-languages was given. |
8893 | if test "${enable_stage1_languages+set}" = set; then : | |
8894 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8895 | ,no,|,,) |
8896 | # Set it to something that will have no effect in the loop below | |
8897 | enable_stage1_languages=c ;; | |
8898 | ,yes,) | |
8899 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8900 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8901 | *,all,*) | |
8902 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8903 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8904 | esac | |
8905 | ||
8906 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8907 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8908 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8909 | case $potential_languages in | |
8910 | *,$i,*) | |
8911 | case $stage1_languages in | |
8912 | *,$i,*) ;; | |
8913 | *) stage1_languages="$stage1_languages$i," ;; | |
8914 | esac ;; | |
8915 | *) | |
8916 | case $missing_languages in | |
8917 | *,$i,*) ;; | |
8918 | *) missing_languages="$missing_languages$i," ;; | |
8919 | esac ;; | |
8920 | esac | |
8921 | done | |
5213506e RW |
8922 | fi |
8923 | ||
e1888513 PB |
8924 | |
8925 | # Remove leading/trailing commas that were added for simplicity | |
8926 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 8927 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
8928 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
8929 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
8930 | ||
55ffb5ed | 8931 | if test "x$missing_languages" != x; then |
22e05272 | 8932 | as_fn_error $? " |
0cf085e4 | 8933 | The following requested languages could not be built: ${missing_languages} |
5213506e | 8934 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 8935 | fi |
55ffb5ed NN |
8936 | if test "x$new_enable_languages" != "x$enable_languages"; then |
8937 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 8938 | enable_languages="$new_enable_languages" |
55ffb5ed | 8939 | fi |
e1888513 | 8940 | |
1c710c3c | 8941 | |
b2eaac4a | 8942 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
8943 | fi |
8944 | ||
27079765 AH |
8945 | # Handle --disable-<component> generically. |
8946 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
8947 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
8948 | varname=`echo $dirname | sed -e s/+/_/g` |
8949 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
8950 | noconfigdirs="$noconfigdirs $dir" |
8951 | fi | |
8952 | done | |
8953 | ||
43c40f3e RO |
8954 | # Check for Boehm's garbage collector |
8955 | # Check whether --enable-objc-gc was given. | |
8956 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
8957 | enableval=$enable_objc_gc; |
8958 | fi | |
8959 | ||
8960 | ||
8961 | # Check whether --with-target-bdw-gc was given. | |
8962 | if test "${with_target_bdw_gc+set}" = set; then : | |
8963 | withval=$with_target_bdw_gc; | |
8964 | fi | |
8965 | ||
8966 | ||
8967 | # Check whether --with-target-bdw-gc-include was given. | |
8968 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
8969 | withval=$with_target_bdw_gc_include; | |
8970 | fi | |
8971 | ||
8972 | ||
8973 | # Check whether --with-target-bdw-gc-lib was given. | |
8974 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
8975 | withval=$with_target_bdw_gc_lib; | |
8976 | fi | |
8977 | ||
8978 | ||
8979 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
8981 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
8982 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
8984 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
8985 | else |
8986 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 8987 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 8988 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 8989 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
8990 | else |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
8992 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
8993 | fi | |
8994 | fi | |
43c40f3e RO |
8995 | esac |
8996 | ||
5e9d6aa4 | 8997 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 8998 | case ,${enable_languages}, in |
1007a55c | 8999 | *,c++,*) |
5e9d6aa4 | 9000 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9001 | case "${noconfigdirs}" in |
9002 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9003 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9004 | ;; |
9005 | *) ;; | |
9006 | esac | |
9007 | ;; | |
99776ebd | 9008 | *) |
5e9d6aa4 | 9009 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9010 | ;; |
9011 | esac | |
9012 | ||
dc614a83 AB |
9013 | # If gcc/ is not in the source tree then we'll not be building a |
9014 | # target compiler, assume in that case we don't want to build any | |
9015 | # target libraries or tools. | |
9016 | # | |
9017 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9018 | # this configure script, but don't always have target tools available. | |
9019 | if test ! -d ${srcdir}/gcc; then | |
9020 | skipdirs="${skipdirs} ${target_configdirs}" | |
9021 | fi | |
9022 | ||
ee6a22df L |
9023 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9024 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9025 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9026 | ||
9027 | notsupp="" | |
9028 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9029 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9030 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9031 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9032 | if test -r $srcdir/$dirname/configure ; then | |
9033 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9034 | true | |
9035 | else | |
9036 | notsupp="$notsupp $dir" | |
9037 | fi | |
9038 | fi | |
9039 | fi | |
ee6a22df L |
9040 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9041 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9042 | if test -r $srcdir/$dirname/configure ; then | |
9043 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9044 | true | |
9045 | else | |
9046 | notsupp="$notsupp $dir" | |
9047 | fi | |
9048 | fi | |
9049 | fi | |
55ffb5ed NN |
9050 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9051 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9052 | if test -r $srcdir/$dirname/configure ; then | |
9053 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9054 | true | |
9055 | else | |
9056 | notsupp="$notsupp $dir" | |
9057 | fi | |
9058 | fi | |
9059 | fi | |
9060 | done | |
9061 | ||
55ffb5ed NN |
9062 | # Quietly strip out all directories which aren't configurable in this tree. |
9063 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9064 | # is now the case. | |
23f6b2f9 PB |
9065 | build_configdirs_all="$build_configdirs" |
9066 | build_configdirs= | |
9067 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9068 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9069 | if test -f ${srcdir}/$j/configure ; then |
9070 | build_configdirs="${build_configdirs} $i" | |
9071 | fi | |
9072 | done | |
9073 | ||
55ffb5ed NN |
9074 | configdirs_all="$configdirs" |
9075 | configdirs= | |
9076 | for i in ${configdirs_all} ; do | |
9077 | if test -f ${srcdir}/$i/configure ; then | |
9078 | configdirs="${configdirs} $i" | |
9079 | fi | |
9080 | done | |
23f6b2f9 | 9081 | |
55ffb5ed NN |
9082 | target_configdirs_all="$target_configdirs" |
9083 | target_configdirs= | |
9084 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9085 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9086 | if test -f ${srcdir}/$j/configure ; then |
9087 | target_configdirs="${target_configdirs} $i" | |
9088 | fi | |
9089 | done | |
9090 | ||
45b3824d TS |
9091 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9092 | # so we have to add it after the preceding checks. | |
9093 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9094 | then | |
9095 | case " $configdirs " in | |
9096 | *" libiberty "*) | |
9097 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9098 | configdirs="$configdirs libiberty-linker-plugin" | |
9099 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9100 | --with-libiberty=../libiberty-linker-plugin";; | |
9101 | *) | |
22e05272 | 9102 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9103 | esac |
9104 | fi | |
9105 | ||
fca38047 TS |
9106 | # Sometimes we have special requirements for the host libiberty. |
9107 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 9108 | extra_host_zlib_configure_flags= |
fca38047 TS |
9109 | case " $configdirs " in |
9110 | *" lto-plugin "* | *" libcc1 "*) | |
9111 | # When these are to be built as shared libraries, the same applies to | |
9112 | # libiberty. | |
9113 | extra_host_libiberty_configure_flags=--enable-shared | |
9114 | ;; | |
1c01ebf6 L |
9115 | *" bfd "*) |
9116 | # When bfd is to be built as a shared library, the same applies to | |
9117 | # zlib. | |
9118 | if test "$enable_shared" = "yes"; then | |
9119 | extra_host_zlib_configure_flags=--enable-host-shared | |
9120 | fi | |
9121 | ;; | |
fca38047 TS |
9122 | esac |
9123 | ||
9124 | ||
1c01ebf6 | 9125 | |
55ffb5ed NN |
9126 | # Produce a warning message for the subdirs we can't configure. |
9127 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9128 | # FSF releases, it's important to let people know when their machine isn't | |
9129 | # supported by the one or two programs in a package. | |
9130 | ||
9131 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9132 | # If $appdirs is non-empty, at least one of those directories must still | |
9133 | # be configured, or we error out. (E.g., if the gas release supports a | |
9134 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9135 | # pretend that all is well.) | |
9136 | if test -n "$appdirs" ; then | |
9137 | for dir in $appdirs ; do | |
9138 | if test -r $dir/Makefile.in ; then | |
9139 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9140 | appdirs="" | |
9141 | break | |
9142 | fi | |
23f6b2f9 | 9143 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9144 | appdirs="" |
9145 | break | |
9146 | fi | |
9147 | fi | |
9148 | done | |
9149 | if test -n "$appdirs" ; then | |
9150 | echo "*** This configuration is not supported by this package." 1>&2 | |
9151 | exit 1 | |
9152 | fi | |
9153 | fi | |
9154 | # Okay, some application will build, or we don't care to check. Still | |
9155 | # notify of subdirs not getting built. | |
9156 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9157 | echo " ${notsupp}" 1>&2 | |
9158 | echo " (Any other directories should still work fine.)" 1>&2 | |
9159 | fi | |
9160 | ||
9161 | case "$host" in | |
9162 | *msdosdjgpp*) | |
9163 | enable_gdbtk=no ;; | |
9164 | esac | |
9165 | ||
c3a86da9 DJ |
9166 | # To find our prefix, in gcc_cv_tool_prefix. |
9167 | ||
9168 | # The user is always right. | |
9169 | if test "${PATH_SEPARATOR+set}" != set; then | |
9170 | echo "#! /bin/sh" >conf$$.sh | |
9171 | echo "exit 0" >>conf$$.sh | |
9172 | chmod +x conf$$.sh | |
9173 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9174 | PATH_SEPARATOR=';' | |
9175 | else | |
9176 | PATH_SEPARATOR=: | |
9177 | fi | |
9178 | rm -f conf$$.sh | |
9179 | fi | |
9180 | ||
9181 | ||
3c36aa6b JJ |
9182 | get_gcc_base_ver="cat" |
9183 | ||
9184 | # Check whether --with-gcc-major-version-only was given. | |
9185 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9186 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9187 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9188 | fi |
9189 | ||
9190 | fi | |
9191 | ||
9192 | ||
9193 | ||
9194 | ||
9195 | ||
c3a86da9 DJ |
9196 | |
9197 | if test "x$exec_prefix" = xNONE; then | |
9198 | if test "x$prefix" = xNONE; then | |
9199 | gcc_cv_tool_prefix=$ac_default_prefix | |
9200 | else | |
9201 | gcc_cv_tool_prefix=$prefix | |
9202 | fi | |
9203 | else | |
9204 | gcc_cv_tool_prefix=$exec_prefix | |
9205 | fi | |
9206 | ||
9207 | # If there is no compiler in the tree, use the PATH only. In any | |
9208 | # case, if there is no compiler in the tree nobody should use | |
9209 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9210 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9211 | if test x$with_gcc_major_version_only = xyes ; then |
9212 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9213 | else | |
9214 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9215 | fi | |
c3a86da9 DJ |
9216 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9217 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9218 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9219 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9220 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9221 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9222 | else | |
9223 | gcc_cv_tool_dirs= | |
9224 | fi | |
9225 | ||
9226 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9227 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9228 | fi | |
9229 | ||
9230 | ||
9231 | ||
55ffb5ed NN |
9232 | copy_dirs= |
9233 | ||
1c710c3c | 9234 | |
5213506e RW |
9235 | # Check whether --with-build-sysroot was given. |
9236 | if test "${with_build_sysroot+set}" = set; then : | |
9237 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9238 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9239 | fi | |
9240 | else | |
9241 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9242 | fi |
526635cb MM |
9243 | |
9244 | ||
c8aea42c | 9245 | |
5213506e RW |
9246 | |
9247 | # Check whether --with-debug-prefix-map was given. | |
9248 | if test "${with_debug_prefix_map+set}" = set; then : | |
9249 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9250 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9251 | for debug_map in $withval; do | |
9252 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9253 | done | |
9254 | fi | |
9255 | else | |
9256 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9257 | fi |
9258 | ||
c8aea42c PB |
9259 | |
9260 | ||
1c8bd6a3 PB |
9261 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9262 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9263 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9264 | # We want to ensure that TARGET libraries (which we know are built with | |
9265 | # gcc) are built with "-O2 -g", so include those options when setting | |
9266 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9267 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9268 | if test "x${is_cross_compiler}" = xyes; then |
9269 | CFLAGS_FOR_TARGET="-g -O2" | |
9270 | else | |
9271 | CFLAGS_FOR_TARGET=$CFLAGS | |
9272 | case " $CFLAGS " in | |
9273 | *" -O2 "*) ;; | |
9274 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9275 | esac | |
9276 | case " $CFLAGS " in | |
9277 | *" -g "* | *" -g3 "*) ;; | |
9278 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9279 | esac | |
9280 | fi | |
1c8bd6a3 PB |
9281 | fi |
9282 | ||
9283 | ||
9284 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9285 | if test "x${is_cross_compiler}" = xyes; then |
9286 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9287 | else | |
9288 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9289 | case " $CXXFLAGS " in | |
9290 | *" -O2 "*) ;; | |
9291 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9292 | esac | |
9293 | case " $CXXFLAGS " in | |
9294 | *" -g "* | *" -g3 "*) ;; | |
9295 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9296 | esac | |
9297 | fi | |
1c8bd6a3 PB |
9298 | fi |
9299 | ||
9300 | ||
6f57bdf6 DK |
9301 | |
9302 | ||
55ffb5ed NN |
9303 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9304 | # the named directory are copied to $(tooldir)/sys-include. | |
9305 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9306 | if test x${is_cross_compiler} = xno ; then | |
9307 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9308 | exit 1 | |
9309 | fi | |
9310 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9311 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9312 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9313 | fi |
9314 | fi | |
9315 | ||
9316 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9317 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9318 | # are permitted. | |
9319 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9320 | if test x${is_cross_compiler} = xno ; then | |
9321 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9322 | exit 1 | |
9323 | fi | |
9324 | if test x"${with_libs}" != xyes ; then | |
9325 | # Copy the libraries in reverse order, so that files in the first named | |
9326 | # library override files in subsequent libraries. | |
c3a86da9 | 9327 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9328 | for l in ${with_libs}; do |
1c710c3c | 9329 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9330 | done |
9331 | fi | |
9332 | fi | |
9333 | ||
d7f09764 | 9334 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9335 | # |
9336 | # This is done by determining whether or not the appropriate directory | |
9337 | # is available, and by checking whether or not specific configurations | |
9338 | # have requested that this magic not happen. | |
1c710c3c DJ |
9339 | # |
9340 | # The command line options always override the explicit settings in | |
6b1786aa | 9341 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9342 | # |
1c710c3c | 9343 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9344 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9345 | # --without-gnu-ld options for the configure script. Similarly, if |
9346 | # the default is to use the included zlib and you don't want to do that, | |
9347 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9348 | |
9349 | if test x${use_gnu_as} = x && | |
9350 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9351 | with_gnu_as=yes | |
9352 | extra_host_args="$extra_host_args --with-gnu-as" | |
9353 | fi | |
9354 | ||
9355 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9356 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9357 | with_gnu_ld=yes |
9358 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9359 | fi | |
9360 | ||
d7f09764 DN |
9361 | if test x${use_included_zlib} = x && |
9362 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9363 | : | |
9364 | else | |
9365 | with_system_zlib=yes | |
9366 | extra_host_args="$extra_host_args --with-system-zlib" | |
9367 | fi | |
9368 | ||
e8b05380 PB |
9369 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9370 | # can detect this case. | |
9371 | ||
9372 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9373 | with_newlib=yes | |
9374 | extra_host_args="$extra_host_args --with-newlib" | |
9375 | fi | |
9376 | ||
55ffb5ed NN |
9377 | # Handle ${copy_dirs} |
9378 | set fnord ${copy_dirs} | |
9379 | shift | |
9380 | while test $# != 0 ; do | |
9381 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9382 | : | |
9383 | else | |
9384 | echo Copying $1 to $2 | |
9385 | ||
9386 | # Use the install script to create the directory and all required | |
9387 | # parent directories. | |
9388 | if test -d $2 ; then | |
9389 | : | |
9390 | else | |
9391 | echo >config.temp | |
9392 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9393 | fi | |
9394 | ||
9395 | # Copy the directory, assuming we have tar. | |
9396 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9397 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9398 | ||
9399 | # It is the responsibility of the user to correctly adjust all | |
9400 | # symlinks. If somebody can figure out how to handle them correctly | |
9401 | # here, feel free to add the code. | |
9402 | ||
9403 | echo $1 > $2/COPIED | |
9404 | fi | |
9405 | shift; shift | |
9406 | done | |
9407 | ||
e8b05380 PB |
9408 | # Determine a target-dependent exec_prefix that the installed |
9409 | # gcc will search in. Keep this list sorted by triplet, with | |
9410 | # the *-*-osname triplets last. | |
9411 | md_exec_prefix= | |
9412 | case "${target}" in | |
30b74385 | 9413 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9414 | md_exec_prefix=/dev/env/DJDIR/bin |
9415 | ;; | |
e8b05380 | 9416 | *-*-hpux* | \ |
e8b05380 | 9417 | *-*-nto-qnx* | \ |
6de66370 | 9418 | *-*-solaris2*) |
e8b05380 PB |
9419 | md_exec_prefix=/usr/ccs/bin |
9420 | ;; | |
9421 | esac | |
9422 | ||
671aa708 NN |
9423 | extra_arflags_for_target= |
9424 | extra_nmflags_for_target= | |
9425 | extra_ranlibflags_for_target= | |
9426 | target_makefile_frag=/dev/null | |
9427 | case "${target}" in | |
58e24147 AM |
9428 | spu-*-*) |
9429 | target_makefile_frag="config/mt-spu" | |
9430 | ;; | |
d896cc4d | 9431 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9432 | target_makefile_frag="config/mt-sde" |
9433 | ;; | |
1ec3b87b RS |
9434 | mipsisa*-*-elfoabi*) |
9435 | target_makefile_frag="config/mt-mips-elfoabi" | |
9436 | ;; | |
08d0963a RS |
9437 | mips*-*-*linux* | mips*-*-gnu*) |
9438 | target_makefile_frag="config/mt-mips-gnu" | |
9439 | ;; | |
707f1839 SL |
9440 | nios2-*-elf*) |
9441 | target_makefile_frag="config/mt-nios2-elf" | |
9442 | ;; | |
76052545 EB |
9443 | *-*-linux-android*) |
9444 | target_makefile_frag="config/mt-android" | |
9445 | ;; | |
416ac4d4 | 9446 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9447 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9448 | ;; |
9449 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9450 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9451 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9452 | # harmless if we're using GNU nm or ar. | |
9453 | extra_arflags_for_target=" -X32_64" | |
9454 | extra_nmflags_for_target=" -B -X32_64" | |
9455 | ;; | |
671aa708 NN |
9456 | esac |
9457 | ||
9458 | alphaieee_frag=/dev/null | |
9459 | case $target in | |
9460 | alpha*-*-*) | |
9461 | # This just makes sure to use the -mieee option to build target libs. | |
9462 | # This should probably be set individually by each library. | |
9463 | alphaieee_frag="config/mt-alphaieee" | |
9464 | ;; | |
9465 | esac | |
9466 | ||
9467 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9468 | # the target libraries, similarly if it is not specified, use -Os | |
9469 | # on selected platforms. | |
9470 | ospace_frag=/dev/null | |
9471 | case "${enable_target_optspace}:${target}" in | |
9472 | yes:*) | |
9473 | ospace_frag="config/mt-ospace" | |
9474 | ;; | |
9475 | :d30v-*) | |
9476 | ospace_frag="config/mt-d30v" | |
9477 | ;; | |
d9063947 | 9478 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9479 | ospace_frag="config/mt-ospace" |
9480 | ;; | |
9481 | no:* | :*) | |
9482 | ;; | |
9483 | *) | |
9484 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9485 | ;; | |
9486 | esac | |
9487 | ||
671aa708 NN |
9488 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9489 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9490 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9491 | build_tooldir=${tooldir} |
9492 | ||
671aa708 NN |
9493 | # Create a .gdbinit file which runs the one in srcdir |
9494 | # and tells GDB to look there for source files. | |
9495 | ||
9496 | if test -r ${srcdir}/.gdbinit ; then | |
9497 | case ${srcdir} in | |
9498 | .) ;; | |
9499 | *) cat > ./.gdbinit <<EOF | |
9500 | # ${NO_EDIT} | |
9501 | dir ${srcdir} | |
9502 | dir . | |
9503 | source ${srcdir}/.gdbinit | |
9504 | EOF | |
9505 | ;; | |
9506 | esac | |
9507 | fi | |
9508 | ||
671aa708 NN |
9509 | # Make sure that the compiler is able to generate an executable. If it |
9510 | # can't, we are probably in trouble. We don't care whether we can run the | |
9511 | # executable--we might be using a cross compiler--we only care whether it | |
9512 | # can be created. At this point the main configure script has set CC. | |
9513 | we_are_ok=no | |
9514 | echo "int main () { return 0; }" > conftest.c | |
9515 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9516 | if test $? = 0 ; then | |
9517 | if test -s conftest || test -s conftest.exe ; then | |
9518 | we_are_ok=yes | |
9519 | fi | |
1c710c3c | 9520 | fi |
671aa708 NN |
9521 | case $we_are_ok in |
9522 | no) | |
9523 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9524 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9525 | rm -f conftest* | |
9526 | exit 1 | |
9527 | ;; | |
9528 | esac | |
9529 | rm -f conftest* | |
9530 | ||
d89f0ad6 | 9531 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9532 | case "${host}" in |
9533 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9534 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9535 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9536 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9537 | esac | |
9538 | ||
d89f0ad6 AL |
9539 | # On systems where the dynamic library environment variable is PATH, |
9540 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9541 | # built executables to PATH. | |
9542 | if test "$RPATH_ENVVAR" = PATH; then | |
9543 | GCC_SHLIB_SUBDIR=/shlib | |
9544 | else | |
9545 | GCC_SHLIB_SUBDIR= | |
9546 | fi | |
9547 | ||
beeda1d9 JJ |
9548 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9549 | case $enable_bootstrap in | |
9550 | yes) | |
9551 | bootstrap_suffix=bootstrap | |
9552 | BUILD_CONFIG=bootstrap-debug | |
9553 | ;; | |
9554 | no) | |
9555 | bootstrap_suffix=no-bootstrap | |
9556 | BUILD_CONFIG= | |
9557 | ;; | |
9558 | esac | |
9559 | ||
9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9561 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9562 | ||
9563 | ||
9564 | # Check whether --with-build-config was given. | |
9565 | if test "${with_build_config+set}" = set; then : | |
9566 | withval=$with_build_config; case $with_build_config in | |
9567 | yes) with_build_config= ;; | |
9568 | no) with_build_config= BUILD_CONFIG= ;; | |
9569 | esac | |
9570 | fi | |
9571 | ||
9572 | ||
9573 | if test "x${with_build_config}" != x; then | |
9574 | BUILD_CONFIG=$with_build_config | |
9575 | else | |
9576 | case $BUILD_CONFIG in | |
9577 | bootstrap-debug) | |
9578 | if echo "int f (void) { return 0; }" > conftest.c && | |
9579 | ${CC} -c conftest.c && | |
9580 | mv conftest.o conftest.o.g0 && | |
9581 | ${CC} -c -g conftest.c && | |
9582 | mv conftest.o conftest.o.g && | |
9583 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9584 | : | |
9585 | else | |
9586 | BUILD_CONFIG= | |
9587 | fi | |
9588 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9589 | ;; | |
9590 | esac | |
9591 | fi | |
9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9593 | $as_echo "$BUILD_CONFIG" >&6; } | |
9594 | ||
9595 | ||
9596 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9598 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9599 | # Check whether --enable-vtable-verify was given. | |
9600 | if test "${enable_vtable_verify+set}" = set; then : | |
9601 | enableval=$enable_vtable_verify; case "$enableval" in | |
9602 | yes) enable_vtable_verify=yes ;; | |
9603 | no) enable_vtable_verify=no ;; | |
9604 | *) enable_vtable_verify=no;; | |
9605 | esac | |
9606 | else | |
9607 | enable_vtable_verify=no | |
9608 | fi | |
9609 | ||
9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9611 | $as_echo "$enable_vtable_verify" >&6; } | |
9612 | ||
671aa708 NN |
9613 | # Record target_configdirs and the configure arguments for target and |
9614 | # build configuration in Makefile. | |
9615 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9616 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9617 | bootstrap_fixincludes=no |
671aa708 | 9618 | |
ad1e5170 JR |
9619 | # If we are building libgomp, bootstrap it. |
9620 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9621 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9622 | fi | |
9623 | ||
beeda1d9 JJ |
9624 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9625 | # or bootstrap-ubsan, bootstrap it. | |
9626 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9627 | case "$BUILD_CONFIG" in | |
170e618e | 9628 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9629 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9630 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9631 | ;; |
9632 | esac | |
ac8701fe L |
9633 | fi |
9634 | ||
beeda1d9 JJ |
9635 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9636 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9637 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9638 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9639 | fi | |
9640 | ||
5fee5ec3 IB |
9641 | # If we are building libatomic and the list of enabled languages includes the |
9642 | # D frontend, bootstrap it. | |
9643 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9644 | case ,${enable_languages}, in | |
9645 | *,d,*) | |
9646 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9647 | ;; | |
9648 | esac | |
9649 | fi | |
9650 | ||
671aa708 NN |
9651 | # Determine whether gdb needs tk/tcl or not. |
9652 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9653 | # and in that case we want gdb to be built without tk. Ugh! | |
9654 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9655 | # so we should be able to put the 'maybe's in unconditionally and | |
9656 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9657 | # 100% sure that that's safe though. | |
e914a571 | 9658 | |
b4f96efe | 9659 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9660 | case "$enable_gdbtk" in |
9661 | no) | |
9662 | GDB_TK="" ;; | |
e914a571 AC |
9663 | yes) |
9664 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9665 | *) |
e914a571 AC |
9666 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9667 | # distro. Eventually someone will fix this and move Insight, nee | |
9668 | # gdbtk to a separate directory. | |
9669 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9670 | GDB_TK="${gdb_tk}" | |
9671 | else | |
9672 | GDB_TK="" | |
9673 | fi | |
9674 | ;; | |
671aa708 | 9675 | esac |
ef9db8d5 DJ |
9676 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9677 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9678 | |
f9d09df0 TT |
9679 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9680 | # else does, only include them if one of these is built. The Makefile | |
9681 | # provides the ordering, so it's enough here to add to the list. | |
9682 | case " ${configdirs} " in | |
9683 | *\ gdb\ *) | |
9684 | configdirs="${configdirs} gnulib gdbsupport" | |
9685 | ;; | |
9686 | *\ gdbserver\ *) | |
9687 | configdirs="${configdirs} gnulib gdbsupport" | |
9688 | ;; | |
f14c9bd4 MF |
9689 | *\ sim\ *) |
9690 | configdirs="${configdirs} gnulib" | |
9691 | ;; | |
f9d09df0 | 9692 | esac |
98e5be21 | 9693 | |
60975492 | 9694 | # Strip out unwanted targets. |
8b87bb96 NN |
9695 | |
9696 | # While at that, we remove Makefiles if we were started for recursive | |
9697 | # configuration, so that the top-level Makefile reconfigures them, | |
9698 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9699 | |
3e54529c RW |
9700 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9701 | # but now we're fixing up the Makefile ourselves with the additional | |
9702 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9703 | # extrasub-{build,host,target} not because there is any reason to split | |
9704 | # the substitutions up that way, but only to remain below the limit of | |
9705 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9706 | |
9707 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9708 | # configure will not warn you at all. | |
8b87bb96 | 9709 | |
79cd2b23 RW |
9710 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9711 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9712 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9713 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9714 | ;; |
9715 | esac | |
9716 | ||
3e54529c | 9717 | extrasub_build= |
23f6b2f9 | 9718 | for module in ${build_configdirs} ; do |
5607edfd PB |
9719 | if test -z "${no_recursion}" \ |
9720 | && test -f ${build_subdir}/${module}/Makefile; then | |
9721 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9722 | rm -f ${build_subdir}/${module}/Makefile | |
9723 | fi | |
3e54529c | 9724 | extrasub_build="$extrasub_build |
5607edfd PB |
9725 | /^@if build-$module\$/d |
9726 | /^@endif build-$module\$/d | |
da34ca3f | 9727 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9728 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9729 | /^@endif build-$module-$bootstrap_suffix\$/d |
9730 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9731 | done |
3e54529c | 9732 | extrasub_host= |
5607edfd | 9733 | for module in ${configdirs} ; do |
a6fbc1e2 | 9734 | if test -z "${no_recursion}"; then |
f063a9ed | 9735 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9736 | if test -f ${file}; then |
9737 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9738 | rm -f ${file} | |
9739 | fi | |
9740 | done | |
5607edfd | 9741 | fi |
9e1c8fc1 JJ |
9742 | case ${module},${bootstrap_fixincludes} in |
9743 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9744 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9745 | esac | |
3e54529c | 9746 | extrasub_host="$extrasub_host |
5607edfd PB |
9747 | /^@if $module\$/d |
9748 | /^@endif $module\$/d | |
da34ca3f | 9749 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9750 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9751 | /^@endif $module-$host_bootstrap_suffix\$/d |
9752 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9753 | done |
3e54529c | 9754 | extrasub_target= |
5607edfd PB |
9755 | for module in ${target_configdirs} ; do |
9756 | if test -z "${no_recursion}" \ | |
9757 | && test -f ${target_subdir}/${module}/Makefile; then | |
9758 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9759 | rm -f ${target_subdir}/${module}/Makefile | |
9760 | fi | |
00020c16 ILT |
9761 | |
9762 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9763 | case $bootstrap_target_libs in | |
9764 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9765 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9766 | esac | |
9767 | ||
3e54529c | 9768 | extrasub_target="$extrasub_target |
5607edfd PB |
9769 | /^@if target-$module\$/d |
9770 | /^@endif target-$module\$/d | |
da34ca3f | 9771 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9772 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9773 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9774 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9775 | done |
9776 | ||
3e54529c RW |
9777 | # Do the final fixup along with target modules. |
9778 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9779 | /^@if /,/^@endif /d |
9780 | /^@unless /d | |
9781 | /^@endunless /d" | |
671aa708 NN |
9782 | |
9783 | # Create the serialization dependencies. This uses a temporary file. | |
9784 | ||
5213506e RW |
9785 | # Check whether --enable-serial-configure was given. |
9786 | if test "${enable_serial_configure+set}" = set; then : | |
9787 | enableval=$enable_serial_configure; | |
9788 | fi | |
ade82b16 AO |
9789 | |
9790 | ||
bf1d3e81 NN |
9791 | case ${enable_serial_configure} in |
9792 | yes) | |
9793 | enable_serial_build_configure=yes | |
9794 | enable_serial_host_configure=yes | |
9795 | enable_serial_target_configure=yes | |
9796 | ;; | |
9797 | esac | |
9798 | ||
671aa708 NN |
9799 | # These force 'configure's to be done one at a time, to avoid problems |
9800 | # with contention over a shared config.cache. | |
9801 | rm -f serdep.tmp | |
ade82b16 | 9802 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9803 | olditem= |
bf1d3e81 | 9804 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9805 | for item in ${build_configdirs} ; do |
9806 | case ${olditem} in | |
9807 | "") ;; | |
ade82b16 | 9808 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9809 | esac |
9810 | olditem=${item} | |
9811 | done | |
9812 | olditem= | |
bf1d3e81 | 9813 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9814 | for item in ${configdirs} ; do |
9815 | case ${olditem} in | |
9816 | "") ;; | |
ade82b16 | 9817 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9818 | esac |
9819 | olditem=${item} | |
9820 | done | |
9821 | olditem= | |
bf1d3e81 | 9822 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9823 | for item in ${target_configdirs} ; do |
9824 | case ${olditem} in | |
9825 | "") ;; | |
ade82b16 | 9826 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9827 | esac |
9828 | olditem=${item} | |
9829 | done | |
9830 | serialization_dependencies=serdep.tmp | |
9831 | ||
9832 | ||
ade82b16 | 9833 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9834 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9835 | # might not want to pass down to subconfigures. The exception being |
9836 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9837 | # files altogether, and which should be passed on to subconfigures. | |
9838 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9839 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9840 | baseargs= |
29a63921 | 9841 | tbaseargs= |
1c710c3c DJ |
9842 | keep_next=no |
9843 | skip_next=no | |
9844 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9845 | for ac_arg |
9846 | do | |
1c710c3c DJ |
9847 | if test X"$skip_next" = X"yes"; then |
9848 | skip_next=no | |
9849 | continue | |
9850 | fi | |
9851 | if test X"$keep_next" = X"yes"; then | |
9852 | case $ac_arg in | |
9853 | *\'*) | |
9854 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9855 | esac | |
9856 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9857 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9858 | keep_next=no |
9859 | continue | |
9860 | fi | |
9861 | ||
9862 | # Handle separated arguments. Based on the logic generated by | |
9863 | # autoconf 2.59. | |
9864 | case $ac_arg in | |
9865 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9866 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9867 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9868 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9869 | separate_arg=no | |
9870 | ;; | |
9871 | -*) | |
9872 | separate_arg=yes | |
9873 | ;; | |
9874 | *) | |
9875 | separate_arg=no | |
9876 | ;; | |
9877 | esac | |
9878 | ||
29a63921 AO |
9879 | skip_targ=no |
9880 | case $ac_arg in | |
9881 | ||
9882 | --with-* | --without-*) | |
9883 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9884 | ||
9885 | case $libopt in | |
9886 | *[-_]include) | |
9887 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9888 | ;; | |
9889 | *[-_]lib) | |
9890 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9891 | ;; | |
9892 | *) | |
9893 | lib=$libopt | |
9894 | ;; | |
9895 | esac | |
9896 | ||
9897 | ||
9898 | case $lib in | |
4a9bb2aa | 9899 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9900 | # If we're processing --with-$lib, --with-$lib-include or |
9901 | # --with-$lib-lib, for one of the libs above, and target is | |
9902 | # different from host, don't pass the current argument to any | |
9903 | # target library's configure. | |
9904 | if test x$is_cross_compiler = xyes; then | |
9905 | skip_targ=yes | |
9906 | fi | |
9907 | ;; | |
9908 | esac | |
9909 | ;; | |
9910 | esac | |
9911 | ||
1c710c3c | 9912 | case "$ac_arg" in |
f1a036e4 NC |
9913 | --cache-file=/dev/null | \ |
9914 | -cache-file=/dev/null ) | |
9915 | # Handled here to avoid the test to skip args below. | |
9916 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9917 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
9918 | # Assert: $separate_arg should always be no. |
9919 | keep_next=$separate_arg | |
9920 | ;; | |
1c710c3c DJ |
9921 | --no*) |
9922 | continue | |
9923 | ;; | |
9924 | --c* | \ | |
9925 | --sr* | \ | |
9926 | --ho* | \ | |
9927 | --bu* | \ | |
9928 | --t* | \ | |
9929 | --program-* | \ | |
9930 | -cache_file* | \ | |
9931 | -srcdir* | \ | |
9932 | -host* | \ | |
9933 | -build* | \ | |
9934 | -target* | \ | |
9935 | -program-prefix* | \ | |
9936 | -program-suffix* | \ | |
9937 | -program-transform-name* ) | |
9938 | skip_next=$separate_arg | |
9939 | continue | |
9940 | ;; | |
9941 | -*) | |
9942 | # An option. Add it. | |
9943 | case $ac_arg in | |
9944 | *\'*) | |
9945 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9946 | esac | |
9947 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
9948 | if test X"$skip_targ" = Xno; then |
9949 | tbaseargs="$tbaseargs '$ac_arg'" | |
9950 | fi | |
1c710c3c DJ |
9951 | keep_next=$separate_arg |
9952 | ;; | |
9953 | *) | |
9954 | # Either a variable assignment, or a nonopt (triplet). Don't | |
9955 | # pass it down; let the Makefile handle this. | |
9956 | continue | |
9957 | ;; | |
9958 | esac | |
9959 | done | |
9960 | # Remove the initial space we just introduced and, as these will be | |
9961 | # expanded by make, quote '$'. | |
9962 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 9963 | |
43bb47c2 DJ |
9964 | # Add in --program-transform-name, after --program-prefix and |
9965 | # --program-suffix have been applied to it. Autoconf has already | |
9966 | # doubled dollar signs and backslashes in program_transform_name; we want | |
9967 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 9968 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
9969 | # Also, because we want to override the logic in subdir configure scripts to |
9970 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
9971 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
9972 | ${program_transform_name} | |
9973 | EOF_SED | |
9974 | gcc_transform_name=`cat conftestsed.out` | |
9975 | rm -f conftestsed.out | |
9976 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 9977 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
9978 | if test "$silent" = yes; then |
9979 | baseargs="$baseargs --silent" | |
29a63921 | 9980 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 9981 | fi |
0115d4a3 | 9982 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 9983 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 9984 | |
ffedf511 RW |
9985 | # Record and document user additions to sub configure arguments. |
9986 | ||
9987 | ||
9988 | ||
9989 | ||
671aa708 NN |
9990 | # For the build-side libraries, we just need to pretend we're native, |
9991 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
9992 | # desired. We can't even use the same cache file for all build-side |
9993 | # libraries, as they're compiled differently; some with C, some with | |
9994 | # C++ or with different feature-enabling options. | |
9995 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
9996 | |
9997 | # For host modules, accept cache file option, or specification as blank. | |
9998 | case "${cache_file}" in | |
9999 | "") # empty | |
10000 | cache_file_option="" ;; | |
10001 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10002 | cache_file_option="--cache-file=${cache_file}" ;; | |
10003 | *) # relative path | |
10004 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10005 | esac | |
10006 | ||
09438bde NN |
10007 | # Host dirs don't like to share a cache file either, horribly enough. |
10008 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10009 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10010 | |
29a63921 | 10011 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10012 | |
10013 | # Passing a --with-cross-host argument lets the target libraries know | |
10014 | # whether they are being built with a cross-compiler or being built | |
10015 | # native. However, it would be better to use other mechanisms to make the | |
10016 | # sorts of decisions they want to make on this basis. Please consider | |
10017 | # this option to be deprecated. FIXME. | |
10018 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10019 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10020 | fi |
10021 | ||
79e0604d FXC |
10022 | # Special user-friendly check for native x86_64-linux build, if |
10023 | # multilib is not explicitly enabled. | |
10024 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10025 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10026 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10027 | dev64=no |
10028 | echo "int main () { return 0; }" > conftest.c | |
10029 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10030 | if test $? = 0 ; then | |
10031 | if test -s conftest || test -s conftest.exe ; then | |
10032 | dev64=yes | |
10033 | fi | |
10034 | fi | |
10035 | rm -f conftest* | |
10036 | if test x${dev64} != xyes ; then | |
22e05272 | 10037 | 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 |
10038 | fi |
10039 | ;; | |
10040 | esac | |
10041 | ||
dc683a3f RW |
10042 | # Default to --enable-multilib. |
10043 | if test x${enable_multilib} = x ; then | |
671aa708 | 10044 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10045 | fi |
671aa708 NN |
10046 | |
10047 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10048 | # changed from the earlier setting of with_newlib. | |
10049 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10050 | target_configargs="--with-newlib ${target_configargs}" | |
10051 | fi | |
10052 | ||
6b9eb62c NN |
10053 | # Different target subdirs use different values of certain variables |
10054 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10055 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10056 | # it doesn't automatically accept command-line overrides of them. | |
10057 | # This means it's not safe for target subdirs to share a cache file, | |
10058 | # which is disgusting, but there you have it. Hopefully this can be | |
10059 | # fixed in future. It's still worthwhile to use a cache file for each | |
10060 | # directory. I think. | |
10061 | ||
bebcd931 MS |
10062 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10063 | # We need to pass --target, as newer autoconf's requires consistency | |
10064 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10065 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10066 | |
671aa708 NN |
10067 | FLAGS_FOR_TARGET= |
10068 | case " $target_configdirs " in | |
10069 | *" newlib "*) | |
10070 | case " $target_configargs " in | |
10071 | *" --with-newlib "*) | |
10072 | case "$target" in | |
5d571eaa | 10073 | *-cygwin*) |
443e6238 | 10074 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10075 | ;; |
671aa708 NN |
10076 | esac |
10077 | ||
10078 | # If we're not building GCC, don't discard standard headers. | |
10079 | if test -d ${srcdir}/gcc; then | |
10080 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10081 | ||
10082 | if test "${build}" != "${host}"; then | |
10083 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10084 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10085 | # to it. This is right: we don't want to search that directory | |
10086 | # for binaries, but we want the header files in there, so add | |
10087 | # them explicitly. | |
0463992b | 10088 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10089 | |
10090 | # Someone might think of using the pre-installed headers on | |
10091 | # Canadian crosses, in case the installed compiler is not fully | |
10092 | # compatible with the compiler being built. In this case, it | |
10093 | # would be better to flag an error than risking having | |
10094 | # incompatible object files being constructed. We can't | |
10095 | # guarantee that an error will be flagged, but let's hope the | |
10096 | # compiler will do it, when presented with incompatible header | |
10097 | # files. | |
10098 | fi | |
10099 | fi | |
10100 | ||
10101 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10102 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10103 | # Here host == target, so we don't need to build gcc, |
10104 | # so we don't want to discard standard headers. | |
10105 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10106 | ;; | |
10107 | *) | |
10108 | # If we're building newlib, use its generic headers last, but search | |
10109 | # for any libc-related directories first (so make it the last -B | |
10110 | # switch). | |
10111 | 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 |
10112 | |
10113 | # If we're building libgloss, find the startup file, simulator library | |
10114 | # and linker script. | |
10115 | case " $target_configdirs " in | |
10116 | *" libgloss "*) | |
10117 | # Look for startup file, simulator library and maybe linker script. | |
10118 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10119 | # Look for libnosys.a in case the target needs it. | |
10120 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10121 | # Most targets have the linker script in the source directory. | |
10122 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10123 | ;; | |
10124 | esac | |
671aa708 NN |
10125 | ;; |
10126 | esac | |
10127 | ;; | |
10128 | esac | |
10129 | ;; | |
10130 | esac | |
5d571eaa | 10131 | |
b91f0a41 | 10132 | case "$target" in |
5d571eaa OS |
10133 | x86_64-*mingw* | *-w64-mingw*) |
10134 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10135 | # however, use a symlink named 'mingw' in ${prefix} . | |
10136 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10137 | ;; | |
10138 | *-mingw*) | |
10139 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10140 | 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' | |
10141 | ;; | |
b91f0a41 | 10142 | esac |
671aa708 | 10143 | |
6691a79e ME |
10144 | # Allow the user to override the flags for |
10145 | # our build compiler if desired. | |
f019adc1 MF |
10146 | if test x"${build}" = x"${host}" ; then |
10147 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10148 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10149 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10150 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10151 | fi | |
6691a79e | 10152 | |
671aa708 NN |
10153 | # On Canadian crosses, we'll be searching the right directories for |
10154 | # the previously-installed cross compiler, so don't bother to add | |
10155 | # flags for directories within the install tree of the compiler | |
10156 | # being built; programs in there won't even run. | |
10157 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10158 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10159 | 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 |
10160 | fi |
10161 | ||
10162 | if test "x${use_gnu_ld}" = x && | |
10163 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10164 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10165 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10166 | fi |
10167 | ||
e88a2c09 DD |
10168 | # Search for other target-specific linker scripts and such. |
10169 | case "${target}" in | |
3e19841a PB |
10170 | mep*) |
10171 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10172 | ;; | |
e88a2c09 DD |
10173 | esac |
10174 | ||
671aa708 | 10175 | # Makefile fragments. |
7b61653a PE |
10176 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10177 | do | |
10178 | eval fragval=\$$frag | |
10179 | if test $fragval != /dev/null; then | |
10180 | eval $frag=${srcdir}/$fragval | |
10181 | fi | |
10182 | done | |
671aa708 NN |
10183 | |
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | # Miscellanea: directories, flags, etc. | |
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
d89f0ad6 | 10196 | |
23f6b2f9 | 10197 | # Build module lists & subconfigure args. |
671aa708 NN |
10198 | |
10199 | ||
10200 | ||
2abefe3d PB |
10201 | # Host module lists & subconfigure args. |
10202 | ||
10203 | ||
10204 | ||
aae29963 | 10205 | |
2abefe3d PB |
10206 | # Target module lists & subconfigure args. |
10207 | ||
10208 | ||
10209 | ||
10210 | # Build tools. | |
10211 | ||
10212 | ||
10213 | ||
0999159b PB |
10214 | |
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
b4c522fa | 10227 | |
3b5e8ee4 | 10228 | |
a1d2b162 IS |
10229 | |
10230 | ||
2abefe3d PB |
10231 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10232 | # on the build machine. These are used if the Makefile can't locate these | |
10233 | # programs in objdir. | |
10234 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10235 | ||
10236 | for ac_prog in 'bison -y' byacc yacc | |
10237 | do | |
1c710c3c | 10238 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10239 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10241 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10242 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10243 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10244 | else |
10245 | if test -n "$YACC"; then | |
10246 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10247 | else | |
1c710c3c DJ |
10248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10249 | for as_dir in $PATH | |
10250 | do | |
10251 | IFS=$as_save_IFS | |
10252 | test -z "$as_dir" && as_dir=. | |
5213506e | 10253 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10254 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10255 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10257 | break 2 |
10258 | fi | |
10259 | done | |
5213506e RW |
10260 | done |
10261 | IFS=$as_save_IFS | |
1c710c3c | 10262 | |
2abefe3d PB |
10263 | fi |
10264 | fi | |
1c710c3c | 10265 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10266 | if test -n "$YACC"; then |
5213506e RW |
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10268 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10269 | else |
5213506e RW |
10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10271 | $as_echo "no" >&6; } | |
2abefe3d PB |
10272 | fi |
10273 | ||
5213506e | 10274 | |
1c710c3c | 10275 | test -n "$YACC" && break |
2abefe3d PB |
10276 | done |
10277 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10278 | ||
10279 | case " $build_configdirs " in | |
10280 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10281 | esac |
10282 | ||
10283 | for ac_prog in bison | |
10284 | do | |
1c710c3c | 10285 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10286 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10288 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10289 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10290 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10291 | else |
10292 | if test -n "$BISON"; then | |
10293 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10294 | else | |
1c710c3c DJ |
10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10296 | for as_dir in $PATH | |
10297 | do | |
10298 | IFS=$as_save_IFS | |
10299 | test -z "$as_dir" && as_dir=. | |
5213506e | 10300 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10302 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10304 | break 2 |
10305 | fi | |
10306 | done | |
5213506e RW |
10307 | done |
10308 | IFS=$as_save_IFS | |
1c710c3c | 10309 | |
2abefe3d PB |
10310 | fi |
10311 | fi | |
1c710c3c | 10312 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10313 | if test -n "$BISON"; then |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10315 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10316 | else |
5213506e RW |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10318 | $as_echo "no" >&6; } | |
2abefe3d PB |
10319 | fi |
10320 | ||
5213506e | 10321 | |
1c710c3c | 10322 | test -n "$BISON" && break |
2abefe3d PB |
10323 | done |
10324 | test -n "$BISON" || BISON="$MISSING bison" | |
10325 | ||
10326 | case " $build_configdirs " in | |
10327 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10328 | esac | |
10329 | ||
10330 | for ac_prog in gm4 gnum4 m4 | |
10331 | do | |
1c710c3c | 10332 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10333 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10335 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10336 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10337 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10338 | else |
10339 | if test -n "$M4"; then | |
10340 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10341 | else | |
1c710c3c DJ |
10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10343 | for as_dir in $PATH | |
10344 | do | |
10345 | IFS=$as_save_IFS | |
10346 | test -z "$as_dir" && as_dir=. | |
5213506e | 10347 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10349 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10351 | break 2 |
10352 | fi | |
10353 | done | |
5213506e RW |
10354 | done |
10355 | IFS=$as_save_IFS | |
1c710c3c | 10356 | |
2abefe3d PB |
10357 | fi |
10358 | fi | |
1c710c3c | 10359 | M4=$ac_cv_prog_M4 |
2abefe3d | 10360 | if test -n "$M4"; then |
5213506e RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10362 | $as_echo "$M4" >&6; } | |
2abefe3d | 10363 | else |
5213506e RW |
10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10365 | $as_echo "no" >&6; } | |
2abefe3d PB |
10366 | fi |
10367 | ||
5213506e | 10368 | |
1c710c3c | 10369 | test -n "$M4" && break |
2abefe3d PB |
10370 | done |
10371 | test -n "$M4" || M4="$MISSING m4" | |
10372 | ||
10373 | case " $build_configdirs " in | |
10374 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10375 | esac | |
10376 | ||
10377 | for ac_prog in flex lex | |
10378 | do | |
1c710c3c | 10379 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10380 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10382 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10383 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10384 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10385 | else |
10386 | if test -n "$LEX"; then | |
10387 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10388 | else | |
1c710c3c DJ |
10389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10390 | for as_dir in $PATH | |
10391 | do | |
10392 | IFS=$as_save_IFS | |
10393 | test -z "$as_dir" && as_dir=. | |
5213506e | 10394 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10396 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10398 | break 2 |
10399 | fi | |
10400 | done | |
5213506e RW |
10401 | done |
10402 | IFS=$as_save_IFS | |
1c710c3c | 10403 | |
2abefe3d PB |
10404 | fi |
10405 | fi | |
1c710c3c | 10406 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10407 | if test -n "$LEX"; then |
5213506e RW |
10408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10409 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10410 | else |
5213506e RW |
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10412 | $as_echo "no" >&6; } | |
2abefe3d PB |
10413 | fi |
10414 | ||
5213506e | 10415 | |
1c710c3c | 10416 | test -n "$LEX" && break |
2abefe3d PB |
10417 | done |
10418 | test -n "$LEX" || LEX="$MISSING flex" | |
10419 | ||
10420 | case " $build_configdirs " in | |
10421 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10422 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10423 | esac | |
10424 | ||
10425 | for ac_prog in flex | |
10426 | do | |
1c710c3c | 10427 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10428 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10430 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10431 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10432 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10433 | else |
10434 | if test -n "$FLEX"; then | |
10435 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10436 | else | |
1c710c3c DJ |
10437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10438 | for as_dir in $PATH | |
10439 | do | |
10440 | IFS=$as_save_IFS | |
10441 | test -z "$as_dir" && as_dir=. | |
5213506e | 10442 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10444 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10446 | break 2 |
10447 | fi | |
10448 | done | |
5213506e RW |
10449 | done |
10450 | IFS=$as_save_IFS | |
1c710c3c | 10451 | |
2abefe3d PB |
10452 | fi |
10453 | fi | |
1c710c3c | 10454 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10455 | if test -n "$FLEX"; then |
5213506e RW |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10457 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10458 | else |
5213506e RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10460 | $as_echo "no" >&6; } | |
2abefe3d PB |
10461 | fi |
10462 | ||
5213506e | 10463 | |
1c710c3c | 10464 | test -n "$FLEX" && break |
2abefe3d PB |
10465 | done |
10466 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10467 | ||
10468 | case " $build_configdirs " in | |
10469 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10470 | esac | |
10471 | ||
10472 | for ac_prog in makeinfo | |
10473 | do | |
1c710c3c | 10474 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10475 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10477 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10478 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10479 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10480 | else |
10481 | if test -n "$MAKEINFO"; then | |
10482 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10483 | else | |
1c710c3c DJ |
10484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10485 | for as_dir in $PATH | |
10486 | do | |
10487 | IFS=$as_save_IFS | |
10488 | test -z "$as_dir" && as_dir=. | |
5213506e | 10489 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10491 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10493 | break 2 |
10494 | fi | |
10495 | done | |
5213506e RW |
10496 | done |
10497 | IFS=$as_save_IFS | |
1c710c3c | 10498 | |
2abefe3d PB |
10499 | fi |
10500 | fi | |
1c710c3c | 10501 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10502 | if test -n "$MAKEINFO"; then |
5213506e RW |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10504 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10505 | else |
5213506e RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10507 | $as_echo "no" >&6; } | |
2abefe3d PB |
10508 | fi |
10509 | ||
5213506e | 10510 | |
1c710c3c | 10511 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10512 | done |
10513 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10514 | ||
10515 | case " $build_configdirs " in | |
10516 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10517 | *) | |
10518 | ||
d18ff35a | 10519 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10520 | # higher, else we use the "missing" dummy. |
10521 | if ${MAKEINFO} --version \ | |
d18ff35a | 10522 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10523 | : |
10524 | else | |
10525 | MAKEINFO="$MISSING makeinfo" | |
10526 | fi | |
10527 | ;; | |
10528 | ||
10529 | esac | |
671aa708 | 10530 | |
2abefe3d | 10531 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10532 | |
2abefe3d PB |
10533 | for ac_prog in expect |
10534 | do | |
1c710c3c | 10535 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10536 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10538 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10539 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10540 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10541 | else |
10542 | if test -n "$EXPECT"; then | |
10543 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10544 | else | |
1c710c3c DJ |
10545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10546 | for as_dir in $PATH | |
10547 | do | |
10548 | IFS=$as_save_IFS | |
10549 | test -z "$as_dir" && as_dir=. | |
5213506e | 10550 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10552 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10554 | break 2 |
10555 | fi | |
10556 | done | |
5213506e RW |
10557 | done |
10558 | IFS=$as_save_IFS | |
1c710c3c | 10559 | |
2abefe3d PB |
10560 | fi |
10561 | fi | |
1c710c3c | 10562 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10563 | if test -n "$EXPECT"; then |
5213506e RW |
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10565 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10566 | else |
5213506e RW |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10568 | $as_echo "no" >&6; } | |
2abefe3d | 10569 | fi |
671aa708 | 10570 | |
5213506e | 10571 | |
1c710c3c | 10572 | test -n "$EXPECT" && break |
2abefe3d PB |
10573 | done |
10574 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10575 | |
2abefe3d PB |
10576 | case " $configdirs " in |
10577 | *" expect "*) | |
10578 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10579 | ;; | |
10580 | esac | |
671aa708 | 10581 | |
2abefe3d PB |
10582 | for ac_prog in runtest |
10583 | do | |
1c710c3c | 10584 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10585 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10587 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10588 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10589 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10590 | else |
10591 | if test -n "$RUNTEST"; then | |
10592 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10593 | else |
1c710c3c DJ |
10594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10595 | for as_dir in $PATH | |
10596 | do | |
10597 | IFS=$as_save_IFS | |
10598 | test -z "$as_dir" && as_dir=. | |
5213506e | 10599 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10601 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10603 | break 2 |
10604 | fi | |
10605 | done | |
5213506e RW |
10606 | done |
10607 | IFS=$as_save_IFS | |
1c710c3c | 10608 | |
2abefe3d PB |
10609 | fi |
10610 | fi | |
1c710c3c | 10611 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10612 | if test -n "$RUNTEST"; then |
5213506e RW |
10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10614 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10615 | else |
5213506e RW |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10617 | $as_echo "no" >&6; } | |
2abefe3d | 10618 | fi |
671aa708 | 10619 | |
5213506e | 10620 | |
1c710c3c | 10621 | test -n "$RUNTEST" && break |
2abefe3d PB |
10622 | done |
10623 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10624 | |
2abefe3d PB |
10625 | case " $configdirs " in |
10626 | *" dejagnu "*) | |
c394e891 | 10627 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10628 | ;; |
10629 | esac | |
671aa708 NN |
10630 | |
10631 | ||
671aa708 | 10632 | # Host tools. |
ca9f4b81 AO |
10633 | ncn_tool_prefix= |
10634 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10635 | ncn_target_tool_prefix= | |
10636 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10637 | ||
278a7a38 AO |
10638 | |
10639 | ||
10640 | if test -n "$AR"; then | |
10641 | ac_cv_prog_AR=$AR | |
10642 | elif test -n "$ac_cv_prog_AR"; then | |
10643 | AR=$ac_cv_prog_AR | |
10644 | fi | |
10645 | ||
10646 | if test -n "$ac_cv_prog_AR"; then | |
10647 | for ncn_progname in ar; do | |
10648 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10649 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10651 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10652 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10653 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10654 | else |
10655 | if test -n "$AR"; then | |
10656 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10657 | else | |
10658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10659 | for as_dir in $PATH | |
10660 | do | |
10661 | IFS=$as_save_IFS | |
10662 | test -z "$as_dir" && as_dir=. | |
5213506e | 10663 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10665 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10667 | break 2 |
10668 | fi | |
10669 | done | |
5213506e RW |
10670 | done |
10671 | IFS=$as_save_IFS | |
278a7a38 AO |
10672 | |
10673 | fi | |
10674 | fi | |
10675 | AR=$ac_cv_prog_AR | |
10676 | if test -n "$AR"; then | |
5213506e RW |
10677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10678 | $as_echo "$AR" >&6; } | |
278a7a38 | 10679 | else |
5213506e RW |
10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10681 | $as_echo "no" >&6; } | |
278a7a38 AO |
10682 | fi |
10683 | ||
5213506e | 10684 | |
278a7a38 AO |
10685 | done |
10686 | fi | |
10687 | ||
10688 | for ncn_progname in ar; do | |
2693c0b0 PB |
10689 | if test -n "$ncn_tool_prefix"; then |
10690 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10691 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10693 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10694 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10695 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10696 | else |
10697 | if test -n "$AR"; then | |
10698 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10699 | else | |
1c710c3c DJ |
10700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10701 | for as_dir in $PATH | |
10702 | do | |
10703 | IFS=$as_save_IFS | |
10704 | test -z "$as_dir" && as_dir=. | |
5213506e | 10705 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10706 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10707 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10709 | break 2 |
10710 | fi | |
10711 | done | |
5213506e RW |
10712 | done |
10713 | IFS=$as_save_IFS | |
1c710c3c | 10714 | |
ca9f4b81 AO |
10715 | fi |
10716 | fi | |
1c710c3c | 10717 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10718 | if test -n "$AR"; then |
5213506e RW |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10720 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10721 | else |
5213506e RW |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10723 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10724 | fi |
10725 | ||
5213506e | 10726 | |
2693c0b0 PB |
10727 | fi |
10728 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10729 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10730 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10732 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10733 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10734 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10735 | else |
2693c0b0 | 10736 | if test -n "$AR"; then |
af71363e AS |
10737 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10738 | else | |
1c710c3c DJ |
10739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10740 | for as_dir in $PATH | |
10741 | do | |
10742 | IFS=$as_save_IFS | |
10743 | test -z "$as_dir" && as_dir=. | |
5213506e | 10744 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10746 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10748 | break 2 |
10749 | fi | |
10750 | done | |
5213506e RW |
10751 | done |
10752 | IFS=$as_save_IFS | |
1c710c3c | 10753 | |
ca9f4b81 AO |
10754 | fi |
10755 | fi | |
1c710c3c | 10756 | AR=$ac_cv_prog_AR |
2693c0b0 | 10757 | if test -n "$AR"; then |
5213506e RW |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10759 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10760 | else |
5213506e RW |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10762 | $as_echo "no" >&6; } | |
ca9f4b81 | 10763 | fi |
1c710c3c | 10764 | |
5213506e | 10765 | |
2693c0b0 PB |
10766 | fi |
10767 | test -n "$ac_cv_prog_AR" && break | |
10768 | done | |
10769 | ||
10770 | if test -z "$ac_cv_prog_AR" ; then | |
10771 | set dummy ar | |
10772 | if test $build = $host ; then | |
10773 | AR="$2" | |
ca9f4b81 | 10774 | else |
2693c0b0 | 10775 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10776 | fi |
ca9f4b81 AO |
10777 | fi |
10778 | ||
278a7a38 AO |
10779 | |
10780 | ||
10781 | if test -n "$AS"; then | |
10782 | ac_cv_prog_AS=$AS | |
10783 | elif test -n "$ac_cv_prog_AS"; then | |
10784 | AS=$ac_cv_prog_AS | |
10785 | fi | |
10786 | ||
10787 | if test -n "$ac_cv_prog_AS"; then | |
10788 | for ncn_progname in as; do | |
10789 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10790 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10792 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10793 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10794 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10795 | else |
10796 | if test -n "$AS"; then | |
10797 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10798 | else | |
10799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10800 | for as_dir in $PATH | |
10801 | do | |
10802 | IFS=$as_save_IFS | |
10803 | test -z "$as_dir" && as_dir=. | |
5213506e | 10804 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10806 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10808 | break 2 |
10809 | fi | |
10810 | done | |
5213506e RW |
10811 | done |
10812 | IFS=$as_save_IFS | |
278a7a38 AO |
10813 | |
10814 | fi | |
10815 | fi | |
10816 | AS=$ac_cv_prog_AS | |
10817 | if test -n "$AS"; then | |
5213506e RW |
10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10819 | $as_echo "$AS" >&6; } | |
278a7a38 | 10820 | else |
5213506e RW |
10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10822 | $as_echo "no" >&6; } | |
278a7a38 AO |
10823 | fi |
10824 | ||
5213506e | 10825 | |
278a7a38 AO |
10826 | done |
10827 | fi | |
10828 | ||
10829 | for ncn_progname in as; do | |
2693c0b0 PB |
10830 | if test -n "$ncn_tool_prefix"; then |
10831 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10832 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10834 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10835 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10836 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10837 | else |
10838 | if test -n "$AS"; then | |
10839 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10840 | else |
1c710c3c DJ |
10841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10842 | for as_dir in $PATH | |
10843 | do | |
10844 | IFS=$as_save_IFS | |
10845 | test -z "$as_dir" && as_dir=. | |
5213506e | 10846 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10848 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10850 | break 2 |
10851 | fi | |
10852 | done | |
5213506e RW |
10853 | done |
10854 | IFS=$as_save_IFS | |
1c710c3c | 10855 | |
ca9f4b81 AO |
10856 | fi |
10857 | fi | |
1c710c3c | 10858 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10859 | if test -n "$AS"; then |
5213506e RW |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10861 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10862 | else |
5213506e RW |
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10864 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10865 | fi |
10866 | ||
5213506e | 10867 | |
2693c0b0 PB |
10868 | fi |
10869 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10870 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10871 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10873 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10874 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10875 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10876 | else |
2693c0b0 PB |
10877 | if test -n "$AS"; then |
10878 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10879 | else |
1c710c3c DJ |
10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10881 | for as_dir in $PATH | |
10882 | do | |
10883 | IFS=$as_save_IFS | |
10884 | test -z "$as_dir" && as_dir=. | |
5213506e | 10885 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10887 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10889 | break 2 |
10890 | fi | |
10891 | done | |
5213506e RW |
10892 | done |
10893 | IFS=$as_save_IFS | |
1c710c3c | 10894 | |
ca9f4b81 AO |
10895 | fi |
10896 | fi | |
1c710c3c | 10897 | AS=$ac_cv_prog_AS |
2693c0b0 | 10898 | if test -n "$AS"; then |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10900 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10901 | else |
5213506e RW |
10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10903 | $as_echo "no" >&6; } | |
ca9f4b81 | 10904 | fi |
1c710c3c | 10905 | |
5213506e | 10906 | |
2693c0b0 PB |
10907 | fi |
10908 | test -n "$ac_cv_prog_AS" && break | |
10909 | done | |
10910 | ||
10911 | if test -z "$ac_cv_prog_AS" ; then | |
10912 | set dummy as | |
10913 | if test $build = $host ; then | |
10914 | AS="$2" | |
ca9f4b81 | 10915 | else |
2693c0b0 | 10916 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 10917 | fi |
ca9f4b81 AO |
10918 | fi |
10919 | ||
278a7a38 AO |
10920 | |
10921 | ||
10922 | if test -n "$DLLTOOL"; then | |
10923 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
10924 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
10925 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10926 | fi | |
10927 | ||
10928 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
10929 | for ncn_progname in dlltool; do | |
10930 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10931 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10933 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10934 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10935 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10936 | else |
10937 | if test -n "$DLLTOOL"; then | |
10938 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10939 | else | |
10940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10941 | for as_dir in $PATH | |
10942 | do | |
10943 | IFS=$as_save_IFS | |
10944 | test -z "$as_dir" && as_dir=. | |
5213506e | 10945 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10947 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10949 | break 2 |
10950 | fi | |
10951 | done | |
5213506e RW |
10952 | done |
10953 | IFS=$as_save_IFS | |
278a7a38 AO |
10954 | |
10955 | fi | |
10956 | fi | |
10957 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10958 | if test -n "$DLLTOOL"; then | |
5213506e RW |
10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10960 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 10961 | else |
5213506e RW |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10963 | $as_echo "no" >&6; } | |
278a7a38 AO |
10964 | fi |
10965 | ||
5213506e | 10966 | |
278a7a38 AO |
10967 | done |
10968 | fi | |
10969 | ||
10970 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
10971 | if test -n "$ncn_tool_prefix"; then |
10972 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10973 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10975 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10976 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10977 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10978 | else |
10979 | if test -n "$DLLTOOL"; then | |
10980 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10981 | else | |
1c710c3c DJ |
10982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10983 | for as_dir in $PATH | |
10984 | do | |
10985 | IFS=$as_save_IFS | |
10986 | test -z "$as_dir" && as_dir=. | |
5213506e | 10987 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10989 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10991 | break 2 |
10992 | fi | |
10993 | done | |
5213506e RW |
10994 | done |
10995 | IFS=$as_save_IFS | |
1c710c3c | 10996 | |
ca9f4b81 AO |
10997 | fi |
10998 | fi | |
1c710c3c | 10999 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11000 | if test -n "$DLLTOOL"; then |
5213506e RW |
11001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11002 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11003 | else |
5213506e RW |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11005 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11006 | fi |
11007 | ||
5213506e | 11008 | |
2693c0b0 PB |
11009 | fi |
11010 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11011 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11012 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11014 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11015 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11016 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11017 | else |
2693c0b0 PB |
11018 | if test -n "$DLLTOOL"; then |
11019 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11020 | else |
1c710c3c DJ |
11021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11022 | for as_dir in $PATH | |
11023 | do | |
11024 | IFS=$as_save_IFS | |
11025 | test -z "$as_dir" && as_dir=. | |
5213506e | 11026 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11027 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11028 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11030 | break 2 |
11031 | fi | |
11032 | done | |
5213506e RW |
11033 | done |
11034 | IFS=$as_save_IFS | |
1c710c3c | 11035 | |
ca9f4b81 AO |
11036 | fi |
11037 | fi | |
1c710c3c | 11038 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11039 | if test -n "$DLLTOOL"; then |
5213506e RW |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11041 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11042 | else |
5213506e RW |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11044 | $as_echo "no" >&6; } | |
ca9f4b81 | 11045 | fi |
1c710c3c | 11046 | |
5213506e | 11047 | |
2693c0b0 PB |
11048 | fi |
11049 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11050 | done | |
11051 | ||
11052 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11053 | set dummy dlltool | |
11054 | if test $build = $host ; then | |
11055 | DLLTOOL="$2" | |
ca9f4b81 | 11056 | else |
2693c0b0 | 11057 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11058 | fi |
ca9f4b81 AO |
11059 | fi |
11060 | ||
278a7a38 AO |
11061 | |
11062 | ||
3b5e8ee4 IS |
11063 | if test -n "$DSYMUTIL"; then |
11064 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11065 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11066 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11067 | fi | |
11068 | ||
11069 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11070 | for ncn_progname in dsymutil; do | |
11071 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11072 | set dummy ${ncn_progname}; ac_word=$2 | |
11073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11074 | $as_echo_n "checking for $ac_word... " >&6; } | |
11075 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11076 | $as_echo_n "(cached) " >&6 | |
11077 | else | |
11078 | if test -n "$DSYMUTIL"; then | |
11079 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11080 | else | |
11081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11082 | for as_dir in $PATH | |
11083 | do | |
11084 | IFS=$as_save_IFS | |
11085 | test -z "$as_dir" && as_dir=. | |
11086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11088 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11090 | break 2 | |
11091 | fi | |
11092 | done | |
11093 | done | |
11094 | IFS=$as_save_IFS | |
11095 | ||
11096 | fi | |
11097 | fi | |
11098 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11099 | if test -n "$DSYMUTIL"; then | |
11100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11101 | $as_echo "$DSYMUTIL" >&6; } | |
11102 | else | |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11104 | $as_echo "no" >&6; } | |
11105 | fi | |
11106 | ||
11107 | ||
11108 | done | |
11109 | fi | |
11110 | ||
11111 | for ncn_progname in dsymutil; do | |
11112 | if test -n "$ncn_tool_prefix"; then | |
11113 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11114 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11116 | $as_echo_n "checking for $ac_word... " >&6; } | |
11117 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11118 | $as_echo_n "(cached) " >&6 | |
11119 | else | |
11120 | if test -n "$DSYMUTIL"; then | |
11121 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11122 | else | |
11123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11124 | for as_dir in $PATH | |
11125 | do | |
11126 | IFS=$as_save_IFS | |
11127 | test -z "$as_dir" && as_dir=. | |
11128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11130 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11132 | break 2 | |
11133 | fi | |
11134 | done | |
11135 | done | |
11136 | IFS=$as_save_IFS | |
11137 | ||
11138 | fi | |
11139 | fi | |
11140 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11141 | if test -n "$DSYMUTIL"; then | |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11143 | $as_echo "$DSYMUTIL" >&6; } | |
11144 | else | |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11146 | $as_echo "no" >&6; } | |
11147 | fi | |
11148 | ||
11149 | ||
11150 | fi | |
11151 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11152 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11153 | set dummy ${ncn_progname}; ac_word=$2 | |
11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11155 | $as_echo_n "checking for $ac_word... " >&6; } | |
11156 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11157 | $as_echo_n "(cached) " >&6 | |
11158 | else | |
11159 | if test -n "$DSYMUTIL"; then | |
11160 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11161 | else | |
11162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11163 | for as_dir in $PATH | |
11164 | do | |
11165 | IFS=$as_save_IFS | |
11166 | test -z "$as_dir" && as_dir=. | |
11167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11169 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11171 | break 2 | |
11172 | fi | |
11173 | done | |
11174 | done | |
11175 | IFS=$as_save_IFS | |
11176 | ||
11177 | fi | |
11178 | fi | |
11179 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11180 | if test -n "$DSYMUTIL"; then | |
11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11182 | $as_echo "$DSYMUTIL" >&6; } | |
11183 | else | |
11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11185 | $as_echo "no" >&6; } | |
11186 | fi | |
11187 | ||
11188 | ||
11189 | fi | |
11190 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11191 | done | |
11192 | ||
11193 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11194 | set dummy dsymutil | |
11195 | if test $build = $host ; then | |
11196 | DSYMUTIL="$2" | |
11197 | else | |
11198 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11199 | fi | |
11200 | fi | |
11201 | ||
11202 | ||
11203 | ||
278a7a38 AO |
11204 | if test -n "$LD"; then |
11205 | ac_cv_prog_LD=$LD | |
11206 | elif test -n "$ac_cv_prog_LD"; then | |
11207 | LD=$ac_cv_prog_LD | |
11208 | fi | |
11209 | ||
11210 | if test -n "$ac_cv_prog_LD"; then | |
11211 | for ncn_progname in ld; do | |
11212 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11213 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11215 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11216 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11217 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11218 | else |
11219 | if test -n "$LD"; then | |
11220 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11221 | else | |
11222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11223 | for as_dir in $PATH | |
11224 | do | |
11225 | IFS=$as_save_IFS | |
11226 | test -z "$as_dir" && as_dir=. | |
5213506e | 11227 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11229 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11231 | break 2 |
11232 | fi | |
11233 | done | |
5213506e RW |
11234 | done |
11235 | IFS=$as_save_IFS | |
278a7a38 AO |
11236 | |
11237 | fi | |
11238 | fi | |
11239 | LD=$ac_cv_prog_LD | |
11240 | if test -n "$LD"; then | |
5213506e RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11242 | $as_echo "$LD" >&6; } | |
278a7a38 | 11243 | else |
5213506e RW |
11244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11245 | $as_echo "no" >&6; } | |
278a7a38 AO |
11246 | fi |
11247 | ||
5213506e | 11248 | |
278a7a38 AO |
11249 | done |
11250 | fi | |
11251 | ||
11252 | for ncn_progname in ld; do | |
2693c0b0 PB |
11253 | if test -n "$ncn_tool_prefix"; then |
11254 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11255 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11257 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11258 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11259 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11260 | else |
11261 | if test -n "$LD"; then | |
11262 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11263 | else | |
1c710c3c DJ |
11264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11265 | for as_dir in $PATH | |
11266 | do | |
11267 | IFS=$as_save_IFS | |
11268 | test -z "$as_dir" && as_dir=. | |
5213506e | 11269 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11271 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11273 | break 2 |
11274 | fi | |
11275 | done | |
5213506e RW |
11276 | done |
11277 | IFS=$as_save_IFS | |
1c710c3c | 11278 | |
ca9f4b81 AO |
11279 | fi |
11280 | fi | |
1c710c3c | 11281 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11282 | if test -n "$LD"; then |
5213506e RW |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11284 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11285 | else |
5213506e RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11287 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11288 | fi |
11289 | ||
5213506e | 11290 | |
2693c0b0 PB |
11291 | fi |
11292 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11293 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11294 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11296 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11297 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11298 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11299 | else |
2693c0b0 PB |
11300 | if test -n "$LD"; then |
11301 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11302 | else |
1c710c3c DJ |
11303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11304 | for as_dir in $PATH | |
11305 | do | |
11306 | IFS=$as_save_IFS | |
11307 | test -z "$as_dir" && as_dir=. | |
5213506e | 11308 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11309 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11310 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11312 | break 2 |
11313 | fi | |
11314 | done | |
5213506e RW |
11315 | done |
11316 | IFS=$as_save_IFS | |
1c710c3c | 11317 | |
ca9f4b81 AO |
11318 | fi |
11319 | fi | |
1c710c3c | 11320 | LD=$ac_cv_prog_LD |
2693c0b0 | 11321 | if test -n "$LD"; then |
5213506e RW |
11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11323 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11324 | else |
5213506e RW |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11326 | $as_echo "no" >&6; } | |
ca9f4b81 | 11327 | fi |
1c710c3c | 11328 | |
5213506e | 11329 | |
2693c0b0 PB |
11330 | fi |
11331 | test -n "$ac_cv_prog_LD" && break | |
11332 | done | |
11333 | ||
11334 | if test -z "$ac_cv_prog_LD" ; then | |
11335 | set dummy ld | |
11336 | if test $build = $host ; then | |
11337 | LD="$2" | |
ca9f4b81 | 11338 | else |
2693c0b0 | 11339 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11340 | fi |
ca9f4b81 AO |
11341 | fi |
11342 | ||
278a7a38 AO |
11343 | |
11344 | ||
11345 | if test -n "$LIPO"; then | |
11346 | ac_cv_prog_LIPO=$LIPO | |
11347 | elif test -n "$ac_cv_prog_LIPO"; then | |
11348 | LIPO=$ac_cv_prog_LIPO | |
11349 | fi | |
11350 | ||
11351 | if test -n "$ac_cv_prog_LIPO"; then | |
11352 | for ncn_progname in lipo; do | |
11353 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11354 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11356 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11357 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11358 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11359 | else |
11360 | if test -n "$LIPO"; then | |
11361 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11362 | else | |
11363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11364 | for as_dir in $PATH | |
11365 | do | |
11366 | IFS=$as_save_IFS | |
11367 | test -z "$as_dir" && as_dir=. | |
5213506e | 11368 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11370 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11372 | break 2 |
11373 | fi | |
11374 | done | |
5213506e RW |
11375 | done |
11376 | IFS=$as_save_IFS | |
278a7a38 AO |
11377 | |
11378 | fi | |
11379 | fi | |
11380 | LIPO=$ac_cv_prog_LIPO | |
11381 | if test -n "$LIPO"; then | |
5213506e RW |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11383 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11384 | else |
5213506e RW |
11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11386 | $as_echo "no" >&6; } | |
278a7a38 AO |
11387 | fi |
11388 | ||
5213506e | 11389 | |
278a7a38 AO |
11390 | done |
11391 | fi | |
11392 | ||
11393 | for ncn_progname in lipo; do | |
2abefe3d PB |
11394 | if test -n "$ncn_tool_prefix"; then |
11395 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11396 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11398 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11399 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11400 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11401 | else |
11402 | if test -n "$LIPO"; then | |
11403 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11404 | else | |
1c710c3c DJ |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11406 | for as_dir in $PATH | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
11409 | test -z "$as_dir" && as_dir=. | |
5213506e | 11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11412 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11414 | break 2 |
11415 | fi | |
11416 | done | |
5213506e RW |
11417 | done |
11418 | IFS=$as_save_IFS | |
1c710c3c | 11419 | |
2abefe3d PB |
11420 | fi |
11421 | fi | |
1c710c3c | 11422 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11423 | if test -n "$LIPO"; then |
5213506e RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11425 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11426 | else |
5213506e RW |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11428 | $as_echo "no" >&6; } | |
2abefe3d PB |
11429 | fi |
11430 | ||
5213506e | 11431 | |
2abefe3d PB |
11432 | fi |
11433 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11434 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11435 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11437 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11438 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11439 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11440 | else |
11441 | if test -n "$LIPO"; then | |
11442 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11443 | else | |
1c710c3c DJ |
11444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11445 | for as_dir in $PATH | |
11446 | do | |
11447 | IFS=$as_save_IFS | |
11448 | test -z "$as_dir" && as_dir=. | |
5213506e | 11449 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11451 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11453 | break 2 |
11454 | fi | |
11455 | done | |
5213506e RW |
11456 | done |
11457 | IFS=$as_save_IFS | |
1c710c3c | 11458 | |
2abefe3d PB |
11459 | fi |
11460 | fi | |
1c710c3c | 11461 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11462 | if test -n "$LIPO"; then |
5213506e RW |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11464 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11465 | else |
5213506e RW |
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11467 | $as_echo "no" >&6; } | |
2abefe3d | 11468 | fi |
1c710c3c | 11469 | |
5213506e | 11470 | |
2abefe3d PB |
11471 | fi |
11472 | test -n "$ac_cv_prog_LIPO" && break | |
11473 | done | |
11474 | ||
11475 | if test -z "$ac_cv_prog_LIPO" ; then | |
11476 | set dummy lipo | |
11477 | if test $build = $host ; then | |
11478 | LIPO="$2" | |
11479 | else | |
11480 | LIPO="${ncn_tool_prefix}$2" | |
11481 | fi | |
11482 | fi | |
11483 | ||
278a7a38 AO |
11484 | |
11485 | ||
11486 | if test -n "$NM"; then | |
11487 | ac_cv_prog_NM=$NM | |
11488 | elif test -n "$ac_cv_prog_NM"; then | |
11489 | NM=$ac_cv_prog_NM | |
11490 | fi | |
11491 | ||
11492 | if test -n "$ac_cv_prog_NM"; then | |
11493 | for ncn_progname in nm; do | |
11494 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11495 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11497 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11498 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11499 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11500 | else |
11501 | if test -n "$NM"; then | |
11502 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11503 | else | |
1c710c3c DJ |
11504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11505 | for as_dir in $PATH | |
11506 | do | |
11507 | IFS=$as_save_IFS | |
11508 | test -z "$as_dir" && as_dir=. | |
5213506e | 11509 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11511 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11513 | break 2 |
11514 | fi | |
11515 | done | |
5213506e RW |
11516 | done |
11517 | IFS=$as_save_IFS | |
1c710c3c | 11518 | |
ca9f4b81 AO |
11519 | fi |
11520 | fi | |
1c710c3c | 11521 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11522 | if test -n "$NM"; then |
5213506e RW |
11523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11524 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11525 | else |
5213506e RW |
11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11527 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11528 | fi |
11529 | ||
5213506e | 11530 | |
278a7a38 AO |
11531 | done |
11532 | fi | |
11533 | ||
11534 | for ncn_progname in nm; do | |
11535 | if test -n "$ncn_tool_prefix"; then | |
11536 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11537 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11539 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11540 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11541 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11542 | else |
2693c0b0 PB |
11543 | if test -n "$NM"; then |
11544 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11545 | else |
1c710c3c DJ |
11546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11547 | for as_dir in $PATH | |
11548 | do | |
11549 | IFS=$as_save_IFS | |
11550 | test -z "$as_dir" && as_dir=. | |
5213506e | 11551 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11553 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11555 | break 2 |
11556 | fi | |
11557 | done | |
5213506e RW |
11558 | done |
11559 | IFS=$as_save_IFS | |
1c710c3c | 11560 | |
ca9f4b81 AO |
11561 | fi |
11562 | fi | |
1c710c3c | 11563 | NM=$ac_cv_prog_NM |
2693c0b0 | 11564 | if test -n "$NM"; then |
5213506e RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11566 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11567 | else |
5213506e RW |
11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11569 | $as_echo "no" >&6; } | |
ca9f4b81 | 11570 | fi |
1c710c3c | 11571 | |
5213506e | 11572 | |
2693c0b0 | 11573 | fi |
278a7a38 AO |
11574 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11575 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11576 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11578 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11579 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11580 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11581 | else |
11582 | if test -n "$NM"; then | |
11583 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11584 | else | |
11585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11586 | for as_dir in $PATH | |
11587 | do | |
11588 | IFS=$as_save_IFS | |
11589 | test -z "$as_dir" && as_dir=. | |
5213506e | 11590 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11592 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11594 | break 2 |
11595 | fi | |
11596 | done | |
5213506e RW |
11597 | done |
11598 | IFS=$as_save_IFS | |
278a7a38 AO |
11599 | |
11600 | fi | |
11601 | fi | |
11602 | NM=$ac_cv_prog_NM | |
11603 | if test -n "$NM"; then | |
5213506e RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11605 | $as_echo "$NM" >&6; } | |
278a7a38 | 11606 | else |
5213506e RW |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11608 | $as_echo "no" >&6; } | |
278a7a38 AO |
11609 | fi |
11610 | ||
5213506e | 11611 | |
278a7a38 AO |
11612 | fi |
11613 | test -n "$ac_cv_prog_NM" && break | |
11614 | done | |
11615 | ||
11616 | if test -z "$ac_cv_prog_NM" ; then | |
11617 | set dummy nm | |
11618 | if test $build = $host ; then | |
11619 | NM="$2" | |
11620 | else | |
11621 | NM="${ncn_tool_prefix}$2" | |
11622 | fi | |
11623 | fi | |
11624 | ||
11625 | ||
11626 | ||
11627 | if test -n "$RANLIB"; then | |
11628 | ac_cv_prog_RANLIB=$RANLIB | |
11629 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11630 | RANLIB=$ac_cv_prog_RANLIB | |
11631 | fi | |
11632 | ||
11633 | if test -n "$ac_cv_prog_RANLIB"; then | |
11634 | for ncn_progname in ranlib; do | |
11635 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11636 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11638 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11639 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11640 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11641 | else |
11642 | if test -n "$RANLIB"; then | |
11643 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11644 | else | |
11645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11646 | for as_dir in $PATH | |
11647 | do | |
11648 | IFS=$as_save_IFS | |
11649 | test -z "$as_dir" && as_dir=. | |
5213506e | 11650 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11652 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11654 | break 2 |
11655 | fi | |
11656 | done | |
5213506e RW |
11657 | done |
11658 | IFS=$as_save_IFS | |
278a7a38 AO |
11659 | |
11660 | fi | |
11661 | fi | |
11662 | RANLIB=$ac_cv_prog_RANLIB | |
11663 | if test -n "$RANLIB"; then | |
5213506e RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11665 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11666 | else |
5213506e RW |
11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11668 | $as_echo "no" >&6; } | |
278a7a38 AO |
11669 | fi |
11670 | ||
5213506e | 11671 | |
278a7a38 AO |
11672 | done |
11673 | fi | |
ca9f4b81 | 11674 | |
278a7a38 | 11675 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11676 | if test -n "$ncn_tool_prefix"; then |
11677 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11678 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11680 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11681 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11682 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11683 | else |
11684 | if test -n "$RANLIB"; then | |
11685 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11686 | else | |
1c710c3c DJ |
11687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11688 | for as_dir in $PATH | |
11689 | do | |
11690 | IFS=$as_save_IFS | |
11691 | test -z "$as_dir" && as_dir=. | |
5213506e | 11692 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11694 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11696 | break 2 |
11697 | fi | |
11698 | done | |
5213506e RW |
11699 | done |
11700 | IFS=$as_save_IFS | |
1c710c3c | 11701 | |
ca9f4b81 AO |
11702 | fi |
11703 | fi | |
1c710c3c | 11704 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11705 | if test -n "$RANLIB"; then |
5213506e RW |
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11707 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11708 | else |
5213506e RW |
11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11710 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11711 | fi |
11712 | ||
5213506e | 11713 | |
2693c0b0 PB |
11714 | fi |
11715 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11716 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11717 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11719 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11720 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11721 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11722 | else |
2693c0b0 PB |
11723 | if test -n "$RANLIB"; then |
11724 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11725 | else |
1c710c3c DJ |
11726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11727 | for as_dir in $PATH | |
11728 | do | |
11729 | IFS=$as_save_IFS | |
11730 | test -z "$as_dir" && as_dir=. | |
5213506e | 11731 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11733 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11735 | break 2 |
11736 | fi | |
11737 | done | |
5213506e RW |
11738 | done |
11739 | IFS=$as_save_IFS | |
1c710c3c | 11740 | |
ca9f4b81 AO |
11741 | fi |
11742 | fi | |
1c710c3c | 11743 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11744 | if test -n "$RANLIB"; then |
5213506e RW |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11746 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11747 | else |
5213506e RW |
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11749 | $as_echo "no" >&6; } | |
ca9f4b81 | 11750 | fi |
1c710c3c | 11751 | |
5213506e | 11752 | |
ca9f4b81 | 11753 | fi |
2693c0b0 PB |
11754 | test -n "$ac_cv_prog_RANLIB" && break |
11755 | done | |
11756 | ||
11757 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11758 | RANLIB="true" |
ca9f4b81 AO |
11759 | fi |
11760 | ||
278a7a38 AO |
11761 | |
11762 | ||
11763 | if test -n "$STRIP"; then | |
11764 | ac_cv_prog_STRIP=$STRIP | |
11765 | elif test -n "$ac_cv_prog_STRIP"; then | |
11766 | STRIP=$ac_cv_prog_STRIP | |
11767 | fi | |
11768 | ||
11769 | if test -n "$ac_cv_prog_STRIP"; then | |
11770 | for ncn_progname in strip; do | |
11771 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11772 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11774 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11775 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11776 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11777 | else |
11778 | if test -n "$STRIP"; then | |
11779 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11780 | else | |
11781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11782 | for as_dir in $PATH | |
11783 | do | |
11784 | IFS=$as_save_IFS | |
11785 | test -z "$as_dir" && as_dir=. | |
5213506e | 11786 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11788 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11790 | break 2 |
11791 | fi | |
11792 | done | |
5213506e RW |
11793 | done |
11794 | IFS=$as_save_IFS | |
278a7a38 AO |
11795 | |
11796 | fi | |
11797 | fi | |
11798 | STRIP=$ac_cv_prog_STRIP | |
11799 | if test -n "$STRIP"; then | |
5213506e RW |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11801 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11802 | else |
5213506e RW |
11803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11804 | $as_echo "no" >&6; } | |
278a7a38 AO |
11805 | fi |
11806 | ||
5213506e | 11807 | |
278a7a38 AO |
11808 | done |
11809 | fi | |
11810 | ||
11811 | for ncn_progname in strip; do | |
2abefe3d PB |
11812 | if test -n "$ncn_tool_prefix"; then |
11813 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11814 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11816 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11817 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11818 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11819 | else |
11820 | if test -n "$STRIP"; then | |
11821 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11822 | else | |
1c710c3c DJ |
11823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11824 | for as_dir in $PATH | |
11825 | do | |
11826 | IFS=$as_save_IFS | |
11827 | test -z "$as_dir" && as_dir=. | |
5213506e | 11828 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11830 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11832 | break 2 |
11833 | fi | |
11834 | done | |
5213506e RW |
11835 | done |
11836 | IFS=$as_save_IFS | |
1c710c3c | 11837 | |
2abefe3d PB |
11838 | fi |
11839 | fi | |
1c710c3c | 11840 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11841 | if test -n "$STRIP"; then |
5213506e RW |
11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11843 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11844 | else |
5213506e RW |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11846 | $as_echo "no" >&6; } | |
2abefe3d PB |
11847 | fi |
11848 | ||
5213506e | 11849 | |
2abefe3d PB |
11850 | fi |
11851 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11852 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11853 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11855 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11856 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11857 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11858 | else |
11859 | if test -n "$STRIP"; then | |
11860 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11861 | else | |
1c710c3c DJ |
11862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11863 | for as_dir in $PATH | |
11864 | do | |
11865 | IFS=$as_save_IFS | |
11866 | test -z "$as_dir" && as_dir=. | |
5213506e | 11867 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11869 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11871 | break 2 |
11872 | fi | |
11873 | done | |
5213506e RW |
11874 | done |
11875 | IFS=$as_save_IFS | |
1c710c3c | 11876 | |
2abefe3d PB |
11877 | fi |
11878 | fi | |
1c710c3c | 11879 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11880 | if test -n "$STRIP"; then |
5213506e RW |
11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11882 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11883 | else |
5213506e RW |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11885 | $as_echo "no" >&6; } | |
2abefe3d | 11886 | fi |
1c710c3c | 11887 | |
5213506e | 11888 | |
2abefe3d PB |
11889 | fi |
11890 | test -n "$ac_cv_prog_STRIP" && break | |
11891 | done | |
11892 | ||
11893 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11894 | STRIP="true" |
2abefe3d PB |
11895 | fi |
11896 | ||
278a7a38 AO |
11897 | |
11898 | ||
11899 | if test -n "$WINDRES"; then | |
11900 | ac_cv_prog_WINDRES=$WINDRES | |
11901 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11902 | WINDRES=$ac_cv_prog_WINDRES | |
11903 | fi | |
11904 | ||
11905 | if test -n "$ac_cv_prog_WINDRES"; then | |
11906 | for ncn_progname in windres; do | |
11907 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11908 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11910 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11911 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11912 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11913 | else |
11914 | if test -n "$WINDRES"; then | |
11915 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11916 | else | |
11917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11918 | for as_dir in $PATH | |
11919 | do | |
11920 | IFS=$as_save_IFS | |
11921 | test -z "$as_dir" && as_dir=. | |
5213506e | 11922 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11924 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11926 | break 2 |
11927 | fi | |
11928 | done | |
5213506e RW |
11929 | done |
11930 | IFS=$as_save_IFS | |
278a7a38 AO |
11931 | |
11932 | fi | |
11933 | fi | |
11934 | WINDRES=$ac_cv_prog_WINDRES | |
11935 | if test -n "$WINDRES"; then | |
5213506e RW |
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11937 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 11938 | else |
5213506e RW |
11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11940 | $as_echo "no" >&6; } | |
278a7a38 AO |
11941 | fi |
11942 | ||
5213506e | 11943 | |
278a7a38 AO |
11944 | done |
11945 | fi | |
11946 | ||
11947 | for ncn_progname in windres; do | |
2693c0b0 PB |
11948 | if test -n "$ncn_tool_prefix"; then |
11949 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11950 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11952 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11953 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11954 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11955 | else |
11956 | if test -n "$WINDRES"; then | |
11957 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11958 | else | |
1c710c3c DJ |
11959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11960 | for as_dir in $PATH | |
11961 | do | |
11962 | IFS=$as_save_IFS | |
11963 | test -z "$as_dir" && as_dir=. | |
5213506e | 11964 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11966 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11968 | break 2 |
11969 | fi | |
11970 | done | |
5213506e RW |
11971 | done |
11972 | IFS=$as_save_IFS | |
1c710c3c | 11973 | |
ca9f4b81 AO |
11974 | fi |
11975 | fi | |
1c710c3c | 11976 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 11977 | if test -n "$WINDRES"; then |
5213506e RW |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11979 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11980 | else |
5213506e RW |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11982 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11983 | fi |
11984 | ||
5213506e | 11985 | |
2693c0b0 PB |
11986 | fi |
11987 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
11988 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11989 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11991 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11992 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11993 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11994 | else |
2693c0b0 PB |
11995 | if test -n "$WINDRES"; then |
11996 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 11997 | else |
1c710c3c DJ |
11998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11999 | for as_dir in $PATH | |
12000 | do | |
12001 | IFS=$as_save_IFS | |
12002 | test -z "$as_dir" && as_dir=. | |
5213506e | 12003 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12005 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12007 | break 2 |
12008 | fi | |
12009 | done | |
5213506e RW |
12010 | done |
12011 | IFS=$as_save_IFS | |
1c710c3c | 12012 | |
ca9f4b81 AO |
12013 | fi |
12014 | fi | |
1c710c3c | 12015 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12016 | if test -n "$WINDRES"; then |
5213506e RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12018 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12019 | else |
5213506e RW |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12021 | $as_echo "no" >&6; } | |
ca9f4b81 | 12022 | fi |
1c710c3c | 12023 | |
5213506e | 12024 | |
2693c0b0 PB |
12025 | fi |
12026 | test -n "$ac_cv_prog_WINDRES" && break | |
12027 | done | |
12028 | ||
12029 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12030 | set dummy windres | |
12031 | if test $build = $host ; then | |
12032 | WINDRES="$2" | |
ca9f4b81 | 12033 | else |
2693c0b0 | 12034 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12035 | fi |
ca9f4b81 AO |
12036 | fi |
12037 | ||
278a7a38 AO |
12038 | |
12039 | ||
901119ae KT |
12040 | if test -n "$WINDMC"; then |
12041 | ac_cv_prog_WINDMC=$WINDMC | |
12042 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12043 | WINDMC=$ac_cv_prog_WINDMC | |
12044 | fi | |
12045 | ||
12046 | if test -n "$ac_cv_prog_WINDMC"; then | |
12047 | for ncn_progname in windmc; do | |
12048 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12049 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12051 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12052 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12053 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12054 | else |
12055 | if test -n "$WINDMC"; then | |
12056 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12057 | else | |
12058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12059 | for as_dir in $PATH | |
12060 | do | |
12061 | IFS=$as_save_IFS | |
12062 | test -z "$as_dir" && as_dir=. | |
5213506e | 12063 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12064 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12065 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12067 | break 2 |
12068 | fi | |
12069 | done | |
5213506e RW |
12070 | done |
12071 | IFS=$as_save_IFS | |
901119ae KT |
12072 | |
12073 | fi | |
12074 | fi | |
12075 | WINDMC=$ac_cv_prog_WINDMC | |
12076 | if test -n "$WINDMC"; then | |
5213506e RW |
12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12078 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12079 | else |
5213506e RW |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12081 | $as_echo "no" >&6; } | |
901119ae KT |
12082 | fi |
12083 | ||
5213506e | 12084 | |
901119ae KT |
12085 | done |
12086 | fi | |
12087 | ||
12088 | for ncn_progname in windmc; do | |
12089 | if test -n "$ncn_tool_prefix"; then | |
12090 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12091 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12093 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12094 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12095 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12096 | else |
12097 | if test -n "$WINDMC"; then | |
12098 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12099 | else | |
12100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12101 | for as_dir in $PATH | |
12102 | do | |
12103 | IFS=$as_save_IFS | |
12104 | test -z "$as_dir" && as_dir=. | |
5213506e | 12105 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12107 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12109 | break 2 |
12110 | fi | |
12111 | done | |
5213506e RW |
12112 | done |
12113 | IFS=$as_save_IFS | |
901119ae KT |
12114 | |
12115 | fi | |
12116 | fi | |
12117 | WINDMC=$ac_cv_prog_WINDMC | |
12118 | if test -n "$WINDMC"; then | |
5213506e RW |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12120 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12121 | else |
5213506e RW |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12123 | $as_echo "no" >&6; } | |
901119ae KT |
12124 | fi |
12125 | ||
5213506e | 12126 | |
901119ae KT |
12127 | fi |
12128 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12129 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12130 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12132 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12133 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12134 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12135 | else |
12136 | if test -n "$WINDMC"; then | |
12137 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12138 | else | |
12139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12140 | for as_dir in $PATH | |
12141 | do | |
12142 | IFS=$as_save_IFS | |
12143 | test -z "$as_dir" && as_dir=. | |
5213506e | 12144 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12146 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12148 | break 2 |
12149 | fi | |
12150 | done | |
5213506e RW |
12151 | done |
12152 | IFS=$as_save_IFS | |
901119ae KT |
12153 | |
12154 | fi | |
12155 | fi | |
12156 | WINDMC=$ac_cv_prog_WINDMC | |
12157 | if test -n "$WINDMC"; then | |
5213506e RW |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12159 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12160 | else |
5213506e RW |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12162 | $as_echo "no" >&6; } | |
901119ae KT |
12163 | fi |
12164 | ||
5213506e | 12165 | |
901119ae KT |
12166 | fi |
12167 | test -n "$ac_cv_prog_WINDMC" && break | |
12168 | done | |
12169 | ||
12170 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12171 | set dummy windmc | |
12172 | if test $build = $host ; then | |
12173 | WINDMC="$2" | |
12174 | else | |
12175 | WINDMC="${ncn_tool_prefix}$2" | |
12176 | fi | |
12177 | fi | |
12178 | ||
12179 | ||
12180 | ||
278a7a38 AO |
12181 | if test -n "$OBJCOPY"; then |
12182 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12183 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12184 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12185 | fi | |
12186 | ||
12187 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12188 | for ncn_progname in objcopy; do | |
12189 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12190 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12192 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12193 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12194 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12195 | else |
12196 | if test -n "$OBJCOPY"; then | |
12197 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12198 | else | |
12199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12200 | for as_dir in $PATH | |
12201 | do | |
12202 | IFS=$as_save_IFS | |
12203 | test -z "$as_dir" && as_dir=. | |
5213506e | 12204 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12206 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12208 | break 2 |
12209 | fi | |
12210 | done | |
5213506e RW |
12211 | done |
12212 | IFS=$as_save_IFS | |
278a7a38 AO |
12213 | |
12214 | fi | |
12215 | fi | |
12216 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12217 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12219 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12220 | else |
5213506e RW |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12222 | $as_echo "no" >&6; } | |
278a7a38 AO |
12223 | fi |
12224 | ||
5213506e | 12225 | |
278a7a38 AO |
12226 | done |
12227 | fi | |
12228 | ||
12229 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12230 | if test -n "$ncn_tool_prefix"; then |
12231 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12232 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12234 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12235 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12236 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12237 | else |
12238 | if test -n "$OBJCOPY"; then | |
12239 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12240 | else | |
1c710c3c DJ |
12241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12242 | for as_dir in $PATH | |
12243 | do | |
12244 | IFS=$as_save_IFS | |
12245 | test -z "$as_dir" && as_dir=. | |
5213506e | 12246 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12248 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12250 | break 2 |
12251 | fi | |
12252 | done | |
5213506e RW |
12253 | done |
12254 | IFS=$as_save_IFS | |
1c710c3c | 12255 | |
ca9f4b81 AO |
12256 | fi |
12257 | fi | |
1c710c3c | 12258 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12259 | if test -n "$OBJCOPY"; then |
5213506e RW |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12261 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12262 | else |
5213506e RW |
12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12264 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12265 | fi |
12266 | ||
5213506e | 12267 | |
2693c0b0 PB |
12268 | fi |
12269 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12270 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12271 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12273 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12274 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12275 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12276 | else |
2693c0b0 PB |
12277 | if test -n "$OBJCOPY"; then |
12278 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12279 | else |
1c710c3c DJ |
12280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12281 | for as_dir in $PATH | |
12282 | do | |
12283 | IFS=$as_save_IFS | |
12284 | test -z "$as_dir" && as_dir=. | |
5213506e | 12285 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12287 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12289 | break 2 |
12290 | fi | |
12291 | done | |
5213506e RW |
12292 | done |
12293 | IFS=$as_save_IFS | |
1c710c3c | 12294 | |
ca9f4b81 AO |
12295 | fi |
12296 | fi | |
1c710c3c | 12297 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12298 | if test -n "$OBJCOPY"; then |
5213506e RW |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12300 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12301 | else |
5213506e RW |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12303 | $as_echo "no" >&6; } | |
ca9f4b81 | 12304 | fi |
1c710c3c | 12305 | |
5213506e | 12306 | |
2693c0b0 PB |
12307 | fi |
12308 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12309 | done | |
12310 | ||
12311 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12312 | set dummy objcopy | |
12313 | if test $build = $host ; then | |
12314 | OBJCOPY="$2" | |
ca9f4b81 | 12315 | else |
2693c0b0 | 12316 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12317 | fi |
ca9f4b81 AO |
12318 | fi |
12319 | ||
278a7a38 AO |
12320 | |
12321 | ||
12322 | if test -n "$OBJDUMP"; then | |
12323 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12324 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12325 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12326 | fi | |
12327 | ||
12328 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12329 | for ncn_progname in objdump; do | |
12330 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12331 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12334 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12335 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12336 | else |
12337 | if test -n "$OBJDUMP"; then | |
12338 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12339 | else | |
12340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12341 | for as_dir in $PATH | |
12342 | do | |
12343 | IFS=$as_save_IFS | |
12344 | test -z "$as_dir" && as_dir=. | |
5213506e | 12345 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12347 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12349 | break 2 |
12350 | fi | |
12351 | done | |
5213506e RW |
12352 | done |
12353 | IFS=$as_save_IFS | |
278a7a38 AO |
12354 | |
12355 | fi | |
12356 | fi | |
12357 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12358 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12360 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12361 | else |
5213506e RW |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
278a7a38 AO |
12364 | fi |
12365 | ||
5213506e | 12366 | |
278a7a38 AO |
12367 | done |
12368 | fi | |
12369 | ||
12370 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12371 | if test -n "$ncn_tool_prefix"; then |
12372 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12373 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12375 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12376 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12377 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12378 | else |
12379 | if test -n "$OBJDUMP"; then | |
12380 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12381 | else | |
1c710c3c DJ |
12382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12383 | for as_dir in $PATH | |
12384 | do | |
12385 | IFS=$as_save_IFS | |
12386 | test -z "$as_dir" && as_dir=. | |
5213506e | 12387 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12389 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12391 | break 2 |
12392 | fi | |
12393 | done | |
5213506e RW |
12394 | done |
12395 | IFS=$as_save_IFS | |
1c710c3c | 12396 | |
ca9f4b81 AO |
12397 | fi |
12398 | fi | |
1c710c3c | 12399 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12400 | if test -n "$OBJDUMP"; then |
5213506e RW |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12402 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12403 | else |
5213506e RW |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12405 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12406 | fi |
12407 | ||
5213506e | 12408 | |
2693c0b0 PB |
12409 | fi |
12410 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12411 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12412 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12414 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12415 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12416 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12417 | else |
2693c0b0 PB |
12418 | if test -n "$OBJDUMP"; then |
12419 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12420 | else |
1c710c3c DJ |
12421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12422 | for as_dir in $PATH | |
12423 | do | |
12424 | IFS=$as_save_IFS | |
12425 | test -z "$as_dir" && as_dir=. | |
5213506e | 12426 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12428 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12430 | break 2 |
12431 | fi | |
12432 | done | |
5213506e RW |
12433 | done |
12434 | IFS=$as_save_IFS | |
1c710c3c | 12435 | |
ca9f4b81 AO |
12436 | fi |
12437 | fi | |
1c710c3c | 12438 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12439 | if test -n "$OBJDUMP"; then |
5213506e RW |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12441 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12442 | else |
5213506e RW |
12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12444 | $as_echo "no" >&6; } | |
ca9f4b81 | 12445 | fi |
1c710c3c | 12446 | |
5213506e | 12447 | |
2693c0b0 PB |
12448 | fi |
12449 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12450 | done | |
12451 | ||
12452 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12453 | set dummy objdump | |
12454 | if test $build = $host ; then | |
12455 | OBJDUMP="$2" | |
ca9f4b81 | 12456 | else |
2693c0b0 | 12457 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12458 | fi |
ca9f4b81 AO |
12459 | fi |
12460 | ||
671aa708 NN |
12461 | |
12462 | ||
e4a9a572 IS |
12463 | if test -n "$OTOOL"; then |
12464 | ac_cv_prog_OTOOL=$OTOOL | |
12465 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12466 | OTOOL=$ac_cv_prog_OTOOL | |
12467 | fi | |
12468 | ||
12469 | if test -n "$ac_cv_prog_OTOOL"; then | |
12470 | for ncn_progname in otool; do | |
12471 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12472 | set dummy ${ncn_progname}; ac_word=$2 | |
12473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12474 | $as_echo_n "checking for $ac_word... " >&6; } | |
12475 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12476 | $as_echo_n "(cached) " >&6 | |
12477 | else | |
12478 | if test -n "$OTOOL"; then | |
12479 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12480 | else | |
12481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12482 | for as_dir in $PATH | |
12483 | do | |
12484 | IFS=$as_save_IFS | |
12485 | test -z "$as_dir" && as_dir=. | |
12486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12488 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12490 | break 2 | |
12491 | fi | |
12492 | done | |
12493 | done | |
12494 | IFS=$as_save_IFS | |
12495 | ||
12496 | fi | |
12497 | fi | |
12498 | OTOOL=$ac_cv_prog_OTOOL | |
12499 | if test -n "$OTOOL"; then | |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12501 | $as_echo "$OTOOL" >&6; } | |
12502 | else | |
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12504 | $as_echo "no" >&6; } | |
12505 | fi | |
12506 | ||
12507 | ||
12508 | done | |
12509 | fi | |
12510 | ||
12511 | for ncn_progname in otool; do | |
12512 | if test -n "$ncn_tool_prefix"; then | |
12513 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12514 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12516 | $as_echo_n "checking for $ac_word... " >&6; } | |
12517 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12518 | $as_echo_n "(cached) " >&6 | |
12519 | else | |
12520 | if test -n "$OTOOL"; then | |
12521 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12522 | else | |
12523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12524 | for as_dir in $PATH | |
12525 | do | |
12526 | IFS=$as_save_IFS | |
12527 | test -z "$as_dir" && as_dir=. | |
12528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12530 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12532 | break 2 | |
12533 | fi | |
12534 | done | |
12535 | done | |
12536 | IFS=$as_save_IFS | |
12537 | ||
12538 | fi | |
12539 | fi | |
12540 | OTOOL=$ac_cv_prog_OTOOL | |
12541 | if test -n "$OTOOL"; then | |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12543 | $as_echo "$OTOOL" >&6; } | |
12544 | else | |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12546 | $as_echo "no" >&6; } | |
12547 | fi | |
12548 | ||
12549 | ||
12550 | fi | |
12551 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12552 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12553 | set dummy ${ncn_progname}; ac_word=$2 | |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12555 | $as_echo_n "checking for $ac_word... " >&6; } | |
12556 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12557 | $as_echo_n "(cached) " >&6 | |
12558 | else | |
12559 | if test -n "$OTOOL"; then | |
12560 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12561 | else | |
12562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12563 | for as_dir in $PATH | |
12564 | do | |
12565 | IFS=$as_save_IFS | |
12566 | test -z "$as_dir" && as_dir=. | |
12567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12568 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12569 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12571 | break 2 | |
12572 | fi | |
12573 | done | |
12574 | done | |
12575 | IFS=$as_save_IFS | |
12576 | ||
12577 | fi | |
12578 | fi | |
12579 | OTOOL=$ac_cv_prog_OTOOL | |
12580 | if test -n "$OTOOL"; then | |
12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12582 | $as_echo "$OTOOL" >&6; } | |
12583 | else | |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12585 | $as_echo "no" >&6; } | |
12586 | fi | |
12587 | ||
12588 | ||
12589 | fi | |
12590 | test -n "$ac_cv_prog_OTOOL" && break | |
12591 | done | |
12592 | ||
12593 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12594 | set dummy otool | |
12595 | if test $build = $host ; then | |
12596 | OTOOL="$2" | |
12597 | else | |
12598 | OTOOL="${ncn_tool_prefix}$2" | |
12599 | fi | |
12600 | fi | |
12601 | ||
12602 | ||
12603 | ||
e7a82751 RM |
12604 | if test -n "$READELF"; then |
12605 | ac_cv_prog_READELF=$READELF | |
12606 | elif test -n "$ac_cv_prog_READELF"; then | |
12607 | READELF=$ac_cv_prog_READELF | |
12608 | fi | |
12609 | ||
12610 | if test -n "$ac_cv_prog_READELF"; then | |
12611 | for ncn_progname in readelf; do | |
12612 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12613 | set dummy ${ncn_progname}; ac_word=$2 | |
12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12615 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12616 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12617 | $as_echo_n "(cached) " >&6 |
12618 | else | |
12619 | if test -n "$READELF"; then | |
12620 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12621 | else | |
12622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12623 | for as_dir in $PATH | |
12624 | do | |
12625 | IFS=$as_save_IFS | |
12626 | test -z "$as_dir" && as_dir=. | |
12627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12629 | ac_cv_prog_READELF="${ncn_progname}" |
12630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12631 | break 2 | |
12632 | fi | |
12633 | done | |
12634 | done | |
12635 | IFS=$as_save_IFS | |
12636 | ||
12637 | fi | |
12638 | fi | |
12639 | READELF=$ac_cv_prog_READELF | |
12640 | if test -n "$READELF"; then | |
12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12642 | $as_echo "$READELF" >&6; } | |
12643 | else | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12645 | $as_echo "no" >&6; } | |
12646 | fi | |
12647 | ||
12648 | ||
12649 | done | |
12650 | fi | |
12651 | ||
12652 | for ncn_progname in readelf; do | |
12653 | if test -n "$ncn_tool_prefix"; then | |
12654 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12655 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12657 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12658 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12659 | $as_echo_n "(cached) " >&6 |
12660 | else | |
12661 | if test -n "$READELF"; then | |
12662 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12663 | else | |
12664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12665 | for as_dir in $PATH | |
12666 | do | |
12667 | IFS=$as_save_IFS | |
12668 | test -z "$as_dir" && as_dir=. | |
12669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12671 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12673 | break 2 | |
12674 | fi | |
12675 | done | |
12676 | done | |
12677 | IFS=$as_save_IFS | |
12678 | ||
12679 | fi | |
12680 | fi | |
12681 | READELF=$ac_cv_prog_READELF | |
12682 | if test -n "$READELF"; then | |
12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12684 | $as_echo "$READELF" >&6; } | |
12685 | else | |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12687 | $as_echo "no" >&6; } | |
12688 | fi | |
12689 | ||
12690 | ||
12691 | fi | |
12692 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12693 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12694 | set dummy ${ncn_progname}; ac_word=$2 | |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12696 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12697 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12698 | $as_echo_n "(cached) " >&6 |
12699 | else | |
12700 | if test -n "$READELF"; then | |
12701 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12702 | else | |
12703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12704 | for as_dir in $PATH | |
12705 | do | |
12706 | IFS=$as_save_IFS | |
12707 | test -z "$as_dir" && as_dir=. | |
12708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12710 | ac_cv_prog_READELF="${ncn_progname}" |
12711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12712 | break 2 | |
12713 | fi | |
12714 | done | |
12715 | done | |
12716 | IFS=$as_save_IFS | |
12717 | ||
12718 | fi | |
12719 | fi | |
12720 | READELF=$ac_cv_prog_READELF | |
12721 | if test -n "$READELF"; then | |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12723 | $as_echo "$READELF" >&6; } | |
12724 | else | |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12726 | $as_echo "no" >&6; } | |
12727 | fi | |
12728 | ||
12729 | ||
12730 | fi | |
12731 | test -n "$ac_cv_prog_READELF" && break | |
12732 | done | |
12733 | ||
12734 | if test -z "$ac_cv_prog_READELF" ; then | |
12735 | set dummy readelf | |
12736 | if test $build = $host ; then | |
12737 | READELF="$2" | |
12738 | else | |
12739 | READELF="${ncn_tool_prefix}$2" | |
12740 | fi | |
12741 | fi | |
12742 | ||
12743 | ||
12744 | ||
671aa708 NN |
12745 | |
12746 | ||
12747 | ||
5fee5ec3 IB |
12748 | |
12749 | ||
bf8cdd35 L |
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12751 | $as_echo_n "checking for -plugin option... " >&6; } | |
12752 | ||
12753 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
12754 | plugin_option= | |
12755 | for plugin in $plugin_names; do | |
12756 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
12757 | if test x$plugin_so = x$plugin; then | |
12758 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
12759 | fi | |
12760 | if test x$plugin_so != x$plugin; then | |
12761 | plugin_option="--plugin $plugin_so" | |
12762 | break | |
12763 | fi | |
12764 | done | |
12765 | if test -n "$plugin_option"; then | |
12766 | PLUGIN_OPTION="$plugin_option" | |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
12768 | $as_echo "$plugin_option" >&6; } | |
12769 | else | |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12771 | $as_echo "no" >&6; } | |
12772 | fi | |
12773 | ||
12774 | AR_PLUGIN_OPTION= | |
12775 | RANLIB_PLUGIN_OPTION= | |
12776 | if test -n "$PLUGIN_OPTION"; then | |
12777 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
12778 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
12779 | fi | |
12780 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
12781 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
12782 | fi | |
12783 | fi | |
12784 | ||
12785 | ||
12786 | ||
2abefe3d | 12787 | # Target tools. |
1c710c3c | 12788 | |
5213506e RW |
12789 | # Check whether --with-build-time-tools was given. |
12790 | if test "${with_build_time_tools+set}" = set; then : | |
12791 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12792 | x/*) ;; |
12793 | *) | |
12794 | with_build_time_tools= | |
5213506e RW |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12796 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12797 | ;; |
12798 | esac | |
ca9f4b81 | 12799 | else |
e8b05380 | 12800 | with_build_time_tools= |
5213506e RW |
12801 | fi |
12802 | ||
ca9f4b81 | 12803 | |
278a7a38 AO |
12804 | |
12805 | ||
12806 | if test -n "$CC_FOR_TARGET"; then | |
12807 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12808 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12809 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12810 | fi | |
12811 | ||
12812 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12813 | for ncn_progname in cc gcc; do | |
12814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12815 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12818 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12819 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12820 | else |
12821 | if test -n "$CC_FOR_TARGET"; then | |
12822 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12823 | else | |
12824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12825 | for as_dir in $PATH | |
12826 | do | |
12827 | IFS=$as_save_IFS | |
12828 | test -z "$as_dir" && as_dir=. | |
5213506e | 12829 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12831 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12833 | break 2 |
12834 | fi | |
12835 | done | |
5213506e RW |
12836 | done |
12837 | IFS=$as_save_IFS | |
278a7a38 AO |
12838 | |
12839 | fi | |
12840 | fi | |
12841 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12842 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12844 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12845 | else |
5213506e RW |
12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12847 | $as_echo "no" >&6; } | |
278a7a38 AO |
12848 | fi |
12849 | ||
5213506e | 12850 | |
278a7a38 AO |
12851 | done |
12852 | fi | |
12853 | ||
12854 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12855 | for ncn_progname in cc gcc; do |
5213506e RW |
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12857 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12858 | if test -x $with_build_time_tools/${ncn_progname}; then |
12859 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12861 | $as_echo "yes" >&6; } | |
72a7ab82 | 12862 | break |
e8b05380 | 12863 | else |
5213506e RW |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12865 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12866 | fi |
12867 | done | |
4de997d1 PB |
12868 | fi |
12869 | ||
e8b05380 PB |
12870 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12871 | for ncn_progname in cc gcc; do | |
12872 | if test -n "$ncn_target_tool_prefix"; then | |
12873 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12874 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12876 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12877 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12878 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12879 | else |
12880 | if test -n "$CC_FOR_TARGET"; then | |
12881 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12882 | else | |
1c710c3c DJ |
12883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12884 | for as_dir in $PATH | |
12885 | do | |
12886 | IFS=$as_save_IFS | |
12887 | test -z "$as_dir" && as_dir=. | |
5213506e | 12888 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12890 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12892 | break 2 |
12893 | fi | |
12894 | done | |
5213506e RW |
12895 | done |
12896 | IFS=$as_save_IFS | |
1c710c3c | 12897 | |
4de997d1 PB |
12898 | fi |
12899 | fi | |
1c710c3c | 12900 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12901 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12903 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12904 | else |
5213506e RW |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12906 | $as_echo "no" >&6; } | |
4de997d1 PB |
12907 | fi |
12908 | ||
5213506e | 12909 | |
e8b05380 PB |
12910 | fi |
12911 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12912 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12913 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12915 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12916 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12917 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12918 | else |
2693c0b0 PB |
12919 | if test -n "$CC_FOR_TARGET"; then |
12920 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12921 | else |
1c710c3c DJ |
12922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12923 | for as_dir in $PATH | |
12924 | do | |
12925 | IFS=$as_save_IFS | |
12926 | test -z "$as_dir" && as_dir=. | |
5213506e | 12927 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12929 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12931 | break 2 |
12932 | fi | |
12933 | done | |
5213506e RW |
12934 | done |
12935 | IFS=$as_save_IFS | |
1c710c3c | 12936 | |
4de997d1 PB |
12937 | fi |
12938 | fi | |
1c710c3c | 12939 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12940 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12942 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12943 | else |
5213506e RW |
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12945 | $as_echo "no" >&6; } | |
4de997d1 | 12946 | fi |
1c710c3c | 12947 | |
5213506e | 12948 | |
e8b05380 PB |
12949 | fi |
12950 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
12951 | done | |
12952 | fi | |
1c710c3c | 12953 | |
2693c0b0 PB |
12954 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
12955 | set dummy cc gcc | |
12956 | if test $build = $target ; then | |
12957 | CC_FOR_TARGET="$2" | |
4de997d1 | 12958 | else |
2693c0b0 | 12959 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12960 | fi |
1c00b503 PB |
12961 | else |
12962 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
12963 | fi |
12964 | ||
278a7a38 AO |
12965 | |
12966 | ||
12967 | if test -n "$CXX_FOR_TARGET"; then | |
12968 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
12969 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12970 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12971 | fi | |
12972 | ||
12973 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12974 | for ncn_progname in c++ g++ cxx gxx; do | |
12975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12976 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12978 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12979 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12980 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12981 | else |
12982 | if test -n "$CXX_FOR_TARGET"; then | |
12983 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12984 | else | |
12985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12986 | for as_dir in $PATH | |
12987 | do | |
12988 | IFS=$as_save_IFS | |
12989 | test -z "$as_dir" && as_dir=. | |
5213506e | 12990 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12992 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12994 | break 2 |
12995 | fi | |
12996 | done | |
5213506e RW |
12997 | done |
12998 | IFS=$as_save_IFS | |
278a7a38 AO |
12999 | |
13000 | fi | |
13001 | fi | |
13002 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13003 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13005 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13006 | else |
5213506e RW |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13008 | $as_echo "no" >&6; } | |
278a7a38 AO |
13009 | fi |
13010 | ||
5213506e | 13011 | |
278a7a38 AO |
13012 | done |
13013 | fi | |
13014 | ||
13015 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13016 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13018 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13019 | if test -x $with_build_time_tools/${ncn_progname}; then |
13020 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13022 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13023 | break |
13024 | else | |
5213506e RW |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13026 | $as_echo "no" >&6; } | |
e8b05380 PB |
13027 | fi |
13028 | done | |
13029 | fi | |
13030 | ||
13031 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13032 | for ncn_progname in c++ g++ cxx gxx; do | |
13033 | if test -n "$ncn_target_tool_prefix"; then | |
13034 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13035 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13037 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13038 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13039 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13040 | else |
13041 | if test -n "$CXX_FOR_TARGET"; then | |
13042 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13043 | else | |
1c710c3c DJ |
13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13045 | for as_dir in $PATH | |
13046 | do | |
13047 | IFS=$as_save_IFS | |
13048 | test -z "$as_dir" && as_dir=. | |
5213506e | 13049 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13051 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13053 | break 2 |
13054 | fi | |
13055 | done | |
5213506e RW |
13056 | done |
13057 | IFS=$as_save_IFS | |
1c710c3c | 13058 | |
4de997d1 PB |
13059 | fi |
13060 | fi | |
1c710c3c | 13061 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13062 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13064 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13065 | else |
5213506e RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13067 | $as_echo "no" >&6; } | |
4de997d1 PB |
13068 | fi |
13069 | ||
5213506e | 13070 | |
e8b05380 PB |
13071 | fi |
13072 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13074 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13076 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13077 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13078 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13079 | else |
2693c0b0 PB |
13080 | if test -n "$CXX_FOR_TARGET"; then |
13081 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13082 | else |
1c710c3c DJ |
13083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13084 | for as_dir in $PATH | |
13085 | do | |
13086 | IFS=$as_save_IFS | |
13087 | test -z "$as_dir" && as_dir=. | |
5213506e | 13088 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13090 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13092 | break 2 |
13093 | fi | |
13094 | done | |
5213506e RW |
13095 | done |
13096 | IFS=$as_save_IFS | |
1c710c3c | 13097 | |
4de997d1 PB |
13098 | fi |
13099 | fi | |
1c710c3c | 13100 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13101 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13103 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13104 | else |
5213506e RW |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13106 | $as_echo "no" >&6; } | |
4de997d1 | 13107 | fi |
1c710c3c | 13108 | |
5213506e | 13109 | |
e8b05380 PB |
13110 | fi |
13111 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13112 | done | |
13113 | fi | |
1c710c3c | 13114 | |
2693c0b0 PB |
13115 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13116 | set dummy c++ g++ cxx gxx | |
13117 | if test $build = $target ; then | |
13118 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13119 | else |
2693c0b0 | 13120 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13121 | fi |
1c00b503 PB |
13122 | else |
13123 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13124 | fi |
13125 | ||
278a7a38 AO |
13126 | |
13127 | ||
13128 | if test -n "$GCC_FOR_TARGET"; then | |
13129 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13130 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13131 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13132 | fi | |
13133 | ||
13134 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13135 | for ncn_progname in gcc; do | |
13136 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13137 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13139 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13140 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13141 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13142 | else |
13143 | if test -n "$GCC_FOR_TARGET"; then | |
13144 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13145 | else | |
13146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13147 | for as_dir in $PATH | |
13148 | do | |
13149 | IFS=$as_save_IFS | |
13150 | test -z "$as_dir" && as_dir=. | |
5213506e | 13151 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13153 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13155 | break 2 |
13156 | fi | |
13157 | done | |
5213506e RW |
13158 | done |
13159 | IFS=$as_save_IFS | |
278a7a38 AO |
13160 | |
13161 | fi | |
13162 | fi | |
13163 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13164 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13166 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13167 | else |
5213506e RW |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13169 | $as_echo "no" >&6; } | |
278a7a38 AO |
13170 | fi |
13171 | ||
5213506e | 13172 | |
278a7a38 AO |
13173 | done |
13174 | fi | |
13175 | ||
13176 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13177 | for ncn_progname in gcc; do |
5213506e RW |
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13179 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13180 | if test -x $with_build_time_tools/${ncn_progname}; then |
13181 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13183 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13184 | break |
13185 | else | |
5213506e RW |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13187 | $as_echo "no" >&6; } | |
e8b05380 PB |
13188 | fi |
13189 | done | |
13190 | fi | |
13191 | ||
13192 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13193 | for ncn_progname in gcc; do | |
13194 | if test -n "$ncn_target_tool_prefix"; then | |
13195 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13196 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13198 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13199 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13200 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13201 | else |
e8b05380 PB |
13202 | if test -n "$GCC_FOR_TARGET"; then |
13203 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13204 | else |
1c710c3c DJ |
13205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13206 | for as_dir in $PATH | |
13207 | do | |
13208 | IFS=$as_save_IFS | |
13209 | test -z "$as_dir" && as_dir=. | |
5213506e | 13210 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13212 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13214 | break 2 |
13215 | fi | |
13216 | done | |
5213506e RW |
13217 | done |
13218 | IFS=$as_save_IFS | |
1c710c3c | 13219 | |
ca9f4b81 AO |
13220 | fi |
13221 | fi | |
1c710c3c | 13222 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13223 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13225 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13226 | else |
5213506e RW |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13228 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13229 | fi |
13230 | ||
5213506e | 13231 | |
e8b05380 PB |
13232 | fi |
13233 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13235 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13237 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13238 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13239 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13240 | else |
e8b05380 PB |
13241 | if test -n "$GCC_FOR_TARGET"; then |
13242 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13243 | else |
1c710c3c DJ |
13244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13245 | for as_dir in $PATH | |
13246 | do | |
13247 | IFS=$as_save_IFS | |
13248 | test -z "$as_dir" && as_dir=. | |
5213506e | 13249 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13251 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13253 | break 2 |
13254 | fi | |
13255 | done | |
5213506e RW |
13256 | done |
13257 | IFS=$as_save_IFS | |
1c710c3c | 13258 | |
ca9f4b81 AO |
13259 | fi |
13260 | fi | |
1c710c3c | 13261 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13262 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13264 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13265 | else |
5213506e RW |
13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13267 | $as_echo "no" >&6; } | |
ca9f4b81 | 13268 | fi |
1c710c3c | 13269 | |
5213506e | 13270 | |
e8b05380 PB |
13271 | fi |
13272 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13273 | done | |
13274 | fi | |
1c710c3c | 13275 | |
e8b05380 PB |
13276 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13277 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13278 | else |
13279 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13280 | fi |
13281 | ||
278a7a38 AO |
13282 | |
13283 | ||
278a7a38 AO |
13284 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13285 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13286 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13287 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13288 | fi |
13289 | ||
278a7a38 AO |
13290 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13291 | for ncn_progname in gfortran; do | |
13292 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13293 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13295 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13296 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13297 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13298 | else |
278a7a38 AO |
13299 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13300 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13301 | else |
1c710c3c DJ |
13302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13303 | for as_dir in $PATH | |
13304 | do | |
13305 | IFS=$as_save_IFS | |
13306 | test -z "$as_dir" && as_dir=. | |
5213506e | 13307 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13309 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13311 | break 2 |
13312 | fi | |
13313 | done | |
5213506e RW |
13314 | done |
13315 | IFS=$as_save_IFS | |
1c710c3c | 13316 | |
e8b05380 PB |
13317 | fi |
13318 | fi | |
278a7a38 AO |
13319 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13320 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13322 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13323 | else |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13325 | $as_echo "no" >&6; } | |
e8b05380 | 13326 | fi |
1c710c3c | 13327 | |
5213506e | 13328 | |
e8b05380 PB |
13329 | done |
13330 | fi | |
1c710c3c | 13331 | |
278a7a38 | 13332 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13333 | for ncn_progname in gfortran; do |
5213506e RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13335 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13336 | if test -x $with_build_time_tools/${ncn_progname}; then |
13337 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13339 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13340 | break |
13341 | else | |
5213506e RW |
13342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13343 | $as_echo "no" >&6; } | |
e8b05380 PB |
13344 | fi |
13345 | done | |
13346 | fi | |
13347 | ||
13348 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13349 | for ncn_progname in gfortran; do | |
13350 | if test -n "$ncn_target_tool_prefix"; then | |
13351 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13352 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13354 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13355 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13356 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13357 | else |
13358 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13359 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13360 | else | |
13361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13362 | for as_dir in $PATH | |
13363 | do | |
13364 | IFS=$as_save_IFS | |
13365 | test -z "$as_dir" && as_dir=. | |
5213506e | 13366 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13368 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13370 | break 2 |
13371 | fi | |
13372 | done | |
5213506e RW |
13373 | done |
13374 | IFS=$as_save_IFS | |
1c710c3c | 13375 | |
e8b05380 PB |
13376 | fi |
13377 | fi | |
1c710c3c | 13378 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13379 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13381 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13382 | else |
5213506e RW |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13384 | $as_echo "no" >&6; } | |
e8b05380 PB |
13385 | fi |
13386 | ||
5213506e | 13387 | |
e8b05380 PB |
13388 | fi |
13389 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13390 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13391 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13393 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13394 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13395 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13396 | else |
13397 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13398 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13399 | else | |
1c710c3c DJ |
13400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13401 | for as_dir in $PATH | |
13402 | do | |
13403 | IFS=$as_save_IFS | |
13404 | test -z "$as_dir" && as_dir=. | |
5213506e | 13405 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13407 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13409 | break 2 |
13410 | fi | |
13411 | done | |
5213506e RW |
13412 | done |
13413 | IFS=$as_save_IFS | |
1c710c3c | 13414 | |
e8b05380 PB |
13415 | fi |
13416 | fi | |
1c710c3c | 13417 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13418 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13420 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13421 | else |
5213506e RW |
13422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13423 | $as_echo "no" >&6; } | |
e8b05380 | 13424 | fi |
1c710c3c | 13425 | |
5213506e | 13426 | |
e8b05380 PB |
13427 | fi |
13428 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13429 | done | |
13430 | fi | |
1c710c3c | 13431 | |
e8b05380 PB |
13432 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13433 | set dummy gfortran | |
2693c0b0 | 13434 | if test $build = $target ; then |
e8b05380 | 13435 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13436 | else |
e8b05380 PB |
13437 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13438 | fi | |
1c00b503 PB |
13439 | else |
13440 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13441 | fi |
13442 | ||
13443 | ||
13444 | ||
632e2a07 ILT |
13445 | if test -n "$GOC_FOR_TARGET"; then |
13446 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13447 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13448 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13449 | fi | |
13450 | ||
13451 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13452 | for ncn_progname in gccgo; do | |
13453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13454 | set dummy ${ncn_progname}; ac_word=$2 | |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13456 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13457 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13458 | $as_echo_n "(cached) " >&6 |
13459 | else | |
13460 | if test -n "$GOC_FOR_TARGET"; then | |
13461 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13462 | else | |
13463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13464 | for as_dir in $PATH | |
13465 | do | |
13466 | IFS=$as_save_IFS | |
13467 | test -z "$as_dir" && as_dir=. | |
13468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13470 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13472 | break 2 | |
13473 | fi | |
13474 | done | |
13475 | done | |
13476 | IFS=$as_save_IFS | |
13477 | ||
13478 | fi | |
13479 | fi | |
13480 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13481 | if test -n "$GOC_FOR_TARGET"; then | |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13483 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13484 | else | |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13486 | $as_echo "no" >&6; } | |
13487 | fi | |
13488 | ||
13489 | ||
13490 | done | |
13491 | fi | |
13492 | ||
13493 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13494 | for ncn_progname in gccgo; do | |
13495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13496 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13497 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13498 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13500 | $as_echo "yes" >&6; } | |
13501 | break | |
13502 | else | |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13504 | $as_echo "no" >&6; } | |
13505 | fi | |
13506 | done | |
13507 | fi | |
13508 | ||
13509 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13510 | for ncn_progname in gccgo; do | |
13511 | if test -n "$ncn_target_tool_prefix"; then | |
13512 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13513 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13515 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13516 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13517 | $as_echo_n "(cached) " >&6 |
13518 | else | |
13519 | if test -n "$GOC_FOR_TARGET"; then | |
13520 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13521 | else | |
13522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13523 | for as_dir in $PATH | |
13524 | do | |
13525 | IFS=$as_save_IFS | |
13526 | test -z "$as_dir" && as_dir=. | |
13527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13529 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13531 | break 2 | |
13532 | fi | |
13533 | done | |
13534 | done | |
13535 | IFS=$as_save_IFS | |
13536 | ||
13537 | fi | |
13538 | fi | |
13539 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13540 | if test -n "$GOC_FOR_TARGET"; then | |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13542 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13543 | else | |
13544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13545 | $as_echo "no" >&6; } | |
13546 | fi | |
13547 | ||
13548 | ||
13549 | fi | |
13550 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13551 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13552 | set dummy ${ncn_progname}; ac_word=$2 | |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13554 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13555 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13556 | $as_echo_n "(cached) " >&6 |
13557 | else | |
13558 | if test -n "$GOC_FOR_TARGET"; then | |
13559 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13560 | else | |
13561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13562 | for as_dir in $PATH | |
13563 | do | |
13564 | IFS=$as_save_IFS | |
13565 | test -z "$as_dir" && as_dir=. | |
13566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13568 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13570 | break 2 | |
13571 | fi | |
13572 | done | |
13573 | done | |
13574 | IFS=$as_save_IFS | |
13575 | ||
13576 | fi | |
13577 | fi | |
13578 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13579 | if test -n "$GOC_FOR_TARGET"; then | |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13581 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13582 | else | |
13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13584 | $as_echo "no" >&6; } | |
13585 | fi | |
13586 | ||
13587 | ||
13588 | fi | |
13589 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13590 | done | |
13591 | fi | |
13592 | ||
13593 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13594 | set dummy gccgo | |
13595 | if test $build = $target ; then | |
13596 | GOC_FOR_TARGET="$2" | |
13597 | else | |
13598 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13599 | fi | |
13600 | else | |
13601 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13602 | fi | |
13603 | ||
13604 | ||
13605 | ||
b4c522fa IB |
13606 | if test -n "$GDC_FOR_TARGET"; then |
13607 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13608 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13609 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13610 | fi | |
13611 | ||
13612 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13613 | for ncn_progname in gdc; do | |
13614 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13615 | set dummy ${ncn_progname}; ac_word=$2 | |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13617 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13618 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13619 | $as_echo_n "(cached) " >&6 |
13620 | else | |
13621 | if test -n "$GDC_FOR_TARGET"; then | |
13622 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13623 | else | |
13624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13625 | for as_dir in $PATH | |
13626 | do | |
13627 | IFS=$as_save_IFS | |
13628 | test -z "$as_dir" && as_dir=. | |
13629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13631 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13633 | break 2 | |
13634 | fi | |
13635 | done | |
13636 | done | |
13637 | IFS=$as_save_IFS | |
13638 | ||
13639 | fi | |
13640 | fi | |
13641 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13642 | if test -n "$GDC_FOR_TARGET"; then | |
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13644 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13645 | else | |
13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13647 | $as_echo "no" >&6; } | |
13648 | fi | |
13649 | ||
13650 | ||
13651 | done | |
13652 | fi | |
13653 | ||
13654 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13655 | for ncn_progname in gdc; do | |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13657 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13658 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13659 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13661 | $as_echo "yes" >&6; } | |
13662 | break | |
13663 | else | |
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13665 | $as_echo "no" >&6; } | |
13666 | fi | |
13667 | done | |
13668 | fi | |
13669 | ||
13670 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13671 | for ncn_progname in gdc; do | |
13672 | if test -n "$ncn_target_tool_prefix"; then | |
13673 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13674 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13677 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13678 | $as_echo_n "(cached) " >&6 |
13679 | else | |
13680 | if test -n "$GDC_FOR_TARGET"; then | |
13681 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13682 | else | |
13683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13684 | for as_dir in $PATH | |
13685 | do | |
13686 | IFS=$as_save_IFS | |
13687 | test -z "$as_dir" && as_dir=. | |
13688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13690 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13692 | break 2 | |
13693 | fi | |
13694 | done | |
13695 | done | |
13696 | IFS=$as_save_IFS | |
13697 | ||
13698 | fi | |
13699 | fi | |
13700 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13701 | if test -n "$GDC_FOR_TARGET"; then | |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13703 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13704 | else | |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13706 | $as_echo "no" >&6; } | |
13707 | fi | |
13708 | ||
13709 | ||
13710 | fi | |
13711 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13713 | set dummy ${ncn_progname}; ac_word=$2 | |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13715 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13716 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13717 | $as_echo_n "(cached) " >&6 |
13718 | else | |
13719 | if test -n "$GDC_FOR_TARGET"; then | |
13720 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13721 | else | |
13722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13723 | for as_dir in $PATH | |
13724 | do | |
13725 | IFS=$as_save_IFS | |
13726 | test -z "$as_dir" && as_dir=. | |
13727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13729 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13731 | break 2 | |
13732 | fi | |
13733 | done | |
13734 | done | |
13735 | IFS=$as_save_IFS | |
13736 | ||
13737 | fi | |
13738 | fi | |
13739 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13740 | if test -n "$GDC_FOR_TARGET"; then | |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13742 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13743 | else | |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13745 | $as_echo "no" >&6; } | |
13746 | fi | |
13747 | ||
13748 | ||
13749 | fi | |
13750 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13751 | done | |
13752 | fi | |
13753 | ||
13754 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13755 | set dummy gdc | |
13756 | if test $build = $target ; then | |
13757 | GDC_FOR_TARGET="$2" | |
13758 | else | |
13759 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13760 | fi | |
13761 | else | |
13762 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13763 | fi | |
13764 | ||
13765 | ||
13766 | ||
e8b05380 PB |
13767 | cat > conftest.c << \EOF |
13768 | #ifdef __GNUC__ | |
13769 | gcc_yay; | |
13770 | #endif | |
13771 | EOF | |
13772 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13773 | have_gcc_for_target=yes | |
13774 | else | |
13775 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13776 | have_gcc_for_target=no | |
13777 | fi | |
13778 | rm conftest.c | |
13779 | ||
13780 | ||
13781 | ||
13782 | ||
13783 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13784 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13786 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13787 | if test -x $with_build_time_tools/ar; then |
13788 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13789 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13791 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13792 | else |
5213506e RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13794 | $as_echo "no" >&6; } | |
d1f8db0c | 13795 | fi |
e8b05380 PB |
13796 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13797 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13798 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13799 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13800 | fi |
13801 | fi | |
3e19841a | 13802 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13803 | # Extract the first word of "ar", so it can be a program name with args. |
13804 | set dummy ar; ac_word=$2 | |
5213506e RW |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13806 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13807 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13808 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13809 | else |
1c710c3c DJ |
13810 | case $AR_FOR_TARGET in |
13811 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13812 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13813 | ;; | |
e8b05380 | 13814 | *) |
1c710c3c DJ |
13815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13816 | for as_dir in $gcc_cv_tool_dirs | |
13817 | do | |
13818 | IFS=$as_save_IFS | |
13819 | test -z "$as_dir" && as_dir=. | |
5213506e | 13820 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13822 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13824 | break 2 |
13825 | fi | |
13826 | done | |
5213506e RW |
13827 | done |
13828 | IFS=$as_save_IFS | |
1c710c3c | 13829 | |
e8b05380 PB |
13830 | ;; |
13831 | esac | |
13832 | fi | |
1c710c3c | 13833 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13834 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13836 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13837 | else |
5213506e RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13839 | $as_echo "no" >&6; } | |
4de997d1 PB |
13840 | fi |
13841 | ||
5213506e | 13842 | |
e8b05380 PB |
13843 | fi |
13844 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13845 | |
13846 | ||
13847 | if test -n "$AR_FOR_TARGET"; then | |
13848 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13849 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13850 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13851 | fi | |
13852 | ||
13853 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13854 | for ncn_progname in ar; do | |
13855 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13856 | set dummy ${ncn_progname}; 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_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13860 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13861 | else |
13862 | if test -n "$AR_FOR_TARGET"; then | |
13863 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13864 | else | |
13865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13866 | for as_dir in $PATH | |
13867 | do | |
13868 | IFS=$as_save_IFS | |
13869 | test -z "$as_dir" && as_dir=. | |
5213506e | 13870 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13872 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13874 | break 2 |
13875 | fi | |
13876 | done | |
5213506e RW |
13877 | done |
13878 | IFS=$as_save_IFS | |
278a7a38 AO |
13879 | |
13880 | fi | |
13881 | fi | |
13882 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13883 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13885 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13886 | else |
5213506e RW |
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13888 | $as_echo "no" >&6; } | |
278a7a38 AO |
13889 | fi |
13890 | ||
5213506e | 13891 | |
278a7a38 AO |
13892 | done |
13893 | fi | |
13894 | ||
13895 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13896 | for ncn_progname in ar; do |
5213506e RW |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13898 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13899 | if test -x $with_build_time_tools/${ncn_progname}; then |
13900 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13902 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13903 | break |
13904 | else | |
5213506e RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13906 | $as_echo "no" >&6; } | |
e8b05380 PB |
13907 | fi |
13908 | done | |
13909 | fi | |
13910 | ||
13911 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13912 | for ncn_progname in ar; do | |
13913 | if test -n "$ncn_target_tool_prefix"; then | |
13914 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13915 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13917 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13918 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13919 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13920 | else |
e8b05380 PB |
13921 | if test -n "$AR_FOR_TARGET"; then |
13922 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13923 | else |
1c710c3c DJ |
13924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13925 | for as_dir in $PATH | |
13926 | do | |
13927 | IFS=$as_save_IFS | |
13928 | test -z "$as_dir" && as_dir=. | |
5213506e | 13929 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13931 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13933 | break 2 |
13934 | fi | |
13935 | done | |
5213506e RW |
13936 | done |
13937 | IFS=$as_save_IFS | |
1c710c3c | 13938 | |
4de997d1 PB |
13939 | fi |
13940 | fi | |
1c710c3c | 13941 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13942 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13944 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13945 | else |
5213506e RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13947 | $as_echo "no" >&6; } | |
4de997d1 PB |
13948 | fi |
13949 | ||
5213506e | 13950 | |
e8b05380 PB |
13951 | fi |
13952 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
13953 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13954 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13956 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13957 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13958 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13959 | else |
13960 | if test -n "$AR_FOR_TARGET"; then | |
13961 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13962 | else | |
1c710c3c DJ |
13963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13964 | for as_dir in $PATH | |
13965 | do | |
13966 | IFS=$as_save_IFS | |
13967 | test -z "$as_dir" && as_dir=. | |
5213506e | 13968 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13970 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13972 | break 2 |
13973 | fi | |
13974 | done | |
5213506e RW |
13975 | done |
13976 | IFS=$as_save_IFS | |
1c710c3c | 13977 | |
e8b05380 PB |
13978 | fi |
13979 | fi | |
1c710c3c | 13980 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13981 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13983 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13984 | else |
5213506e RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13986 | $as_echo "no" >&6; } | |
e8b05380 | 13987 | fi |
1c710c3c | 13988 | |
5213506e | 13989 | |
e8b05380 PB |
13990 | fi |
13991 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
13992 | done | |
13993 | fi | |
1c710c3c | 13994 | |
e8b05380 PB |
13995 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
13996 | set dummy ar | |
13997 | if test $build = $target ; then | |
13998 | AR_FOR_TARGET="$2" | |
13999 | else | |
14000 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14001 | fi |
1c00b503 PB |
14002 | else |
14003 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14004 | fi |
14005 | ||
d1f8db0c PB |
14006 | else |
14007 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14008 | fi |
14009 | ||
14010 | ||
14011 | ||
14012 | ||
14013 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14014 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14016 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14017 | if test -x $with_build_time_tools/as; then |
14018 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14019 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14021 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14022 | else |
5213506e RW |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14024 | $as_echo "no" >&6; } | |
d1f8db0c | 14025 | fi |
e8b05380 PB |
14026 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14027 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14028 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14029 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14030 | fi |
14031 | fi | |
3e19841a | 14032 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14033 | # Extract the first word of "as", so it can be a program name with args. |
14034 | set dummy as; ac_word=$2 | |
5213506e RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14036 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14037 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14038 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14039 | else |
1c710c3c DJ |
14040 | case $AS_FOR_TARGET in |
14041 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14042 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14043 | ;; | |
e8b05380 | 14044 | *) |
1c710c3c DJ |
14045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14046 | for as_dir in $gcc_cv_tool_dirs | |
14047 | do | |
14048 | IFS=$as_save_IFS | |
14049 | test -z "$as_dir" && as_dir=. | |
5213506e | 14050 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14052 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14054 | break 2 |
14055 | fi | |
14056 | done | |
5213506e RW |
14057 | done |
14058 | IFS=$as_save_IFS | |
1c710c3c | 14059 | |
e8b05380 PB |
14060 | ;; |
14061 | esac | |
14062 | fi | |
1c710c3c | 14063 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14064 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14066 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14067 | else |
5213506e RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14069 | $as_echo "no" >&6; } | |
e8b05380 PB |
14070 | fi |
14071 | ||
5213506e | 14072 | |
e8b05380 PB |
14073 | fi |
14074 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14075 | |
14076 | ||
14077 | if test -n "$AS_FOR_TARGET"; then | |
14078 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14079 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14080 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14081 | fi | |
14082 | ||
14083 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14084 | for ncn_progname in as; do | |
14085 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14086 | set dummy ${ncn_progname}; 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_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14090 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14091 | else |
14092 | if test -n "$AS_FOR_TARGET"; then | |
14093 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14094 | else | |
14095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14096 | for as_dir in $PATH | |
14097 | do | |
14098 | IFS=$as_save_IFS | |
14099 | test -z "$as_dir" && as_dir=. | |
5213506e | 14100 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14102 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14104 | break 2 |
14105 | fi | |
14106 | done | |
5213506e RW |
14107 | done |
14108 | IFS=$as_save_IFS | |
278a7a38 AO |
14109 | |
14110 | fi | |
14111 | fi | |
14112 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14113 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14115 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14116 | else |
5213506e RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14118 | $as_echo "no" >&6; } | |
278a7a38 AO |
14119 | fi |
14120 | ||
5213506e | 14121 | |
278a7a38 AO |
14122 | done |
14123 | fi | |
14124 | ||
14125 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14126 | for ncn_progname in as; do |
5213506e RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14128 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14129 | if test -x $with_build_time_tools/${ncn_progname}; then |
14130 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14132 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14133 | break |
14134 | else | |
5213506e RW |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14136 | $as_echo "no" >&6; } | |
e8b05380 PB |
14137 | fi |
14138 | done | |
14139 | fi | |
14140 | ||
14141 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14142 | for ncn_progname in as; do | |
14143 | if test -n "$ncn_target_tool_prefix"; then | |
14144 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14145 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14147 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14148 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14149 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14150 | else |
14151 | if test -n "$AS_FOR_TARGET"; then | |
14152 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14153 | else | |
1c710c3c DJ |
14154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14155 | for as_dir in $PATH | |
14156 | do | |
14157 | IFS=$as_save_IFS | |
14158 | test -z "$as_dir" && as_dir=. | |
5213506e | 14159 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14160 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14161 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14162 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14163 | break 2 |
14164 | fi | |
14165 | done | |
5213506e RW |
14166 | done |
14167 | IFS=$as_save_IFS | |
1c710c3c | 14168 | |
e8b05380 PB |
14169 | fi |
14170 | fi | |
1c710c3c | 14171 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14172 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14174 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14175 | else |
5213506e RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14177 | $as_echo "no" >&6; } | |
e8b05380 PB |
14178 | fi |
14179 | ||
5213506e | 14180 | |
e8b05380 PB |
14181 | fi |
14182 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14183 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14184 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14186 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14187 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14188 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14189 | else |
e8b05380 PB |
14190 | if test -n "$AS_FOR_TARGET"; then |
14191 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14192 | else |
1c710c3c DJ |
14193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14194 | for as_dir in $PATH | |
14195 | do | |
14196 | IFS=$as_save_IFS | |
14197 | test -z "$as_dir" && as_dir=. | |
5213506e | 14198 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14200 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14202 | break 2 |
14203 | fi | |
14204 | done | |
5213506e RW |
14205 | done |
14206 | IFS=$as_save_IFS | |
1c710c3c | 14207 | |
4de997d1 PB |
14208 | fi |
14209 | fi | |
1c710c3c | 14210 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14211 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14213 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14214 | else |
5213506e RW |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14216 | $as_echo "no" >&6; } | |
4de997d1 | 14217 | fi |
1c710c3c | 14218 | |
5213506e | 14219 | |
e8b05380 PB |
14220 | fi |
14221 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14222 | done | |
14223 | fi | |
1c710c3c | 14224 | |
e8b05380 PB |
14225 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14226 | set dummy as | |
14227 | if test $build = $target ; then | |
14228 | AS_FOR_TARGET="$2" | |
14229 | else | |
14230 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14231 | fi |
1c00b503 PB |
14232 | else |
14233 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14234 | fi |
2693c0b0 | 14235 | |
d1f8db0c PB |
14236 | else |
14237 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14238 | fi |
14239 | ||
e8b05380 PB |
14240 | |
14241 | ||
14242 | ||
14243 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14244 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14246 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14247 | if test -x $with_build_time_tools/dlltool; then |
14248 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14249 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14251 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14252 | else |
5213506e RW |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14254 | $as_echo "no" >&6; } | |
d1f8db0c | 14255 | fi |
e8b05380 PB |
14256 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14257 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14258 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14259 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14260 | fi |
14261 | fi | |
3e19841a | 14262 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14263 | # Extract the first word of "dlltool", so it can be a program name with args. |
14264 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14266 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14267 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14268 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14269 | else |
1c710c3c DJ |
14270 | case $DLLTOOL_FOR_TARGET in |
14271 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14272 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14273 | ;; | |
e8b05380 | 14274 | *) |
1c710c3c DJ |
14275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14276 | for as_dir in $gcc_cv_tool_dirs | |
14277 | do | |
14278 | IFS=$as_save_IFS | |
14279 | test -z "$as_dir" && as_dir=. | |
5213506e | 14280 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14282 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14284 | break 2 |
14285 | fi | |
14286 | done | |
5213506e RW |
14287 | done |
14288 | IFS=$as_save_IFS | |
1c710c3c | 14289 | |
e8b05380 PB |
14290 | ;; |
14291 | esac | |
4de997d1 | 14292 | fi |
1c710c3c | 14293 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14294 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14296 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14297 | else |
5213506e RW |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14299 | $as_echo "no" >&6; } | |
4de997d1 PB |
14300 | fi |
14301 | ||
5213506e | 14302 | |
e8b05380 PB |
14303 | fi |
14304 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14305 | |
14306 | ||
14307 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14308 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14309 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14310 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14311 | fi | |
14312 | ||
14313 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14314 | for ncn_progname in dlltool; do | |
14315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14316 | set dummy ${ncn_progname}; 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_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14320 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14321 | else |
14322 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14323 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14324 | else | |
14325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14326 | for as_dir in $PATH | |
14327 | do | |
14328 | IFS=$as_save_IFS | |
14329 | test -z "$as_dir" && as_dir=. | |
5213506e | 14330 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14332 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14334 | break 2 |
14335 | fi | |
14336 | done | |
5213506e RW |
14337 | done |
14338 | IFS=$as_save_IFS | |
278a7a38 AO |
14339 | |
14340 | fi | |
14341 | fi | |
14342 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14343 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14345 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14346 | else |
5213506e RW |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14348 | $as_echo "no" >&6; } | |
278a7a38 AO |
14349 | fi |
14350 | ||
5213506e | 14351 | |
278a7a38 AO |
14352 | done |
14353 | fi | |
14354 | ||
14355 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14356 | for ncn_progname in dlltool; do |
5213506e RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14358 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14359 | if test -x $with_build_time_tools/${ncn_progname}; then |
14360 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14362 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14363 | break |
14364 | else | |
5213506e RW |
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14366 | $as_echo "no" >&6; } | |
e8b05380 PB |
14367 | fi |
14368 | done | |
14369 | fi | |
14370 | ||
14371 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14372 | for ncn_progname in dlltool; do | |
14373 | if test -n "$ncn_target_tool_prefix"; then | |
14374 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14375 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14377 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14378 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14379 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14380 | else |
e8b05380 PB |
14381 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14382 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14383 | else |
1c710c3c DJ |
14384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14385 | for as_dir in $PATH | |
14386 | do | |
14387 | IFS=$as_save_IFS | |
14388 | test -z "$as_dir" && as_dir=. | |
5213506e | 14389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14391 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14393 | break 2 |
14394 | fi | |
14395 | done | |
5213506e RW |
14396 | done |
14397 | IFS=$as_save_IFS | |
1c710c3c | 14398 | |
4de997d1 PB |
14399 | fi |
14400 | fi | |
1c710c3c | 14401 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14402 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14404 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14405 | else |
5213506e RW |
14406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14407 | $as_echo "no" >&6; } | |
4de997d1 | 14408 | fi |
4de997d1 | 14409 | |
5213506e | 14410 | |
e8b05380 PB |
14411 | fi |
14412 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14413 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14414 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14416 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14417 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14418 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14419 | else |
e8b05380 PB |
14420 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14421 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14422 | else |
1c710c3c DJ |
14423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14424 | for as_dir in $PATH | |
14425 | do | |
14426 | IFS=$as_save_IFS | |
14427 | test -z "$as_dir" && as_dir=. | |
5213506e | 14428 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14430 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14432 | break 2 |
14433 | fi | |
14434 | done | |
5213506e RW |
14435 | done |
14436 | IFS=$as_save_IFS | |
1c710c3c | 14437 | |
4de997d1 PB |
14438 | fi |
14439 | fi | |
1c710c3c | 14440 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14441 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14443 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14444 | else |
5213506e RW |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14446 | $as_echo "no" >&6; } | |
4de997d1 | 14447 | fi |
1c710c3c | 14448 | |
5213506e | 14449 | |
e8b05380 PB |
14450 | fi |
14451 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14452 | done | |
14453 | fi | |
1c710c3c | 14454 | |
e8b05380 PB |
14455 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14456 | set dummy dlltool | |
14457 | if test $build = $target ; then | |
14458 | DLLTOOL_FOR_TARGET="$2" | |
14459 | else | |
14460 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14461 | fi | |
1c00b503 PB |
14462 | else |
14463 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14464 | fi |
14465 | ||
d1f8db0c PB |
14466 | else |
14467 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14468 | fi |
14469 | ||
4de997d1 | 14470 | |
e8b05380 PB |
14471 | |
14472 | ||
3b5e8ee4 IS |
14473 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14474 | if test -n "$with_build_time_tools"; then | |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14476 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14477 | if test -x $with_build_time_tools/dsymutil; then | |
14478 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14479 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14481 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14482 | else | |
14483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14484 | $as_echo "no" >&6; } | |
14485 | fi | |
14486 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14487 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14488 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14489 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14490 | fi | |
14491 | fi | |
14492 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14493 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14494 | set dummy dsymutil; ac_word=$2 | |
14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14496 | $as_echo_n "checking for $ac_word... " >&6; } | |
14497 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14498 | $as_echo_n "(cached) " >&6 | |
14499 | else | |
14500 | case $DSYMUTIL_FOR_TARGET in | |
14501 | [\\/]* | ?:[\\/]*) | |
14502 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14503 | ;; | |
14504 | *) | |
14505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14506 | for as_dir in $gcc_cv_tool_dirs | |
14507 | do | |
14508 | IFS=$as_save_IFS | |
14509 | test -z "$as_dir" && as_dir=. | |
14510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14512 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14514 | break 2 | |
14515 | fi | |
14516 | done | |
14517 | done | |
14518 | IFS=$as_save_IFS | |
14519 | ||
14520 | ;; | |
14521 | esac | |
14522 | fi | |
14523 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14524 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14526 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14527 | else | |
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14529 | $as_echo "no" >&6; } | |
14530 | fi | |
14531 | ||
14532 | ||
14533 | fi | |
14534 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14535 | ||
14536 | ||
14537 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14538 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14539 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14540 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14541 | fi | |
14542 | ||
14543 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14544 | for ncn_progname in dsymutil; do | |
14545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14546 | set dummy ${ncn_progname}; 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_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14550 | $as_echo_n "(cached) " >&6 | |
14551 | else | |
14552 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14553 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14554 | else | |
14555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14556 | for as_dir in $PATH | |
14557 | do | |
14558 | IFS=$as_save_IFS | |
14559 | test -z "$as_dir" && as_dir=. | |
14560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14562 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14564 | break 2 | |
14565 | fi | |
14566 | done | |
14567 | done | |
14568 | IFS=$as_save_IFS | |
14569 | ||
14570 | fi | |
14571 | fi | |
14572 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14573 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14575 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14576 | else | |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14578 | $as_echo "no" >&6; } | |
14579 | fi | |
14580 | ||
14581 | ||
14582 | done | |
14583 | fi | |
14584 | ||
14585 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14586 | for ncn_progname in dsymutil; do | |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14588 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14589 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14590 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14592 | $as_echo "yes" >&6; } | |
14593 | break | |
14594 | else | |
14595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14596 | $as_echo "no" >&6; } | |
14597 | fi | |
14598 | done | |
14599 | fi | |
14600 | ||
14601 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14602 | for ncn_progname in dsymutil; do | |
14603 | if test -n "$ncn_target_tool_prefix"; then | |
14604 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14605 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14607 | $as_echo_n "checking for $ac_word... " >&6; } | |
14608 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14609 | $as_echo_n "(cached) " >&6 | |
14610 | else | |
14611 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14612 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14613 | else | |
14614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14615 | for as_dir in $PATH | |
14616 | do | |
14617 | IFS=$as_save_IFS | |
14618 | test -z "$as_dir" && as_dir=. | |
14619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14621 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14623 | break 2 | |
14624 | fi | |
14625 | done | |
14626 | done | |
14627 | IFS=$as_save_IFS | |
14628 | ||
14629 | fi | |
14630 | fi | |
14631 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14632 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14634 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14635 | else | |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14637 | $as_echo "no" >&6; } | |
14638 | fi | |
14639 | ||
14640 | ||
14641 | fi | |
14642 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14644 | set dummy ${ncn_progname}; ac_word=$2 | |
14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14646 | $as_echo_n "checking for $ac_word... " >&6; } | |
14647 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14648 | $as_echo_n "(cached) " >&6 | |
14649 | else | |
14650 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14651 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14652 | else | |
14653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14654 | for as_dir in $PATH | |
14655 | do | |
14656 | IFS=$as_save_IFS | |
14657 | test -z "$as_dir" && as_dir=. | |
14658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14660 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14662 | break 2 | |
14663 | fi | |
14664 | done | |
14665 | done | |
14666 | IFS=$as_save_IFS | |
14667 | ||
14668 | fi | |
14669 | fi | |
14670 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14671 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14673 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14674 | else | |
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14676 | $as_echo "no" >&6; } | |
14677 | fi | |
14678 | ||
14679 | ||
14680 | fi | |
14681 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14682 | done | |
14683 | fi | |
14684 | ||
14685 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14686 | set dummy dsymutil | |
14687 | if test $build = $target ; then | |
14688 | DSYMUTIL_FOR_TARGET="$2" | |
14689 | else | |
14690 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14691 | fi | |
14692 | else | |
14693 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14694 | fi | |
14695 | ||
14696 | else | |
14697 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14698 | fi | |
14699 | ||
14700 | ||
14701 | ||
14702 | ||
e8b05380 PB |
14703 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14704 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14706 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14707 | if test -x $with_build_time_tools/ld; then |
14708 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14709 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14711 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14712 | else |
5213506e RW |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14714 | $as_echo "no" >&6; } | |
d1f8db0c | 14715 | fi |
e8b05380 PB |
14716 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14717 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14718 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14719 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14720 | fi |
e8b05380 | 14721 | fi |
3e19841a | 14722 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14723 | # Extract the first word of "ld", so it can be a program name with args. |
14724 | set dummy ld; ac_word=$2 | |
5213506e RW |
14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14726 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14727 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14728 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14729 | else |
1c710c3c DJ |
14730 | case $LD_FOR_TARGET in |
14731 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14732 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14733 | ;; | |
e8b05380 | 14734 | *) |
1c710c3c DJ |
14735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14736 | for as_dir in $gcc_cv_tool_dirs | |
14737 | do | |
14738 | IFS=$as_save_IFS | |
14739 | test -z "$as_dir" && as_dir=. | |
5213506e | 14740 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14742 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14744 | break 2 |
14745 | fi | |
14746 | done | |
5213506e RW |
14747 | done |
14748 | IFS=$as_save_IFS | |
1c710c3c | 14749 | |
e8b05380 PB |
14750 | ;; |
14751 | esac | |
4de997d1 | 14752 | fi |
1c710c3c | 14753 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14754 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14756 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14757 | else |
5213506e RW |
14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14759 | $as_echo "no" >&6; } | |
4de997d1 | 14760 | fi |
2693c0b0 | 14761 | |
5213506e | 14762 | |
e8b05380 PB |
14763 | fi |
14764 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14765 | |
14766 | ||
14767 | if test -n "$LD_FOR_TARGET"; then | |
14768 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14769 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14770 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14771 | fi | |
14772 | ||
14773 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14774 | for ncn_progname in ld; do | |
14775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14776 | set dummy ${ncn_progname}; 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_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14780 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14781 | else |
14782 | if test -n "$LD_FOR_TARGET"; then | |
14783 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14784 | else | |
14785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14786 | for as_dir in $PATH | |
14787 | do | |
14788 | IFS=$as_save_IFS | |
14789 | test -z "$as_dir" && as_dir=. | |
5213506e | 14790 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14792 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14794 | break 2 |
14795 | fi | |
14796 | done | |
5213506e RW |
14797 | done |
14798 | IFS=$as_save_IFS | |
278a7a38 AO |
14799 | |
14800 | fi | |
14801 | fi | |
14802 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14803 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14805 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14806 | else |
5213506e RW |
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14808 | $as_echo "no" >&6; } | |
278a7a38 AO |
14809 | fi |
14810 | ||
5213506e | 14811 | |
278a7a38 AO |
14812 | done |
14813 | fi | |
14814 | ||
14815 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14816 | for ncn_progname in ld; do |
5213506e RW |
14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14818 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14819 | if test -x $with_build_time_tools/${ncn_progname}; then |
14820 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14822 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14823 | break |
14824 | else | |
5213506e RW |
14825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14826 | $as_echo "no" >&6; } | |
e8b05380 PB |
14827 | fi |
14828 | done | |
ca9f4b81 AO |
14829 | fi |
14830 | ||
e8b05380 PB |
14831 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14832 | for ncn_progname in ld; do | |
14833 | if test -n "$ncn_target_tool_prefix"; then | |
14834 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14835 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14837 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14838 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14839 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14840 | else |
4de997d1 PB |
14841 | if test -n "$LD_FOR_TARGET"; then |
14842 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14843 | else |
1c710c3c DJ |
14844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14845 | for as_dir in $PATH | |
14846 | do | |
14847 | IFS=$as_save_IFS | |
14848 | test -z "$as_dir" && as_dir=. | |
5213506e | 14849 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14851 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14853 | break 2 |
14854 | fi | |
14855 | done | |
5213506e RW |
14856 | done |
14857 | IFS=$as_save_IFS | |
1c710c3c | 14858 | |
ca9f4b81 AO |
14859 | fi |
14860 | fi | |
1c710c3c | 14861 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14862 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14864 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14865 | else |
5213506e RW |
14866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14867 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14868 | fi |
14869 | ||
5213506e | 14870 | |
e8b05380 PB |
14871 | fi |
14872 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14873 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14874 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14876 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14877 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14878 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14879 | else |
2693c0b0 PB |
14880 | if test -n "$LD_FOR_TARGET"; then |
14881 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14882 | else |
1c710c3c DJ |
14883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14884 | for as_dir in $PATH | |
14885 | do | |
14886 | IFS=$as_save_IFS | |
14887 | test -z "$as_dir" && as_dir=. | |
5213506e | 14888 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14890 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14892 | break 2 |
14893 | fi | |
14894 | done | |
5213506e RW |
14895 | done |
14896 | IFS=$as_save_IFS | |
1c710c3c | 14897 | |
ca9f4b81 AO |
14898 | fi |
14899 | fi | |
1c710c3c | 14900 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14901 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14903 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14904 | else |
5213506e RW |
14905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14906 | $as_echo "no" >&6; } | |
ca9f4b81 | 14907 | fi |
1c710c3c | 14908 | |
5213506e | 14909 | |
e8b05380 PB |
14910 | fi |
14911 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14912 | done | |
14913 | fi | |
1c710c3c | 14914 | |
2693c0b0 PB |
14915 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14916 | set dummy ld | |
14917 | if test $build = $target ; then | |
14918 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14919 | else |
2693c0b0 | 14920 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14921 | fi |
1c00b503 PB |
14922 | else |
14923 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14924 | fi |
14925 | ||
d1f8db0c PB |
14926 | else |
14927 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14928 | fi |
14929 | ||
14930 | ||
14931 | ||
14932 | ||
14933 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14934 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14936 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14937 | if test -x $with_build_time_tools/lipo; then |
14938 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14939 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14941 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14942 | else |
5213506e RW |
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14944 | $as_echo "no" >&6; } | |
d1f8db0c | 14945 | fi |
e8b05380 PB |
14946 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14947 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
14948 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
14949 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
14950 | fi |
14951 | fi | |
278a7a38 AO |
14952 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
14953 | # Extract the first word of "lipo", so it can be a program name with args. | |
14954 | set dummy lipo; ac_word=$2 | |
5213506e RW |
14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14956 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14957 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14958 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14959 | else |
14960 | case $LIPO_FOR_TARGET in | |
14961 | [\\/]* | ?:[\\/]*) | |
14962 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
14963 | ;; | |
14964 | *) | |
14965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14966 | for as_dir in $gcc_cv_tool_dirs | |
14967 | do | |
14968 | IFS=$as_save_IFS | |
14969 | test -z "$as_dir" && as_dir=. | |
5213506e | 14970 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14972 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14974 | break 2 |
14975 | fi | |
14976 | done | |
5213506e RW |
14977 | done |
14978 | IFS=$as_save_IFS | |
278a7a38 AO |
14979 | |
14980 | ;; | |
14981 | esac | |
14982 | fi | |
14983 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 14984 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14986 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 14987 | else |
5213506e RW |
14988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14989 | $as_echo "no" >&6; } | |
278a7a38 AO |
14990 | fi |
14991 | ||
5213506e | 14992 | |
278a7a38 AO |
14993 | fi |
14994 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14995 | ||
14996 | ||
14997 | if test -n "$LIPO_FOR_TARGET"; then | |
14998 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
14999 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15000 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15001 | fi | |
15002 | ||
15003 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15004 | for ncn_progname in lipo; do | |
15005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15006 | set dummy ${ncn_progname}; 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_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15010 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15011 | else |
278a7a38 AO |
15012 | if test -n "$LIPO_FOR_TARGET"; then |
15013 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15014 | else | |
15015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15016 | for as_dir in $PATH | |
1c710c3c DJ |
15017 | do |
15018 | IFS=$as_save_IFS | |
15019 | test -z "$as_dir" && as_dir=. | |
5213506e | 15020 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15022 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15024 | break 2 |
15025 | fi | |
15026 | done | |
5213506e RW |
15027 | done |
15028 | IFS=$as_save_IFS | |
1c710c3c | 15029 | |
e8b05380 | 15030 | fi |
278a7a38 AO |
15031 | fi |
15032 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15033 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15035 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15036 | else |
5213506e RW |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15038 | $as_echo "no" >&6; } | |
e8b05380 PB |
15039 | fi |
15040 | ||
5213506e | 15041 | |
278a7a38 | 15042 | done |
e8b05380 | 15043 | fi |
278a7a38 AO |
15044 | |
15045 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15046 | for ncn_progname in lipo; do |
5213506e RW |
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15048 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15049 | if test -x $with_build_time_tools/${ncn_progname}; then |
15050 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15052 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15053 | break |
15054 | else | |
5213506e RW |
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15056 | $as_echo "no" >&6; } | |
e8b05380 PB |
15057 | fi |
15058 | done | |
15059 | fi | |
15060 | ||
15061 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15062 | for ncn_progname in lipo; do | |
15063 | if test -n "$ncn_target_tool_prefix"; then | |
15064 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15065 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15068 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15069 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15070 | else |
15071 | if test -n "$LIPO_FOR_TARGET"; then | |
15072 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15073 | else | |
1c710c3c DJ |
15074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15075 | for as_dir in $PATH | |
15076 | do | |
15077 | IFS=$as_save_IFS | |
15078 | test -z "$as_dir" && as_dir=. | |
5213506e | 15079 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15081 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15083 | break 2 |
15084 | fi | |
15085 | done | |
5213506e RW |
15086 | done |
15087 | IFS=$as_save_IFS | |
1c710c3c | 15088 | |
040b1c5a GK |
15089 | fi |
15090 | fi | |
1c710c3c | 15091 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15092 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15094 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15095 | else |
5213506e RW |
15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15097 | $as_echo "no" >&6; } | |
040b1c5a GK |
15098 | fi |
15099 | ||
5213506e | 15100 | |
e8b05380 PB |
15101 | fi |
15102 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15104 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15106 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15107 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15108 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15109 | else |
15110 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15111 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15112 | else | |
1c710c3c DJ |
15113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15114 | for as_dir in $PATH | |
15115 | do | |
15116 | IFS=$as_save_IFS | |
15117 | test -z "$as_dir" && as_dir=. | |
5213506e | 15118 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15120 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15122 | break 2 |
15123 | fi | |
15124 | done | |
5213506e RW |
15125 | done |
15126 | IFS=$as_save_IFS | |
1c710c3c | 15127 | |
040b1c5a GK |
15128 | fi |
15129 | fi | |
1c710c3c | 15130 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15131 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15133 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15134 | else |
5213506e RW |
15135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15136 | $as_echo "no" >&6; } | |
040b1c5a | 15137 | fi |
1c710c3c | 15138 | |
5213506e | 15139 | |
e8b05380 PB |
15140 | fi |
15141 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15142 | done | |
15143 | fi | |
1c710c3c | 15144 | |
040b1c5a GK |
15145 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15146 | set dummy lipo | |
15147 | if test $build = $target ; then | |
15148 | LIPO_FOR_TARGET="$2" | |
15149 | else | |
15150 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15151 | fi | |
1c00b503 PB |
15152 | else |
15153 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15154 | fi |
15155 | ||
d1f8db0c PB |
15156 | else |
15157 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15158 | fi |
15159 | ||
15160 | ||
15161 | ||
15162 | ||
15163 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15164 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15166 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15167 | if test -x $with_build_time_tools/nm; then |
15168 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15169 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15171 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15172 | else |
5213506e RW |
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15174 | $as_echo "no" >&6; } | |
d1f8db0c | 15175 | fi |
e8b05380 PB |
15176 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15177 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15178 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15179 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15180 | fi |
15181 | fi | |
3e19841a | 15182 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15183 | # Extract the first word of "nm", so it can be a program name with args. |
15184 | set dummy nm; ac_word=$2 | |
5213506e RW |
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15186 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15187 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15188 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15189 | else |
1c710c3c DJ |
15190 | case $NM_FOR_TARGET in |
15191 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15192 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15193 | ;; | |
e8b05380 | 15194 | *) |
1c710c3c DJ |
15195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15196 | for as_dir in $gcc_cv_tool_dirs | |
15197 | do | |
15198 | IFS=$as_save_IFS | |
15199 | test -z "$as_dir" && as_dir=. | |
5213506e | 15200 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15202 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15204 | break 2 |
15205 | fi | |
15206 | done | |
5213506e RW |
15207 | done |
15208 | IFS=$as_save_IFS | |
1c710c3c | 15209 | |
e8b05380 PB |
15210 | ;; |
15211 | esac | |
15212 | fi | |
1c710c3c | 15213 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15214 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15216 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15217 | else |
5213506e RW |
15218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15219 | $as_echo "no" >&6; } | |
e8b05380 PB |
15220 | fi |
15221 | ||
5213506e | 15222 | |
e8b05380 PB |
15223 | fi |
15224 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15225 | |
15226 | ||
15227 | if test -n "$NM_FOR_TARGET"; then | |
15228 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15229 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15230 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15231 | fi | |
15232 | ||
15233 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15234 | for ncn_progname in nm; do | |
15235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15236 | set dummy ${ncn_progname}; 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_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15240 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15241 | else |
15242 | if test -n "$NM_FOR_TARGET"; then | |
15243 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15244 | else | |
15245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15246 | for as_dir in $PATH | |
15247 | do | |
15248 | IFS=$as_save_IFS | |
15249 | test -z "$as_dir" && as_dir=. | |
5213506e | 15250 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15252 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15254 | break 2 |
15255 | fi | |
15256 | done | |
5213506e RW |
15257 | done |
15258 | IFS=$as_save_IFS | |
278a7a38 AO |
15259 | |
15260 | fi | |
15261 | fi | |
15262 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15263 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15265 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15266 | else |
5213506e RW |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15268 | $as_echo "no" >&6; } | |
278a7a38 AO |
15269 | fi |
15270 | ||
5213506e | 15271 | |
278a7a38 AO |
15272 | done |
15273 | fi | |
15274 | ||
15275 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15276 | for ncn_progname in nm; do |
5213506e RW |
15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15278 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15279 | if test -x $with_build_time_tools/${ncn_progname}; then |
15280 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15282 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15283 | break |
15284 | else | |
5213506e RW |
15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15286 | $as_echo "no" >&6; } | |
e8b05380 PB |
15287 | fi |
15288 | done | |
15289 | fi | |
15290 | ||
15291 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15292 | for ncn_progname in nm; do | |
15293 | if test -n "$ncn_target_tool_prefix"; then | |
15294 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15295 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15297 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15298 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15299 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15300 | else |
4de997d1 PB |
15301 | if test -n "$NM_FOR_TARGET"; then |
15302 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15303 | else |
1c710c3c DJ |
15304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15305 | for as_dir in $PATH | |
15306 | do | |
15307 | IFS=$as_save_IFS | |
15308 | test -z "$as_dir" && as_dir=. | |
5213506e | 15309 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15311 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15313 | break 2 |
15314 | fi | |
15315 | done | |
5213506e RW |
15316 | done |
15317 | IFS=$as_save_IFS | |
1c710c3c | 15318 | |
ca9f4b81 AO |
15319 | fi |
15320 | fi | |
1c710c3c | 15321 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15322 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15324 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15325 | else |
5213506e RW |
15326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15327 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15328 | fi |
15329 | ||
5213506e | 15330 | |
e8b05380 PB |
15331 | fi |
15332 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15334 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15336 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15337 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15338 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15339 | else |
2693c0b0 PB |
15340 | if test -n "$NM_FOR_TARGET"; then |
15341 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15342 | else |
1c710c3c DJ |
15343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15344 | for as_dir in $PATH | |
15345 | do | |
15346 | IFS=$as_save_IFS | |
15347 | test -z "$as_dir" && as_dir=. | |
5213506e | 15348 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15350 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15352 | break 2 |
15353 | fi | |
15354 | done | |
5213506e RW |
15355 | done |
15356 | IFS=$as_save_IFS | |
1c710c3c | 15357 | |
ca9f4b81 AO |
15358 | fi |
15359 | fi | |
1c710c3c | 15360 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15361 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15363 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15364 | else |
5213506e RW |
15365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15366 | $as_echo "no" >&6; } | |
ca9f4b81 | 15367 | fi |
1c710c3c | 15368 | |
5213506e | 15369 | |
e8b05380 PB |
15370 | fi |
15371 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15372 | done | |
15373 | fi | |
1c710c3c | 15374 | |
2693c0b0 PB |
15375 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15376 | set dummy nm | |
15377 | if test $build = $target ; then | |
15378 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15379 | else |
2693c0b0 | 15380 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15381 | fi |
1c00b503 PB |
15382 | else |
15383 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15384 | fi |
15385 | ||
d1f8db0c PB |
15386 | else |
15387 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15388 | fi |
15389 | ||
15390 | ||
15391 | ||
15392 | ||
9bccfdf5 AP |
15393 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15394 | if test -n "$with_build_time_tools"; then | |
15395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15396 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15397 | if test -x $with_build_time_tools/objcopy; then | |
15398 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15399 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15401 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15402 | else | |
15403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15404 | $as_echo "no" >&6; } | |
15405 | fi | |
15406 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15407 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15408 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15409 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15410 | fi | |
15411 | fi | |
15412 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15413 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15414 | set dummy objcopy; ac_word=$2 | |
15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15416 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15417 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15418 | $as_echo_n "(cached) " >&6 |
15419 | else | |
15420 | case $OBJCOPY_FOR_TARGET in | |
15421 | [\\/]* | ?:[\\/]*) | |
15422 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15423 | ;; | |
15424 | *) | |
15425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15426 | for as_dir in $gcc_cv_tool_dirs | |
15427 | do | |
15428 | IFS=$as_save_IFS | |
15429 | test -z "$as_dir" && as_dir=. | |
15430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15432 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15434 | break 2 | |
15435 | fi | |
15436 | done | |
15437 | done | |
15438 | IFS=$as_save_IFS | |
15439 | ||
15440 | ;; | |
15441 | esac | |
15442 | fi | |
15443 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15444 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15446 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15447 | else | |
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15449 | $as_echo "no" >&6; } | |
15450 | fi | |
15451 | ||
15452 | ||
15453 | fi | |
15454 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15455 | ||
15456 | ||
15457 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15458 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15459 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15460 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15461 | fi | |
15462 | ||
15463 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15464 | for ncn_progname in objcopy; do | |
15465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15466 | set dummy ${ncn_progname}; 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_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15470 | $as_echo_n "(cached) " >&6 |
15471 | else | |
15472 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15473 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15474 | else | |
15475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15476 | for as_dir in $PATH | |
15477 | do | |
15478 | IFS=$as_save_IFS | |
15479 | test -z "$as_dir" && as_dir=. | |
15480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15482 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15484 | break 2 | |
15485 | fi | |
15486 | done | |
15487 | done | |
15488 | IFS=$as_save_IFS | |
15489 | ||
15490 | fi | |
15491 | fi | |
15492 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15493 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15495 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15496 | else | |
15497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15498 | $as_echo "no" >&6; } | |
15499 | fi | |
15500 | ||
15501 | ||
15502 | done | |
15503 | fi | |
15504 | ||
15505 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15506 | for ncn_progname in objcopy; do | |
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15508 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15509 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15510 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15512 | $as_echo "yes" >&6; } | |
15513 | break | |
15514 | else | |
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15516 | $as_echo "no" >&6; } | |
15517 | fi | |
15518 | done | |
15519 | fi | |
15520 | ||
15521 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15522 | for ncn_progname in objcopy; do | |
15523 | if test -n "$ncn_target_tool_prefix"; then | |
15524 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15525 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15527 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15528 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15529 | $as_echo_n "(cached) " >&6 |
15530 | else | |
15531 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15532 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15533 | else | |
15534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15535 | for as_dir in $PATH | |
15536 | do | |
15537 | IFS=$as_save_IFS | |
15538 | test -z "$as_dir" && as_dir=. | |
15539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15541 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15543 | break 2 | |
15544 | fi | |
15545 | done | |
15546 | done | |
15547 | IFS=$as_save_IFS | |
15548 | ||
15549 | fi | |
15550 | fi | |
15551 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15552 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15554 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15555 | else | |
15556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15557 | $as_echo "no" >&6; } | |
15558 | fi | |
15559 | ||
15560 | ||
15561 | fi | |
15562 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15563 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15564 | set dummy ${ncn_progname}; ac_word=$2 | |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15566 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15567 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15568 | $as_echo_n "(cached) " >&6 |
15569 | else | |
15570 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15571 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15572 | else | |
15573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15574 | for as_dir in $PATH | |
15575 | do | |
15576 | IFS=$as_save_IFS | |
15577 | test -z "$as_dir" && as_dir=. | |
15578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15580 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15582 | break 2 | |
15583 | fi | |
15584 | done | |
15585 | done | |
15586 | IFS=$as_save_IFS | |
15587 | ||
15588 | fi | |
15589 | fi | |
15590 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15591 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15593 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15594 | else | |
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15596 | $as_echo "no" >&6; } | |
15597 | fi | |
15598 | ||
15599 | ||
15600 | fi | |
15601 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15602 | done | |
15603 | fi | |
15604 | ||
15605 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15606 | set dummy objcopy | |
15607 | if test $build = $target ; then | |
15608 | OBJCOPY_FOR_TARGET="$2" | |
15609 | else | |
15610 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15611 | fi | |
15612 | else | |
15613 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15614 | fi | |
15615 | ||
15616 | else | |
15617 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15618 | fi | |
15619 | ||
15620 | ||
15621 | ||
15622 | ||
e8b05380 PB |
15623 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15624 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15626 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15627 | if test -x $with_build_time_tools/objdump; then |
15628 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15629 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15631 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15632 | else |
5213506e RW |
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15634 | $as_echo "no" >&6; } | |
d1f8db0c | 15635 | fi |
e8b05380 PB |
15636 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15637 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15638 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15639 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15640 | fi |
15641 | fi | |
3e19841a | 15642 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15643 | # Extract the first word of "objdump", so it can be a program name with args. |
15644 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15646 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15647 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15648 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15649 | else |
1c710c3c DJ |
15650 | case $OBJDUMP_FOR_TARGET in |
15651 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15652 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15653 | ;; | |
e8b05380 | 15654 | *) |
1c710c3c DJ |
15655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15656 | for as_dir in $gcc_cv_tool_dirs | |
15657 | do | |
15658 | IFS=$as_save_IFS | |
15659 | test -z "$as_dir" && as_dir=. | |
5213506e | 15660 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15662 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15664 | break 2 |
15665 | fi | |
15666 | done | |
5213506e RW |
15667 | done |
15668 | IFS=$as_save_IFS | |
1c710c3c | 15669 | |
e8b05380 PB |
15670 | ;; |
15671 | esac | |
15672 | fi | |
1c710c3c | 15673 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15674 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15676 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15677 | else |
5213506e RW |
15678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15679 | $as_echo "no" >&6; } | |
e8b05380 PB |
15680 | fi |
15681 | ||
5213506e | 15682 | |
e8b05380 PB |
15683 | fi |
15684 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15685 | |
15686 | ||
15687 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15688 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15689 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15690 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15691 | fi | |
15692 | ||
15693 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15694 | for ncn_progname in objdump; do | |
15695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15696 | set dummy ${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15700 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15701 | else |
15702 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15703 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15704 | else | |
15705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15706 | for as_dir in $PATH | |
15707 | do | |
15708 | IFS=$as_save_IFS | |
15709 | test -z "$as_dir" && as_dir=. | |
5213506e | 15710 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15712 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15714 | break 2 |
15715 | fi | |
15716 | done | |
5213506e RW |
15717 | done |
15718 | IFS=$as_save_IFS | |
278a7a38 AO |
15719 | |
15720 | fi | |
15721 | fi | |
15722 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15723 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15725 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15726 | else |
5213506e RW |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15728 | $as_echo "no" >&6; } | |
278a7a38 AO |
15729 | fi |
15730 | ||
5213506e | 15731 | |
278a7a38 AO |
15732 | done |
15733 | fi | |
15734 | ||
15735 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15736 | for ncn_progname in objdump; do |
5213506e RW |
15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15738 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15739 | if test -x $with_build_time_tools/${ncn_progname}; then |
15740 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15742 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15743 | break |
15744 | else | |
5213506e RW |
15745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15746 | $as_echo "no" >&6; } | |
e8b05380 PB |
15747 | fi |
15748 | done | |
15749 | fi | |
15750 | ||
15751 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15752 | for ncn_progname in objdump; do | |
15753 | if test -n "$ncn_target_tool_prefix"; then | |
15754 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15755 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15757 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15758 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15759 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15760 | else |
15761 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15762 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15763 | else | |
1c710c3c DJ |
15764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15765 | for as_dir in $PATH | |
15766 | do | |
15767 | IFS=$as_save_IFS | |
15768 | test -z "$as_dir" && as_dir=. | |
5213506e | 15769 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15771 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15773 | break 2 |
15774 | fi | |
15775 | done | |
5213506e RW |
15776 | done |
15777 | IFS=$as_save_IFS | |
1c710c3c | 15778 | |
d739199a DJ |
15779 | fi |
15780 | fi | |
1c710c3c | 15781 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15782 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15784 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15785 | else |
5213506e RW |
15786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15787 | $as_echo "no" >&6; } | |
d739199a DJ |
15788 | fi |
15789 | ||
5213506e | 15790 | |
e8b05380 PB |
15791 | fi |
15792 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15793 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15794 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15796 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15797 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15798 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15799 | else |
15800 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15801 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15802 | else | |
1c710c3c DJ |
15803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15804 | for as_dir in $PATH | |
15805 | do | |
15806 | IFS=$as_save_IFS | |
15807 | test -z "$as_dir" && as_dir=. | |
5213506e | 15808 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15810 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15812 | break 2 |
15813 | fi | |
15814 | done | |
5213506e RW |
15815 | done |
15816 | IFS=$as_save_IFS | |
1c710c3c | 15817 | |
d739199a DJ |
15818 | fi |
15819 | fi | |
1c710c3c | 15820 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15821 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15823 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15824 | else |
5213506e RW |
15825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15826 | $as_echo "no" >&6; } | |
d739199a | 15827 | fi |
1c710c3c | 15828 | |
5213506e | 15829 | |
e8b05380 PB |
15830 | fi |
15831 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15832 | done | |
15833 | fi | |
1c710c3c | 15834 | |
d739199a DJ |
15835 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15836 | set dummy objdump | |
15837 | if test $build = $target ; then | |
15838 | OBJDUMP_FOR_TARGET="$2" | |
15839 | else | |
15840 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15841 | fi | |
1c00b503 PB |
15842 | else |
15843 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15844 | fi |
15845 | ||
d1f8db0c PB |
15846 | else |
15847 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15848 | fi |
15849 | ||
15850 | ||
15851 | ||
15852 | ||
e4a9a572 IS |
15853 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15854 | if test -n "$with_build_time_tools"; then | |
15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15856 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15857 | if test -x $with_build_time_tools/otool; then | |
15858 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15859 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15861 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15862 | else | |
15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15864 | $as_echo "no" >&6; } | |
15865 | fi | |
15866 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15867 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15868 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15869 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15870 | fi | |
15871 | fi | |
15872 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15873 | # Extract the first word of "otool", so it can be a program name with args. | |
15874 | set dummy otool; ac_word=$2 | |
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15876 | $as_echo_n "checking for $ac_word... " >&6; } | |
15877 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15878 | $as_echo_n "(cached) " >&6 | |
15879 | else | |
15880 | case $OTOOL_FOR_TARGET in | |
15881 | [\\/]* | ?:[\\/]*) | |
15882 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15883 | ;; | |
15884 | *) | |
15885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15886 | for as_dir in $gcc_cv_tool_dirs | |
15887 | do | |
15888 | IFS=$as_save_IFS | |
15889 | test -z "$as_dir" && as_dir=. | |
15890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15892 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15894 | break 2 | |
15895 | fi | |
15896 | done | |
15897 | done | |
15898 | IFS=$as_save_IFS | |
15899 | ||
15900 | ;; | |
15901 | esac | |
15902 | fi | |
15903 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15904 | if test -n "$OTOOL_FOR_TARGET"; then | |
15905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15906 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15907 | else | |
15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15909 | $as_echo "no" >&6; } | |
15910 | fi | |
15911 | ||
15912 | ||
15913 | fi | |
15914 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15915 | ||
15916 | ||
15917 | if test -n "$OTOOL_FOR_TARGET"; then | |
15918 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15919 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15920 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15921 | fi | |
15922 | ||
15923 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15924 | for ncn_progname in otool; do | |
15925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15926 | set dummy ${ncn_progname}; 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_prog_OTOOL_FOR_TARGET+:} false; then : | |
15930 | $as_echo_n "(cached) " >&6 | |
15931 | else | |
15932 | if test -n "$OTOOL_FOR_TARGET"; then | |
15933 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15934 | else | |
15935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15936 | for as_dir in $PATH | |
15937 | do | |
15938 | IFS=$as_save_IFS | |
15939 | test -z "$as_dir" && as_dir=. | |
15940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15942 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15944 | break 2 | |
15945 | fi | |
15946 | done | |
15947 | done | |
15948 | IFS=$as_save_IFS | |
15949 | ||
15950 | fi | |
15951 | fi | |
15952 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15953 | if test -n "$OTOOL_FOR_TARGET"; then | |
15954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15955 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15956 | else | |
15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15958 | $as_echo "no" >&6; } | |
15959 | fi | |
15960 | ||
15961 | ||
15962 | done | |
15963 | fi | |
15964 | ||
15965 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15966 | for ncn_progname in otool; do | |
15967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15968 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15969 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15970 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15972 | $as_echo "yes" >&6; } | |
15973 | break | |
15974 | else | |
15975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15976 | $as_echo "no" >&6; } | |
15977 | fi | |
15978 | done | |
15979 | fi | |
15980 | ||
15981 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15982 | for ncn_progname in otool; do | |
15983 | if test -n "$ncn_target_tool_prefix"; then | |
15984 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15985 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15987 | $as_echo_n "checking for $ac_word... " >&6; } | |
15988 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15989 | $as_echo_n "(cached) " >&6 | |
15990 | else | |
15991 | if test -n "$OTOOL_FOR_TARGET"; then | |
15992 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15993 | else | |
15994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15995 | for as_dir in $PATH | |
15996 | do | |
15997 | IFS=$as_save_IFS | |
15998 | test -z "$as_dir" && as_dir=. | |
15999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16001 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16003 | break 2 | |
16004 | fi | |
16005 | done | |
16006 | done | |
16007 | IFS=$as_save_IFS | |
16008 | ||
16009 | fi | |
16010 | fi | |
16011 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16012 | if test -n "$OTOOL_FOR_TARGET"; then | |
16013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16014 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16015 | else | |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16017 | $as_echo "no" >&6; } | |
16018 | fi | |
16019 | ||
16020 | ||
16021 | fi | |
16022 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16023 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16024 | set dummy ${ncn_progname}; ac_word=$2 | |
16025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16026 | $as_echo_n "checking for $ac_word... " >&6; } | |
16027 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16028 | $as_echo_n "(cached) " >&6 | |
16029 | else | |
16030 | if test -n "$OTOOL_FOR_TARGET"; then | |
16031 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16032 | else | |
16033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16034 | for as_dir in $PATH | |
16035 | do | |
16036 | IFS=$as_save_IFS | |
16037 | test -z "$as_dir" && as_dir=. | |
16038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16040 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16042 | break 2 | |
16043 | fi | |
16044 | done | |
16045 | done | |
16046 | IFS=$as_save_IFS | |
16047 | ||
16048 | fi | |
16049 | fi | |
16050 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16051 | if test -n "$OTOOL_FOR_TARGET"; then | |
16052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16053 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16054 | else | |
16055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16056 | $as_echo "no" >&6; } | |
16057 | fi | |
16058 | ||
16059 | ||
16060 | fi | |
16061 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16062 | done | |
16063 | fi | |
16064 | ||
16065 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16066 | set dummy otool | |
16067 | if test $build = $target ; then | |
16068 | OTOOL_FOR_TARGET="$2" | |
16069 | else | |
16070 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16071 | fi | |
16072 | else | |
16073 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16074 | fi | |
16075 | ||
16076 | else | |
16077 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16078 | fi | |
16079 | ||
16080 | ||
16081 | ||
16082 | ||
e8b05380 PB |
16083 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16084 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16086 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16087 | if test -x $with_build_time_tools/ranlib; then |
16088 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16089 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16091 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16092 | else |
5213506e RW |
16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16094 | $as_echo "no" >&6; } | |
d1f8db0c | 16095 | fi |
e8b05380 PB |
16096 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16097 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16098 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16099 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16100 | fi |
16101 | fi | |
3e19841a | 16102 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16103 | # Extract the first word of "ranlib", so it can be a program name with args. |
16104 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16106 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16107 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16108 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16109 | else |
1c710c3c DJ |
16110 | case $RANLIB_FOR_TARGET in |
16111 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16112 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16113 | ;; | |
e8b05380 | 16114 | *) |
1c710c3c DJ |
16115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16116 | for as_dir in $gcc_cv_tool_dirs | |
16117 | do | |
16118 | IFS=$as_save_IFS | |
16119 | test -z "$as_dir" && as_dir=. | |
5213506e | 16120 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16122 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16124 | break 2 |
16125 | fi | |
16126 | done | |
5213506e RW |
16127 | done |
16128 | IFS=$as_save_IFS | |
1c710c3c | 16129 | |
e8b05380 PB |
16130 | ;; |
16131 | esac | |
16132 | fi | |
1c710c3c | 16133 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16134 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16136 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16137 | else |
5213506e RW |
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16139 | $as_echo "no" >&6; } | |
e8b05380 PB |
16140 | fi |
16141 | ||
5213506e | 16142 | |
e8b05380 PB |
16143 | fi |
16144 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16145 | |
16146 | ||
16147 | if test -n "$RANLIB_FOR_TARGET"; then | |
16148 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16149 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16150 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16151 | fi | |
16152 | ||
16153 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16154 | for ncn_progname in ranlib; do | |
16155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16156 | set dummy ${ncn_progname}; 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_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16160 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16161 | else |
16162 | if test -n "$RANLIB_FOR_TARGET"; then | |
16163 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16164 | else | |
16165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16166 | for as_dir in $PATH | |
16167 | do | |
16168 | IFS=$as_save_IFS | |
16169 | test -z "$as_dir" && as_dir=. | |
5213506e | 16170 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16172 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16174 | break 2 |
16175 | fi | |
16176 | done | |
5213506e RW |
16177 | done |
16178 | IFS=$as_save_IFS | |
278a7a38 AO |
16179 | |
16180 | fi | |
16181 | fi | |
16182 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16183 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16185 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16186 | else |
5213506e RW |
16187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16188 | $as_echo "no" >&6; } | |
278a7a38 AO |
16189 | fi |
16190 | ||
5213506e | 16191 | |
278a7a38 AO |
16192 | done |
16193 | fi | |
16194 | ||
16195 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16196 | for ncn_progname in ranlib; do |
5213506e RW |
16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16198 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16199 | if test -x $with_build_time_tools/${ncn_progname}; then |
16200 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16202 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16203 | break |
16204 | else | |
5213506e RW |
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16206 | $as_echo "no" >&6; } | |
e8b05380 PB |
16207 | fi |
16208 | done | |
16209 | fi | |
16210 | ||
16211 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16212 | for ncn_progname in ranlib; do | |
16213 | if test -n "$ncn_target_tool_prefix"; then | |
16214 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16215 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16217 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16218 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16219 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16220 | else |
4de997d1 PB |
16221 | if test -n "$RANLIB_FOR_TARGET"; then |
16222 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16223 | else |
1c710c3c DJ |
16224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16225 | for as_dir in $PATH | |
16226 | do | |
16227 | IFS=$as_save_IFS | |
16228 | test -z "$as_dir" && as_dir=. | |
5213506e | 16229 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16231 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16233 | break 2 |
16234 | fi | |
16235 | done | |
5213506e RW |
16236 | done |
16237 | IFS=$as_save_IFS | |
1c710c3c | 16238 | |
ca9f4b81 AO |
16239 | fi |
16240 | fi | |
1c710c3c | 16241 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16242 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16244 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16245 | else |
5213506e RW |
16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16247 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16248 | fi |
16249 | ||
5213506e | 16250 | |
e8b05380 PB |
16251 | fi |
16252 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16254 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16256 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16257 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16258 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16259 | else |
2693c0b0 PB |
16260 | if test -n "$RANLIB_FOR_TARGET"; then |
16261 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16262 | else |
1c710c3c DJ |
16263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16264 | for as_dir in $PATH | |
16265 | do | |
16266 | IFS=$as_save_IFS | |
16267 | test -z "$as_dir" && as_dir=. | |
5213506e | 16268 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16270 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16272 | break 2 |
16273 | fi | |
16274 | done | |
5213506e RW |
16275 | done |
16276 | IFS=$as_save_IFS | |
1c710c3c | 16277 | |
ca9f4b81 AO |
16278 | fi |
16279 | fi | |
1c710c3c | 16280 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16281 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16283 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16284 | else |
5213506e RW |
16285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16286 | $as_echo "no" >&6; } | |
ca9f4b81 | 16287 | fi |
1c710c3c | 16288 | |
5213506e | 16289 | |
e8b05380 PB |
16290 | fi |
16291 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16292 | done | |
16293 | fi | |
1c710c3c | 16294 | |
e8b05380 PB |
16295 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16296 | set dummy ranlib | |
16297 | if test $build = $target ; then | |
16298 | RANLIB_FOR_TARGET="$2" | |
16299 | else | |
16300 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16301 | fi |
1c00b503 PB |
16302 | else |
16303 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16304 | fi |
2693c0b0 | 16305 | |
d1f8db0c PB |
16306 | else |
16307 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16308 | fi |
16309 | ||
e8b05380 PB |
16310 | |
16311 | ||
16312 | ||
e7a82751 RM |
16313 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16314 | if test -n "$with_build_time_tools"; then | |
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16316 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16317 | if test -x $with_build_time_tools/readelf; then | |
16318 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16319 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16321 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16322 | else | |
16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16324 | $as_echo "no" >&6; } | |
16325 | fi | |
16326 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16327 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16328 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16329 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16330 | fi | |
16331 | fi | |
16332 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16333 | # Extract the first word of "readelf", so it can be a program name with args. | |
16334 | set dummy readelf; ac_word=$2 | |
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16336 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16337 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16338 | $as_echo_n "(cached) " >&6 |
16339 | else | |
16340 | case $READELF_FOR_TARGET in | |
16341 | [\\/]* | ?:[\\/]*) | |
16342 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16343 | ;; | |
16344 | *) | |
16345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16346 | for as_dir in $gcc_cv_tool_dirs | |
16347 | do | |
16348 | IFS=$as_save_IFS | |
16349 | test -z "$as_dir" && as_dir=. | |
16350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16352 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16354 | break 2 | |
16355 | fi | |
16356 | done | |
16357 | done | |
16358 | IFS=$as_save_IFS | |
16359 | ||
16360 | ;; | |
16361 | esac | |
16362 | fi | |
16363 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16364 | if test -n "$READELF_FOR_TARGET"; then | |
16365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16366 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16367 | else | |
16368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16369 | $as_echo "no" >&6; } | |
16370 | fi | |
16371 | ||
16372 | ||
16373 | fi | |
16374 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16375 | ||
16376 | ||
16377 | if test -n "$READELF_FOR_TARGET"; then | |
16378 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16379 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16380 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16381 | fi | |
16382 | ||
16383 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16384 | for ncn_progname in readelf; do | |
16385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16386 | set dummy ${ncn_progname}; 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_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16390 | $as_echo_n "(cached) " >&6 |
16391 | else | |
16392 | if test -n "$READELF_FOR_TARGET"; then | |
16393 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16394 | else | |
16395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16396 | for as_dir in $PATH | |
16397 | do | |
16398 | IFS=$as_save_IFS | |
16399 | test -z "$as_dir" && as_dir=. | |
16400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16402 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16404 | break 2 | |
16405 | fi | |
16406 | done | |
16407 | done | |
16408 | IFS=$as_save_IFS | |
16409 | ||
16410 | fi | |
16411 | fi | |
16412 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16413 | if test -n "$READELF_FOR_TARGET"; then | |
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16415 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16416 | else | |
16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16418 | $as_echo "no" >&6; } | |
16419 | fi | |
16420 | ||
16421 | ||
16422 | done | |
16423 | fi | |
16424 | ||
16425 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16426 | for ncn_progname in readelf; do | |
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16428 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16429 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16430 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16432 | $as_echo "yes" >&6; } | |
16433 | break | |
16434 | else | |
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16436 | $as_echo "no" >&6; } | |
16437 | fi | |
16438 | done | |
16439 | fi | |
16440 | ||
16441 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16442 | for ncn_progname in readelf; do | |
16443 | if test -n "$ncn_target_tool_prefix"; then | |
16444 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16445 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16447 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16448 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16449 | $as_echo_n "(cached) " >&6 |
16450 | else | |
16451 | if test -n "$READELF_FOR_TARGET"; then | |
16452 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16453 | else | |
16454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16455 | for as_dir in $PATH | |
16456 | do | |
16457 | IFS=$as_save_IFS | |
16458 | test -z "$as_dir" && as_dir=. | |
16459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16461 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16463 | break 2 | |
16464 | fi | |
16465 | done | |
16466 | done | |
16467 | IFS=$as_save_IFS | |
16468 | ||
16469 | fi | |
16470 | fi | |
16471 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16472 | if test -n "$READELF_FOR_TARGET"; then | |
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16474 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16475 | else | |
16476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16477 | $as_echo "no" >&6; } | |
16478 | fi | |
16479 | ||
16480 | ||
16481 | fi | |
16482 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16483 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16484 | set dummy ${ncn_progname}; ac_word=$2 | |
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16486 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16487 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16488 | $as_echo_n "(cached) " >&6 |
16489 | else | |
16490 | if test -n "$READELF_FOR_TARGET"; then | |
16491 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16492 | else | |
16493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16494 | for as_dir in $PATH | |
16495 | do | |
16496 | IFS=$as_save_IFS | |
16497 | test -z "$as_dir" && as_dir=. | |
16498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16500 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16502 | break 2 | |
16503 | fi | |
16504 | done | |
16505 | done | |
16506 | IFS=$as_save_IFS | |
16507 | ||
16508 | fi | |
16509 | fi | |
16510 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16511 | if test -n "$READELF_FOR_TARGET"; then | |
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16513 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16514 | else | |
16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16516 | $as_echo "no" >&6; } | |
16517 | fi | |
16518 | ||
16519 | ||
16520 | fi | |
16521 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16522 | done | |
16523 | fi | |
16524 | ||
16525 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16526 | set dummy readelf | |
16527 | if test $build = $target ; then | |
16528 | READELF_FOR_TARGET="$2" | |
16529 | else | |
16530 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16531 | fi | |
16532 | else | |
16533 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16534 | fi | |
16535 | ||
16536 | else | |
16537 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16538 | fi | |
16539 | ||
16540 | ||
16541 | ||
16542 | ||
e8b05380 PB |
16543 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16544 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16546 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16547 | if test -x $with_build_time_tools/strip; then |
16548 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16549 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16551 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16552 | else |
5213506e RW |
16553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16554 | $as_echo "no" >&6; } | |
d1f8db0c | 16555 | fi |
e8b05380 PB |
16556 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16557 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16558 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16559 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16560 | fi |
16561 | fi | |
3e19841a | 16562 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16563 | # Extract the first word of "strip", so it can be a program name with args. |
16564 | set dummy strip; ac_word=$2 | |
5213506e RW |
16565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16566 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16567 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16568 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16569 | else |
1c710c3c DJ |
16570 | case $STRIP_FOR_TARGET in |
16571 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16572 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16573 | ;; | |
e8b05380 | 16574 | *) |
1c710c3c DJ |
16575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16576 | for as_dir in $gcc_cv_tool_dirs | |
16577 | do | |
16578 | IFS=$as_save_IFS | |
16579 | test -z "$as_dir" && as_dir=. | |
5213506e | 16580 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16582 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16584 | break 2 |
16585 | fi | |
16586 | done | |
5213506e RW |
16587 | done |
16588 | IFS=$as_save_IFS | |
1c710c3c | 16589 | |
e8b05380 PB |
16590 | ;; |
16591 | esac | |
16592 | fi | |
1c710c3c | 16593 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16594 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16596 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16597 | else |
5213506e RW |
16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16599 | $as_echo "no" >&6; } | |
e8b05380 PB |
16600 | fi |
16601 | ||
5213506e | 16602 | |
e8b05380 PB |
16603 | fi |
16604 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16605 | |
16606 | ||
16607 | if test -n "$STRIP_FOR_TARGET"; then | |
16608 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16609 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16610 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16611 | fi | |
16612 | ||
16613 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16614 | for ncn_progname in strip; do | |
16615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16616 | set dummy ${ncn_progname}; 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_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16620 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16621 | else |
16622 | if test -n "$STRIP_FOR_TARGET"; then | |
16623 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16624 | else | |
16625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16626 | for as_dir in $PATH | |
16627 | do | |
16628 | IFS=$as_save_IFS | |
16629 | test -z "$as_dir" && as_dir=. | |
5213506e | 16630 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16632 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16634 | break 2 |
16635 | fi | |
16636 | done | |
5213506e RW |
16637 | done |
16638 | IFS=$as_save_IFS | |
278a7a38 AO |
16639 | |
16640 | fi | |
16641 | fi | |
16642 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16643 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16645 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16646 | else |
5213506e RW |
16647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16648 | $as_echo "no" >&6; } | |
278a7a38 AO |
16649 | fi |
16650 | ||
5213506e | 16651 | |
278a7a38 AO |
16652 | done |
16653 | fi | |
16654 | ||
16655 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16656 | for ncn_progname in strip; do |
5213506e RW |
16657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16658 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16659 | if test -x $with_build_time_tools/${ncn_progname}; then |
16660 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16662 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16663 | break |
16664 | else | |
5213506e RW |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16666 | $as_echo "no" >&6; } | |
e8b05380 PB |
16667 | fi |
16668 | done | |
16669 | fi | |
16670 | ||
16671 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16672 | for ncn_progname in strip; do | |
16673 | if test -n "$ncn_target_tool_prefix"; then | |
16674 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16675 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16678 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16679 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16680 | else |
16681 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16682 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16683 | else | |
16684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16685 | for as_dir in $PATH | |
16686 | do | |
16687 | IFS=$as_save_IFS | |
16688 | test -z "$as_dir" && as_dir=. | |
5213506e | 16689 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16691 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16693 | break 2 |
16694 | fi | |
16695 | done | |
5213506e RW |
16696 | done |
16697 | IFS=$as_save_IFS | |
1c710c3c | 16698 | |
040b1c5a GK |
16699 | fi |
16700 | fi | |
1c710c3c | 16701 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16702 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16704 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16705 | else |
5213506e RW |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16707 | $as_echo "no" >&6; } | |
040b1c5a GK |
16708 | fi |
16709 | ||
5213506e | 16710 | |
e8b05380 PB |
16711 | fi |
16712 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16713 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16714 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16716 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16717 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16718 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16719 | else |
16720 | if test -n "$STRIP_FOR_TARGET"; then | |
16721 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16722 | else | |
1c710c3c DJ |
16723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16724 | for as_dir in $PATH | |
16725 | do | |
16726 | IFS=$as_save_IFS | |
16727 | test -z "$as_dir" && as_dir=. | |
5213506e | 16728 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16730 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16732 | break 2 |
16733 | fi | |
16734 | done | |
5213506e RW |
16735 | done |
16736 | IFS=$as_save_IFS | |
1c710c3c | 16737 | |
040b1c5a GK |
16738 | fi |
16739 | fi | |
1c710c3c | 16740 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16741 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16743 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16744 | else |
5213506e RW |
16745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16746 | $as_echo "no" >&6; } | |
040b1c5a | 16747 | fi |
1c710c3c | 16748 | |
5213506e | 16749 | |
e8b05380 PB |
16750 | fi |
16751 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16752 | done | |
16753 | fi | |
1c710c3c | 16754 | |
040b1c5a GK |
16755 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16756 | set dummy strip | |
16757 | if test $build = $target ; then | |
16758 | STRIP_FOR_TARGET="$2" | |
16759 | else | |
16760 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16761 | fi | |
1c00b503 PB |
16762 | else |
16763 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16764 | fi |
16765 | ||
d1f8db0c PB |
16766 | else |
16767 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16768 | fi |
16769 | ||
16770 | ||
16771 | ||
16772 | ||
16773 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16774 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16776 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16777 | if test -x $with_build_time_tools/windres; then |
16778 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16779 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16781 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16782 | else |
5213506e RW |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16784 | $as_echo "no" >&6; } | |
d1f8db0c | 16785 | fi |
e8b05380 PB |
16786 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16787 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16788 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16789 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16790 | fi |
16791 | fi | |
3e19841a | 16792 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16793 | # Extract the first word of "windres", so it can be a program name with args. |
16794 | set dummy windres; ac_word=$2 | |
5213506e RW |
16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16796 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16797 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16798 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16799 | else |
1c710c3c DJ |
16800 | case $WINDRES_FOR_TARGET in |
16801 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16802 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16803 | ;; | |
e8b05380 | 16804 | *) |
1c710c3c DJ |
16805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16806 | for as_dir in $gcc_cv_tool_dirs | |
16807 | do | |
16808 | IFS=$as_save_IFS | |
16809 | test -z "$as_dir" && as_dir=. | |
5213506e | 16810 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16812 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16814 | break 2 |
16815 | fi | |
16816 | done | |
5213506e RW |
16817 | done |
16818 | IFS=$as_save_IFS | |
1c710c3c | 16819 | |
e8b05380 PB |
16820 | ;; |
16821 | esac | |
16822 | fi | |
1c710c3c | 16823 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16824 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16826 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16827 | else |
5213506e RW |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16829 | $as_echo "no" >&6; } | |
e8b05380 PB |
16830 | fi |
16831 | ||
5213506e | 16832 | |
e8b05380 PB |
16833 | fi |
16834 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16835 | |
16836 | ||
16837 | if test -n "$WINDRES_FOR_TARGET"; then | |
16838 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16839 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16840 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16841 | fi | |
16842 | ||
16843 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16844 | for ncn_progname in windres; do | |
16845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16846 | set dummy ${ncn_progname}; 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_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16850 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16851 | else |
16852 | if test -n "$WINDRES_FOR_TARGET"; then | |
16853 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16854 | else | |
16855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16856 | for as_dir in $PATH | |
16857 | do | |
16858 | IFS=$as_save_IFS | |
16859 | test -z "$as_dir" && as_dir=. | |
5213506e | 16860 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16862 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16864 | break 2 |
16865 | fi | |
16866 | done | |
5213506e RW |
16867 | done |
16868 | IFS=$as_save_IFS | |
278a7a38 AO |
16869 | |
16870 | fi | |
16871 | fi | |
16872 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16873 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16875 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16876 | else |
5213506e RW |
16877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16878 | $as_echo "no" >&6; } | |
278a7a38 AO |
16879 | fi |
16880 | ||
5213506e | 16881 | |
278a7a38 AO |
16882 | done |
16883 | fi | |
16884 | ||
16885 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16886 | for ncn_progname in windres; do |
5213506e RW |
16887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16888 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16889 | if test -x $with_build_time_tools/${ncn_progname}; then |
16890 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16892 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16893 | break |
16894 | else | |
5213506e RW |
16895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16896 | $as_echo "no" >&6; } | |
e8b05380 PB |
16897 | fi |
16898 | done | |
16899 | fi | |
16900 | ||
16901 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16902 | for ncn_progname in windres; do | |
16903 | if test -n "$ncn_target_tool_prefix"; then | |
16904 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16905 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16907 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16908 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16909 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16910 | else |
4de997d1 PB |
16911 | if test -n "$WINDRES_FOR_TARGET"; then |
16912 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16913 | else |
1c710c3c DJ |
16914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16915 | for as_dir in $PATH | |
16916 | do | |
16917 | IFS=$as_save_IFS | |
16918 | test -z "$as_dir" && as_dir=. | |
5213506e | 16919 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16921 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16923 | break 2 |
16924 | fi | |
16925 | done | |
5213506e RW |
16926 | done |
16927 | IFS=$as_save_IFS | |
1c710c3c | 16928 | |
ca9f4b81 AO |
16929 | fi |
16930 | fi | |
1c710c3c | 16931 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16932 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16934 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16935 | else |
5213506e RW |
16936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16937 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16938 | fi |
16939 | ||
5213506e | 16940 | |
e8b05380 PB |
16941 | fi |
16942 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16944 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16946 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16947 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16948 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16949 | else |
2693c0b0 PB |
16950 | if test -n "$WINDRES_FOR_TARGET"; then |
16951 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16952 | else |
1c710c3c DJ |
16953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16954 | for as_dir in $PATH | |
16955 | do | |
16956 | IFS=$as_save_IFS | |
16957 | test -z "$as_dir" && as_dir=. | |
5213506e | 16958 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16960 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16962 | break 2 |
16963 | fi | |
16964 | done | |
5213506e RW |
16965 | done |
16966 | IFS=$as_save_IFS | |
1c710c3c | 16967 | |
ca9f4b81 AO |
16968 | fi |
16969 | fi | |
1c710c3c | 16970 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 16971 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16973 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16974 | else |
5213506e RW |
16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16976 | $as_echo "no" >&6; } | |
ca9f4b81 | 16977 | fi |
1c710c3c | 16978 | |
5213506e | 16979 | |
e8b05380 PB |
16980 | fi |
16981 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
16982 | done | |
16983 | fi | |
1c710c3c | 16984 | |
2693c0b0 PB |
16985 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
16986 | set dummy windres | |
16987 | if test $build = $target ; then | |
16988 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 16989 | else |
2693c0b0 | 16990 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 16991 | fi |
1c00b503 PB |
16992 | else |
16993 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
16994 | fi |
16995 | ||
d1f8db0c PB |
16996 | else |
16997 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
16998 | fi |
16999 | ||
4977bab6 | 17000 | |
901119ae KT |
17001 | |
17002 | ||
17003 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17004 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17006 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17007 | if test -x $with_build_time_tools/windmc; then |
17008 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17009 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17011 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17012 | else |
5213506e RW |
17013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17014 | $as_echo "no" >&6; } | |
901119ae KT |
17015 | fi |
17016 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17017 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17018 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17019 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17020 | fi |
17021 | fi | |
17022 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17023 | # Extract the first word of "windmc", so it can be a program name with args. | |
17024 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17026 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17027 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17028 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17029 | else |
17030 | case $WINDMC_FOR_TARGET in | |
17031 | [\\/]* | ?:[\\/]*) | |
17032 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17033 | ;; | |
17034 | *) | |
17035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17036 | for as_dir in $gcc_cv_tool_dirs | |
17037 | do | |
17038 | IFS=$as_save_IFS | |
17039 | test -z "$as_dir" && as_dir=. | |
5213506e | 17040 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17042 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17044 | break 2 |
17045 | fi | |
17046 | done | |
5213506e RW |
17047 | done |
17048 | IFS=$as_save_IFS | |
901119ae KT |
17049 | |
17050 | ;; | |
17051 | esac | |
17052 | fi | |
17053 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17054 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17056 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17057 | else |
5213506e RW |
17058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17059 | $as_echo "no" >&6; } | |
901119ae KT |
17060 | fi |
17061 | ||
5213506e | 17062 | |
901119ae KT |
17063 | fi |
17064 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17065 | ||
17066 | ||
17067 | if test -n "$WINDMC_FOR_TARGET"; then | |
17068 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17069 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17070 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17071 | fi | |
17072 | ||
17073 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17074 | for ncn_progname in windmc; do | |
17075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17076 | set dummy ${ncn_progname}; 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_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17080 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17081 | else |
17082 | if test -n "$WINDMC_FOR_TARGET"; then | |
17083 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17084 | else | |
17085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17086 | for as_dir in $PATH | |
17087 | do | |
17088 | IFS=$as_save_IFS | |
17089 | test -z "$as_dir" && as_dir=. | |
5213506e | 17090 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17092 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17094 | break 2 |
17095 | fi | |
17096 | done | |
5213506e RW |
17097 | done |
17098 | IFS=$as_save_IFS | |
901119ae KT |
17099 | |
17100 | fi | |
17101 | fi | |
17102 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17103 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17105 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17106 | else |
5213506e RW |
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17108 | $as_echo "no" >&6; } | |
901119ae KT |
17109 | fi |
17110 | ||
5213506e | 17111 | |
901119ae KT |
17112 | done |
17113 | fi | |
17114 | ||
17115 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17116 | for ncn_progname in windmc; do | |
5213506e RW |
17117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17118 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17119 | if test -x $with_build_time_tools/${ncn_progname}; then |
17120 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17122 | $as_echo "yes" >&6; } | |
901119ae KT |
17123 | break |
17124 | else | |
5213506e RW |
17125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17126 | $as_echo "no" >&6; } | |
901119ae KT |
17127 | fi |
17128 | done | |
17129 | fi | |
17130 | ||
17131 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17132 | for ncn_progname in windmc; do | |
17133 | if test -n "$ncn_target_tool_prefix"; then | |
17134 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17135 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17137 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17138 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17139 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17140 | else |
17141 | if test -n "$WINDMC_FOR_TARGET"; then | |
17142 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17143 | else | |
17144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17145 | for as_dir in $PATH | |
17146 | do | |
17147 | IFS=$as_save_IFS | |
17148 | test -z "$as_dir" && as_dir=. | |
5213506e | 17149 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17151 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17153 | break 2 |
17154 | fi | |
17155 | done | |
5213506e RW |
17156 | done |
17157 | IFS=$as_save_IFS | |
901119ae KT |
17158 | |
17159 | fi | |
17160 | fi | |
17161 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17162 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17164 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17165 | else |
5213506e RW |
17166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17167 | $as_echo "no" >&6; } | |
901119ae KT |
17168 | fi |
17169 | ||
5213506e | 17170 | |
901119ae KT |
17171 | fi |
17172 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17174 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17176 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17177 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17178 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17179 | else |
17180 | if test -n "$WINDMC_FOR_TARGET"; then | |
17181 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17182 | else | |
17183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17184 | for as_dir in $PATH | |
17185 | do | |
17186 | IFS=$as_save_IFS | |
17187 | test -z "$as_dir" && as_dir=. | |
5213506e | 17188 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17190 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17192 | break 2 |
17193 | fi | |
17194 | done | |
5213506e RW |
17195 | done |
17196 | IFS=$as_save_IFS | |
901119ae KT |
17197 | |
17198 | fi | |
17199 | fi | |
17200 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17201 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17203 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17204 | else |
5213506e RW |
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17206 | $as_echo "no" >&6; } | |
901119ae KT |
17207 | fi |
17208 | ||
5213506e | 17209 | |
901119ae KT |
17210 | fi |
17211 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17212 | done | |
17213 | fi | |
17214 | ||
17215 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17216 | set dummy windmc | |
17217 | if test $build = $target ; then | |
17218 | WINDMC_FOR_TARGET="$2" | |
17219 | else | |
17220 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17221 | fi | |
1c00b503 PB |
17222 | else |
17223 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17224 | fi |
17225 | ||
17226 | else | |
17227 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17228 | fi | |
17229 | ||
17230 | ||
2abefe3d PB |
17231 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17232 | ||
5213506e RW |
17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17234 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17235 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17236 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17237 | # We already found the complete path | |
172e41aa | 17238 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17240 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17241 | else |
17242 | # Canadian cross, just use what we found | |
5213506e RW |
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17244 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17245 | fi |
2abefe3d PB |
17246 | else |
17247 | ok=yes | |
17248 | case " ${configdirs} " in | |
17249 | *" binutils "*) ;; | |
17250 | *) ok=no ;; | |
17251 | esac | |
1c710c3c | 17252 | |
2abefe3d PB |
17253 | if test $ok = yes; then |
17254 | # An in-tree tool is available and we can use it | |
17255 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17257 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17258 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17259 | # We already found the complete path | |
172e41aa | 17260 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17262 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17263 | elif test "x$target" = "x$host"; then |
17264 | # We can use an host tool | |
17265 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17267 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17268 | else |
17269 | # We need a cross tool | |
5213506e RW |
17270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17271 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17272 | fi |
17273 | fi | |
0b0dc272 | 17274 | |
5213506e RW |
17275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17276 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17277 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17278 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17279 | # We already found the complete path | |
172e41aa | 17280 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17282 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17283 | else |
17284 | # Canadian cross, just use what we found | |
5213506e RW |
17285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17286 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17287 | fi |
2abefe3d PB |
17288 | else |
17289 | ok=yes | |
17290 | case " ${configdirs} " in | |
17291 | *" gas "*) ;; | |
17292 | *) ok=no ;; | |
17293 | esac | |
1c710c3c | 17294 | |
2abefe3d PB |
17295 | if test $ok = yes; then |
17296 | # An in-tree tool is available and we can use it | |
17297 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17299 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17300 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17301 | # We already found the complete path | |
172e41aa | 17302 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17304 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17305 | elif test "x$target" = "x$host"; then |
17306 | # We can use an host tool | |
17307 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17309 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17310 | else |
17311 | # We need a cross tool | |
5213506e RW |
17312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17313 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17314 | fi |
17315 | fi | |
0b0dc272 | 17316 | |
5213506e RW |
17317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17318 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17319 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17320 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17321 | # We already found the complete path | |
172e41aa | 17322 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17324 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17325 | else |
17326 | # Canadian cross, just use what we found | |
5213506e RW |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17328 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17329 | fi |
2abefe3d PB |
17330 | else |
17331 | ok=yes | |
17332 | case " ${configdirs} " in | |
17333 | *" gcc "*) ;; | |
17334 | *) ok=no ;; | |
17335 | esac | |
1c710c3c | 17336 | |
2abefe3d PB |
17337 | if test $ok = yes; then |
17338 | # An in-tree tool is available and we can use it | |
17339 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17341 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17342 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17343 | # We already found the complete path | |
172e41aa | 17344 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17346 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17347 | elif test "x$target" = "x$host"; then |
17348 | # We can use an host tool | |
17349 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17351 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17352 | else |
17353 | # We need a cross tool | |
5213506e RW |
17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17355 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17356 | fi |
17357 | fi | |
0b0dc272 | 17358 | |
5213506e RW |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17360 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17361 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17362 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17363 | # We already found the complete path | |
172e41aa | 17364 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17366 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17367 | else |
17368 | # Canadian cross, just use what we found | |
5213506e RW |
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17370 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17371 | fi |
2abefe3d PB |
17372 | else |
17373 | ok=yes | |
17374 | case " ${configdirs} " in | |
17375 | *" gcc "*) ;; | |
17376 | *) ok=no ;; | |
17377 | esac | |
17378 | case ,${enable_languages}, in | |
17379 | *,c++,*) ;; | |
17380 | *) ok=no ;; | |
17381 | esac | |
17382 | if test $ok = yes; then | |
17383 | # An in-tree tool is available and we can use it | |
2077db1b | 17384 | 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 |
17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17386 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17387 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17388 | # We already found the complete path | |
172e41aa | 17389 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17391 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17392 | elif test "x$target" = "x$host"; then |
17393 | # We can use an host tool | |
17394 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17396 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17397 | else |
17398 | # We need a cross tool | |
5213506e RW |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17400 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17401 | fi |
17402 | fi | |
0b0dc272 | 17403 | |
5213506e RW |
17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17405 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17406 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17407 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17408 | # We already found the complete path | |
172e41aa | 17409 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17411 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17412 | else |
17413 | # Canadian cross, just use what we found | |
5213506e RW |
17414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17415 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17416 | fi |
2abefe3d PB |
17417 | else |
17418 | ok=yes | |
17419 | case " ${configdirs} " in | |
17420 | *" gcc "*) ;; | |
17421 | *) ok=no ;; | |
17422 | esac | |
17423 | case ,${enable_languages}, in | |
17424 | *,c++,*) ;; | |
17425 | *) ok=no ;; | |
17426 | esac | |
17427 | if test $ok = yes; then | |
17428 | # An in-tree tool is available and we can use it | |
2077db1b | 17429 | 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 |
17430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17431 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17432 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17433 | # We already found the complete path | |
172e41aa | 17434 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17436 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17437 | elif test "x$target" = "x$host"; then |
17438 | # We can use an host tool | |
17439 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17441 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17442 | else |
17443 | # We need a cross tool | |
5213506e RW |
17444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17445 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17446 | fi |
17447 | fi | |
0b0dc272 | 17448 | |
5213506e RW |
17449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17450 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17451 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17452 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17453 | # We already found the complete path | |
172e41aa | 17454 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17456 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17457 | else |
17458 | # Canadian cross, just use what we found | |
5213506e RW |
17459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17460 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17461 | fi |
2abefe3d PB |
17462 | else |
17463 | ok=yes | |
17464 | case " ${configdirs} " in | |
17465 | *" binutils "*) ;; | |
17466 | *) ok=no ;; | |
17467 | esac | |
1c710c3c | 17468 | |
2abefe3d PB |
17469 | if test $ok = yes; then |
17470 | # An in-tree tool is available and we can use it | |
17471 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17473 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17474 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17475 | # We already found the complete path | |
172e41aa | 17476 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17478 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17479 | elif test "x$target" = "x$host"; then |
17480 | # We can use an host tool | |
17481 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17483 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17484 | else |
17485 | # We need a cross tool | |
5213506e RW |
17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17487 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17488 | fi |
17489 | fi | |
0b0dc272 | 17490 | |
3b5e8ee4 IS |
17491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17492 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17493 | if test "x${build}" != "x${host}" ; then | |
17494 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17495 | # We already found the complete path | |
17496 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17498 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17499 | else | |
17500 | # Canadian cross, just use what we found | |
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17502 | $as_echo "pre-installed" >&6; } | |
17503 | fi | |
17504 | else | |
17505 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17506 | # We already found the complete path | |
17507 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17509 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17510 | elif test "x$target" = "x$host"; then | |
17511 | # We can use an host tool | |
17512 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17514 | $as_echo "host tool" >&6; } | |
17515 | else | |
17516 | # We need a cross tool | |
17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17518 | $as_echo "pre-installed" >&6; } | |
17519 | fi | |
17520 | fi | |
17521 | ||
5213506e RW |
17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17523 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17524 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17525 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17526 | # We already found the complete path | |
172e41aa | 17527 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17529 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17530 | else |
17531 | # Canadian cross, just use what we found | |
5213506e RW |
17532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17533 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17534 | fi |
2abefe3d PB |
17535 | else |
17536 | ok=yes | |
17537 | case " ${configdirs} " in | |
17538 | *" gcc "*) ;; | |
17539 | *) ok=no ;; | |
17540 | esac | |
1c710c3c | 17541 | |
2abefe3d PB |
17542 | if test $ok = yes; then |
17543 | # An in-tree tool is available and we can use it | |
17544 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17546 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17547 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17548 | # We already found the complete path | |
172e41aa | 17549 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17551 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17552 | elif test "x$target" = "x$host"; then |
17553 | # We can use an host tool | |
17554 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17556 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17557 | else |
17558 | # We need a cross tool | |
5213506e RW |
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17560 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17561 | fi |
17562 | fi | |
0b0dc272 | 17563 | |
5213506e RW |
17564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17565 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17566 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17567 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17568 | # We already found the complete path | |
172e41aa | 17569 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17571 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17572 | else |
17573 | # Canadian cross, just use what we found | |
5213506e RW |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17575 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17576 | fi |
2abefe3d PB |
17577 | else |
17578 | ok=yes | |
17579 | case " ${configdirs} " in | |
17580 | *" gcc "*) ;; | |
17581 | *) ok=no ;; | |
17582 | esac | |
17583 | case ,${enable_languages}, in | |
17584 | *,fortran,*) ;; | |
17585 | *) ok=no ;; | |
17586 | esac | |
17587 | if test $ok = yes; then | |
17588 | # An in-tree tool is available and we can use it | |
17589 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17591 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17592 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17593 | # We already found the complete path | |
172e41aa | 17594 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17596 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17597 | elif test "x$target" = "x$host"; then |
17598 | # We can use an host tool | |
17599 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17601 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17602 | else |
17603 | # We need a cross tool | |
5213506e RW |
17604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17605 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17606 | fi |
17607 | fi | |
0b0dc272 | 17608 | |
632e2a07 ILT |
17609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17610 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17611 | if test "x${build}" != "x${host}" ; then | |
17612 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17613 | # We already found the complete path | |
17614 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17616 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17617 | else | |
17618 | # Canadian cross, just use what we found | |
17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17620 | $as_echo "pre-installed" >&6; } | |
17621 | fi | |
17622 | else | |
17623 | ok=yes | |
17624 | case " ${configdirs} " in | |
17625 | *" gcc "*) ;; | |
17626 | *) ok=no ;; | |
17627 | esac | |
17628 | case ,${enable_languages}, in | |
17629 | *,go,*) ;; | |
17630 | *) ok=no ;; | |
17631 | esac | |
17632 | if test $ok = yes; then | |
17633 | # An in-tree tool is available and we can use it | |
17634 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17636 | $as_echo "just compiled" >&6; } | |
17637 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17638 | # We already found the complete path | |
17639 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17641 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17642 | elif test "x$target" = "x$host"; then | |
17643 | # We can use an host tool | |
17644 | GOC_FOR_TARGET='$(GOC)' | |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17646 | $as_echo "host tool" >&6; } | |
17647 | else | |
17648 | # We need a cross tool | |
17649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17650 | $as_echo "pre-installed" >&6; } | |
17651 | fi | |
17652 | fi | |
17653 | ||
b4c522fa IB |
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17655 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17656 | if test "x${build}" != "x${host}" ; then | |
17657 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17658 | # We already found the complete path | |
17659 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17661 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17662 | else | |
17663 | # Canadian cross, just use what we found | |
17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17665 | $as_echo "pre-installed" >&6; } | |
17666 | fi | |
17667 | else | |
17668 | ok=yes | |
17669 | case " ${configdirs} " in | |
17670 | *" gcc "*) ;; | |
17671 | *) ok=no ;; | |
17672 | esac | |
17673 | case ,${enable_languages}, in | |
17674 | *,d,*) ;; | |
17675 | *) ok=no ;; | |
17676 | esac | |
17677 | if test $ok = yes; then | |
17678 | # An in-tree tool is available and we can use it | |
17679 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17681 | $as_echo "just compiled" >&6; } | |
17682 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17683 | # We already found the complete path | |
17684 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17686 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17687 | elif test "x$target" = "x$host"; then | |
17688 | # We can use an host tool | |
17689 | GDC_FOR_TARGET='$(GDC)' | |
17690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17691 | $as_echo "host tool" >&6; } | |
17692 | else | |
17693 | # We need a cross tool | |
17694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17695 | $as_echo "pre-installed" >&6; } | |
17696 | fi | |
17697 | fi | |
17698 | ||
5213506e RW |
17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17700 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17701 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17702 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17703 | # We already found the complete path | |
172e41aa | 17704 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17706 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17707 | else |
17708 | # Canadian cross, just use what we found | |
5213506e RW |
17709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17710 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17711 | fi |
2abefe3d PB |
17712 | else |
17713 | ok=yes | |
17714 | case " ${configdirs} " in | |
17715 | *" ld "*) ;; | |
17716 | *) ok=no ;; | |
17717 | esac | |
1c710c3c | 17718 | |
2abefe3d PB |
17719 | if test $ok = yes; then |
17720 | # An in-tree tool is available and we can use it | |
17721 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17723 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17724 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17725 | # We already found the complete path | |
172e41aa | 17726 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17728 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17729 | elif test "x$target" = "x$host"; then |
17730 | # We can use an host tool | |
17731 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17733 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17734 | else |
17735 | # We need a cross tool | |
5213506e RW |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17737 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17738 | fi |
17739 | fi | |
0b0dc272 | 17740 | |
5213506e RW |
17741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17742 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17743 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17744 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17745 | # We already found the complete path | |
172e41aa | 17746 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17748 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17749 | else |
17750 | # Canadian cross, just use what we found | |
5213506e RW |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17752 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17753 | fi |
2abefe3d | 17754 | else |
e8b05380 PB |
17755 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17756 | # We already found the complete path | |
172e41aa | 17757 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17759 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17760 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17761 | # We can use an host tool |
17762 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17764 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17765 | else |
17766 | # We need a cross tool | |
5213506e RW |
17767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17768 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17769 | fi |
17770 | fi | |
0b0dc272 | 17771 | |
5213506e RW |
17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17773 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17774 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17775 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17776 | # We already found the complete path | |
172e41aa | 17777 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17779 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17780 | else |
17781 | # Canadian cross, just use what we found | |
5213506e RW |
17782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17783 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17784 | fi |
2abefe3d PB |
17785 | else |
17786 | ok=yes | |
17787 | case " ${configdirs} " in | |
17788 | *" binutils "*) ;; | |
17789 | *) ok=no ;; | |
17790 | esac | |
1c710c3c | 17791 | |
2abefe3d PB |
17792 | if test $ok = yes; then |
17793 | # An in-tree tool is available and we can use it | |
17794 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17796 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17797 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17798 | # We already found the complete path | |
172e41aa | 17799 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17801 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17802 | elif test "x$target" = "x$host"; then |
17803 | # We can use an host tool | |
17804 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17806 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17807 | else |
17808 | # We need a cross tool | |
5213506e RW |
17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17810 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17811 | fi |
17812 | fi | |
0b0dc272 | 17813 | |
9bccfdf5 AP |
17814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17815 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17816 | if test "x${build}" != "x${host}" ; then | |
17817 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17818 | # We already found the complete path | |
17819 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17821 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17822 | else | |
17823 | # Canadian cross, just use what we found | |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17825 | $as_echo "pre-installed" >&6; } | |
17826 | fi | |
17827 | else | |
17828 | ok=yes | |
17829 | case " ${configdirs} " in | |
17830 | *" binutils "*) ;; | |
17831 | *) ok=no ;; | |
17832 | esac | |
17833 | ||
17834 | if test $ok = yes; then | |
17835 | # An in-tree tool is available and we can use it | |
17836 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17838 | $as_echo "just compiled" >&6; } | |
17839 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17840 | # We already found the complete path | |
17841 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17843 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17844 | elif test "x$target" = "x$host"; then | |
17845 | # We can use an host tool | |
ec8fd1c0 | 17846 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17848 | $as_echo "host tool" >&6; } | |
17849 | else | |
17850 | # We need a cross tool | |
17851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17852 | $as_echo "pre-installed" >&6; } | |
17853 | fi | |
17854 | fi | |
17855 | ||
5213506e RW |
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17857 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17858 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17859 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17860 | # We already found the complete path | |
172e41aa | 17861 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17863 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17864 | else |
17865 | # Canadian cross, just use what we found | |
5213506e RW |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17867 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17868 | fi |
2abefe3d PB |
17869 | else |
17870 | ok=yes | |
17871 | case " ${configdirs} " in | |
17872 | *" binutils "*) ;; | |
17873 | *) ok=no ;; | |
17874 | esac | |
1c710c3c | 17875 | |
2abefe3d PB |
17876 | if test $ok = yes; then |
17877 | # An in-tree tool is available and we can use it | |
17878 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17880 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17881 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17882 | # We already found the complete path | |
172e41aa | 17883 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17885 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17886 | elif test "x$target" = "x$host"; then |
17887 | # We can use an host tool | |
17888 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17890 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17891 | else |
17892 | # We need a cross tool | |
5213506e RW |
17893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17894 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17895 | fi |
17896 | fi | |
0b0dc272 | 17897 | |
e4a9a572 IS |
17898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17899 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17900 | if test "x${build}" != "x${host}" ; then | |
17901 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17902 | # We already found the complete path | |
17903 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17905 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17906 | else | |
17907 | # Canadian cross, just use what we found | |
17908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17909 | $as_echo "pre-installed" >&6; } | |
17910 | fi | |
17911 | else | |
17912 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17913 | # We already found the complete path | |
17914 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17916 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17917 | elif test "x$target" = "x$host"; then | |
17918 | # We can use an host tool | |
17919 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17921 | $as_echo "host tool" >&6; } | |
17922 | else | |
17923 | # We need a cross tool | |
17924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17925 | $as_echo "pre-installed" >&6; } | |
17926 | fi | |
17927 | fi | |
17928 | ||
5213506e RW |
17929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17930 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17931 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17932 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17933 | # We already found the complete path | |
172e41aa | 17934 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17936 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17937 | else |
17938 | # Canadian cross, just use what we found | |
5213506e RW |
17939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17940 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17941 | fi |
2abefe3d PB |
17942 | else |
17943 | ok=yes | |
17944 | case " ${configdirs} " in | |
17945 | *" binutils "*) ;; | |
17946 | *) ok=no ;; | |
17947 | esac | |
1c710c3c | 17948 | |
2abefe3d PB |
17949 | if test $ok = yes; then |
17950 | # An in-tree tool is available and we can use it | |
17951 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17953 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17954 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17955 | # We already found the complete path | |
172e41aa | 17956 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17958 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17959 | elif test "x$target" = "x$host"; then |
17960 | # We can use an host tool | |
17961 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
17962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17963 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17964 | else |
17965 | # We need a cross tool | |
5213506e RW |
17966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17967 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17968 | fi |
17969 | fi | |
0b0dc272 | 17970 | |
e7a82751 RM |
17971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
17972 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
17973 | if test "x${build}" != "x${host}" ; then | |
17974 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17975 | # We already found the complete path | |
17976 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17978 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17979 | else | |
17980 | # Canadian cross, just use what we found | |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17982 | $as_echo "pre-installed" >&6; } | |
17983 | fi | |
17984 | else | |
17985 | ok=yes | |
17986 | case " ${configdirs} " in | |
17987 | *" binutils "*) ;; | |
17988 | *) ok=no ;; | |
17989 | esac | |
17990 | ||
17991 | if test $ok = yes; then | |
17992 | # An in-tree tool is available and we can use it | |
17993 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17995 | $as_echo "just compiled" >&6; } | |
17996 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17997 | # We already found the complete path | |
17998 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18000 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18001 | elif test "x$target" = "x$host"; then | |
18002 | # We can use an host tool | |
18003 | READELF_FOR_TARGET='$(READELF)' | |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18005 | $as_echo "host tool" >&6; } | |
18006 | else | |
18007 | # We need a cross tool | |
18008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18009 | $as_echo "pre-installed" >&6; } | |
18010 | fi | |
18011 | fi | |
18012 | ||
5213506e RW |
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18014 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18015 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18016 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18017 | # We already found the complete path | |
172e41aa | 18018 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18020 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18021 | else |
18022 | # Canadian cross, just use what we found | |
5213506e RW |
18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18024 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18025 | fi |
2abefe3d PB |
18026 | else |
18027 | ok=yes | |
18028 | case " ${configdirs} " in | |
18029 | *" binutils "*) ;; | |
18030 | *) ok=no ;; | |
18031 | esac | |
1c710c3c | 18032 | |
2abefe3d PB |
18033 | if test $ok = yes; then |
18034 | # An in-tree tool is available and we can use it | |
455c8f48 | 18035 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18037 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18038 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18039 | # We already found the complete path | |
172e41aa | 18040 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18042 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18043 | elif test "x$target" = "x$host"; then |
18044 | # We can use an host tool | |
18045 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18047 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18048 | else |
18049 | # We need a cross tool | |
5213506e RW |
18050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18051 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18052 | fi |
18053 | fi | |
0b0dc272 | 18054 | |
5213506e RW |
18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18056 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18057 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18058 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18059 | # We already found the complete path | |
172e41aa | 18060 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18062 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18063 | else |
18064 | # Canadian cross, just use what we found | |
5213506e RW |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18066 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18067 | fi |
2abefe3d PB |
18068 | else |
18069 | ok=yes | |
18070 | case " ${configdirs} " in | |
18071 | *" binutils "*) ;; | |
18072 | *) ok=no ;; | |
18073 | esac | |
1c710c3c | 18074 | |
2abefe3d PB |
18075 | if test $ok = yes; then |
18076 | # An in-tree tool is available and we can use it | |
18077 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18079 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18080 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18081 | # We already found the complete path | |
172e41aa | 18082 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18084 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18085 | elif test "x$target" = "x$host"; then |
18086 | # We can use an host tool | |
18087 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18089 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18090 | else |
18091 | # We need a cross tool | |
5213506e RW |
18092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18093 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18094 | fi |
671aa708 | 18095 | fi |
be912515 | 18096 | |
5213506e RW |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18098 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18099 | if test "x${build}" != "x${host}" ; then |
18100 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18101 | # We already found the complete path | |
18102 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18104 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18105 | else |
18106 | # Canadian cross, just use what we found | |
5213506e RW |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18108 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18109 | fi |
18110 | else | |
18111 | ok=yes | |
18112 | case " ${configdirs} " in | |
18113 | *" binutils "*) ;; | |
18114 | *) ok=no ;; | |
18115 | esac | |
18116 | ||
18117 | if test $ok = yes; then | |
18118 | # An in-tree tool is available and we can use it | |
18119 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18121 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18122 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18123 | # We already found the complete path | |
18124 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18126 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18127 | elif test "x$target" = "x$host"; then |
18128 | # We can use an host tool | |
18129 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18131 | $as_echo "host tool" >&6; } | |
901119ae KT |
18132 | else |
18133 | # We need a cross tool | |
5213506e RW |
18134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18135 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18136 | fi |
18137 | fi | |
18138 | ||
be912515 NN |
18139 | |
18140 | ||
2abefe3d | 18141 | |
0b0dc272 | 18142 | |
671aa708 NN |
18143 | # Certain tools may need extra flags. |
18144 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18145 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18146 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18147 | ||
2abefe3d PB |
18148 | # When building target libraries, except in a Canadian cross, we use |
18149 | # the same toolchain as the compiler we just built. | |
18150 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18151 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18152 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18153 | if test $host = $build; then | |
18154 | case " $configdirs " in | |
18155 | *" gcc "*) | |
18156 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18157 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18158 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18159 | ;; | |
18160 | esac | |
18161 | fi | |
18162 | ||
18163 | ||
18164 | ||
18165 | ||
18166 | ||
5213506e RW |
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18168 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18169 | # Check whether --enable-maintainer-mode was given. | |
18170 | if test "${enable_maintainer_mode+set}" = set; then : | |
18171 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18172 | else |
18173 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18174 | fi |
18175 | ||
18176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18177 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18178 | |
18179 | ||
18180 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18181 | MAINTAINER_MODE_TRUE= | |
18182 | MAINTAINER_MODE_FALSE='#' | |
18183 | else | |
18184 | MAINTAINER_MODE_TRUE='#' | |
18185 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18186 | fi |
ee03dc5e AO |
18187 | MAINT=$MAINTAINER_MODE_TRUE |
18188 | ||
2805b53a NN |
18189 | # --------------------- |
18190 | # GCC bootstrap support | |
18191 | # --------------------- | |
18192 | ||
18193 | # Stage specific cflags for build. | |
18194 | stage1_cflags="-g" | |
18195 | case $build in | |
18196 | vax-*-*) | |
18197 | case ${GCC} in | |
18198 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18199 | *) stage1_cflags="-g -J" ;; | |
18200 | esac ;; | |
2805b53a NN |
18201 | esac |
18202 | ||
0b50988a | 18203 | |
2805b53a | 18204 | |
8efea775 | 18205 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18206 | # Check whether --enable-stage1-checking was given. |
18207 | if test "${enable_stage1_checking+set}" = set; then : | |
18208 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18209 | else |
e643dc23 | 18210 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18211 | # For --disable-checking or implicit --enable-checking=release, avoid |
18212 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18213 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18214 | case $BUILD_CONFIG in |
18215 | *lto*) | |
7db11a5a JJ |
18216 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18217 | *) | |
18218 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18219 | esac |
7db11a5a JJ |
18220 | if test "x$enable_checking" = x && \ |
18221 | test -d ${srcdir}/gcc && \ | |
18222 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18223 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18224 | fi |
8efea775 | 18225 | else |
e643dc23 | 18226 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18227 | fi |
5213506e | 18228 | fi |
8efea775 PB |
18229 | |
18230 | ||
2aeb72e9 | 18231 | |
5213506e RW |
18232 | # Enable -Werror in bootstrap stage2 and later. |
18233 | # Check whether --enable-werror was given. | |
18234 | if test "${enable_werror+set}" = set; then : | |
18235 | enableval=$enable_werror; | |
09a9c095 NN |
18236 | case ${enable_werror} in |
18237 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18238 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18239 | esac |
18240 | ||
afd88efc ML |
18241 | else |
18242 | ||
01c712cb ML |
18243 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18244 | case $BUILD_CONFIG in | |
18245 | bootstrap-debug) | |
18246 | stage2_werror_flag="--enable-werror-always" ;; | |
18247 | "") | |
18248 | stage2_werror_flag="--enable-werror-always" ;; | |
18249 | esac | |
18250 | fi | |
18251 | ||
afd88efc ML |
18252 | fi |
18253 | ||
18254 | ||
01c712cb | 18255 | |
2805b53a | 18256 | |
f2689b09 SE |
18257 | # Specify what files to not compare during bootstrap. |
18258 | ||
18259 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18260 | case "$target" in | |
18261 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
18262 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18263 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
18264 | esac |
18265 | ||
18266 | ||
5213506e RW |
18267 | ac_config_files="$ac_config_files Makefile" |
18268 | ||
1c710c3c | 18269 | cat >confcache <<\_ACEOF |
671aa708 NN |
18270 | # This file is a shell script that caches the results of configure |
18271 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18272 | # scripts and configure runs, see configure's option --config-cache. |
18273 | # It is not useful on other systems. If it contains results you don't | |
18274 | # want to keep, you may remove or edit it. | |
671aa708 | 18275 | # |
1c710c3c DJ |
18276 | # config.status only pays attention to the cache file if you give it |
18277 | # the --recheck option to rerun configure. | |
671aa708 | 18278 | # |
1c710c3c DJ |
18279 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18280 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18281 | # following values. | |
18282 | ||
18283 | _ACEOF | |
18284 | ||
671aa708 NN |
18285 | # The following way of writing the cache mishandles newlines in values, |
18286 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18287 | # So, we kill variables containing newlines. |
671aa708 NN |
18288 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18289 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18290 | ( |
18291 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18292 | eval ac_val=\$$ac_var | |
18293 | case $ac_val in #( | |
18294 | *${as_nl}*) | |
18295 | case $ac_var in #( | |
18296 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18297 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18298 | esac | |
18299 | case $ac_var in #( | |
18300 | _ | IFS | as_nl) ;; #( | |
18301 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18302 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18303 | esac ;; | |
18304 | esac | |
18305 | done | |
18306 | ||
1c710c3c | 18307 | (set) 2>&1 | |
5213506e RW |
18308 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18309 | *${as_nl}ac_space=\ *) | |
18310 | # `set' does not quote correctly, so add quotes: double-quote | |
18311 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18312 | sed -n \ |
18313 | "s/'/'\\\\''/g; | |
18314 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18315 | ;; #( |
1c710c3c DJ |
18316 | *) |
18317 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18318 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18319 | ;; |
5213506e RW |
18320 | esac | |
18321 | sort | |
18322 | ) | | |
1c710c3c | 18323 | sed ' |
5213506e | 18324 | /^ac_cv_env_/b end |
1c710c3c | 18325 | t clear |
5213506e | 18326 | :clear |
1c710c3c DJ |
18327 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18328 | t end | |
5213506e RW |
18329 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18330 | :end' >>confcache | |
18331 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18332 | if test -w "$cache_file"; then | |
22e05272 | 18333 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18334 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18335 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18336 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18337 | cat confcache >"$cache_file" | |
18338 | else | |
18339 | case $cache_file in #( | |
18340 | */* | ?:*) | |
18341 | mv -f confcache "$cache_file"$$ && | |
18342 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18343 | *) | |
18344 | mv -f confcache "$cache_file" ;; | |
18345 | esac | |
18346 | fi | |
18347 | fi | |
671aa708 | 18348 | else |
5213506e RW |
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18350 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18351 | fi |
4977bab6 | 18352 | fi |
671aa708 | 18353 | rm -f confcache |
79c06341 | 18354 | |
671aa708 NN |
18355 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18356 | # Let make expand exec_prefix. | |
18357 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18358 | |
671aa708 NN |
18359 | # Transform confdefs.h into DEFS. |
18360 | # Protect against shell expansion while executing Makefile rules. | |
18361 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18362 | # |
18363 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18364 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18365 | # look for a macro that doesn't take arguments. |
5213506e RW |
18366 | ac_script=' |
18367 | :mline | |
18368 | /\\$/{ | |
18369 | N | |
18370 | s,\\\n,, | |
18371 | b mline | |
18372 | } | |
1c710c3c | 18373 | t clear |
5213506e RW |
18374 | :clear |
18375 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18376 | t quote |
5213506e | 18377 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18378 | t quote |
5213506e RW |
18379 | b any |
18380 | :quote | |
18381 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18382 | s/\[/\\&/g | |
18383 | s/\]/\\&/g | |
18384 | s/\$/$$/g | |
18385 | H | |
18386 | :any | |
18387 | ${ | |
18388 | g | |
18389 | s/^\n// | |
18390 | s/\n/ /g | |
18391 | p | |
18392 | } | |
18393 | ' | |
18394 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18395 | |
18396 | ||
18397 | ac_libobjs= | |
18398 | ac_ltlibobjs= | |
22e05272 | 18399 | U= |
1c710c3c DJ |
18400 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18401 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18402 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18403 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18404 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18405 | # will be set to the directory where LIBOBJS objects are built. | |
18406 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18407 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18408 | done |
18409 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18410 | |
1c710c3c | 18411 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18412 | |
af71363e | 18413 | |
1c710c3c | 18414 | |
22e05272 | 18415 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18416 | ac_write_fail=0 |
1c710c3c DJ |
18417 | ac_clean_files_save=$ac_clean_files |
18418 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18420 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18421 | as_write_fail=0 | |
18422 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18423 | #! $SHELL |
18424 | # Generated by $as_me. | |
671aa708 | 18425 | # Run this file to recreate the current configuration. |
671aa708 | 18426 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18427 | # configure, is in config.log if it exists. |
0b0dc272 | 18428 | |
1c710c3c DJ |
18429 | debug=false |
18430 | ac_cs_recheck=false | |
18431 | ac_cs_silent=false | |
1c710c3c | 18432 | |
5213506e RW |
18433 | SHELL=\${CONFIG_SHELL-$SHELL} |
18434 | export SHELL | |
18435 | _ASEOF | |
18436 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18437 | ## -------------------- ## | |
18438 | ## M4sh Initialization. ## | |
18439 | ## -------------------- ## | |
18440 | ||
18441 | # Be more Bourne compatible | |
18442 | DUALCASE=1; export DUALCASE # for MKS sh | |
18443 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18444 | emulate sh |
18445 | NULLCMD=: | |
5213506e | 18446 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18447 | # is contrary to our usage. Disable this feature. |
18448 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18449 | setopt NO_GLOB_SUBST |
18450 | else | |
18451 | case `(set -o) 2>/dev/null` in #( | |
18452 | *posix*) : | |
18453 | set -o posix ;; #( | |
18454 | *) : | |
18455 | ;; | |
18456 | esac | |
1c710c3c | 18457 | fi |
1c710c3c | 18458 | |
5213506e RW |
18459 | |
18460 | as_nl=' | |
18461 | ' | |
18462 | export as_nl | |
18463 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18464 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18465 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18466 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18467 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18468 | # but without wasting forks for bash or zsh. | |
18469 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18470 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18471 | as_echo='print -r --' | |
18472 | as_echo_n='print -rn --' | |
18473 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18474 | as_echo='printf %s\n' | |
18475 | as_echo_n='printf %s' | |
18476 | else | |
18477 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18478 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18479 | as_echo_n='/usr/ucb/echo -n' | |
18480 | else | |
18481 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18482 | as_echo_n_body='eval | |
18483 | arg=$1; | |
18484 | case $arg in #( | |
18485 | *"$as_nl"*) | |
18486 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18487 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18488 | esac; | |
18489 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18490 | ' | |
18491 | export as_echo_n_body | |
18492 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18493 | fi | |
18494 | export as_echo_body | |
18495 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18496 | fi |
18497 | ||
5213506e RW |
18498 | # The user is always right. |
18499 | if test "${PATH_SEPARATOR+set}" != set; then | |
18500 | PATH_SEPARATOR=: | |
18501 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18502 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18503 | PATH_SEPARATOR=';' | |
18504 | } | |
18505 | fi | |
18506 | ||
18507 | ||
18508 | # IFS | |
18509 | # We need space, tab and new line, in precisely that order. Quoting is | |
18510 | # there to prevent editors from complaining about space-tab. | |
18511 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18512 | # splitting by setting IFS to empty value.) | |
18513 | IFS=" "" $as_nl" | |
18514 | ||
18515 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18516 | as_myself= |
5213506e RW |
18517 | case $0 in #(( |
18518 | *[\\/]* ) as_myself=$0 ;; | |
18519 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18520 | for as_dir in $PATH | |
18521 | do | |
18522 | IFS=$as_save_IFS | |
18523 | test -z "$as_dir" && as_dir=. | |
18524 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18525 | done | |
18526 | IFS=$as_save_IFS | |
18527 | ||
18528 | ;; | |
18529 | esac | |
18530 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18531 | # in which case we are not to be found in the path. | |
18532 | if test "x$as_myself" = x; then | |
18533 | as_myself=$0 | |
18534 | fi | |
18535 | if test ! -f "$as_myself"; then | |
18536 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18537 | exit 1 | |
18538 | fi | |
1c710c3c | 18539 | |
5213506e RW |
18540 | # Unset variables that we do not need and which cause bugs (e.g. in |
18541 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18542 | # suppresses any "Segmentation fault" message there. '((' could | |
18543 | # trigger a bug in pdksh 5.2.14. | |
18544 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18545 | do eval test x\${$as_var+set} = xset \ | |
18546 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18547 | done | |
1c710c3c DJ |
18548 | PS1='$ ' |
18549 | PS2='> ' | |
18550 | PS4='+ ' | |
18551 | ||
18552 | # NLS nuisances. | |
5213506e RW |
18553 | LC_ALL=C |
18554 | export LC_ALL | |
18555 | LANGUAGE=C | |
18556 | export LANGUAGE | |
18557 | ||
18558 | # CDPATH. | |
18559 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18560 | ||
18561 | ||
22e05272 JM |
18562 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18563 | # ---------------------------------------- | |
5213506e RW |
18564 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18565 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18566 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18567 | as_fn_error () |
18568 | { | |
22e05272 JM |
18569 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18570 | if test "$4"; then | |
18571 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18572 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18573 | fi |
22e05272 | 18574 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18575 | as_fn_exit $as_status |
18576 | } # as_fn_error | |
18577 | ||
18578 | ||
18579 | # as_fn_set_status STATUS | |
18580 | # ----------------------- | |
18581 | # Set $? to STATUS, without forking. | |
18582 | as_fn_set_status () | |
18583 | { | |
18584 | return $1 | |
18585 | } # as_fn_set_status | |
18586 | ||
18587 | # as_fn_exit STATUS | |
18588 | # ----------------- | |
18589 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18590 | as_fn_exit () | |
18591 | { | |
18592 | set +e | |
18593 | as_fn_set_status $1 | |
18594 | exit $1 | |
18595 | } # as_fn_exit | |
18596 | ||
18597 | # as_fn_unset VAR | |
18598 | # --------------- | |
18599 | # Portably unset VAR. | |
18600 | as_fn_unset () | |
18601 | { | |
18602 | { eval $1=; unset $1;} | |
18603 | } | |
18604 | as_unset=as_fn_unset | |
18605 | # as_fn_append VAR VALUE | |
18606 | # ---------------------- | |
18607 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18608 | # advantage of any shell optimizations that allow amortized linear growth over | |
18609 | # repeated appends, instead of the typical quadratic growth present in naive | |
18610 | # implementations. | |
18611 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18612 | eval 'as_fn_append () | |
18613 | { | |
18614 | eval $1+=\$2 | |
18615 | }' | |
18616 | else | |
18617 | as_fn_append () | |
18618 | { | |
18619 | eval $1=\$$1\$2 | |
18620 | } | |
18621 | fi # as_fn_append | |
18622 | ||
18623 | # as_fn_arith ARG... | |
18624 | # ------------------ | |
18625 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18626 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18627 | # must be portable across $(()) and expr. | |
18628 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18629 | eval 'as_fn_arith () | |
18630 | { | |
18631 | as_val=$(( $* )) | |
18632 | }' | |
18633 | else | |
18634 | as_fn_arith () | |
18635 | { | |
18636 | as_val=`expr "$@" || test $? -eq 1` | |
18637 | } | |
18638 | fi # as_fn_arith | |
18639 | ||
1c710c3c | 18640 | |
5213506e RW |
18641 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18642 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18643 | as_expr=expr |
18644 | else | |
18645 | as_expr=false | |
18646 | fi | |
18647 | ||
5213506e | 18648 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18649 | as_basename=basename |
18650 | else | |
18651 | as_basename=false | |
18652 | fi | |
18653 | ||
5213506e RW |
18654 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18655 | as_dirname=dirname | |
18656 | else | |
18657 | as_dirname=false | |
18658 | fi | |
1c710c3c | 18659 | |
5213506e | 18660 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18661 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18662 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18663 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18664 | $as_echo X/"$0" | | |
18665 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18666 | s//\1/ | |
18667 | q | |
18668 | } | |
18669 | /^X\/\(\/\/\)$/{ | |
18670 | s//\1/ | |
18671 | q | |
18672 | } | |
18673 | /^X\/\(\/\).*/{ | |
18674 | s//\1/ | |
18675 | q | |
18676 | } | |
18677 | s/.*/./; q'` | |
2aeb72e9 | 18678 | |
2aeb72e9 DD |
18679 | # Avoid depending upon Character Ranges. |
18680 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18681 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18682 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18683 | as_cr_digits='0123456789' | |
18684 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18685 | ||
5213506e RW |
18686 | ECHO_C= ECHO_N= ECHO_T= |
18687 | case `echo -n x` in #((((( | |
18688 | -n*) | |
18689 | case `echo 'xy\c'` in | |
18690 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18691 | xy) ECHO_C='\c';; | |
18692 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18693 | ECHO_T=' ';; | |
18694 | esac;; | |
18695 | *) | |
18696 | ECHO_N='-n';; | |
1c710c3c DJ |
18697 | esac |
18698 | ||
5213506e RW |
18699 | rm -f conf$$ conf$$.exe conf$$.file |
18700 | if test -d conf$$.dir; then | |
18701 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18702 | else |
5213506e RW |
18703 | rm -f conf$$.dir |
18704 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18705 | fi |
5213506e RW |
18706 | if (echo >conf$$.file) 2>/dev/null; then |
18707 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18708 | as_ln_s='ln -s' |
5213506e RW |
18709 | # ... but there are two gotchas: |
18710 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18711 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18712 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18713 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18714 | as_ln_s='cp -pR' |
5213506e RW |
18715 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18716 | as_ln_s=ln | |
18717 | else | |
22e05272 | 18718 | as_ln_s='cp -pR' |
2aeb72e9 | 18719 | fi |
1c710c3c | 18720 | else |
22e05272 | 18721 | as_ln_s='cp -pR' |
1c710c3c | 18722 | fi |
5213506e RW |
18723 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18724 | rmdir conf$$.dir 2>/dev/null | |
18725 | ||
18726 | ||
18727 | # as_fn_mkdir_p | |
18728 | # ------------- | |
18729 | # Create "$as_dir" as a directory, including parents if necessary. | |
18730 | as_fn_mkdir_p () | |
18731 | { | |
18732 | ||
18733 | case $as_dir in #( | |
18734 | -*) as_dir=./$as_dir;; | |
18735 | esac | |
18736 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18737 | as_dirs= | |
18738 | while :; do | |
18739 | case $as_dir in #( | |
18740 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18741 | *) as_qdir=$as_dir;; | |
18742 | esac | |
18743 | as_dirs="'$as_qdir' $as_dirs" | |
18744 | as_dir=`$as_dirname -- "$as_dir" || | |
18745 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18746 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18747 | X"$as_dir" : 'X\(//\)$' \| \ | |
18748 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18749 | $as_echo X"$as_dir" | | |
18750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18751 | s//\1/ | |
18752 | q | |
18753 | } | |
18754 | /^X\(\/\/\)[^/].*/{ | |
18755 | s//\1/ | |
18756 | q | |
18757 | } | |
18758 | /^X\(\/\/\)$/{ | |
18759 | s//\1/ | |
18760 | q | |
18761 | } | |
18762 | /^X\(\/\).*/{ | |
18763 | s//\1/ | |
18764 | q | |
18765 | } | |
18766 | s/.*/./; q'` | |
18767 | test -d "$as_dir" && break | |
18768 | done | |
18769 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18770 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18771 | |
1c710c3c | 18772 | |
5213506e | 18773 | } # as_fn_mkdir_p |
1c710c3c | 18774 | if mkdir -p . 2>/dev/null; then |
5213506e | 18775 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18776 | else |
18777 | test -d ./-p && rmdir ./-p | |
18778 | as_mkdir_p=false | |
18779 | fi | |
18780 | ||
22e05272 JM |
18781 | |
18782 | # as_fn_executable_p FILE | |
18783 | # ----------------------- | |
18784 | # Test if FILE is an executable regular file. | |
18785 | as_fn_executable_p () | |
18786 | { | |
18787 | test -f "$1" && test -x "$1" | |
18788 | } # as_fn_executable_p | |
18789 | as_test_x='test -x' | |
18790 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18791 | |
18792 | # Sed expression to map a string onto a valid CPP name. | |
18793 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18794 | ||
18795 | # Sed expression to map a string onto a valid variable name. | |
18796 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18797 | ||
18798 | ||
1c710c3c | 18799 | exec 6>&1 |
5213506e RW |
18800 | ## ----------------------------------- ## |
18801 | ## Main body of $CONFIG_STATUS script. ## | |
18802 | ## ----------------------------------- ## | |
18803 | _ASEOF | |
18804 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18805 | ||
18806 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18807 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18808 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18809 | # values after options handling. |
18810 | ac_log=" | |
1c710c3c | 18811 | This file was extended by $as_me, which was |
22e05272 | 18812 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18813 | |
18814 | CONFIG_FILES = $CONFIG_FILES | |
18815 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18816 | CONFIG_LINKS = $CONFIG_LINKS | |
18817 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18818 | $ $0 $@ | |
18819 | ||
5213506e RW |
18820 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18821 | " | |
18822 | ||
1c710c3c DJ |
18823 | _ACEOF |
18824 | ||
5213506e RW |
18825 | case $ac_config_files in *" |
18826 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18827 | esac | |
1c710c3c | 18828 | |
2aeb72e9 | 18829 | |
2aeb72e9 | 18830 | |
5213506e RW |
18831 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18832 | # Files that config.status was made for. | |
18833 | config_files="$ac_config_files" | |
1c710c3c | 18834 | |
5213506e | 18835 | _ACEOF |
2aeb72e9 | 18836 | |
5213506e | 18837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18838 | ac_cs_usage="\ |
5213506e RW |
18839 | \`$as_me' instantiates files and other configuration actions |
18840 | from templates according to the current configuration. Unless the files | |
18841 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18842 | |
5213506e | 18843 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18844 | |
18845 | -h, --help print this help, then exit | |
5213506e | 18846 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18847 | --config print configuration, then exit |
5213506e RW |
18848 | -q, --quiet, --silent |
18849 | do not print progress messages | |
1c710c3c DJ |
18850 | -d, --debug don't remove temporary files |
18851 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18852 | --file=FILE[:TEMPLATE] |
18853 | instantiate the configuration file FILE | |
1c710c3c DJ |
18854 | |
18855 | Configuration files: | |
18856 | $config_files | |
18857 | ||
5213506e | 18858 | Report bugs to the package provider." |
2aeb72e9 | 18859 | |
5213506e RW |
18860 | _ACEOF |
18861 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18862 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18863 | ac_cs_version="\\ |
18864 | config.status | |
22e05272 JM |
18865 | configured by $0, generated by GNU Autoconf 2.69, |
18866 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18867 | |
22e05272 | 18868 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18869 | This config.status script is free software; the Free Software Foundation |
18870 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18871 | |
18872 | ac_pwd='$ac_pwd' | |
18873 | srcdir='$srcdir' | |
18874 | INSTALL='$INSTALL' | |
87264276 | 18875 | AWK='$AWK' |
5213506e | 18876 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18877 | _ACEOF |
18878 | ||
5213506e RW |
18879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18880 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18881 | ac_need_defaults=: |
18882 | while test $# != 0 | |
a4b9e93e | 18883 | do |
1c710c3c | 18884 | case $1 in |
22e05272 | 18885 | --*=?*) |
5213506e RW |
18886 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18887 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18888 | ac_shift=: |
18889 | ;; | |
22e05272 JM |
18890 | --*=) |
18891 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18892 | ac_optarg= | |
18893 | ac_shift=: | |
18894 | ;; | |
5213506e | 18895 | *) |
1c710c3c DJ |
18896 | ac_option=$1 |
18897 | ac_optarg=$2 | |
18898 | ac_shift=shift | |
18899 | ;; | |
1c710c3c DJ |
18900 | esac |
18901 | ||
18902 | case $ac_option in | |
18903 | # Handling of the options. | |
671aa708 | 18904 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18905 | ac_cs_recheck=: ;; |
5213506e RW |
18906 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18907 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18908 | --config | --confi | --conf | --con | --co | --c ) |
18909 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18910 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18911 | debug=: ;; |
18912 | --file | --fil | --fi | --f ) | |
18913 | $ac_shift | |
5213506e RW |
18914 | case $ac_optarg in |
18915 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18916 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18917 | esac |
18918 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18919 | ac_need_defaults=false;; |
5213506e RW |
18920 | --he | --h | --help | --hel | -h ) |
18921 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18922 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18923 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18924 | ac_cs_silent=: ;; | |
18925 | ||
18926 | # This is an error. | |
22e05272 | 18927 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18928 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18929 | |
5213506e RW |
18930 | *) as_fn_append ac_config_targets " $1" |
18931 | ac_need_defaults=false ;; | |
1c710c3c | 18932 | |
0b0dc272 | 18933 | esac |
1c710c3c | 18934 | shift |
0b0dc272 AM |
18935 | done |
18936 | ||
1c710c3c | 18937 | ac_configure_extra_args= |
0b0dc272 | 18938 | |
1c710c3c DJ |
18939 | if $ac_cs_silent; then |
18940 | exec 6>/dev/null | |
18941 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18942 | fi | |
0b0dc272 | 18943 | |
1c710c3c | 18944 | _ACEOF |
5213506e | 18945 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18946 | if \$ac_cs_recheck; then |
22e05272 | 18947 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18948 | shift |
18949 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18950 | CONFIG_SHELL='$SHELL' | |
18951 | export CONFIG_SHELL | |
18952 | exec "\$@" | |
1c710c3c DJ |
18953 | fi |
18954 | ||
18955 | _ACEOF | |
5213506e RW |
18956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18957 | exec 5>>config.log | |
18958 | { | |
18959 | echo | |
18960 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18961 | ## Running $as_me. ## | |
18962 | _ASBOX | |
18963 | $as_echo "$ac_log" | |
18964 | } >&5 | |
1c710c3c | 18965 | |
5213506e RW |
18966 | _ACEOF |
18967 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
18968 | # |
18969 | # INIT-COMMANDS | |
18970 | # | |
18971 | extrasub_build="$extrasub_build" | |
18972 | extrasub_host="$extrasub_host" | |
18973 | extrasub_target="$extrasub_target" | |
18974 | ||
5213506e | 18975 | _ACEOF |
1c710c3c | 18976 | |
5213506e | 18977 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 18978 | |
5213506e | 18979 | # Handling of arguments. |
1c710c3c DJ |
18980 | for ac_config_target in $ac_config_targets |
18981 | do | |
5213506e RW |
18982 | case $ac_config_target in |
18983 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18984 | ||
22e05272 | 18985 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
18986 | esac |
18987 | done | |
18988 | ||
5213506e | 18989 | |
1c710c3c DJ |
18990 | # If the user did not use the arguments to specify the items to instantiate, |
18991 | # then the envvar interface is used. Set only those that are not. | |
18992 | # We use the long form for the default assignment because of an extremely | |
18993 | # bizarre bug on SunOS 4.1.3. | |
18994 | if $ac_need_defaults; then | |
18995 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18996 | fi | |
18997 | ||
18998 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18999 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19000 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19001 | # Hook for its removal unless debugging. |
19002 | # Note that there is a small window in which the directory will not be cleaned: | |
19003 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19004 | $debug || |
19005 | { | |
22e05272 | 19006 | tmp= ac_tmp= |
5213506e | 19007 | trap 'exit_status=$? |
22e05272 JM |
19008 | : "${ac_tmp:=$tmp}" |
19009 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19010 | ' 0 |
19011 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19012 | } |
1c710c3c DJ |
19013 | # Create a (secure) tmp directory for tmp files. |
19014 | ||
19015 | { | |
5213506e | 19016 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19017 | test -d "$tmp" |
1c710c3c DJ |
19018 | } || |
19019 | { | |
5213506e RW |
19020 | tmp=./conf$$-$RANDOM |
19021 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19022 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19023 | ac_tmp=$tmp | |
5213506e RW |
19024 | |
19025 | # Set up the scripts for CONFIG_FILES section. | |
19026 | # No need to generate them if there are no CONFIG_FILES. | |
19027 | # This happens for instance with `./config.status config.h'. | |
19028 | if test -n "$CONFIG_FILES"; then | |
19029 | ||
19030 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19031 | ac_cs_awk_getline=: | |
19032 | ac_cs_awk_pipe_init= | |
19033 | ac_cs_awk_read_file=' | |
19034 | while ((getline aline < (F[key])) > 0) | |
19035 | print(aline) | |
19036 | close(F[key])' | |
19037 | ac_cs_awk_pipe_fini= | |
19038 | else | |
19039 | ac_cs_awk_getline=false | |
19040 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19041 | ac_cs_awk_read_file=' | |
19042 | print "|#_!!_#|" | |
19043 | print "cat " F[key] " &&" | |
19044 | '$ac_cs_awk_pipe_init | |
19045 | # The final `:' finishes the AND list. | |
19046 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19047 | fi | |
19048 | ac_cr=`echo X | tr X '\015'` | |
19049 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19050 | # But we know of no other shell where ac_cr would be empty at this | |
19051 | # point, so we can use a bashism as a fallback. | |
19052 | if test "x$ac_cr" = x; then | |
19053 | eval ac_cr=\$\'\\r\' | |
19054 | fi | |
19055 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19056 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19057 | ac_cs_awk_cr='\\r' |
5213506e RW |
19058 | else |
19059 | ac_cs_awk_cr=$ac_cr | |
19060 | fi | |
19061 | ||
22e05272 | 19062 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19063 | _ACEOF |
19064 | ||
19065 | # Create commands to substitute file output variables. | |
1c710c3c | 19066 | { |
5213506e | 19067 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19068 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19069 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19070 | echo "_ACAWK" && | |
19071 | echo "_ACEOF" | |
19072 | } >conf$$files.sh && | |
19073 | . ./conf$$files.sh || | |
22e05272 | 19074 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19075 | rm -f conf$$files.sh |
1c710c3c | 19076 | |
5213506e RW |
19077 | { |
19078 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19079 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19080 | echo "_ACEOF" | |
19081 | } >conf$$subs.sh || | |
22e05272 JM |
19082 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19083 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19084 | ac_delim='%!_!# ' |
19085 | for ac_last_try in false false false false false :; do | |
19086 | . ./conf$$subs.sh || | |
22e05272 | 19087 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19088 | |
19089 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19090 | if test $ac_delim_n = $ac_delim_num; then | |
19091 | break | |
19092 | elif $ac_last_try; then | |
22e05272 | 19093 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19094 | else |
19095 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19096 | fi | |
19097 | done | |
19098 | rm -f conf$$subs.sh | |
19099 | ||
19100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19101 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19102 | _ACEOF |
5213506e RW |
19103 | sed -n ' |
19104 | h | |
19105 | s/^/S["/; s/!.*/"]=/ | |
19106 | p | |
19107 | g | |
19108 | s/^[^!]*!// | |
19109 | :repl | |
19110 | t repl | |
19111 | s/'"$ac_delim"'$// | |
19112 | t delim | |
19113 | :nl | |
19114 | h | |
22e05272 | 19115 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19116 | t more1 |
19117 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19118 | p | |
19119 | n | |
19120 | b repl | |
19121 | :more1 | |
19122 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19123 | p | |
19124 | g | |
19125 | s/.\{148\}// | |
19126 | t nl | |
19127 | :delim | |
19128 | h | |
22e05272 | 19129 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19130 | t more2 |
19131 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19132 | p | |
19133 | b | |
19134 | :more2 | |
19135 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19136 | p | |
19137 | g | |
19138 | s/.\{148\}// | |
19139 | t delim | |
19140 | ' <conf$$subs.awk | sed ' | |
19141 | /^[^""]/{ | |
19142 | N | |
19143 | s/\n// | |
19144 | } | |
19145 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19146 | rm -f conf$$subs.awk | |
19147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19148 | _ACAWK | |
22e05272 | 19149 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19150 | for (key in S) S_is_set[key] = 1 |
19151 | FS = "\a" | |
19152 | \$ac_cs_awk_pipe_init | |
19153 | } | |
19154 | { | |
19155 | line = $ 0 | |
19156 | nfields = split(line, field, "@") | |
19157 | substed = 0 | |
19158 | len = length(field[1]) | |
19159 | for (i = 2; i < nfields; i++) { | |
19160 | key = field[i] | |
19161 | keylen = length(key) | |
19162 | if (S_is_set[key]) { | |
19163 | value = S[key] | |
19164 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19165 | len += length(value) + length(field[++i]) | |
19166 | substed = 1 | |
19167 | } else | |
19168 | len += 1 + keylen | |
19169 | } | |
19170 | if (nfields == 3 && !substed) { | |
19171 | key = field[2] | |
19172 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19173 | \$ac_cs_awk_read_file | |
19174 | next | |
19175 | } | |
19176 | } | |
19177 | print line | |
19178 | } | |
19179 | \$ac_cs_awk_pipe_fini | |
19180 | _ACAWK | |
19181 | _ACEOF | |
19182 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19183 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19184 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19185 | else | |
19186 | cat | |
22e05272 JM |
19187 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19188 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19189 | _ACEOF |
19190 | ||
22e05272 JM |
19191 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19192 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19193 | # trailing colons and then remove the whole line if VPATH becomes empty |
19194 | # (actually we leave an empty line to preserve line numbers). | |
19195 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19196 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19197 | h | |
19198 | s/// | |
19199 | s/^/:/ | |
19200 | s/[ ]*$/:/ | |
19201 | s/:\$(srcdir):/:/g | |
19202 | s/:\${srcdir}:/:/g | |
19203 | s/:@srcdir@:/:/g | |
19204 | s/^:*// | |
5213506e | 19205 | s/:*$// |
22e05272 JM |
19206 | x |
19207 | s/\(=[ ]*\).*/\1/ | |
19208 | G | |
19209 | s/\n// | |
5213506e RW |
19210 | s/^[^=]*=[ ]*$// |
19211 | }' | |
19212 | fi | |
2aeb72e9 | 19213 | |
5213506e RW |
19214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19215 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19216 | |
1c710c3c | 19217 | |
5213506e RW |
19218 | eval set X " :F $CONFIG_FILES " |
19219 | shift | |
19220 | for ac_tag | |
19221 | do | |
19222 | case $ac_tag in | |
19223 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19224 | esac | |
19225 | case $ac_mode$ac_tag in | |
19226 | :[FHL]*:*);; | |
22e05272 | 19227 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19228 | :[FH]-) ac_tag=-:-;; |
19229 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19230 | esac | |
19231 | ac_save_IFS=$IFS | |
19232 | IFS=: | |
19233 | set x $ac_tag | |
19234 | IFS=$ac_save_IFS | |
19235 | shift | |
19236 | ac_file=$1 | |
19237 | shift | |
79c06341 | 19238 | |
5213506e RW |
19239 | case $ac_mode in |
19240 | :L) ac_source=$1;; | |
19241 | :[FH]) | |
19242 | ac_file_inputs= | |
19243 | for ac_f | |
19244 | do | |
19245 | case $ac_f in | |
22e05272 | 19246 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19247 | *) # Look for the file first in the build tree, then in the source tree |
19248 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19249 | # because $ac_f cannot contain `:'. | |
19250 | test -f "$ac_f" || | |
19251 | case $ac_f in | |
19252 | [\\/$]*) false;; | |
19253 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19254 | esac || | |
22e05272 | 19255 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19256 | esac |
19257 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19258 | as_fn_append ac_file_inputs " '$ac_f'" | |
19259 | done | |
1c710c3c | 19260 | |
5213506e RW |
19261 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19262 | # use $as_me), people would be surprised to read: | |
19263 | # /* config.h. Generated by config.status. */ | |
19264 | configure_input='Generated from '` | |
19265 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19266 | `' by configure.' | |
19267 | if test x"$ac_file" != x-; then | |
19268 | configure_input="$ac_file. $configure_input" | |
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19270 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19271 | fi |
5213506e RW |
19272 | # Neutralize special characters interpreted by sed in replacement strings. |
19273 | case $configure_input in #( | |
19274 | *\&* | *\|* | *\\* ) | |
19275 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19276 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19277 | *) ac_sed_conf_input=$configure_input;; | |
19278 | esac | |
11a67599 | 19279 | |
5213506e | 19280 | case $ac_tag in |
22e05272 JM |
19281 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19282 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19283 | esac |
19284 | ;; | |
11a67599 ZW |
19285 | esac |
19286 | ||
5213506e | 19287 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19288 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19289 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19290 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19291 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19292 | $as_echo X"$ac_file" | | |
19293 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19294 | s//\1/ | |
19295 | q | |
19296 | } | |
19297 | /^X\(\/\/\)[^/].*/{ | |
19298 | s//\1/ | |
19299 | q | |
19300 | } | |
19301 | /^X\(\/\/\)$/{ | |
19302 | s//\1/ | |
19303 | q | |
19304 | } | |
19305 | /^X\(\/\).*/{ | |
19306 | s//\1/ | |
19307 | q | |
19308 | } | |
19309 | s/.*/./; q'` | |
19310 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19311 | ac_builddir=. |
0b0dc272 | 19312 | |
5213506e RW |
19313 | case "$ac_dir" in |
19314 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19315 | *) | |
19316 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19317 | # A ".." for each directory in $ac_dir_suffix. | |
19318 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19319 | case $ac_top_builddir_sub in | |
19320 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19321 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19322 | esac ;; | |
19323 | esac | |
19324 | ac_abs_top_builddir=$ac_pwd | |
19325 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19326 | # for backward compatibility: | |
19327 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19328 | |
19329 | case $srcdir in | |
5213506e | 19330 | .) # We are building in place. |
1c710c3c | 19331 | ac_srcdir=. |
5213506e RW |
19332 | ac_top_srcdir=$ac_top_builddir_sub |
19333 | ac_abs_top_srcdir=$ac_pwd ;; | |
19334 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19335 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19336 | ac_top_srcdir=$srcdir |
19337 | ac_abs_top_srcdir=$srcdir ;; | |
19338 | *) # Relative name. | |
19339 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19340 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19341 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19342 | esac |
5213506e | 19343 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19344 | |
0b0dc272 | 19345 | |
5213506e RW |
19346 | case $ac_mode in |
19347 | :F) | |
19348 | # | |
19349 | # CONFIG_FILE | |
19350 | # | |
1c710c3c DJ |
19351 | |
19352 | case $INSTALL in | |
19353 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19354 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19355 | esac |
5213506e | 19356 | _ACEOF |
11a67599 | 19357 | |
5213506e RW |
19358 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19359 | # If the template does not know about datarootdir, expand it. | |
19360 | # FIXME: This hack should be removed a few years after 2.60. | |
19361 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19362 | ac_sed_dataroot=' | |
19363 | /datarootdir/ { | |
19364 | p | |
19365 | q | |
19366 | } | |
19367 | /@datadir@/p | |
19368 | /@docdir@/p | |
19369 | /@infodir@/p | |
19370 | /@localedir@/p | |
19371 | /@mandir@/p' | |
19372 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19373 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19374 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19375 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19376 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19377 | _ACEOF |
5213506e RW |
19378 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19379 | ac_datarootdir_hack=' | |
19380 | s&@datadir@&$datadir&g | |
19381 | s&@docdir@&$docdir&g | |
19382 | s&@infodir@&$infodir&g | |
19383 | s&@localedir@&$localedir&g | |
19384 | s&@mandir@&$mandir&g | |
19385 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19386 | esac | |
19387 | _ACEOF | |
19388 | ||
19389 | # Neutralize VPATH when `$srcdir' = `.'. | |
19390 | # Shell code in configure.ac might set extrasub. | |
19391 | # FIXME: do we really want to maintain this feature? | |
19392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19393 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19394 | $extrasub |
19395 | _ACEOF | |
5213506e | 19396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19397 | :t |
19398 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19399 | s|@configure_input@|$ac_sed_conf_input|;t t |
19400 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19401 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19402 | s&@srcdir@&$ac_srcdir&;t t | |
19403 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19404 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19405 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19406 | s&@builddir@&$ac_builddir&;t t | |
19407 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19408 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19409 | s&@INSTALL@&$ac_INSTALL&;t t | |
19410 | $ac_datarootdir_hack | |
19411 | " | |
19412 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19413 | if $ac_cs_awk_getline; then | |
22e05272 | 19414 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19415 | else |
22e05272 JM |
19416 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19417 | fi \ | |
19418 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19419 | |
19420 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19421 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19422 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19423 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19425 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19426 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19427 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19428 | |
22e05272 | 19429 | rm -f "$ac_tmp/stdin" |
5213506e | 19430 | case $ac_file in |
22e05272 JM |
19431 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19432 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19433 | esac \ |
22e05272 | 19434 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19435 | ;; |
11a67599 | 19436 | |
11a67599 | 19437 | |
79c06341 | 19438 | |
5213506e RW |
19439 | esac |
19440 | ||
3e54529c RW |
19441 | |
19442 | case $ac_file$ac_mode in | |
19443 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19444 | sed "$extrasub_host" | | |
19445 | sed "$extrasub_target" > mf$$ | |
19446 | mv -f mf$$ Makefile ;; | |
19447 | ||
19448 | esac | |
5213506e RW |
19449 | done # for ac_tag |
19450 | ||
19451 | ||
19452 | as_fn_exit 0 | |
1c710c3c | 19453 | _ACEOF |
1c710c3c DJ |
19454 | ac_clean_files=$ac_clean_files_save |
19455 | ||
5213506e | 19456 | test $ac_write_fail = 0 || |
22e05272 | 19457 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19458 | |
1c710c3c DJ |
19459 | |
19460 | # configure is writing to config.log, and then calls config.status. | |
19461 | # config.status does its own redirection, appending to config.log. | |
19462 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19463 | # by configure, so config.status won't be able to write to it; its | |
19464 | # output is simply discarded. So we exec the FD to /dev/null, | |
19465 | # effectively closing config.log, so it can be properly (re)opened and | |
19466 | # appended to by config.status. When coming back to configure, we | |
19467 | # need to make the FD available again. | |
19468 | if test "$no_create" != yes; then | |
19469 | ac_cs_success=: | |
19470 | ac_config_status_args= | |
19471 | test "$silent" = yes && | |
19472 | ac_config_status_args="$ac_config_status_args --quiet" | |
19473 | exec 5>/dev/null | |
19474 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19475 | exec 5>>config.log | |
19476 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19477 | # would make configure fail if this is the last instruction. | |
22e05272 | 19478 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19479 | fi |
19480 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19482 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19483 | fi |
79c06341 | 19484 |