]>
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 | |
10abab41 | 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 | |
e7a82751 | 622 | READELF |
e4a9a572 | 623 | OTOOL |
5213506e RW |
624 | OBJDUMP |
625 | OBJCOPY | |
626 | WINDMC | |
627 | WINDRES | |
628 | STRIP | |
629 | RANLIB | |
630 | NM | |
631 | LIPO | |
632 | LD | |
10abab41 | 633 | DSYMUTIL |
5213506e RW |
634 | DLLTOOL |
635 | AS | |
636 | AR | |
637 | RUNTEST | |
638 | EXPECT | |
639 | MAKEINFO | |
640 | FLEX | |
641 | LEX | |
642 | M4 | |
643 | BISON | |
644 | YACC | |
5213506e RW |
645 | WINDRES_FOR_BUILD |
646 | WINDMC_FOR_BUILD | |
647 | RANLIB_FOR_BUILD | |
648 | NM_FOR_BUILD | |
649 | LD_FOR_BUILD | |
650 | LDFLAGS_FOR_BUILD | |
b4c522fa | 651 | GDC_FOR_BUILD |
632e2a07 | 652 | GOC_FOR_BUILD |
5213506e | 653 | GFORTRAN_FOR_BUILD |
10abab41 | 654 | DSYMUTIL_FOR_BUILD |
5213506e RW |
655 | DLLTOOL_FOR_BUILD |
656 | CXX_FOR_BUILD | |
657 | CXXFLAGS_FOR_BUILD | |
658 | CFLAGS_FOR_BUILD | |
659 | CC_FOR_BUILD | |
660 | AS_FOR_BUILD | |
661 | AR_FOR_BUILD | |
aae29963 | 662 | target_configdirs |
5213506e | 663 | configdirs |
5213506e | 664 | build_configdirs |
5213506e RW |
665 | INSTALL_GDB_TK |
666 | GDB_TK | |
667 | CONFIGURE_GDB_TK | |
668 | build_tooldir | |
669 | tooldir | |
670 | GCC_SHLIB_SUBDIR | |
671 | RPATH_ENVVAR | |
ffedf511 RW |
672 | target_configargs |
673 | host_configargs | |
674 | build_configargs | |
e12c4094 | 675 | BUILD_CONFIG |
6f57bdf6 | 676 | LDFLAGS_FOR_TARGET |
5213506e RW |
677 | CXXFLAGS_FOR_TARGET |
678 | CFLAGS_FOR_TARGET | |
679 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
680 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 681 | get_gcc_base_ver |
1c01ebf6 | 682 | extra_host_zlib_configure_flags |
d7f09764 | 683 | extra_host_libiberty_configure_flags |
fca38047 | 684 | stage1_languages |
cdfee50a | 685 | host_shared |
45b3824d TS |
686 | extra_linker_plugin_flags |
687 | extra_linker_plugin_configure_flags | |
33ad93b9 | 688 | islinc |
eae1a5d4 | 689 | isllibs |
5213506e | 690 | poststage1_ldflags |
ed2eaa9f | 691 | poststage1_libs |
5213506e | 692 | stage1_ldflags |
0b21f5d3 | 693 | stage1_libs |
0ff2d841 | 694 | extra_isl_gmp_configure_flags |
5213506e RW |
695 | extra_mpc_mpfr_configure_flags |
696 | extra_mpc_gmp_configure_flags | |
697 | extra_mpfr_configure_flags | |
698 | gmpinc | |
699 | gmplibs | |
7ffcf5d6 | 700 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 701 | HAVE_CXX11 |
5213506e RW |
702 | do_compare |
703 | GNATMAKE | |
704 | GNATBIND | |
705 | ac_ct_CXX | |
706 | CXXFLAGS | |
707 | CXX | |
708 | OBJEXT | |
709 | EXEEXT | |
710 | ac_ct_CC | |
711 | CPPFLAGS | |
712 | LDFLAGS | |
713 | CFLAGS | |
714 | CC | |
5f520819 | 715 | extra_liboffloadmic_configure_flags |
5213506e RW |
716 | target_subdir |
717 | host_subdir | |
718 | build_subdir | |
719 | build_libsubdir | |
87264276 PB |
720 | AWK |
721 | SED | |
5213506e RW |
722 | LN_S |
723 | LN | |
724 | INSTALL_DATA | |
725 | INSTALL_SCRIPT | |
726 | INSTALL_PROGRAM | |
727 | target_os | |
728 | target_vendor | |
729 | target_cpu | |
730 | target | |
731 | host_os | |
732 | host_vendor | |
733 | host_cpu | |
734 | host | |
735 | target_noncanonical | |
736 | host_noncanonical | |
737 | build_noncanonical | |
738 | build_os | |
739 | build_vendor | |
740 | build_cpu | |
741 | build | |
742 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
743 | target_alias | |
744 | host_alias | |
745 | build_alias | |
746 | LIBS | |
747 | ECHO_T | |
748 | ECHO_N | |
749 | ECHO_C | |
750 | DEFS | |
751 | mandir | |
752 | localedir | |
753 | libdir | |
754 | psdir | |
755 | pdfdir | |
756 | dvidir | |
757 | htmldir | |
758 | infodir | |
759 | docdir | |
760 | oldincludedir | |
761 | includedir | |
762 | localstatedir | |
763 | sharedstatedir | |
764 | sysconfdir | |
765 | datadir | |
766 | datarootdir | |
767 | libexecdir | |
768 | sbindir | |
769 | bindir | |
770 | program_transform_name | |
771 | prefix | |
772 | exec_prefix | |
773 | PACKAGE_URL | |
774 | PACKAGE_BUGREPORT | |
775 | PACKAGE_STRING | |
776 | PACKAGE_VERSION | |
777 | PACKAGE_TARNAME | |
778 | PACKAGE_NAME | |
779 | PATH_SEPARATOR | |
780 | SHELL' | |
781 | ac_subst_files='serialization_dependencies | |
782 | host_makefile_frag | |
783 | target_makefile_frag | |
784 | alphaieee_frag | |
785 | ospace_frag' | |
786 | ac_user_opts=' | |
787 | enable_option_checking | |
788 | with_build_libsubdir | |
a05c2c75 | 789 | with_system_zlib |
85c64bbe BS |
790 | enable_as_accelerator_for |
791 | enable_offload_targets | |
5213506e | 792 | enable_gold |
21539e2e | 793 | enable_ld |
78edb32f | 794 | enable_compressed_debug_sections |
87e6d9dc TB |
795 | enable_libquadmath |
796 | enable_libquadmath_support | |
5213506e RW |
797 | enable_libada |
798 | enable_libssp | |
1873ec0c | 799 | enable_libstdcxx |
5f520819 | 800 | enable_liboffloadmic |
ff3ac0f4 | 801 | enable_bootstrap |
5213506e RW |
802 | with_mpc |
803 | with_mpc_include | |
804 | with_mpc_lib | |
805 | with_mpfr_dir | |
806 | with_mpfr | |
807 | with_mpfr_include | |
808 | with_mpfr_lib | |
809 | with_gmp_dir | |
810 | with_gmp | |
811 | with_gmp_include | |
812 | with_gmp_lib | |
5213506e | 813 | with_stage1_libs |
aac9103b | 814 | with_static_standard_libraries |
0b21f5d3 | 815 | with_stage1_ldflags |
5213506e | 816 | with_boot_libs |
ed2eaa9f | 817 | with_boot_ldflags |
33ad93b9 RG |
818 | with_isl |
819 | with_isl_include | |
820 | with_isl_lib | |
821 | enable_isl_version_check | |
d7f09764 | 822 | enable_lto |
45b3824d TS |
823 | enable_linker_plugin_configure_flags |
824 | enable_linker_plugin_flags | |
cdfee50a | 825 | enable_host_shared |
5213506e | 826 | enable_stage1_languages |
43c40f3e | 827 | enable_objc_gc |
114bf3f1 MK |
828 | with_target_bdw_gc |
829 | with_target_bdw_gc_include | |
830 | with_target_bdw_gc_lib | |
3c36aa6b | 831 | with_gcc_major_version_only |
5213506e RW |
832 | with_build_sysroot |
833 | with_debug_prefix_map | |
5646b7b9 | 834 | with_build_config |
beeda1d9 | 835 | enable_vtable_verify |
5213506e RW |
836 | enable_serial_configure |
837 | with_build_time_tools | |
838 | enable_maintainer_mode | |
839 | enable_stage1_checking | |
840 | enable_werror | |
5213506e RW |
841 | ' |
842 | ac_precious_vars='build_alias | |
843 | host_alias | |
844 | target_alias | |
845 | CC | |
846 | CFLAGS | |
847 | LDFLAGS | |
848 | LIBS | |
849 | CPPFLAGS | |
850 | CXX | |
851 | CXXFLAGS | |
852 | CCC | |
ffedf511 RW |
853 | build_configargs |
854 | host_configargs | |
855 | target_configargs | |
5213506e RW |
856 | AR |
857 | AS | |
858 | DLLTOOL | |
10abab41 | 859 | DSYMUTIL |
5213506e RW |
860 | LD |
861 | LIPO | |
862 | NM | |
863 | RANLIB | |
864 | STRIP | |
865 | WINDRES | |
866 | WINDMC | |
867 | OBJCOPY | |
868 | OBJDUMP | |
e4a9a572 | 869 | OTOOL |
e7a82751 | 870 | READELF |
5213506e RW |
871 | CC_FOR_TARGET |
872 | CXX_FOR_TARGET | |
873 | GCC_FOR_TARGET | |
5213506e | 874 | GFORTRAN_FOR_TARGET |
632e2a07 | 875 | GOC_FOR_TARGET |
b4c522fa | 876 | GDC_FOR_TARGET |
5213506e RW |
877 | AR_FOR_TARGET |
878 | AS_FOR_TARGET | |
879 | DLLTOOL_FOR_TARGET | |
10abab41 | 880 | DSYMUTIL_FOR_TARGET |
5213506e RW |
881 | LD_FOR_TARGET |
882 | LIPO_FOR_TARGET | |
883 | NM_FOR_TARGET | |
9bccfdf5 | 884 | OBJCOPY_FOR_TARGET |
5213506e | 885 | OBJDUMP_FOR_TARGET |
e4a9a572 | 886 | OTOOL_FOR_TARGET |
5213506e | 887 | RANLIB_FOR_TARGET |
e7a82751 | 888 | READELF_FOR_TARGET |
5213506e RW |
889 | STRIP_FOR_TARGET |
890 | WINDRES_FOR_TARGET | |
891 | WINDMC_FOR_TARGET' | |
892 | ||
671aa708 NN |
893 | |
894 | # Initialize some variables set by options. | |
1c710c3c DJ |
895 | ac_init_help= |
896 | ac_init_version=false | |
5213506e RW |
897 | ac_unrecognized_opts= |
898 | ac_unrecognized_sep= | |
671aa708 NN |
899 | # The variables have the same names as the options, with |
900 | # dashes changed to underlines. | |
1c710c3c | 901 | cache_file=/dev/null |
671aa708 | 902 | exec_prefix=NONE |
671aa708 | 903 | no_create= |
671aa708 NN |
904 | no_recursion= |
905 | prefix=NONE | |
906 | program_prefix=NONE | |
907 | program_suffix=NONE | |
908 | program_transform_name=s,x,x, | |
909 | silent= | |
910 | site= | |
911 | srcdir= | |
671aa708 NN |
912 | verbose= |
913 | x_includes=NONE | |
914 | x_libraries=NONE | |
1c710c3c DJ |
915 | |
916 | # Installation directory options. | |
917 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
918 | # and all the variables that are supposed to be based on exec_prefix | |
919 | # by default will actually change. | |
920 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 921 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
922 | bindir='${exec_prefix}/bin' |
923 | sbindir='${exec_prefix}/sbin' | |
924 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
925 | datarootdir='${prefix}/share' |
926 | datadir='${datarootdir}' | |
671aa708 NN |
927 | sysconfdir='${prefix}/etc' |
928 | sharedstatedir='${prefix}/com' | |
929 | localstatedir='${prefix}/var' | |
671aa708 NN |
930 | includedir='${prefix}/include' |
931 | oldincludedir='/usr/include' | |
5213506e RW |
932 | docdir='${datarootdir}/doc/${PACKAGE}' |
933 | infodir='${datarootdir}/info' | |
934 | htmldir='${docdir}' | |
935 | dvidir='${docdir}' | |
936 | pdfdir='${docdir}' | |
937 | psdir='${docdir}' | |
938 | libdir='${exec_prefix}/lib' | |
939 | localedir='${datarootdir}/locale' | |
940 | mandir='${datarootdir}/man' | |
79c06341 | 941 | |
671aa708 | 942 | ac_prev= |
5213506e | 943 | ac_dashdash= |
671aa708 NN |
944 | for ac_option |
945 | do | |
671aa708 NN |
946 | # If the previous option needs an argument, assign it. |
947 | if test -n "$ac_prev"; then | |
5213506e | 948 | eval $ac_prev=\$ac_option |
671aa708 NN |
949 | ac_prev= |
950 | continue | |
951 | fi | |
79c06341 | 952 | |
5213506e | 953 | case $ac_option in |
22e05272 JM |
954 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
955 | *=) ac_optarg= ;; | |
956 | *) ac_optarg=yes ;; | |
5213506e | 957 | esac |
671aa708 NN |
958 | |
959 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
960 | ||
5213506e RW |
961 | case $ac_dashdash$ac_option in |
962 | --) | |
963 | ac_dashdash=yes ;; | |
671aa708 NN |
964 | |
965 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
966 | ac_prev=bindir ;; | |
967 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 968 | bindir=$ac_optarg ;; |
671aa708 NN |
969 | |
970 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 971 | ac_prev=build_alias ;; |
671aa708 | 972 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 973 | build_alias=$ac_optarg ;; |
671aa708 NN |
974 | |
975 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
977 | ac_prev=cache_file ;; | |
978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
980 | cache_file=$ac_optarg ;; |
981 | ||
982 | --config-cache | -C) | |
983 | cache_file=config.cache ;; | |
671aa708 | 984 | |
5213506e | 985 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 986 | ac_prev=datadir ;; |
5213506e | 987 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 988 | datadir=$ac_optarg ;; |
671aa708 | 989 | |
5213506e RW |
990 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
991 | | --dataroo | --dataro | --datar) | |
992 | ac_prev=datarootdir ;; | |
993 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
994 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
995 | datarootdir=$ac_optarg ;; | |
996 | ||
671aa708 | 997 | -disable-* | --disable-*) |
5213506e | 998 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 999 | # Reject names that are not valid shell variable names. |
5213506e | 1000 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1001 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1002 | ac_useropt_orig=$ac_useropt |
1003 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1004 | case $ac_user_opts in | |
1005 | *" | |
1006 | "enable_$ac_useropt" | |
1007 | "*) ;; | |
1008 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1009 | ac_unrecognized_sep=', ';; | |
1010 | esac | |
1011 | eval enable_$ac_useropt=no ;; | |
1012 | ||
1013 | -docdir | --docdir | --docdi | --doc | --do) | |
1014 | ac_prev=docdir ;; | |
1015 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1016 | docdir=$ac_optarg ;; | |
1017 | ||
1018 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1019 | ac_prev=dvidir ;; | |
1020 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1021 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1022 | |
1023 | -enable-* | --enable-*) | |
5213506e | 1024 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1025 | # Reject names that are not valid shell variable names. |
5213506e | 1026 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1027 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1028 | ac_useropt_orig=$ac_useropt |
1029 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1030 | case $ac_user_opts in | |
1031 | *" | |
1032 | "enable_$ac_useropt" | |
1033 | "*) ;; | |
1034 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1035 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1036 | esac |
5213506e | 1037 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1038 | |
1039 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1040 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1041 | | --exec | --exe | --ex) | |
1042 | ac_prev=exec_prefix ;; | |
1043 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1044 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1045 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1046 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1047 | |
1048 | -gas | --gas | --ga | --g) | |
1049 | # Obsolete; use --with-gas. | |
1050 | with_gas=yes ;; | |
1051 | ||
1c710c3c DJ |
1052 | -help | --help | --hel | --he | -h) |
1053 | ac_init_help=long ;; | |
1054 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1055 | ac_init_help=recursive ;; | |
1056 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1057 | ac_init_help=short ;; | |
671aa708 NN |
1058 | |
1059 | -host | --host | --hos | --ho) | |
1c710c3c | 1060 | ac_prev=host_alias ;; |
671aa708 | 1061 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1062 | host_alias=$ac_optarg ;; |
671aa708 | 1063 | |
5213506e RW |
1064 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1065 | ac_prev=htmldir ;; | |
1066 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1067 | | --ht=*) | |
1068 | htmldir=$ac_optarg ;; | |
1069 | ||
671aa708 NN |
1070 | -includedir | --includedir | --includedi | --included | --include \ |
1071 | | --includ | --inclu | --incl | --inc) | |
1072 | ac_prev=includedir ;; | |
1073 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1074 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1075 | includedir=$ac_optarg ;; |
671aa708 NN |
1076 | |
1077 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1078 | ac_prev=infodir ;; | |
1079 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1080 | infodir=$ac_optarg ;; |
671aa708 NN |
1081 | |
1082 | -libdir | --libdir | --libdi | --libd) | |
1083 | ac_prev=libdir ;; | |
1084 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1085 | libdir=$ac_optarg ;; |
671aa708 NN |
1086 | |
1087 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1088 | | --libexe | --libex | --libe) | |
1089 | ac_prev=libexecdir ;; | |
1090 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1091 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1092 | libexecdir=$ac_optarg ;; |
671aa708 | 1093 | |
5213506e RW |
1094 | -localedir | --localedir | --localedi | --localed | --locale) |
1095 | ac_prev=localedir ;; | |
1096 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1097 | localedir=$ac_optarg ;; | |
1098 | ||
671aa708 | 1099 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1100 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1101 | ac_prev=localstatedir ;; |
1102 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1103 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1104 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1105 | |
1106 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1107 | ac_prev=mandir ;; | |
1108 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1109 | mandir=$ac_optarg ;; |
671aa708 NN |
1110 | |
1111 | -nfp | --nfp | --nf) | |
1112 | # Obsolete; use --without-fp. | |
1113 | with_fp=no ;; | |
1114 | ||
1115 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1116 | | --no-cr | --no-c | -n) |
671aa708 NN |
1117 | no_create=yes ;; |
1118 | ||
1119 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1120 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1121 | no_recursion=yes ;; | |
1122 | ||
1123 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1124 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1125 | | --oldin | --oldi | --old | --ol | --o) | |
1126 | ac_prev=oldincludedir ;; | |
1127 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1128 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1129 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1130 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1131 | |
1132 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1133 | ac_prev=prefix ;; | |
1134 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1135 | prefix=$ac_optarg ;; |
671aa708 NN |
1136 | |
1137 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1138 | | --program-pre | --program-pr | --program-p) | |
1139 | ac_prev=program_prefix ;; | |
1140 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1141 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1142 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1143 | |
1144 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1145 | | --program-suf | --program-su | --program-s) | |
1146 | ac_prev=program_suffix ;; | |
1147 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1148 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1149 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1150 | |
1151 | -program-transform-name | --program-transform-name \ | |
1152 | | --program-transform-nam | --program-transform-na \ | |
1153 | | --program-transform-n | --program-transform- \ | |
1154 | | --program-transform | --program-transfor \ | |
1155 | | --program-transfo | --program-transf \ | |
1156 | | --program-trans | --program-tran \ | |
1157 | | --progr-tra | --program-tr | --program-t) | |
1158 | ac_prev=program_transform_name ;; | |
1159 | -program-transform-name=* | --program-transform-name=* \ | |
1160 | | --program-transform-nam=* | --program-transform-na=* \ | |
1161 | | --program-transform-n=* | --program-transform-=* \ | |
1162 | | --program-transform=* | --program-transfor=* \ | |
1163 | | --program-transfo=* | --program-transf=* \ | |
1164 | | --program-trans=* | --program-tran=* \ | |
1165 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1166 | program_transform_name=$ac_optarg ;; |
671aa708 | 1167 | |
5213506e RW |
1168 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1169 | ac_prev=pdfdir ;; | |
1170 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1171 | pdfdir=$ac_optarg ;; | |
1172 | ||
1173 | -psdir | --psdir | --psdi | --psd | --ps) | |
1174 | ac_prev=psdir ;; | |
1175 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1176 | psdir=$ac_optarg ;; | |
1177 | ||
671aa708 NN |
1178 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1179 | | -silent | --silent | --silen | --sile | --sil) | |
1180 | silent=yes ;; | |
1181 | ||
1182 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1183 | ac_prev=sbindir ;; | |
1184 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1185 | | --sbi=* | --sb=*) | |
1c710c3c | 1186 | sbindir=$ac_optarg ;; |
671aa708 NN |
1187 | |
1188 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1189 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1190 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1191 | | --sha | --sh) | |
1192 | ac_prev=sharedstatedir ;; | |
1193 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1194 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1195 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1196 | | --sha=* | --sh=*) | |
1c710c3c | 1197 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1198 | |
1199 | -site | --site | --sit) | |
1200 | ac_prev=site ;; | |
1201 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1202 | site=$ac_optarg ;; |
671aa708 NN |
1203 | |
1204 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1205 | ac_prev=srcdir ;; | |
1206 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1207 | srcdir=$ac_optarg ;; |
671aa708 NN |
1208 | |
1209 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1210 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1211 | ac_prev=sysconfdir ;; | |
1212 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1213 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1214 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1215 | |
1216 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1217 | ac_prev=target_alias ;; |
671aa708 | 1218 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1219 | target_alias=$ac_optarg ;; |
671aa708 NN |
1220 | |
1221 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1222 | verbose=yes ;; | |
1223 | ||
1c710c3c DJ |
1224 | -version | --version | --versio | --versi | --vers | -V) |
1225 | ac_init_version=: ;; | |
671aa708 NN |
1226 | |
1227 | -with-* | --with-*) | |
5213506e | 1228 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1229 | # Reject names that are not valid shell variable names. |
5213506e | 1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1231 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1232 | ac_useropt_orig=$ac_useropt |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1240 | esac |
5213506e | 1241 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1242 | |
1243 | -without-* | --without-*) | |
5213506e | 1244 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1245 | # Reject names that are not valid shell variable names. |
5213506e | 1246 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1247 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1248 | ac_useropt_orig=$ac_useropt |
1249 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1250 | case $ac_user_opts in | |
1251 | *" | |
1252 | "with_$ac_useropt" | |
1253 | "*) ;; | |
1254 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1255 | ac_unrecognized_sep=', ';; | |
1256 | esac | |
1257 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1258 | |
1259 | --x) | |
1260 | # Obsolete; use --with-x. | |
1261 | with_x=yes ;; | |
1262 | ||
1263 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1264 | | --x-incl | --x-inc | --x-in | --x-i) | |
1265 | ac_prev=x_includes ;; | |
1266 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1267 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1268 | x_includes=$ac_optarg ;; |
671aa708 NN |
1269 | |
1270 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1271 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1272 | ac_prev=x_libraries ;; | |
1273 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1274 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1275 | x_libraries=$ac_optarg ;; |
671aa708 | 1276 | |
22e05272 JM |
1277 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1278 | Try \`$0 --help' for more information" | |
671aa708 NN |
1279 | ;; |
1280 | ||
1c710c3c DJ |
1281 | *=*) |
1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1283 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1284 | case $ac_envvar in #( |
1285 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1286 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1287 | esac |
1288 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1289 | export $ac_envvar ;; |
1290 | ||
671aa708 | 1291 | *) |
1c710c3c | 1292 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1293 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1294 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1295 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1296 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1297 | ;; |
1298 | ||
1299 | esac | |
1300 | done | |
1301 | ||
1302 | if test -n "$ac_prev"; then | |
1c710c3c | 1303 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1304 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1305 | fi |
af71363e | 1306 | |
5213506e RW |
1307 | if test -n "$ac_unrecognized_opts"; then |
1308 | case $enable_option_checking in | |
1309 | no) ;; | |
22e05272 | 1310 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1311 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1312 | esac |
5213506e | 1313 | fi |
2aeb72e9 | 1314 | |
5213506e RW |
1315 | # Check all directory arguments for consistency. |
1316 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1317 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1318 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1319 | libdir localedir mandir | |
2aeb72e9 | 1320 | do |
5213506e RW |
1321 | eval ac_val=\$$ac_var |
1322 | # Remove trailing slashes. | |
1323 | case $ac_val in | |
1324 | */ ) | |
1325 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1326 | eval $ac_var=\$ac_val;; | |
1327 | esac | |
1328 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1329 | case $ac_val in |
5213506e RW |
1330 | [\\/$]* | ?:[\\/]* ) continue;; |
1331 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1332 | esac |
22e05272 | 1333 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1334 | done |
1335 | ||
1c710c3c DJ |
1336 | # There might be people who depend on the old broken behavior: `$host' |
1337 | # used to hold the argument of --host etc. | |
1338 | # FIXME: To remove some day. | |
1339 | build=$build_alias | |
1340 | host=$host_alias | |
1341 | target=$target_alias | |
0b0dc272 | 1342 | |
1c710c3c DJ |
1343 | # FIXME: To remove some day. |
1344 | if test "x$host_alias" != x; then | |
1345 | if test "x$build_alias" = x; then | |
1346 | cross_compiling=maybe | |
1c710c3c DJ |
1347 | elif test "x$build_alias" != "x$host_alias"; then |
1348 | cross_compiling=yes | |
1349 | fi | |
1350 | fi | |
1351 | ||
1352 | ac_tool_prefix= | |
1353 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1354 | ||
1355 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1356 | |
671aa708 | 1357 | |
5213506e RW |
1358 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1359 | ac_ls_di=`ls -di .` && | |
1360 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1361 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1362 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1363 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1364 | |
1365 | ||
671aa708 NN |
1366 | # Find the source files, if location was not specified. |
1367 | if test -z "$srcdir"; then | |
1368 | ac_srcdir_defaulted=yes | |
5213506e RW |
1369 | # Try the directory containing this script, then the parent directory. |
1370 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1371 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1372 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1373 | X"$as_myself" : 'X\(//\)$' \| \ | |
1374 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1375 | $as_echo X"$as_myself" | | |
1376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)[^/].*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)$/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\).*/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | s/.*/./; q'` | |
671aa708 | 1393 | srcdir=$ac_confdir |
5213506e | 1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1395 | srcdir=.. |
1396 | fi | |
1397 | else | |
1398 | ac_srcdir_defaulted=no | |
1399 | fi | |
5213506e RW |
1400 | if test ! -r "$srcdir/$ac_unique_file"; then |
1401 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1402 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1403 | fi |
1404 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1405 | ac_abs_confdir=`( | |
22e05272 | 1406 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1407 | pwd)` |
1408 | # When building in place, set srcdir=. | |
1409 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1410 | srcdir=. | |
1411 | fi | |
1412 | # Remove unnecessary trailing slashes from srcdir. | |
1413 | # Double slashes in file names in object file debugging info | |
1414 | # mess up M-x gdb in Emacs. | |
1415 | case $srcdir in | |
1416 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1417 | esac | |
87841584 AM |
1418 | case $srcdir in |
1419 | *" "*) | |
22e05272 | 1420 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1421 | ;; |
1422 | esac | |
ac9e6043 RW |
1423 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1424 | ||
5213506e RW |
1425 | for ac_var in $ac_precious_vars; do |
1426 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1428 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1429 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1430 | done | |
1c710c3c DJ |
1431 | |
1432 | # | |
1433 | # Report the --help message. | |
1434 | # | |
1435 | if test "$ac_init_help" = "long"; then | |
1436 | # Omit some internal or obsolete options to make the list less imposing. | |
1437 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1438 | cat <<_ACEOF | |
1439 | \`configure' configures this package to adapt to many kinds of systems. | |
1440 | ||
1441 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1442 | ||
1443 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1444 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1445 | ||
1446 | Defaults for the options are specified in brackets. | |
1447 | ||
1448 | Configuration: | |
1449 | -h, --help display this help and exit | |
1450 | --help=short display options specific to this package | |
1451 | --help=recursive display the short help of all the included packages | |
1452 | -V, --version display version information and exit | |
22e05272 | 1453 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1454 | --cache-file=FILE cache test results in FILE [disabled] |
1455 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1456 | -n, --no-create do not create output files | |
1457 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1458 | ||
1c710c3c DJ |
1459 | Installation directories: |
1460 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1461 | [$ac_default_prefix] |
1c710c3c | 1462 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1463 | [PREFIX] |
1c710c3c DJ |
1464 | |
1465 | By default, \`make install' will install all the files in | |
1466 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1467 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1468 | for instance \`--prefix=\$HOME'. | |
1469 | ||
1470 | For better control, use the options below. | |
1471 | ||
1472 | Fine tuning of the installation directories: | |
5213506e RW |
1473 | --bindir=DIR user executables [EPREFIX/bin] |
1474 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1475 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1476 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1477 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1478 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1479 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1480 | --includedir=DIR C header files [PREFIX/include] | |
1481 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1482 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1483 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1484 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1485 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1486 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1487 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1488 | --htmldir=DIR html documentation [DOCDIR] | |
1489 | --dvidir=DIR dvi documentation [DOCDIR] | |
1490 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1491 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1492 | _ACEOF |
1493 | ||
1494 | cat <<\_ACEOF | |
1495 | ||
1496 | Program names: | |
1497 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1498 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1499 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1500 | ||
1501 | System types: | |
1502 | --build=BUILD configure for building on BUILD [guessed] | |
1503 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1504 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1505 | _ACEOF | |
1506 | fi | |
1507 | ||
1508 | if test -n "$ac_init_help"; then | |
1509 | ||
1510 | cat <<\_ACEOF | |
1511 | ||
1512 | Optional Features: | |
5213506e | 1513 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1514 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1515 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1516 | --enable-as-accelerator-for=ARG |
1517 | build as offload target compiler. Specify offload | |
1518 | host triple by ARG | |
1519 | --enable-offload-targets=LIST | |
1520 | enable offloading to devices from comma-separated | |
1521 | LIST of TARGET[=DIR]. Use optional path to find | |
1522 | offload target compiler during the build | |
21539e2e | 1523 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1524 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1525 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1526 | Enable compressed debug sections for gas, gold or ld |
1527 | by default | |
87e6d9dc TB |
1528 | --disable-libquadmath do not build libquadmath directory |
1529 | --disable-libquadmath-support | |
1530 | disable libquadmath support for Fortran | |
30b74385 RW |
1531 | --enable-libada build libada directory |
1532 | --enable-libssp build libssp directory | |
1873ec0c | 1533 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1534 | --enable-liboffloadmic=ARG |
1535 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1536 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1537 | --disable-isl-version-check |
560d18d3 | 1538 | disable check for isl version |
d7f09764 | 1539 | --enable-lto enable link time optimization support |
45b3824d TS |
1540 | --enable-linker-plugin-configure-flags=FLAGS |
1541 | additional flags for configuring linker plugins | |
1542 | [none] | |
1543 | --enable-linker-plugin-flags=FLAGS | |
1544 | additional flags for configuring and building linker | |
1545 | plugins [none] | |
cdfee50a | 1546 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1547 | --enable-stage1-languages[=all] |
1548 | choose additional languages to build during stage1. | |
1549 | Mostly useful for compiler development | |
43c40f3e RO |
1550 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1551 | Objective-C runtime | |
318a4e6d | 1552 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1553 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1554 | force sequential configuration of sub-packages for |
1555 | the host, target or build machine, or all | |
1556 | sub-packages | |
1557 | --enable-maintainer-mode | |
1558 | enable make rules and dependencies not useful (and | |
1559 | sometimes confusing) to the casual installer | |
1560 | --enable-stage1-checking[=all] | |
1561 | choose additional checking for stage1 of the | |
1562 | compiler | |
1c710c3c DJ |
1563 | --enable-werror enable -Werror in bootstrap stage2 and later |
1564 | ||
1565 | Optional Packages: | |
1566 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1567 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1568 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1569 | --with-system-zlib use installed libz |
33e39b66 AS |
1570 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1571 | Equivalent to --with-mpc-include=PATH/include plus | |
1572 | --with-mpc-lib=PATH/lib | |
1573 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1574 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1575 | --with-mpfr-dir=PATH this option has been REMOVED |
1576 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1577 | Equivalent to --with-mpfr-include=PATH/include plus |
1578 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1579 | --with-mpfr-include=PATH |
30b74385 RW |
1580 | specify directory for installed MPFR include files |
1581 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1582 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1583 | --with-gmp=PATH specify prefix directory for the installed GMP |
1584 | package. Equivalent to | |
1585 | --with-gmp-include=PATH/include plus | |
1586 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1587 | --with-gmp-include=PATH specify directory for installed GMP include files |
1588 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1589 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1590 | --with-static-standard-libraries |
1591 | use -static-libstdc++ and -static-libgcc | |
1592 | (default=auto) | |
33e39b66 AS |
1593 | --with-stage1-ldflags=FLAGS |
1594 | linker flags for stage1 | |
33e39b66 AS |
1595 | --with-boot-libs=LIBS libraries for stage2 and later |
1596 | --with-boot-ldflags=FLAGS | |
1597 | linker flags for stage2 and later | |
e357a5e0 | 1598 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1599 | package. Equivalent to |
33ad93b9 RG |
1600 | --with-isl-include=PATH/include plus |
1601 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1602 | --with-isl-include=PATH Specify directory for installed isl include files |
1603 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1604 | --with-target-bdw-gc=PATHLIST |
1605 | specify prefix directory for installed bdw-gc | |
1606 | package. Equivalent to | |
1607 | --with-target-bdw-gc-include=PATH/include plus | |
1608 | --with-target-bdw-gc-lib=PATH/lib | |
1609 | --with-target-bdw-gc-include=PATHLIST | |
1610 | specify directories for installed bdw-gc include | |
1611 | files | |
1612 | --with-target-bdw-gc-lib=PATHLIST | |
1613 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1614 | --with-gcc-major-version-only |
1615 | use only GCC major number in filesystem paths | |
30b74385 | 1616 | --with-build-sysroot=SYSROOT |
1c710c3c | 1617 | use sysroot as the system root during the build |
c8aea42c | 1618 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1619 | map A to B, C to D ... in debug information |
1620 | --with-build-config='NAME NAME2...' | |
1621 | use config/NAME.mk build configuration | |
30b74385 | 1622 | --with-build-time-tools=PATH |
1c710c3c | 1623 | use given path to find target tools during the build |
1c710c3c DJ |
1624 | |
1625 | Some influential environment variables: | |
1626 | CC C compiler command | |
1627 | CFLAGS C compiler flags | |
1628 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1629 | nonstandard directory <lib dir> | |
5213506e | 1630 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1631 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1632 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1633 | CXX C++ compiler command |
1634 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1635 | build_configargs |
1636 | additional configure arguments for build directories | |
1637 | host_configargs | |
1638 | additional configure arguments for host directories | |
1639 | target_configargs | |
1640 | additional configure arguments for target directories | |
278a7a38 AO |
1641 | AR AR for the host |
1642 | AS AS for the host | |
1643 | DLLTOOL DLLTOOL for the host | |
10abab41 | 1644 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1645 | LD LD for the host |
1646 | LIPO LIPO for the host | |
1647 | NM NM for the host | |
1648 | RANLIB RANLIB for the host | |
1649 | STRIP STRIP for the host | |
1650 | WINDRES WINDRES for the host | |
901119ae | 1651 | WINDMC WINDMC for the host |
278a7a38 AO |
1652 | OBJCOPY OBJCOPY for the host |
1653 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1654 | OTOOL OTOOL for the host |
e7a82751 | 1655 | READELF READELF for the host |
278a7a38 AO |
1656 | CC_FOR_TARGET |
1657 | CC for the target | |
1658 | CXX_FOR_TARGET | |
1659 | CXX for the target | |
1660 | GCC_FOR_TARGET | |
1661 | GCC for the target | |
278a7a38 AO |
1662 | GFORTRAN_FOR_TARGET |
1663 | GFORTRAN for the target | |
632e2a07 ILT |
1664 | GOC_FOR_TARGET |
1665 | GOC for the target | |
b4c522fa IB |
1666 | GDC_FOR_TARGET |
1667 | GDC for the target | |
278a7a38 AO |
1668 | AR_FOR_TARGET |
1669 | AR for the target | |
1670 | AS_FOR_TARGET | |
1671 | AS for the target | |
1672 | DLLTOOL_FOR_TARGET | |
1673 | DLLTOOL for the target | |
10abab41 IS |
1674 | DSYMUTIL_FOR_TARGET |
1675 | DSYMUTIL for the target | |
278a7a38 AO |
1676 | LD_FOR_TARGET |
1677 | LD for the target | |
1678 | LIPO_FOR_TARGET | |
1679 | LIPO for the target | |
1680 | NM_FOR_TARGET | |
1681 | NM for the target | |
9bccfdf5 AP |
1682 | OBJCOPY_FOR_TARGET |
1683 | OBJCOPY for the target | |
278a7a38 AO |
1684 | OBJDUMP_FOR_TARGET |
1685 | OBJDUMP for the target | |
e4a9a572 IS |
1686 | OTOOL_FOR_TARGET |
1687 | OTOOL for the target | |
278a7a38 AO |
1688 | RANLIB_FOR_TARGET |
1689 | RANLIB for the target | |
e7a82751 RM |
1690 | READELF_FOR_TARGET |
1691 | READELF for the target | |
278a7a38 AO |
1692 | STRIP_FOR_TARGET |
1693 | STRIP for the target | |
1694 | WINDRES_FOR_TARGET | |
1695 | WINDRES for the target | |
901119ae KT |
1696 | WINDMC_FOR_TARGET |
1697 | WINDMC for the target | |
1c710c3c DJ |
1698 | |
1699 | Use these variables to override the choices made by `configure' or to help | |
1700 | it to find libraries and programs with nonstandard names/locations. | |
1701 | ||
5213506e | 1702 | Report bugs to the package provider. |
1c710c3c | 1703 | _ACEOF |
5213506e | 1704 | ac_status=$? |
1c710c3c DJ |
1705 | fi |
1706 | ||
1707 | if test "$ac_init_help" = "recursive"; then | |
1708 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1709 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1710 | test -d "$ac_dir" || |
1711 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1712 | continue | |
1c710c3c DJ |
1713 | ac_builddir=. |
1714 | ||
5213506e RW |
1715 | case "$ac_dir" in |
1716 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1717 | *) | |
1718 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1719 | # A ".." for each directory in $ac_dir_suffix. | |
1720 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1721 | case $ac_top_builddir_sub in | |
1722 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1723 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1724 | esac ;; | |
1725 | esac | |
1726 | ac_abs_top_builddir=$ac_pwd | |
1727 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1728 | # for backward compatibility: | |
1729 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1730 | |
1731 | case $srcdir in | |
5213506e | 1732 | .) # We are building in place. |
1c710c3c | 1733 | ac_srcdir=. |
5213506e RW |
1734 | ac_top_srcdir=$ac_top_builddir_sub |
1735 | ac_abs_top_srcdir=$ac_pwd ;; | |
1736 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1737 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1738 | ac_top_srcdir=$srcdir |
1739 | ac_abs_top_srcdir=$srcdir ;; | |
1740 | *) # Relative name. | |
1741 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1742 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1743 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1744 | esac |
5213506e RW |
1745 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1746 | ||
1747 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1748 | # Check for guested configure. | |
1749 | if test -f "$ac_srcdir/configure.gnu"; then | |
1750 | echo && | |
1751 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1752 | elif test -f "$ac_srcdir/configure"; then | |
1753 | echo && | |
1754 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1755 | else |
5213506e RW |
1756 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1757 | fi || ac_status=$? | |
1758 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1759 | done |
1760 | fi | |
1761 | ||
5213506e | 1762 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1763 | if $ac_init_version; then |
1764 | cat <<\_ACEOF | |
5213506e | 1765 | configure |
22e05272 | 1766 | generated by GNU Autoconf 2.69 |
1c710c3c | 1767 | |
22e05272 | 1768 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1769 | This configure script is free software; the Free Software Foundation |
1770 | gives unlimited permission to copy, distribute and modify it. | |
1771 | _ACEOF | |
5213506e | 1772 | exit |
0b0dc272 | 1773 | fi |
5213506e RW |
1774 | |
1775 | ## ------------------------ ## | |
1776 | ## Autoconf initialization. ## | |
1777 | ## ------------------------ ## | |
1778 | ||
1779 | # ac_fn_c_try_compile LINENO | |
1780 | # -------------------------- | |
1781 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1782 | ac_fn_c_try_compile () | |
1783 | { | |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1785 | rm -f conftest.$ac_objext | |
1786 | if { { ac_try="$ac_compile" | |
1787 | case "(($ac_try" in | |
1788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1789 | *) ac_try_echo=$ac_try;; | |
1790 | esac | |
1791 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1792 | $as_echo "$ac_try_echo"; } >&5 | |
1793 | (eval "$ac_compile") 2>conftest.err | |
1794 | ac_status=$? | |
1795 | if test -s conftest.err; then | |
1796 | grep -v '^ *+' conftest.err >conftest.er1 | |
1797 | cat conftest.er1 >&5 | |
1798 | mv -f conftest.er1 conftest.err | |
1799 | fi | |
1800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1801 | test $ac_status = 0; } && { | |
1802 | test -z "$ac_c_werror_flag" || | |
1803 | test ! -s conftest.err | |
1804 | } && test -s conftest.$ac_objext; then : | |
1805 | ac_retval=0 | |
1806 | else | |
1807 | $as_echo "$as_me: failed program was:" >&5 | |
1808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1809 | ||
1810 | ac_retval=1 | |
1811 | fi | |
22e05272 JM |
1812 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1813 | as_fn_set_status $ac_retval | |
5213506e RW |
1814 | |
1815 | } # ac_fn_c_try_compile | |
1816 | ||
1817 | # ac_fn_cxx_try_compile LINENO | |
1818 | # ---------------------------- | |
1819 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1820 | ac_fn_cxx_try_compile () | |
1821 | { | |
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1823 | rm -f conftest.$ac_objext | |
1824 | if { { ac_try="$ac_compile" | |
1825 | case "(($ac_try" in | |
1826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1827 | *) ac_try_echo=$ac_try;; | |
1828 | esac | |
1829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1830 | $as_echo "$ac_try_echo"; } >&5 | |
1831 | (eval "$ac_compile") 2>conftest.err | |
1832 | ac_status=$? | |
1833 | if test -s conftest.err; then | |
1834 | grep -v '^ *+' conftest.err >conftest.er1 | |
1835 | cat conftest.er1 >&5 | |
1836 | mv -f conftest.er1 conftest.err | |
1837 | fi | |
1838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1839 | test $ac_status = 0; } && { | |
1840 | test -z "$ac_cxx_werror_flag" || | |
1841 | test ! -s conftest.err | |
1842 | } && test -s conftest.$ac_objext; then : | |
1843 | ac_retval=0 | |
1844 | else | |
1845 | $as_echo "$as_me: failed program was:" >&5 | |
1846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1847 | ||
1848 | ac_retval=1 | |
1849 | fi | |
22e05272 JM |
1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1851 | as_fn_set_status $ac_retval | |
5213506e RW |
1852 | |
1853 | } # ac_fn_cxx_try_compile | |
1854 | ||
0b21f5d3 EB |
1855 | # ac_fn_cxx_try_link LINENO |
1856 | # ------------------------- | |
1857 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1858 | ac_fn_cxx_try_link () | |
1859 | { | |
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1862 | if { { ac_try="$ac_link" | |
1863 | case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_link") 2>conftest.err | |
1870 | ac_status=$? | |
1871 | if test -s conftest.err; then | |
1872 | grep -v '^ *+' conftest.err >conftest.er1 | |
1873 | cat conftest.er1 >&5 | |
1874 | mv -f conftest.er1 conftest.err | |
1875 | fi | |
1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1877 | test $ac_status = 0; } && { | |
1878 | test -z "$ac_cxx_werror_flag" || | |
1879 | test ! -s conftest.err | |
1880 | } && test -s conftest$ac_exeext && { | |
1881 | test "$cross_compiling" = yes || | |
22e05272 | 1882 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1883 | }; then : |
1884 | ac_retval=0 | |
1885 | else | |
1886 | $as_echo "$as_me: failed program was:" >&5 | |
1887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1888 | ||
1889 | ac_retval=1 | |
1890 | fi | |
1891 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1892 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1893 | # interfere with the next link command; also delete a directory that is | |
1894 | # left behind by Apple's compiler. We do this before executing the actions. | |
1895 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1897 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1898 | |
1899 | } # ac_fn_cxx_try_link | |
1900 | ||
5213506e RW |
1901 | # ac_fn_c_try_link LINENO |
1902 | # ----------------------- | |
1903 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1904 | ac_fn_c_try_link () | |
1905 | { | |
1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1908 | if { { ac_try="$ac_link" | |
1909 | case "(($ac_try" in | |
1910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1911 | *) ac_try_echo=$ac_try;; | |
1912 | esac | |
1913 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1914 | $as_echo "$ac_try_echo"; } >&5 | |
1915 | (eval "$ac_link") 2>conftest.err | |
1916 | ac_status=$? | |
1917 | if test -s conftest.err; then | |
1918 | grep -v '^ *+' conftest.err >conftest.er1 | |
1919 | cat conftest.er1 >&5 | |
1920 | mv -f conftest.er1 conftest.err | |
1921 | fi | |
1922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1923 | test $ac_status = 0; } && { | |
1924 | test -z "$ac_c_werror_flag" || | |
1925 | test ! -s conftest.err | |
1926 | } && test -s conftest$ac_exeext && { | |
1927 | test "$cross_compiling" = yes || | |
22e05272 | 1928 | test -x conftest$ac_exeext |
5213506e RW |
1929 | }; then : |
1930 | ac_retval=0 | |
1931 | else | |
1932 | $as_echo "$as_me: failed program was:" >&5 | |
1933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1934 | ||
1935 | ac_retval=1 | |
1936 | fi | |
1937 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1938 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1939 | # interfere with the next link command; also delete a directory that is | |
1940 | # left behind by Apple's compiler. We do this before executing the actions. | |
1941 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1943 | as_fn_set_status $ac_retval | |
5213506e RW |
1944 | |
1945 | } # ac_fn_c_try_link | |
1946 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1947 | This file contains any messages produced by compilers while |
1948 | running configure, to aid debugging if configure makes a mistake. | |
1949 | ||
1950 | It was created by $as_me, which was | |
22e05272 | 1951 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1952 | |
1953 | $ $0 $@ | |
1954 | ||
1955 | _ACEOF | |
5213506e | 1956 | exec 5>>config.log |
1c710c3c DJ |
1957 | { |
1958 | cat <<_ASUNAME | |
1959 | ## --------- ## | |
1960 | ## Platform. ## | |
1961 | ## --------- ## | |
1962 | ||
1963 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1964 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1965 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1966 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1967 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1968 | ||
1969 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1970 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1971 | ||
1972 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1973 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1974 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1975 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1976 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1977 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1978 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1979 | ||
1980 | _ASUNAME | |
1981 | ||
1982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1983 | for as_dir in $PATH | |
1984 | do | |
1985 | IFS=$as_save_IFS | |
1986 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1987 | $as_echo "PATH: $as_dir" |
1988 | done | |
1989 | IFS=$as_save_IFS | |
1c710c3c DJ |
1990 | |
1991 | } >&5 | |
1992 | ||
1993 | cat >&5 <<_ACEOF | |
1994 | ||
1995 | ||
1996 | ## ----------- ## | |
1997 | ## Core tests. ## | |
1998 | ## ----------- ## | |
1999 | ||
2000 | _ACEOF | |
2001 | ||
2002 | ||
2003 | # Keep a trace of the command line. | |
2004 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2005 | # Strip out --silent because we don't want to record it for future runs. | |
2006 | # Also quote any args containing shell meta-characters. | |
2007 | # Make two passes to allow for proper duplicate-argument suppression. | |
2008 | ac_configure_args= | |
2009 | ac_configure_args0= | |
2010 | ac_configure_args1= | |
1c710c3c DJ |
2011 | ac_must_keep_next=false |
2012 | for ac_pass in 1 2 | |
2013 | do | |
2014 | for ac_arg | |
2015 | do | |
2016 | case $ac_arg in | |
2017 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2018 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2019 | | -silent | --silent | --silen | --sile | --sil) | |
2020 | continue ;; | |
5213506e RW |
2021 | *\'*) |
2022 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2023 | esac |
2024 | case $ac_pass in | |
5213506e | 2025 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2026 | 2) |
5213506e | 2027 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2028 | if test $ac_must_keep_next = true; then |
2029 | ac_must_keep_next=false # Got value, back to normal. | |
2030 | else | |
2031 | case $ac_arg in | |
2032 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2033 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2034 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2035 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2036 | case "$ac_configure_args0 " in | |
2037 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2038 | esac | |
2039 | ;; | |
2040 | -* ) ac_must_keep_next=true ;; | |
2041 | esac | |
2042 | fi | |
5213506e | 2043 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2044 | ;; |
2045 | esac | |
2046 | done | |
2047 | done | |
5213506e RW |
2048 | { ac_configure_args0=; unset ac_configure_args0;} |
2049 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2050 | |
2051 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2052 | # config.log. We remove comments because anyway the quotes in there | |
2053 | # would cause problems or look ugly. | |
5213506e RW |
2054 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2055 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2056 | trap 'exit_status=$? |
2057 | # Save into config.log some information that might help in debugging. | |
2058 | { | |
2059 | echo | |
2060 | ||
22e05272 | 2061 | $as_echo "## ---------------- ## |
1c710c3c | 2062 | ## Cache variables. ## |
22e05272 | 2063 | ## ---------------- ##" |
1c710c3c DJ |
2064 | echo |
2065 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2066 | ( |
2067 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2068 | eval ac_val=\$$ac_var | |
2069 | case $ac_val in #( | |
2070 | *${as_nl}*) | |
2071 | case $ac_var in #( | |
2072 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2073 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2074 | esac | |
2075 | case $ac_var in #( | |
2076 | _ | IFS | as_nl) ;; #( | |
2077 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2078 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2079 | esac ;; | |
2080 | esac | |
2081 | done | |
1c710c3c | 2082 | (set) 2>&1 | |
5213506e RW |
2083 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2084 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2085 | sed -n \ |
5213506e RW |
2086 | "s/'\''/'\''\\\\'\'''\''/g; |
2087 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2088 | ;; #( | |
1c710c3c | 2089 | *) |
5213506e | 2090 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2091 | ;; |
5213506e RW |
2092 | esac | |
2093 | sort | |
2094 | ) | |
1c710c3c DJ |
2095 | echo |
2096 | ||
22e05272 | 2097 | $as_echo "## ----------------- ## |
1c710c3c | 2098 | ## Output variables. ## |
22e05272 | 2099 | ## ----------------- ##" |
1c710c3c DJ |
2100 | echo |
2101 | for ac_var in $ac_subst_vars | |
2102 | do | |
5213506e RW |
2103 | eval ac_val=\$$ac_var |
2104 | case $ac_val in | |
2105 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2106 | esac | |
2107 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2108 | done | sort |
2109 | echo | |
2110 | ||
2111 | if test -n "$ac_subst_files"; then | |
22e05272 | 2112 | $as_echo "## ------------------- ## |
5213506e | 2113 | ## File substitutions. ## |
22e05272 | 2114 | ## ------------------- ##" |
1c710c3c DJ |
2115 | echo |
2116 | for ac_var in $ac_subst_files | |
2117 | do | |
5213506e RW |
2118 | eval ac_val=\$$ac_var |
2119 | case $ac_val in | |
2120 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2121 | esac | |
2122 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2123 | done | sort |
2124 | echo | |
2125 | fi | |
2126 | ||
2127 | if test -s confdefs.h; then | |
22e05272 | 2128 | $as_echo "## ----------- ## |
1c710c3c | 2129 | ## confdefs.h. ## |
22e05272 | 2130 | ## ----------- ##" |
1c710c3c | 2131 | echo |
5213506e | 2132 | cat confdefs.h |
1c710c3c DJ |
2133 | echo |
2134 | fi | |
2135 | test "$ac_signal" != 0 && | |
5213506e RW |
2136 | $as_echo "$as_me: caught signal $ac_signal" |
2137 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2138 | } >&5 |
5213506e RW |
2139 | rm -f core *.core core.conftest.* && |
2140 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2141 | exit $exit_status |
5213506e | 2142 | ' 0 |
1c710c3c | 2143 | for ac_signal in 1 2 13 15; do |
5213506e | 2144 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2145 | done |
2146 | ac_signal=0 | |
2147 | ||
2148 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2149 | rm -f -r conftest* confdefs.h |
2150 | ||
2151 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2152 | |
2153 | # Predefined preprocessor variables. | |
2154 | ||
2155 | cat >>confdefs.h <<_ACEOF | |
2156 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2157 | _ACEOF | |
2158 | ||
1c710c3c DJ |
2159 | cat >>confdefs.h <<_ACEOF |
2160 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2161 | _ACEOF | |
2162 | ||
1c710c3c DJ |
2163 | cat >>confdefs.h <<_ACEOF |
2164 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2165 | _ACEOF | |
0b0dc272 | 2166 | |
1c710c3c DJ |
2167 | cat >>confdefs.h <<_ACEOF |
2168 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2169 | _ACEOF | |
2170 | ||
1c710c3c DJ |
2171 | cat >>confdefs.h <<_ACEOF |
2172 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2173 | _ACEOF | |
2174 | ||
5213506e RW |
2175 | cat >>confdefs.h <<_ACEOF |
2176 | #define PACKAGE_URL "$PACKAGE_URL" | |
2177 | _ACEOF | |
2178 | ||
1c710c3c DJ |
2179 | |
2180 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2181 | # Prefer an explicitly selected file to automatically selected ones. |
2182 | ac_site_file1=NONE | |
2183 | ac_site_file2=NONE | |
2184 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2185 | # We do not want a PATH search for config.site. |
2186 | case $CONFIG_SITE in #(( | |
2187 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2188 | */*) ac_site_file1=$CONFIG_SITE;; | |
2189 | *) ac_site_file1=./$CONFIG_SITE;; | |
2190 | esac | |
5213506e RW |
2191 | elif test "x$prefix" != xNONE; then |
2192 | ac_site_file1=$prefix/share/config.site | |
2193 | ac_site_file2=$prefix/etc/config.site | |
2194 | else | |
2195 | ac_site_file1=$ac_default_prefix/share/config.site | |
2196 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2197 | fi |
5213506e RW |
2198 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2199 | do | |
2200 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2201 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2203 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2204 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2205 | . "$ac_site_file" \ |
2206 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2207 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2208 | as_fn_error $? "failed to load site script $ac_site_file | |
2209 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2210 | fi |
2211 | done | |
2212 | ||
2213 | if test -r "$cache_file"; then | |
22e05272 JM |
2214 | # Some versions of bash will fail to source /dev/null (special files |
2215 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2216 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2218 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2219 | case $cache_file in |
5213506e RW |
2220 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2221 | *) . "./$cache_file";; | |
1c710c3c DJ |
2222 | esac |
2223 | fi | |
671aa708 | 2224 | else |
5213506e RW |
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2226 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2227 | >$cache_file |
2228 | fi | |
2229 | ||
2230 | # Check that the precious variables saved in the cache have kept the same | |
2231 | # value. | |
2232 | ac_cache_corrupted=false | |
5213506e | 2233 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2234 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2235 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2236 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2237 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2238 | case $ac_old_set,$ac_new_set in |
2239 | set,) | |
5213506e RW |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2241 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2242 | ac_cache_corrupted=: ;; |
2243 | ,set) | |
5213506e RW |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2245 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2246 | ac_cache_corrupted=: ;; |
2247 | ,);; | |
2248 | *) | |
2249 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2250 | # differences in whitespace do not lead to failure. |
2251 | ac_old_val_w=`echo x $ac_old_val` | |
2252 | ac_new_val_w=`echo x $ac_new_val` | |
2253 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2255 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2256 | ac_cache_corrupted=: | |
2257 | else | |
2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2259 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2260 | eval $ac_var=\$ac_old_val | |
2261 | fi | |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2263 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2265 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2266 | fi;; |
2267 | esac | |
2268 | # Pass precious variables to config.status. | |
2269 | if test "$ac_new_set" = set; then | |
2270 | case $ac_new_val in | |
5213506e | 2271 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2272 | *) ac_arg=$ac_var=$ac_new_val ;; |
2273 | esac | |
2274 | case " $ac_configure_args " in | |
2275 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2276 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2277 | esac |
2278 | fi | |
2279 | done | |
2280 | if $ac_cache_corrupted; then | |
5213506e RW |
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2284 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2285 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2286 | fi |
5213506e RW |
2287 | ## -------------------- ## |
2288 | ## Main body of script. ## | |
2289 | ## -------------------- ## | |
671aa708 | 2290 | |
2aeb72e9 DD |
2291 | ac_ext=c |
2292 | ac_cpp='$CPP $CPPFLAGS' | |
2293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2296 | ||
1c710c3c DJ |
2297 | |
2298 | ||
2299 | ||
1c710c3c DJ |
2300 | |
2301 | ||
0115d4a3 | 2302 | |
1c710c3c | 2303 | |
ad33ff57 RW |
2304 | progname=$0 |
2305 | # if PWD already has a value, it is probably wrong. | |
2306 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2307 | ||
2308 | # Export original configure arguments for use by sub-configures. | |
2309 | # Quote arguments with shell meta charatcers. | |
2310 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2311 | set -- "$progname" "$@" | |
2312 | for ac_arg | |
2313 | do | |
2314 | case "$ac_arg" in | |
2315 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2316 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2317 | # if the argument is of the form -foo=baz, quote the baz part only | |
2318 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2319 | *) ;; | |
2320 | esac | |
2321 | # Add the quoted argument to the list. | |
2322 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2323 | done | |
2324 | if test "$silent" = yes; then | |
2325 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2326 | fi | |
2327 | # Remove the initial space we just introduced and, as these will be | |
2328 | # expanded by make, quote '$'. | |
2329 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2330 | ||
1c710c3c DJ |
2331 | |
2332 | # Find the build, host, and target systems. | |
671aa708 | 2333 | ac_aux_dir= |
5213506e | 2334 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2335 | if test -f "$ac_dir/install-sh"; then |
2336 | ac_aux_dir=$ac_dir | |
2337 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2338 | break | |
2339 | elif test -f "$ac_dir/install.sh"; then | |
2340 | ac_aux_dir=$ac_dir | |
2341 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2342 | break | |
2343 | elif test -f "$ac_dir/shtool"; then | |
2344 | ac_aux_dir=$ac_dir | |
2345 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2346 | break | |
2347 | fi | |
671aa708 NN |
2348 | done |
2349 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2350 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2351 | fi |
5213506e RW |
2352 | |
2353 | # These three variables are undocumented and unsupported, | |
2354 | # and are intended to be withdrawn in a future Autoconf release. | |
2355 | # They can cause serious problems if a builder's source tree is in a directory | |
2356 | # whose full name contains unusual characters. | |
2357 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2358 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2359 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2360 | ||
671aa708 | 2361 | |
1c710c3c | 2362 | # Make sure we can run config.sub. |
5213506e | 2363 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2364 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2365 | |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2367 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2368 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2369 | $as_echo_n "(cached) " >&6 |
2370 | else | |
2371 | ac_build_alias=$build_alias | |
2372 | test "x$ac_build_alias" = x && | |
2373 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2374 | test "x$ac_build_alias" = x && | |
22e05272 | 2375 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2376 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2377 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2378 | |
2379 | fi | |
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2381 | $as_echo "$ac_cv_build" >&6; } | |
2382 | case $ac_cv_build in | |
2383 | *-*-*) ;; | |
22e05272 | 2384 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2385 | esac |
1c710c3c | 2386 | build=$ac_cv_build |
5213506e RW |
2387 | ac_save_IFS=$IFS; IFS='-' |
2388 | set x $ac_cv_build | |
2389 | shift | |
2390 | build_cpu=$1 | |
2391 | build_vendor=$2 | |
2392 | shift; shift | |
2393 | # Remember, the first character of IFS is used to create $*, | |
2394 | # except with old shells: | |
2395 | build_os=$* | |
2396 | IFS=$ac_save_IFS | |
2397 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2398 | |
671aa708 | 2399 | |
1c710c3c DJ |
2400 | case ${build_alias} in |
2401 | "") build_noncanonical=${build} ;; | |
2402 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2403 | esac |
2404 | ||
2405 | ||
af71363e | 2406 | |
1c710c3c DJ |
2407 | case ${host_alias} in |
2408 | "") host_noncanonical=${build_noncanonical} ;; | |
2409 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2410 | esac |
2411 | ||
af71363e | 2412 | |
1c710c3c DJ |
2413 | |
2414 | case ${target_alias} in | |
2415 | "") target_noncanonical=${host_noncanonical} ;; | |
2416 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2417 | esac |
2418 | ||
af71363e | 2419 | |
1c710c3c DJ |
2420 | |
2421 | ||
2422 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2423 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2424 | NONENONEs,x,x, && | |
1c710c3c | 2425 | program_transform_name=s,y,y, |
af71363e | 2426 | |
5213506e RW |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2428 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2429 | if ${ac_cv_host+:} false; then : |
5213506e | 2430 | $as_echo_n "(cached) " >&6 |
af71363e | 2431 | else |
5213506e RW |
2432 | if test "x$host_alias" = x; then |
2433 | ac_cv_host=$ac_cv_build | |
2434 | else | |
2435 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2436 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2437 | fi |
1c710c3c | 2438 | |
af71363e | 2439 | fi |
5213506e RW |
2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2441 | $as_echo "$ac_cv_host" >&6; } | |
2442 | case $ac_cv_host in | |
2443 | *-*-*) ;; | |
22e05272 | 2444 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2445 | esac |
1c710c3c | 2446 | host=$ac_cv_host |
5213506e RW |
2447 | ac_save_IFS=$IFS; IFS='-' |
2448 | set x $ac_cv_host | |
2449 | shift | |
2450 | host_cpu=$1 | |
2451 | host_vendor=$2 | |
2452 | shift; shift | |
2453 | # Remember, the first character of IFS is used to create $*, | |
2454 | # except with old shells: | |
2455 | host_os=$* | |
2456 | IFS=$ac_save_IFS | |
2457 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2458 | |
2459 | ||
5213506e RW |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2461 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2462 | if ${ac_cv_target+:} false; then : |
5213506e | 2463 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2464 | else |
5213506e RW |
2465 | if test "x$target_alias" = x; then |
2466 | ac_cv_target=$ac_cv_host | |
2467 | else | |
2468 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2469 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2470 | fi |
1c710c3c DJ |
2471 | |
2472 | fi | |
5213506e RW |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2474 | $as_echo "$ac_cv_target" >&6; } | |
2475 | case $ac_cv_target in | |
2476 | *-*-*) ;; | |
22e05272 | 2477 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2478 | esac |
1c710c3c | 2479 | target=$ac_cv_target |
5213506e RW |
2480 | ac_save_IFS=$IFS; IFS='-' |
2481 | set x $ac_cv_target | |
2482 | shift | |
2483 | target_cpu=$1 | |
2484 | target_vendor=$2 | |
2485 | shift; shift | |
2486 | # Remember, the first character of IFS is used to create $*, | |
2487 | # except with old shells: | |
2488 | target_os=$* | |
2489 | IFS=$ac_save_IFS | |
2490 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2491 | |
2492 | ||
2493 | # The aliases save the names the user supplied, while $host etc. | |
2494 | # will get canonicalized. | |
2495 | test -n "$target_alias" && | |
2496 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2497 | NONENONEs,x,x, && | |
2498 | program_prefix=${target_alias}- | |
5213506e | 2499 | |
671aa708 | 2500 | test "$program_prefix" != NONE && |
5213506e | 2501 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2502 | # Use a double $ so make ignores it. |
2503 | test "$program_suffix" != NONE && | |
5213506e RW |
2504 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2505 | # Double any \ or $. | |
1c710c3c | 2506 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2507 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2508 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2509 | |
671aa708 NN |
2510 | |
2511 | ||
775956d0 NN |
2512 | # Get 'install' or 'install-sh' and its variants. |
2513 | # Find a good install program. We prefer a C program (faster), | |
2514 | # so one script is as good as another. But avoid the broken or | |
2515 | # incompatible versions: | |
2516 | # SysV /etc/install, /usr/sbin/install | |
2517 | # SunOS /usr/etc/install | |
2518 | # IRIX /sbin/install | |
2519 | # AIX /bin/install | |
1c710c3c | 2520 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2521 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2522 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2523 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2524 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2525 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2526 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2528 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2529 | if test -z "$INSTALL"; then |
22e05272 | 2530 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2531 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2532 | else |
2533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2534 | for as_dir in $PATH | |
2535 | do | |
2536 | IFS=$as_save_IFS | |
2537 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2538 | # Account for people who put trailing slashes in PATH elements. |
2539 | case $as_dir/ in #(( | |
2540 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2541 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2542 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2543 | /usr/ucb/* ) ;; |
2544 | *) | |
2545 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2546 | # Don't use installbsd from OSF since it installs stuff as root | |
2547 | # by default. | |
2548 | for ac_prog in ginstall scoinst install; do | |
2549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2550 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2551 | if test $ac_prog = install && |
1c710c3c | 2552 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2553 | # AIX install. It has an incompatible calling convention. |
2554 | : | |
1c710c3c DJ |
2555 | elif test $ac_prog = install && |
2556 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2557 | # program-specific install script used by HP pwplus--don't use. | |
2558 | : | |
775956d0 | 2559 | else |
38d24731 RW |
2560 | rm -rf conftest.one conftest.two conftest.dir |
2561 | echo one > conftest.one | |
2562 | echo two > conftest.two | |
2563 | mkdir conftest.dir | |
2564 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2565 | test -s conftest.one && test -s conftest.two && | |
2566 | test -s conftest.dir/conftest.one && | |
2567 | test -s conftest.dir/conftest.two | |
2568 | then | |
2569 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2570 | break 3 | |
2571 | fi | |
775956d0 NN |
2572 | fi |
2573 | fi | |
2574 | done | |
1c710c3c DJ |
2575 | done |
2576 | ;; | |
2577 | esac | |
5213506e RW |
2578 | |
2579 | done | |
2580 | IFS=$as_save_IFS | |
1c710c3c | 2581 | |
38d24731 | 2582 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2583 | |
2584 | fi | |
2585 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2586 | INSTALL=$ac_cv_path_install |
775956d0 | 2587 | else |
38d24731 RW |
2588 | # As a last resort, use the slow shell script. Don't cache a |
2589 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2590 | # break other packages using the cache if that directory is |
38d24731 | 2591 | # removed, or if the value is a relative name. |
1c710c3c | 2592 | INSTALL=$ac_install_sh |
775956d0 NN |
2593 | fi |
2594 | fi | |
5213506e RW |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2596 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2597 | |
2598 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2599 | # It thinks the first close brace ends the variable substitution. | |
2600 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2601 | ||
1c710c3c | 2602 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2603 | |
2604 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2605 | ||
5213506e RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2607 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2608 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2609 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2610 | else |
2611 | rm -f conftestdata_t | |
2612 | echo >conftestdata_f | |
2613 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2614 | then | |
2615 | acx_cv_prog_LN=ln | |
2616 | else | |
2617 | acx_cv_prog_LN=no | |
2618 | fi | |
2619 | rm -f conftestdata_f conftestdata_t | |
2620 | ||
2621 | fi | |
2622 | if test $acx_cv_prog_LN = no; then | |
2623 | LN="cp" | |
5213506e RW |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2625 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2626 | else |
2627 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2629 | $as_echo "yes" >&6; } | |
ad6717df PB |
2630 | fi |
2631 | ||
5213506e RW |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2633 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2634 | LN_S=$as_ln_s |
2635 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2637 | $as_echo "yes" >&6; } | |
fb0103e5 | 2638 | else |
5213506e RW |
2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2640 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2641 | fi |
2642 | ||
87264276 PB |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2644 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2645 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2646 | $as_echo_n "(cached) " >&6 |
2647 | else | |
2648 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2649 | for ac_i in 1 2 3 4 5 6 7; do | |
2650 | ac_script="$ac_script$as_nl$ac_script" | |
2651 | done | |
2652 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2653 | { ac_script=; unset ac_script;} | |
2654 | if test -z "$SED"; then | |
2655 | ac_path_SED_found=false | |
2656 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2658 | for as_dir in $PATH | |
2659 | do | |
2660 | IFS=$as_save_IFS | |
2661 | test -z "$as_dir" && as_dir=. | |
2662 | for ac_prog in sed gsed; do | |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2664 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2665 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2666 | # Check for GNU ac_path_SED and select it if it is found. |
2667 | # Check for GNU $ac_path_SED | |
2668 | case `"$ac_path_SED" --version 2>&1` in | |
2669 | *GNU*) | |
2670 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2671 | *) | |
2672 | ac_count=0 | |
2673 | $as_echo_n 0123456789 >"conftest.in" | |
2674 | while : | |
2675 | do | |
2676 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2677 | mv "conftest.tmp" "conftest.in" | |
2678 | cp "conftest.in" "conftest.nl" | |
2679 | $as_echo '' >> "conftest.nl" | |
2680 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2681 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2682 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2683 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2684 | # Best one so far, save it but keep looking for a better one | |
2685 | ac_cv_path_SED="$ac_path_SED" | |
2686 | ac_path_SED_max=$ac_count | |
2687 | fi | |
2688 | # 10*(2^10) chars as input seems more than enough | |
2689 | test $ac_count -gt 10 && break | |
2690 | done | |
2691 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2692 | esac | |
2693 | ||
2694 | $ac_path_SED_found && break 3 | |
2695 | done | |
2696 | done | |
2697 | done | |
2698 | IFS=$as_save_IFS | |
2699 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2700 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2701 | fi |
2702 | else | |
2703 | ac_cv_path_SED=$SED | |
2704 | fi | |
2705 | ||
2706 | fi | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2708 | $as_echo "$ac_cv_path_SED" >&6; } | |
2709 | SED="$ac_cv_path_SED" | |
2710 | rm -f conftest.sed | |
2711 | ||
2712 | for ac_prog in gawk mawk nawk awk | |
2713 | do | |
2714 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2715 | set dummy $ac_prog; ac_word=$2 | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2717 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2718 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2719 | $as_echo_n "(cached) " >&6 |
2720 | else | |
2721 | if test -n "$AWK"; then | |
2722 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2723 | else | |
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2725 | for as_dir in $PATH | |
2726 | do | |
2727 | IFS=$as_save_IFS | |
2728 | test -z "$as_dir" && as_dir=. | |
2729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2731 | ac_cv_prog_AWK="$ac_prog" |
2732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2733 | break 2 | |
2734 | fi | |
2735 | done | |
2736 | done | |
2737 | IFS=$as_save_IFS | |
2738 | ||
2739 | fi | |
2740 | fi | |
2741 | AWK=$ac_cv_prog_AWK | |
2742 | if test -n "$AWK"; then | |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2744 | $as_echo "$AWK" >&6; } | |
2745 | else | |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2747 | $as_echo "no" >&6; } | |
2748 | fi | |
2749 | ||
2750 | ||
2751 | test -n "$AWK" && break | |
2752 | done | |
2753 | ||
775956d0 | 2754 | |
ee6a22df L |
2755 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2756 | ||
2757 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2758 | # a relative path. | |
2759 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2760 | INSTALL="${srcpwd}/install-sh -c" | |
2761 | fi | |
2762 | ||
671aa708 NN |
2763 | # Set srcdir to "." if that's what it is. |
2764 | # This is important for multilib support. | |
2765 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2766 | if test "${pwd}" = "${srcpwd}" ; then |
2767 | srcdir=. | |
79c06341 JL |
2768 | fi |
2769 | ||
671aa708 | 2770 | topsrcdir=$srcpwd |
5d4a5ee6 | 2771 | |
671aa708 | 2772 | extra_host_args= |
afabd8e6 | 2773 | |
671aa708 NN |
2774 | ### To add a new directory to the tree, first choose whether it is a target |
2775 | ### or a host dependent tool. Then put it into the appropriate list | |
2776 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2777 | |
1c710c3c | 2778 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2779 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2780 | |
1c710c3c DJ |
2781 | # Dependency sorting is only needed when *configuration* must be done in |
2782 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2783 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2784 | |
671aa708 NN |
2785 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2786 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2787 | |
23f6b2f9 PB |
2788 | # these library is used by various programs built for the build |
2789 | # environment | |
2790 | # | |
929315a9 | 2791 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2792 | |
2793 | # these tools are built for the build environment | |
85bfb75e | 2794 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2795 | |
671aa708 | 2796 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2797 | #f |
36230329 | 2798 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2799 | |
671aa708 NN |
2800 | # these tools are built for the host environment |
2801 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2802 | # know that we are building the simulator. | |
2803 | # binutils, gas and ld appear in that order because it makes sense to run | |
2804 | # "make check" in that particular order. | |
38e3d868 | 2805 | # If --enable-gold is used, "gold" may replace "ld". |
2efd8b1f | 2806 | 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 | 2807 | |
671aa708 NN |
2808 | # these libraries are built for the target environment, and are built after |
2809 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2810 | # Note that libiberty is not a target library. |
291f172e | 2811 | target_libraries="target-libgcc \ |
eff02e4f | 2812 | target-libbacktrace \ |
671aa708 NN |
2813 | target-libgloss \ |
2814 | target-newlib \ | |
6d3b5aea | 2815 | target-libgomp \ |
5f520819 | 2816 | target-liboffloadmic \ |
5fd1486c | 2817 | target-libhsail-rt \ |
48310492 | 2818 | target-libatomic \ |
0a35513e | 2819 | target-libitm \ |
cb543528 | 2820 | target-libstdc++-v3 \ |
f35db108 | 2821 | target-libsanitizer \ |
2077db1b | 2822 | target-libvtv \ |
77008252 | 2823 | target-libssp \ |
1ec601bf | 2824 | target-libquadmath \ |
6de9cd9a | 2825 | target-libgfortran \ |
012447ea | 2826 | target-libffi \ |
d9cdb878 | 2827 | target-libobjc \ |
632e2a07 | 2828 | target-libada \ |
b4c522fa | 2829 | target-libgo \ |
bb50312e IB |
2830 | target-libphobos \ |
2831 | target-zlib" | |
671aa708 | 2832 | |
4dbda6f0 NN |
2833 | # these tools are built using the target libraries, and are intended to |
2834 | # run only in the target environment | |
671aa708 | 2835 | # |
4dbda6f0 | 2836 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2837 | # list belongs in this list. |
671aa708 | 2838 | # |
85bfb75e | 2839 | target_tools="target-rda" |
79c06341 | 2840 | |
671aa708 | 2841 | ################################################################################ |
79c06341 | 2842 | |
671aa708 NN |
2843 | ## All tools belong in one of the four categories, and are assigned above |
2844 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2845 | ## is important because configure will choke if they ever get through. | |
2846 | ## ${configdirs} is directories we build using the host tools. | |
2847 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2848 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2849 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2850 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2851 | |
ac9e6043 RW |
2852 | |
2853 | ||
671aa708 | 2854 | ################################################################################ |
79c06341 | 2855 | |
671aa708 | 2856 | srcname="gnu development package" |
79c06341 | 2857 | |
671aa708 NN |
2858 | # This gets set non-empty for some net releases of packages. |
2859 | appdirs="" | |
79c06341 | 2860 | |
671aa708 NN |
2861 | # Define is_cross_compiler to save on calls to 'test'. |
2862 | is_cross_compiler= | |
2863 | if test x"${host}" = x"${target}" ; then | |
2864 | is_cross_compiler=no | |
79c06341 | 2865 | else |
671aa708 | 2866 | is_cross_compiler=yes |
1c710c3c | 2867 | fi |
79c06341 | 2868 | |
b4acb5ef | 2869 | # Find the build and target subdir names. |
8b87bb96 | 2870 | |
2e9e6f68 DJ |
2871 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2872 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2873 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2874 | # However, they still use the build modules, because the corresponding | |
2875 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2876 | # finishes. So: | |
2877 | # - build_subdir is where we find build modules, and never changes. | |
2878 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2879 | ||
2880 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2881 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2882 | |
5213506e RW |
2883 | # Check whether --with-build-libsubdir was given. |
2884 | if test "${with_build_libsubdir+set}" = set; then : | |
2885 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2886 | else |
2887 | build_libsubdir="$build_subdir" | |
5213506e RW |
2888 | fi |
2889 | ||
215c351a PB |
2890 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2891 | if ( test $srcdir = . && test -d gcc ) \ | |
2892 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2893 | host_subdir="host-${host_noncanonical}" | |
2894 | else | |
2895 | host_subdir=. | |
2896 | fi | |
8b87bb96 NN |
2897 | # No prefix. |
2898 | target_subdir=${target_noncanonical} | |
1c710c3c | 2899 | |
0db770bd RW |
2900 | # Be sure to cover against remnants of an in-tree build. |
2901 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2902 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2903 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2904 | fi | |
79c06341 | 2905 | |
671aa708 NN |
2906 | # Skipdirs are removed silently. |
2907 | skipdirs= | |
2908 | # Noconfigdirs are removed loudly. | |
2909 | noconfigdirs="" | |
79c06341 | 2910 | |
671aa708 NN |
2911 | use_gnu_ld= |
2912 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2913 | if test x$with_gnu_ld = xno ; then | |
2914 | use_gnu_ld=no | |
5afab7ad | 2915 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2916 | fi |
2917 | ||
671aa708 NN |
2918 | use_gnu_as= |
2919 | # Make sure we don't let GNU as be added if we didn't want it. | |
2920 | if test x$with_gnu_as = xno ; then | |
2921 | use_gnu_as=no | |
2922 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2923 | fi |
2924 | ||
d7f09764 | 2925 | use_included_zlib= |
a05c2c75 L |
2926 | |
2927 | # Check whether --with-system-zlib was given. | |
2928 | if test "${with_system_zlib+set}" = set; then : | |
2929 | withval=$with_system_zlib; | |
2930 | fi | |
2931 | ||
d7f09764 DN |
2932 | # Make sure we don't let ZLIB be added if we didn't want it. |
2933 | if test x$with_system_zlib = xyes ; then | |
2934 | use_included_zlib=no | |
2935 | noconfigdirs="$noconfigdirs zlib" | |
2936 | fi | |
2937 | ||
1c710c3c | 2938 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2939 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2940 | |
671aa708 NN |
2941 | case ${with_x} in |
2942 | yes | "") ;; # the default value for this tree is that X11 is available | |
2943 | no) | |
b4f96efe | 2944 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2945 | # We won't be able to build gdbtk without X. |
1c710c3c | 2946 | enable_gdbtk=no |
671aa708 NN |
2947 | ;; |
2948 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2949 | esac | |
79c06341 | 2950 | |
1bcce263 | 2951 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2952 | # Remove these if host=target. |
2953 | cross_only="target-libgloss target-newlib target-opcodes" | |
2954 | ||
2955 | case $is_cross_compiler in | |
2956 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2957 | esac |
79c06341 | 2958 | |
671aa708 NN |
2959 | # If both --with-headers and --with-libs are specified, default to |
2960 | # --without-newlib. | |
ee6a22df L |
2961 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2962 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2963 | if test x"${with_newlib}" = x ; then |
2964 | with_newlib=no | |
2965 | fi | |
79c06341 JL |
2966 | fi |
2967 | ||
671aa708 NN |
2968 | # Recognize --with-newlib/--without-newlib. |
2969 | case ${with_newlib} in | |
2970 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2971 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2972 | esac | |
79c06341 | 2973 | |
85c64bbe BS |
2974 | # Check whether --enable-as-accelerator-for was given. |
2975 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2976 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2977 | fi |
2978 | ||
2979 | ||
2980 | # Check whether --enable-offload-targets was given. | |
2981 | if test "${enable_offload_targets+set}" = set; then : | |
2982 | enableval=$enable_offload_targets; | |
2983 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2984 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2985 | fi |
2986 | ||
2987 | else | |
2988 | enable_offload_targets= | |
2989 | fi | |
2990 | ||
2991 | ||
21539e2e MK |
2992 | # Handle --enable-gold, --enable-ld. |
2993 | # --disable-gold [--enable-ld] | |
2994 | # Build only ld. Default option. | |
9580395f L |
2995 | # --enable-gold [--enable-ld] |
2996 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2997 | # as "ld.bfd" and "ld". | |
2998 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2999 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3000 | # install ld as "ld.bfd". | |
3001 | # --enable-gold[=default] --disable-ld | |
3002 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3003 | # --enable-gold --enable-ld=default | |
9580395f L |
3004 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3005 | # and ld.bfd). | |
21539e2e MK |
3006 | # In other words, ld is default |
3007 | # --enable-gold=default --enable-ld=default | |
3008 | # Error. | |
3009 | ||
3010 | default_ld= | |
5213506e RW |
3011 | # Check whether --enable-gold was given. |
3012 | if test "${enable_gold+set}" = set; then : | |
3013 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3014 | else |
3015 | ENABLE_GOLD=no | |
5213506e RW |
3016 | fi |
3017 | ||
21539e2e MK |
3018 | case "${ENABLE_GOLD}" in |
3019 | yes|default) | |
38e3d868 RM |
3020 | # Check for ELF target. |
3021 | is_elf=no | |
3022 | case "${target}" in | |
3023 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3024 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3025 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3026 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3027 | case "${target}" in |
3028 | *-*-linux*aout* | *-*-linux*oldld*) | |
3029 | ;; | |
3030 | *) | |
3031 | is_elf=yes | |
3032 | ;; | |
3033 | esac | |
3034 | esac | |
3035 | ||
3036 | if test "$is_elf" = "yes"; then | |
3037 | # Check for target supported by gold. | |
5afab7ad | 3038 | case "${target}" in |
7705dfd1 | 3039 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3040 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3041 | configdirs="$configdirs gold" |
3042 | if test x${ENABLE_GOLD} = xdefault; then | |
3043 | default_ld=gold | |
3044 | fi | |
38e3d868 | 3045 | ENABLE_GOLD=yes |
5afab7ad ILT |
3046 | ;; |
3047 | esac | |
38e3d868 RM |
3048 | fi |
3049 | ;; | |
3050 | no) | |
3051 | ;; | |
3052 | *) | |
22e05272 | 3053 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3054 | ;; |
21539e2e MK |
3055 | esac |
3056 | ||
3057 | # Check whether --enable-ld was given. | |
3058 | if test "${enable_ld+set}" = set; then : | |
3059 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3060 | else | |
3061 | ENABLE_LD=yes | |
3062 | fi | |
3063 | ||
3064 | ||
3065 | case "${ENABLE_LD}" in | |
3066 | default) | |
9580395f | 3067 | if test x${default_ld} != x; then |
22e05272 | 3068 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3069 | fi |
3070 | ;; | |
3071 | yes) | |
3072 | ;; | |
3073 | no) | |
3074 | if test x${ENABLE_GOLD} != xyes; then | |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3076 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3077 | fi | |
3078 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3079 | ;; | |
3080 | *) | |
22e05272 | 3081 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3082 | ;; |
3083 | esac | |
5afab7ad | 3084 | |
78edb32f L |
3085 | # PR gas/19109 |
3086 | # Decide the default method for compressing debug sections. | |
3087 | # Provide a configure time option to override our default. | |
3088 | # Check whether --enable-compressed_debug_sections was given. | |
3089 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3090 | enableval=$enable_compressed_debug_sections; | |
3091 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3092 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3093 | fi |
3094 | ||
3095 | else | |
3096 | enable_compressed_debug_sections= | |
3097 | fi | |
3098 | ||
3099 | ||
671aa708 | 3100 | # Configure extra directories which are host specific |
79c06341 | 3101 | |
671aa708 NN |
3102 | case "${host}" in |
3103 | *-cygwin*) | |
3104 | configdirs="$configdirs libtermcap" ;; | |
3105 | esac | |
79c06341 | 3106 | |
4fab7234 HPN |
3107 | # A target can indicate whether a language isn't supported for some reason. |
3108 | # Only spaces may be used in this macro; not newlines or tabs. | |
3109 | unsupported_languages= | |
3110 | ||
1c710c3c | 3111 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3112 | # target this usually means that a port of the program doesn't |
3113 | # exist yet. | |
ec8d6ddc | 3114 | |
671aa708 | 3115 | case "${host}" in |
111eeb6e | 3116 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3117 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3118 | ;; |
671aa708 | 3119 | esac |
ec8d6ddc | 3120 | |
6de9cd9a | 3121 | |
87e6d9dc TB |
3122 | # Check whether --enable-libquadmath was given. |
3123 | if test "${enable_libquadmath+set}" = set; then : | |
3124 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3125 | else | |
3126 | ENABLE_LIBQUADMATH=yes | |
3127 | fi | |
3128 | ||
3129 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3130 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3131 | fi | |
3132 | ||
3133 | ||
3134 | # Check whether --enable-libquadmath-support was given. | |
3135 | if test "${enable_libquadmath_support+set}" = set; then : | |
3136 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3137 | else | |
3138 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3139 | fi | |
3140 | ||
3141 | enable_libquadmath_support= | |
3142 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3143 | enable_libquadmath_support=no | |
3144 | fi | |
3145 | ||
3146 | ||
5213506e RW |
3147 | # Check whether --enable-libada was given. |
3148 | if test "${enable_libada+set}" = set; then : | |
3149 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3150 | else |
3151 | ENABLE_LIBADA=yes | |
5213506e RW |
3152 | fi |
3153 | ||
d9cdb878 | 3154 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3155 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3156 | fi |
3157 | ||
5213506e RW |
3158 | # Check whether --enable-libssp was given. |
3159 | if test "${enable_libssp+set}" = set; then : | |
3160 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3161 | else |
3162 | ENABLE_LIBSSP=yes | |
5213506e RW |
3163 | fi |
3164 | ||
ef0087a7 | 3165 | |
1873ec0c L |
3166 | # Check whether --enable-libstdcxx was given. |
3167 | if test "${enable_libstdcxx+set}" = set; then : | |
3168 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3169 | else | |
3170 | ENABLE_LIBSTDCXX=default | |
3171 | fi | |
3172 | ||
3173 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3174 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3175 | fi |
3176 | ||
5f520819 KY |
3177 | # If this is accelerator compiler and its target is intelmic we enable |
3178 | # target liboffloadmic by default. If this is compiler with offloading | |
3179 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3180 | # liboffloadmic is disabled by default. | |
3181 | # Check whether --enable-liboffloadmic was given. | |
3182 | if test "${enable_liboffloadmic+set}" = set; then : | |
3183 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3184 | no | host | target) | |
3185 | enable_liboffloadmic=$enableval ;; | |
3186 | *) | |
22e05272 | 3187 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3188 | esac |
3189 | else | |
4b4f2e35 | 3190 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3191 | case "${target}" in |
3192 | *-intelmic-* | *-intelmicemul-*) | |
3193 | enable_liboffloadmic=target | |
3194 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3195 | ;; | |
3196 | *) | |
3197 | enable_liboffloadmic=no | |
3198 | ;; | |
3199 | esac | |
3200 | else | |
3201 | case "${enable_offload_targets}" in | |
3202 | *-intelmic-* | *-intelmicemul-*) | |
3203 | enable_liboffloadmic=host | |
3204 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3205 | ;; | |
3206 | *) | |
3207 | enable_liboffloadmic=no | |
3208 | ;; | |
3209 | esac | |
3210 | fi | |
3211 | fi | |
3212 | ||
3213 | ||
3214 | ||
44a7d18d | 3215 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3216 | if test x$enable_libgomp = x ; then |
953ff289 | 3217 | case "${target}" in |
416ac4d4 | 3218 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3219 | ;; |
8c6d158a | 3220 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3221 | ;; |
b24513a1 | 3222 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3223 | ;; |
cac90078 | 3224 | *-*-darwin* | *-*-aix*) |
953ff289 | 3225 | ;; |
29b1533a | 3226 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3227 | ;; |
953ff289 DN |
3228 | *) |
3229 | noconfigdirs="$noconfigdirs target-libgomp" | |
3230 | ;; | |
3231 | esac | |
27079765 | 3232 | fi |
953ff289 | 3233 | |
48310492 RH |
3234 | # Disable libatomic on unsupported systems. |
3235 | if test -d ${srcdir}/libatomic; then | |
3236 | if test x$enable_libatomic = x; then | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3238 | $as_echo_n "checking for libatomic support... " >&6; } | |
3239 | if (srcdir=${srcdir}/libatomic; \ | |
3240 | . ${srcdir}/configure.tgt; \ | |
3241 | test -n "$UNSUPPORTED") | |
3242 | then | |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3244 | $as_echo "no" >&6; } | |
3245 | noconfigdirs="$noconfigdirs target-libatomic" | |
3246 | else | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3248 | $as_echo "yes" >&6; } | |
3249 | fi | |
3250 | fi | |
3251 | fi | |
3252 | ||
5f520819 KY |
3253 | # Disable liboffloadmic on unsupported systems. |
3254 | if test -d ${srcdir}/liboffloadmic; then | |
3255 | if test x$enable_liboffloadmic != xno; then | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3257 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3258 | if (srcdir=${srcdir}/liboffloadmic; \ | |
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-liboffloadmic" | |
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 | ||
e948157d RH |
3272 | # Disable libitm on unsupported systems. |
3273 | if test -d ${srcdir}/libitm; then | |
3274 | if test x$enable_libitm = x; then | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3276 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3277 | if (srcdir=${srcdir}/libitm; \ |
3278 | . ${srcdir}/configure.tgt; \ | |
3279 | test -n "$UNSUPPORTED") | |
3280 | then | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3282 | $as_echo "no" >&6; } |
e948157d RH |
3283 | noconfigdirs="$noconfigdirs target-libitm" |
3284 | else | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3286 | $as_echo "yes" >&6; } |
e948157d RH |
3287 | fi |
3288 | fi | |
0a35513e AH |
3289 | fi |
3290 | ||
93bf5390 RH |
3291 | # Disable libsanitizer on unsupported systems. |
3292 | if test -d ${srcdir}/libsanitizer; then | |
3293 | if test x$enable_libsanitizer = x; then | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3295 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3296 | if (srcdir=${srcdir}/libsanitizer; \ | |
3297 | . ${srcdir}/configure.tgt; \ | |
3298 | test -n "$UNSUPPORTED") | |
3299 | then | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3301 | $as_echo "no" >&6; } | |
3302 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3303 | else | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3305 | $as_echo "yes" >&6; } | |
3306 | fi | |
3307 | fi | |
3308 | fi | |
3309 | ||
2077db1b CT |
3310 | # Disable libvtv on unsupported systems. |
3311 | if test -d ${srcdir}/libvtv; then | |
3312 | if test x$enable_libvtv = x; then | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3314 | $as_echo_n "checking for libvtv support... " >&6; } | |
3315 | if (srcdir=${srcdir}/libvtv; \ | |
3316 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3317 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3318 | then |
3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3320 | $as_echo "no" >&6; } | |
3321 | noconfigdirs="$noconfigdirs target-libvtv" | |
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 | ||
5373cd33 | 3329 | |
f6a24a94 MJ |
3330 | # Disable libhsail-rt on unsupported systems. |
3331 | if test -d ${srcdir}/libhsail-rt; then | |
3332 | if test x$enable_libhsail_rt = x; then | |
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3334 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3335 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3336 | . ${srcdir}/configure.tgt; \ | |
3337 | test -n "$UNSUPPORTED") | |
3338 | then | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3340 | $as_echo "no" >&6; } | |
3341 | unsupported_languages="$unsupported_languages brig" | |
3342 | # This implicitly disables also target-libhsail-rt as it won't | |
3343 | # get added to the build without BRIG FE. | |
3344 | else | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3346 | $as_echo "yes" >&6; } | |
3347 | fi | |
3348 | fi | |
3349 | fi | |
5373cd33 IE |
3350 | |
3351 | ||
d91491e5 SE |
3352 | # Disable libquadmath for some systems. |
3353 | case "${target}" in | |
e7fae550 DE |
3354 | avr-*-*) |
3355 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3356 | ;; | |
d91491e5 SE |
3357 | # libquadmath is unused on AIX and libquadmath build process use of |
3358 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3359 | powerpc-*-aix* | rs6000-*-aix*) | |
3360 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3361 | ;; | |
3362 | esac | |
3363 | ||
1e9e0e23 JM |
3364 | # Disable libssp for some systems. |
3365 | case "${target}" in | |
3366 | avr-*-*) | |
b318fb4b | 3367 | # No hosted I/O support. |
1e9e0e23 JM |
3368 | noconfigdirs="$noconfigdirs target-libssp" |
3369 | ;; | |
91dfef96 JM |
3370 | bpf-*-*) |
3371 | noconfigdirs="$noconfigdirs target-libssp" | |
3372 | ;; | |
1e9e0e23 JM |
3373 | powerpc-*-aix* | rs6000-*-aix*) |
3374 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3375 | ;; |
8d2af3a2 DD |
3376 | pru-*-*) |
3377 | # No hosted I/O support. | |
3378 | noconfigdirs="$noconfigdirs target-libssp" | |
3379 | ;; | |
85b8555e | 3380 | rl78-*-*) |
7cb62ef1 EB |
3381 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3382 | # doesn't fault for those - instead, it gives a build-time error | |
3383 | # for explicit misaligned loads. | |
85b8555e | 3384 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3385 | ;; |
0969ec7d EB |
3386 | visium-*-*) |
3387 | # No hosted I/O support. | |
3388 | noconfigdirs="$noconfigdirs target-libssp" | |
3389 | ;; | |
1e9e0e23 JM |
3390 | esac |
3391 | ||
1e9e0e23 | 3392 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3393 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3394 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3395 | case "${target}" in | |
3396 | *-*-vxworks*) | |
3397 | # VxWorks uses the Dinkumware C++ library. | |
3398 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3399 | ;; | |
afa3d80e TS |
3400 | amdgcn*-*-*) |
3401 | # Not ported/fails to build when using newlib. | |
3402 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3403 | ;; | |
1873ec0c L |
3404 | arm*-wince-pe*) |
3405 | # the C++ libraries don't build on top of CE's C libraries | |
3406 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3407 | ;; | |
3408 | avr-*-*) | |
3409 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3410 | ;; | |
91dfef96 JM |
3411 | bpf-*-*) |
3412 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3413 | ;; | |
fef939d6 JB |
3414 | ft32-*-*) |
3415 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3416 | ;; | |
1873ec0c L |
3417 | esac |
3418 | fi | |
1e9e0e23 | 3419 | |
91dfef96 JM |
3420 | # Disable C++ on systems where it is known to not work. |
3421 | # For testing, you can override this with --enable-languages=c++. | |
3422 | case ,${enable_languages}, in | |
3423 | *,c++,*) | |
3424 | ;; | |
3425 | *) | |
3426 | case "${target}" in | |
3427 | bpf-*-*) | |
3428 | unsupported_languages="$unsupported_languages c++" | |
3429 | ;; | |
3430 | esac | |
3431 | ;; | |
3432 | esac | |
3433 | ||
3434 | # Disable Objc on systems where it is known to not work. | |
3435 | # For testing, you can override this with --enable-languages=objc. | |
3436 | case ,${enable_languages}, in | |
3437 | *,objc,*) | |
3438 | ;; | |
3439 | *) | |
3440 | case "${target}" in | |
3441 | bpf-*-*) | |
3442 | unsupported_languages="$unsupported_languages objc" | |
3443 | ;; | |
3444 | esac | |
3445 | ;; | |
3446 | esac | |
3447 | ||
260eedb9 IB |
3448 | # Disable D on systems where it is known to not work. |
3449 | # For testing, you can override this with --enable-languages=d. | |
3450 | case ,${enable_languages}, in | |
3451 | *,d,*) | |
3452 | ;; | |
3453 | *) | |
3454 | case "${target}" in | |
91dfef96 | 3455 | bpf-*-*) |
260eedb9 IB |
3456 | unsupported_languages="$unsupported_languages d" |
3457 | ;; | |
3458 | esac | |
3459 | ;; | |
3460 | esac | |
3461 | ||
3462 | # Disable libphobos on unsupported systems. | |
3463 | # For testing, you can override this with --enable-libphobos. | |
3464 | if test -d ${srcdir}/libphobos; then | |
3465 | if test x$enable_libphobos = x; then | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3467 | $as_echo_n "checking for libphobos support... " >&6; } | |
3468 | if (srcdir=${srcdir}/libphobos; \ | |
3469 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3470 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3471 | then |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3473 | $as_echo "no" >&6; } | |
3474 | noconfigdirs="$noconfigdirs target-libphobos" | |
3475 | else | |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3477 | $as_echo "yes" >&6; } | |
3478 | fi | |
3479 | fi | |
3480 | fi | |
3481 | ||
1e9e0e23 JM |
3482 | # Disable Fortran for some systems. |
3483 | case "${target}" in | |
3484 | mmix-*-*) | |
3485 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3486 | unsupported_languages="$unsupported_languages fortran" | |
3487 | ;; | |
91dfef96 JM |
3488 | bpf-*-*) |
3489 | unsupported_languages="$unsupported_languages fortran" | |
3490 | ;; | |
1e9e0e23 JM |
3491 | esac |
3492 | ||
012447ea JJ |
3493 | # Disable libffi for some systems. |
3494 | case "${target}" in | |
3495 | powerpc-*-darwin*) | |
3496 | ;; | |
3497 | i[3456789]86-*-darwin*) | |
3498 | ;; | |
3499 | x86_64-*-darwin[912]*) | |
3500 | ;; | |
3501 | *-*-darwin*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
3504 | *-*-netware*) | |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
3507 | *-*-phoenix*) | |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | *-*-rtems*) | |
3511 | noconfigdirs="$noconfigdirs target-libffi" | |
3512 | ;; | |
3513 | *-*-tpf*) | |
3514 | noconfigdirs="$noconfigdirs target-libffi" | |
3515 | ;; | |
3516 | *-*-uclinux*) | |
3517 | noconfigdirs="$noconfigdirs target-libffi" | |
3518 | ;; | |
3519 | *-*-vxworks*) | |
3520 | noconfigdirs="$noconfigdirs target-libffi" | |
3521 | ;; | |
b20e7532 AT |
3522 | aarch64*-*-freebsd*) |
3523 | noconfigdirs="$noconfigdirs target-libffi" | |
3524 | ;; | |
012447ea JJ |
3525 | alpha*-*-*vms*) |
3526 | noconfigdirs="$noconfigdirs target-libffi" | |
3527 | ;; | |
3528 | arm*-*-freebsd*) | |
3529 | noconfigdirs="$noconfigdirs target-libffi" | |
3530 | ;; | |
3531 | arm-wince-pe) | |
3532 | noconfigdirs="$noconfigdirs target-libffi" | |
3533 | ;; | |
3534 | arm*-*-symbianelf*) | |
3535 | noconfigdirs="$noconfigdirs target-libffi" | |
3536 | ;; | |
91dfef96 JM |
3537 | bpf-*-*) |
3538 | noconfigdirs="$noconfigdirs target-libffi" | |
3539 | ;; | |
012447ea JJ |
3540 | cris-*-* | crisv32-*-*) |
3541 | case "${target}" in | |
3542 | *-*-linux*) | |
3543 | ;; | |
3544 | *) # See PR46792 regarding target-libffi. | |
3545 | noconfigdirs="$noconfigdirs target-libffi";; | |
3546 | esac | |
3547 | ;; | |
3548 | hppa*64*-*-hpux*) | |
3549 | noconfigdirs="$noconfigdirs target-libffi" | |
3550 | ;; | |
3551 | hppa*-hp-hpux11*) | |
3552 | ;; | |
3553 | hppa*-*-hpux*) | |
3554 | noconfigdirs="$noconfigdirs target-libffi" | |
3555 | ;; | |
3556 | ia64*-*-*vms*) | |
3557 | noconfigdirs="$noconfigdirs target-libffi" | |
3558 | ;; | |
3559 | i[3456789]86-w64-mingw*) | |
3560 | noconfigdirs="$noconfigdirs target-libffi" | |
3561 | ;; | |
3562 | i[3456789]86-*-mingw*) | |
3563 | noconfigdirs="$noconfigdirs target-libffi" | |
3564 | ;; | |
3565 | x86_64-*-mingw*) | |
3566 | noconfigdirs="$noconfigdirs target-libffi" | |
3567 | ;; | |
3568 | mmix-*-*) | |
3569 | noconfigdirs="$noconfigdirs target-libffi" | |
3570 | ;; | |
3571 | powerpc-*-aix*) | |
012447ea JJ |
3572 | ;; |
3573 | rs6000-*-aix*) | |
012447ea JJ |
3574 | ;; |
3575 | ft32-*-*) | |
3576 | noconfigdirs="$noconfigdirs target-libffi" | |
3577 | ;; | |
3578 | *-*-lynxos*) | |
3579 | noconfigdirs="$noconfigdirs target-libffi" | |
3580 | ;; | |
3581 | esac | |
3582 | ||
3583 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3584 | # this in sync with contrib/config-list.mk. | |
3585 | case "${target}" in | |
91dfef96 | 3586 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3587 | unsupported_languages="$unsupported_languages go" |
3588 | ;; | |
3589 | esac | |
3590 | ||
f9d09df0 TT |
3591 | # Only allow gdbserver on some systems. |
3592 | if test -d ${srcdir}/gdbserver; then | |
3593 | if test x$enable_gdbserver = x; then | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3595 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3596 | if (srcdir=${srcdir}/gdbserver; \ | |
3597 | . ${srcdir}/configure.srv; \ | |
3598 | test -n "$UNSUPPORTED") | |
3599 | then | |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3601 | $as_echo "no" >&6; } | |
3602 | noconfigdirs="$noconfigdirs gdbserver" | |
3603 | else | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3605 | $as_echo "yes" >&6; } | |
3606 | fi | |
3607 | fi | |
3608 | fi | |
3609 | ||
cdbc9e92 ILT |
3610 | # Disable libgo for some systems where it is known to not work. |
3611 | # For testing, you can easily override this with --enable-libgo. | |
3612 | if test x$enable_libgo = x; then | |
3613 | case "${target}" in | |
3614 | *-*-darwin*) | |
3615 | # PR 46986 | |
3616 | noconfigdirs="$noconfigdirs target-libgo" | |
3617 | ;; | |
3618 | *-*-cygwin* | *-*-mingw*) | |
3619 | noconfigdirs="$noconfigdirs target-libgo" | |
3620 | ;; | |
91dfef96 JM |
3621 | bpf-*-*) |
3622 | noconfigdirs="$noconfigdirs target-libgo" | |
3623 | ;; | |
cdbc9e92 ILT |
3624 | esac |
3625 | fi | |
3626 | ||
c03353e2 RIL |
3627 | # Default libgloss CPU subdirectory. |
3628 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3629 | |
fbcf0dca JM |
3630 | case "${target}" in |
3631 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3632 | libgloss_dir=wince | |
3633 | ;; | |
4dddfc74 YZ |
3634 | aarch64*-*-* ) |
3635 | libgloss_dir=aarch64 | |
3636 | ;; | |
fbcf0dca JM |
3637 | arm*-*-*) |
3638 | libgloss_dir=arm | |
3639 | ;; | |
3640 | cris-*-* | crisv32-*-*) | |
3641 | libgloss_dir=cris | |
3642 | ;; | |
3643 | hppa*-*-*) | |
3644 | libgloss_dir=pa | |
3645 | ;; | |
3646 | i[3456789]86-*-*) | |
3647 | libgloss_dir=i386 | |
3648 | ;; | |
3649 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3650 | libgloss_dir=m68hc11 | |
3651 | ;; | |
3652 | m68*-*-* | fido-*-*) | |
3653 | libgloss_dir=m68k | |
3654 | ;; | |
3655 | mips*-*-*) | |
3656 | libgloss_dir=mips | |
3657 | ;; | |
3658 | powerpc*-*-*) | |
3659 | libgloss_dir=rs6000 | |
3660 | ;; | |
8d2af3a2 DD |
3661 | pru-*-*) |
3662 | libgloss_dir=pru | |
3663 | ;; | |
fbcf0dca JM |
3664 | sparc*-*-*) |
3665 | libgloss_dir=sparc | |
3666 | ;; | |
3667 | esac | |
3668 | ||
6a789d5e | 3669 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3670 | case "${target}" in |
6a789d5e JM |
3671 | alpha*-dec-osf*) |
3672 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3673 | ;; | |
3674 | i[3456789]86-*-linux*) | |
3675 | # This section makes it possible to build newlib natively on linux. | |
3676 | # If we are using a cross compiler then don't configure newlib. | |
3677 | if test x${is_cross_compiler} != xno ; then | |
3678 | noconfigdirs="$noconfigdirs target-newlib" | |
3679 | fi | |
3680 | noconfigdirs="$noconfigdirs target-libgloss" | |
3681 | # If we are not using a cross compiler, do configure newlib. | |
3682 | # Note however, that newlib will only be configured in this situation | |
3683 | # if the --with-newlib option has been given, because otherwise | |
3684 | # 'target-newlib' will appear in skipdirs. | |
3685 | ;; | |
3686 | i[3456789]86-*-rdos*) | |
3687 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3688 | ;; | |
3689 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3690 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3691 | ;; | |
3692 | sparc-*-sunos4*) | |
3693 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3694 | ;; | |
91dfef96 JM |
3695 | bpf-*-*) |
3696 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3697 | ;; | |
6a789d5e JM |
3698 | *-*-aix*) |
3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3700 | ;; | |
3701 | *-*-beos*) | |
3702 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3703 | ;; | |
671aa708 | 3704 | *-*-chorusos) |
0036370f | 3705 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3706 | ;; |
6a789d5e JM |
3707 | *-*-dragonfly*) |
3708 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3709 | ;; | |
3710 | *-*-freebsd*) | |
3711 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3712 | ;; | |
3713 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | *-*-lynxos*) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | *-*-mingw*) | |
3720 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3721 | ;; | |
3722 | *-*-netbsd*) | |
3723 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3724 | ;; | |
3725 | *-*-netware*) | |
3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3727 | ;; | |
3728 | *-*-tpf*) | |
3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3730 | ;; | |
3731 | *-*-uclinux*) | |
3732 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3733 | ;; | |
3734 | *-*-vxworks*) | |
3735 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3736 | ;; | |
3737 | esac | |
3738 | ||
3739 | case "${target}" in | |
3740 | *-*-chorusos) | |
3741 | ;; | |
3be96231 TG |
3742 | aarch64-*-darwin*) |
3743 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3744 | noconfigdirs="$noconfigdirs sim target-rda" | |
3745 | ;; | |
7431c1a1 AS |
3746 | amdgcn*-*-*) |
3747 | ;; | |
3be96231 TG |
3748 | arm-*-darwin*) |
3749 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3750 | noconfigdirs="$noconfigdirs sim target-rda" | |
3751 | ;; | |
75eeae1a | 3752 | powerpc-*-darwin*) |
e1514c3f | 3753 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3754 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3755 | ;; |
354ebf88 RW |
3756 | i[3456789]86-*-darwin*) |
3757 | noconfigdirs="$noconfigdirs ld gprof" | |
3758 | noconfigdirs="$noconfigdirs sim target-rda" | |
3759 | ;; | |
3760 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3761 | noconfigdirs="$noconfigdirs ld gas gprof" |
3762 | noconfigdirs="$noconfigdirs sim target-rda" | |
3763 | ;; | |
42c1cd8a AT |
3764 | *-*-darwin*) |
3765 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3766 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3767 | ;; |
8c6d158a | 3768 | *-*-dragonfly*) |
8c6d158a | 3769 | ;; |
c3f84f61 | 3770 | *-*-freebsd*) |
6de9cd9a | 3771 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
c0d0a722 | 3772 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3773 | && test -f /usr/local/include/gmp.h; then |
3774 | with_gmp=/usr/local | |
3775 | fi | |
6de9cd9a | 3776 | ;; |
ef4e7569 US |
3777 | *-*-kaos*) |
3778 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3779 | noconfigdirs="$noconfigdirs target-libgloss" |
3780 | ;; | |
671aa708 | 3781 | *-*-netbsd*) |
671aa708 | 3782 | ;; |
61fec9ff | 3783 | *-*-netware*) |
671aa708 | 3784 | ;; |
fd6487af JS |
3785 | *-*-phoenix*) |
3786 | noconfigdirs="$noconfigdirs target-libgloss" | |
3787 | ;; | |
671aa708 | 3788 | *-*-rtems*) |
2909494b | 3789 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3790 | ;; |
a8ba31f2 EC |
3791 | # The tpf target doesn't support gdb yet. |
3792 | *-*-tpf*) | |
6a789d5e | 3793 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3794 | ;; |
5785c0ed | 3795 | *-*-uclinux*) |
6a789d5e | 3796 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3797 | ;; |
671aa708 | 3798 | *-*-vxworks*) |
671aa708 NN |
3799 | ;; |
3800 | alpha*-dec-osf*) | |
3801 | # ld works, but does not support shared libraries. | |
671aa708 | 3802 | # gas doesn't generate exception information. |
6a789d5e | 3803 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3804 | ;; |
3805 | alpha*-*-*vms*) | |
2909494b | 3806 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3807 | ;; |
671aa708 NN |
3808 | alpha*-*-*) |
3809 | # newlib is not 64 bit ready | |
2909494b | 3810 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3811 | ;; |
91dfef96 JM |
3812 | bpf-*-*) |
3813 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3814 | ;; | |
671aa708 | 3815 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3816 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3817 | ;; |
2fd88f4f AK |
3818 | arc*-*-*) |
3819 | noconfigdirs="$noconfigdirs sim" | |
3820 | ;; | |
671aa708 | 3821 | arm-*-pe*) |
2909494b | 3822 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3823 | ;; |
671aa708 | 3824 | arm-*-riscix*) |
0036370f | 3825 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3826 | ;; |
b588ae30 GJL |
3827 | avr-*-*) |
3828 | if test x${with_avrlibc} != xno; then | |
3829 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3830 | fi | |
3831 | ;; | |
671aa708 | 3832 | c4x-*-* | tic4x-*-*) |
0036370f | 3833 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3834 | ;; |
0036370f JM |
3835 | tic54x-*-*) |
3836 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3837 | ;; |
671aa708 | 3838 | d10v-*-*) |
0036370f | 3839 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3840 | ;; |
3841 | d30v-*-*) | |
0036370f | 3842 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3843 | ;; |
3844 | fr30-*-elf*) | |
2909494b | 3845 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3846 | ;; |
a05c2c75 L |
3847 | ft32-*-*) |
3848 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3849 | ;; | |
55f2d967 | 3850 | moxie-*-*) |
a05c2c75 | 3851 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3852 | ;; |
671aa708 | 3853 | h8300*-*-*) |
2909494b | 3854 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3855 | ;; |
3856 | h8500-*-*) | |
0036370f | 3857 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3858 | ;; |
ee6a22df | 3859 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3860 | ;; |
a05c2c75 L |
3861 | hppa*64*-*-hpux*) |
3862 | noconfigdirs="$noconfigdirs gdb" | |
3863 | ;; | |
3864 | hppa*-*-hpux11*) | |
3865 | noconfigdirs="$noconfigdirs gdb ld" | |
3866 | ;; | |
4569f85e | 3867 | hppa*64*-*-linux*) |
671aa708 | 3868 | ;; |
56f8587a | 3869 | hppa*-*-linux*) |
3e732ba0 | 3870 | ;; |
671aa708 | 3871 | hppa*-*-*elf* | \ |
671aa708 NN |
3872 | hppa*-*-lites* | \ |
3873 | hppa*-*-openbsd* | \ | |
3874 | hppa*64*-*-*) | |
671aa708 | 3875 | ;; |
c03353e2 | 3876 | hppa*-*-pro*) |
c03353e2 | 3877 | ;; |
671aa708 | 3878 | hppa*-*-*) |
2909494b | 3879 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3880 | ;; |
fb87ad5d | 3881 | i960-*-*) |
0036370f | 3882 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3883 | ;; |
671aa708 NN |
3884 | ia64*-*-elf*) |
3885 | # No gdb support yet. | |
1bcce263 | 3886 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3887 | ;; |
3888 | ia64*-**-hpux*) | |
5a2931d1 | 3889 | # No ld support yet. |
a05c2c75 | 3890 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3891 | ;; |
52535a64 | 3892 | ia64*-*-*vms*) |
091fe9ca TG |
3893 | # No ld support yet. |
3894 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3895 | ;; |
ef4c4300 | 3896 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3897 | ;; |
3898 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3899 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3900 | ;; |
671aa708 NN |
3901 | *-*-cygwin*) |
3902 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3903 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3904 | # always build newlib if winsup directory is present. |
b91f0a41 | 3905 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3906 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3907 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3908 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3909 | fi |
1c710c3c | 3910 | ;; |
f2a0e225 | 3911 | i[3456789]86-*-pe) |
ebb9f8b0 | 3912 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3913 | ;; |
f2a0e225 | 3914 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3915 | # The linker does not yet know about weak symbols in COFF, |
3916 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3917 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3918 | ;; |
f2a0e225 | 3919 | i[3456789]86-*-sco*) |
0036370f | 3920 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3921 | ;; |
fbdd5d87 | 3922 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3923 | noconfigdirs="$noconfigdirs target-libgloss" |
3924 | ;; | |
f2a0e225 | 3925 | i[3456789]86-*-sysv4*) |
0036370f | 3926 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3927 | ;; |
f2a0e225 | 3928 | i[3456789]86-*-beos*) |
6a789d5e | 3929 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3930 | ;; |
d1f8db0c | 3931 | i[3456789]86-*-rdos*) |
6a789d5e | 3932 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3933 | ;; |
671aa708 | 3934 | mmix-*-*) |
2909494b | 3935 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3936 | ;; |
ab34901f | 3937 | mt-*-*) |
79dd769c AH |
3938 | noconfigdirs="$noconfigdirs sim" |
3939 | ;; | |
58b40a67 FT |
3940 | nfp-*-*) |
3941 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3942 | noconfigdirs="$noconfigdirs $target_libraries" | |
3943 | ;; | |
e6cbe965 SC |
3944 | pdp11-*-*) |
3945 | noconfigdirs="$noconfigdirs gdb gprof" | |
3946 | ;; | |
671aa708 NN |
3947 | powerpc-*-aix*) |
3948 | # copied from rs6000-*-* entry | |
6a789d5e | 3949 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3950 | ;; |
4569f85e | 3951 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3952 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3953 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3954 | # always build newlib. |
3955 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3956 | ;; | |
3957 | # This is temporary until we can link against shared libraries | |
3958 | powerpcle-*-solaris*) | |
0036370f | 3959 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3960 | ;; |
3961 | powerpc-*-beos*) | |
6a789d5e | 3962 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3963 | ;; |
671aa708 | 3964 | rs6000-*-lynxos*) |
6a789d5e | 3965 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3966 | ;; |
3967 | rs6000-*-aix*) | |
6a789d5e | 3968 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3969 | ;; |
3970 | rs6000-*-*) | |
2909494b | 3971 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3972 | ;; |
3973 | m68k-apollo-*) | |
0036370f | 3974 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3975 | ;; |
ca9fe997 | 3976 | microblaze*) |
2909494b | 3977 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3978 | ;; |
d896cc4d | 3979 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3980 | if test x$with_newlib = xyes; then |
3981 | noconfigdirs="$noconfigdirs gprof" | |
3982 | fi | |
d9dced13 | 3983 | ;; |
671aa708 | 3984 | mips*-*-irix5*) |
0036370f | 3985 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3986 | ;; |
3987 | mips*-*-irix6*) | |
2909494b | 3988 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3989 | ;; |
671aa708 | 3990 | mips*-*-bsd*) |
bc98bcc4 | 3991 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3992 | ;; |
671aa708 | 3993 | mips*-*-linux*) |
671aa708 | 3994 | ;; |
bc98bcc4 JBG |
3995 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3996 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3997 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3998 | ;; | |
671aa708 | 3999 | mips*-*-*) |
2909494b | 4000 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 4001 | ;; |
738f2522 | 4002 | nvptx*-*-*) |
738f2522 BS |
4003 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4004 | ;; | |
bc6d9014 | 4005 | sh-*-*) |
ea2002ba CB |
4006 | case "${target}" in |
4007 | sh*-*-elf) | |
2909494b | 4008 | ;; |
ea2002ba | 4009 | *) |
2909494b | 4010 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4011 | esac |
671aa708 | 4012 | ;; |
671aa708 | 4013 | sparc-*-sunos4*) |
6a789d5e | 4014 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4015 | use_gnu_ld=no |
4016 | fi | |
4017 | ;; | |
b42f0d7e | 4018 | tic6x-*-*) |
0d557ff8 | 4019 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4020 | ;; |
341c653c | 4021 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4022 | noconfigdirs="$noconfigdirs sim" |
4023 | ;; | |
671aa708 | 4024 | v810-*-*) |
0036370f | 4025 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4026 | ;; |
4027 | vax-*-*) | |
2909494b | 4028 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4029 | ;; |
1fc1d82e MR |
4030 | wasm32-*-*) |
4031 | noconfigdirs="$noconfigdirs ld" | |
4032 | ;; | |
671aa708 | 4033 | esac |
79c06341 | 4034 | |
671aa708 NN |
4035 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4036 | # depends upon some newlib header files. | |
4037 | case "${noconfigdirs}" in | |
4038 | *target-libgloss*) ;; | |
4039 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4040 | esac | |
4041 | ||
671aa708 | 4042 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4043 | host_makefile_frag=/dev/null |
4044 | if test -d ${srcdir}/config ; then | |
4045 | case "${host}" in | |
f2a0e225 | 4046 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4047 | host_makefile_frag="config/mh-djgpp" |
4048 | ;; | |
4049 | *-cygwin*) | |
2a79c47f | 4050 | |
5213506e RW |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4052 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4053 | echo a >cygwin-cat-check |
e25a8c82 | 4054 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4055 | rm cygwin-cat-check |
5213506e RW |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4057 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4058 | else |
4059 | rm cygwin-cat-check | |
5213506e RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4061 | $as_echo "no" >&6; } | |
22e05272 | 4062 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4063 | Please either mount the build directory in binary mode or run the following |
4064 | commands before running any configure script: | |
4065 | set -o igncr | |
4066 | export SHELLOPTS | |
5213506e | 4067 | " "$LINENO" 5 |
2a79c47f NC |
4068 | fi |
4069 | ||
671aa708 NN |
4070 | host_makefile_frag="config/mh-cygwin" |
4071 | ;; | |
c53a18d3 | 4072 | *-mingw*) |
1f5a6b84 | 4073 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4074 | ;; |
cabb9d59 | 4075 | alpha*-linux*) |
13be44ed UB |
4076 | host_makefile_frag="config/mh-alpha-linux" |
4077 | ;; | |
efd41714 | 4078 | hppa*-hp-hpux10*) |
efd41714 | 4079 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4080 | ;; |
111eeb6e | 4081 | hppa*-hp-hpux*) |
efd41714 PB |
4082 | host_makefile_frag="config/mh-pa" |
4083 | ;; | |
4084 | hppa*-*) | |
4085 | host_makefile_frag="config/mh-pa" | |
4086 | ;; | |
d7440517 | 4087 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4088 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4089 | ;; |
d19bca38 PB |
4090 | powerpc-*-aix*) |
4091 | host_makefile_frag="config/mh-ppc-aix" | |
4092 | ;; | |
4093 | rs6000-*-aix*) | |
4094 | host_makefile_frag="config/mh-ppc-aix" | |
4095 | ;; | |
671aa708 NN |
4096 | esac |
4097 | fi | |
4098 | ||
55ffb5ed | 4099 | if test "${build}" != "${host}" ; then |
0999159b PB |
4100 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4101 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4102 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4103 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
10abab41 | 4104 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4105 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4106 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4107 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4108 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4109 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4110 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4111 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4112 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4113 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4114 | else | |
4115 | AR_FOR_BUILD="\$(AR)" | |
4116 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4117 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4118 | CXX_FOR_BUILD="\$(CXX)" |
10abab41 | 4119 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4120 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4121 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4122 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4123 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4124 | LD_FOR_BUILD="\$(LD)" | |
4125 | NM_FOR_BUILD="\$(NM)" | |
4126 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4127 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4128 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4129 | fi |
4130 | ||
4131 | ac_ext=c | |
1c710c3c DJ |
4132 | ac_cpp='$CPP $CPPFLAGS' |
4133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4136 | if test -n "$ac_tool_prefix"; then | |
4137 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4138 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4140 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4141 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4142 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4143 | else |
4144 | if test -n "$CC"; then | |
4145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4146 | else | |
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4148 | for as_dir in $PATH | |
4149 | do | |
4150 | IFS=$as_save_IFS | |
4151 | test -z "$as_dir" && as_dir=. | |
5213506e | 4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4154 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4156 | break 2 |
4157 | fi | |
4158 | done | |
5213506e RW |
4159 | done |
4160 | IFS=$as_save_IFS | |
1c710c3c DJ |
4161 | |
4162 | fi | |
4163 | fi | |
4164 | CC=$ac_cv_prog_CC | |
4165 | if test -n "$CC"; then | |
5213506e RW |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4167 | $as_echo "$CC" >&6; } | |
1c710c3c | 4168 | else |
5213506e RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4170 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4171 | fi |
4172 | ||
5213506e | 4173 | |
1c710c3c DJ |
4174 | fi |
4175 | if test -z "$ac_cv_prog_CC"; then | |
4176 | ac_ct_CC=$CC | |
fb0103e5 RG |
4177 | # Extract the first word of "gcc", so it can be a program name with args. |
4178 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4180 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4181 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4182 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4183 | else |
4184 | if test -n "$ac_ct_CC"; then | |
4185 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4186 | else | |
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4188 | for as_dir in $PATH | |
4189 | do | |
4190 | IFS=$as_save_IFS | |
4191 | test -z "$as_dir" && as_dir=. | |
5213506e | 4192 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4194 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4196 | break 2 |
4197 | fi | |
4198 | done | |
5213506e RW |
4199 | done |
4200 | IFS=$as_save_IFS | |
1c710c3c DJ |
4201 | |
4202 | fi | |
4203 | fi | |
4204 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4205 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4207 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4208 | else |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4210 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4211 | fi |
4212 | ||
5213506e RW |
4213 | if test "x$ac_ct_CC" = x; then |
4214 | CC="" | |
4215 | else | |
4216 | case $cross_compiling:$ac_tool_warned in | |
4217 | yes:) | |
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4219 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4220 | ac_tool_warned=yes ;; | |
4221 | esac | |
4222 | CC=$ac_ct_CC | |
4223 | fi | |
1c710c3c DJ |
4224 | else |
4225 | CC="$ac_cv_prog_CC" | |
4226 | fi | |
4227 | ||
4228 | if test -z "$CC"; then | |
5213506e RW |
4229 | if test -n "$ac_tool_prefix"; then |
4230 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4231 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4233 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4234 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4235 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4236 | else |
4237 | if test -n "$CC"; then | |
4238 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4239 | else | |
1c710c3c DJ |
4240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4241 | for as_dir in $PATH | |
4242 | do | |
4243 | IFS=$as_save_IFS | |
4244 | test -z "$as_dir" && as_dir=. | |
5213506e | 4245 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4247 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4249 | break 2 |
4250 | fi | |
4251 | done | |
5213506e RW |
4252 | done |
4253 | IFS=$as_save_IFS | |
1c710c3c | 4254 | |
0b0dc272 | 4255 | fi |
0b0dc272 | 4256 | fi |
1c710c3c | 4257 | CC=$ac_cv_prog_CC |
af71363e | 4258 | if test -n "$CC"; then |
5213506e RW |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4260 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4261 | else |
5213506e RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4263 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4264 | fi |
4265 | ||
2aeb72e9 | 4266 | |
5213506e | 4267 | fi |
1c710c3c | 4268 | fi |
55ffb5ed NN |
4269 | if test -z "$CC"; then |
4270 | # Extract the first word of "cc", so it can be a program name with args. | |
4271 | set dummy cc; ac_word=$2 | |
5213506e RW |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4273 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4274 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4275 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4276 | else |
4277 | if test -n "$CC"; then | |
4278 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4279 | else | |
0b0dc272 | 4280 | ac_prog_rejected=no |
1c710c3c DJ |
4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4282 | for as_dir in $PATH | |
4283 | do | |
4284 | IFS=$as_save_IFS | |
4285 | test -z "$as_dir" && as_dir=. | |
5213506e | 4286 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4288 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4289 | ac_prog_rejected=yes | |
4290 | continue | |
4291 | fi | |
4292 | ac_cv_prog_CC="cc" | |
5213506e | 4293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4294 | break 2 |
4295 | fi | |
4296 | done | |
5213506e RW |
4297 | done |
4298 | IFS=$as_save_IFS | |
1c710c3c | 4299 | |
55ffb5ed NN |
4300 | if test $ac_prog_rejected = yes; then |
4301 | # We found a bogon in the path, so make sure we never use it. | |
4302 | set dummy $ac_cv_prog_CC | |
4303 | shift | |
1c710c3c | 4304 | if test $# != 0; then |
55ffb5ed NN |
4305 | # We chose a different compiler from the bogus one. |
4306 | # However, it has the same basename, so the bogon will be chosen | |
4307 | # first if we set CC to just the basename; use the full file name. | |
4308 | shift | |
1c710c3c | 4309 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4310 | fi |
4311 | fi | |
4312 | fi | |
4313 | fi | |
1c710c3c | 4314 | CC=$ac_cv_prog_CC |
55ffb5ed | 4315 | if test -n "$CC"; then |
5213506e RW |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4317 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4318 | else |
5213506e RW |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4320 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4321 | fi |
4322 | ||
5213506e | 4323 | |
1c710c3c DJ |
4324 | fi |
4325 | if test -z "$CC"; then | |
4326 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4327 | for ac_prog in cl.exe |
1c710c3c DJ |
4328 | do |
4329 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4330 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4332 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4333 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4334 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4335 | else |
4336 | if test -n "$CC"; then | |
4337 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4338 | else | |
1c710c3c DJ |
4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4340 | for as_dir in $PATH | |
4341 | do | |
4342 | IFS=$as_save_IFS | |
4343 | test -z "$as_dir" && as_dir=. | |
5213506e | 4344 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4346 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4348 | break 2 |
4349 | fi | |
4350 | done | |
5213506e RW |
4351 | done |
4352 | IFS=$as_save_IFS | |
1c710c3c | 4353 | |
55ffb5ed NN |
4354 | fi |
4355 | fi | |
1c710c3c | 4356 | CC=$ac_cv_prog_CC |
55ffb5ed | 4357 | if test -n "$CC"; then |
5213506e RW |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4359 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4360 | else |
5213506e RW |
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4362 | $as_echo "no" >&6; } | |
fb0103e5 | 4363 | fi |
af71363e | 4364 | |
5213506e | 4365 | |
1c710c3c DJ |
4366 | test -n "$CC" && break |
4367 | done | |
af71363e | 4368 | fi |
1c710c3c DJ |
4369 | if test -z "$CC"; then |
4370 | ac_ct_CC=$CC | |
5213506e | 4371 | for ac_prog in cl.exe |
1c710c3c DJ |
4372 | do |
4373 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4374 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4376 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4377 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4378 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4379 | else |
1c710c3c DJ |
4380 | if test -n "$ac_ct_CC"; then |
4381 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4382 | else |
1c710c3c DJ |
4383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4384 | for as_dir in $PATH | |
4385 | do | |
4386 | IFS=$as_save_IFS | |
4387 | test -z "$as_dir" && as_dir=. | |
5213506e | 4388 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4390 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4392 | break 2 |
4393 | fi | |
4394 | done | |
5213506e RW |
4395 | done |
4396 | IFS=$as_save_IFS | |
1c710c3c | 4397 | |
af71363e AS |
4398 | fi |
4399 | fi | |
1c710c3c DJ |
4400 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4401 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4403 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4404 | else |
5213506e RW |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4406 | $as_echo "no" >&6; } | |
af71363e | 4407 | fi |
0b0dc272 | 4408 | |
5213506e | 4409 | |
1c710c3c DJ |
4410 | test -n "$ac_ct_CC" && break |
4411 | done | |
4412 | ||
5213506e RW |
4413 | if test "x$ac_ct_CC" = x; then |
4414 | CC="" | |
4415 | else | |
4416 | case $cross_compiling:$ac_tool_warned in | |
4417 | yes:) | |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4419 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4420 | ac_tool_warned=yes ;; | |
4421 | esac | |
4422 | CC=$ac_ct_CC | |
4423 | fi | |
1c710c3c DJ |
4424 | fi |
4425 | ||
4426 | fi | |
4427 | ||
4428 | ||
5213506e RW |
4429 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4431 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4432 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4433 | |
4434 | # Provide some information about the compiler. | |
5213506e RW |
4435 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4436 | set X $ac_compile | |
4437 | ac_compiler=$2 | |
4438 | for ac_option in --version -v -V -qversion; do | |
4439 | { { ac_try="$ac_compiler $ac_option >&5" | |
4440 | case "(($ac_try" in | |
4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4442 | *) ac_try_echo=$ac_try;; | |
4443 | esac | |
4444 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4445 | $as_echo "$ac_try_echo"; } >&5 | |
4446 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4447 | ac_status=$? |
5213506e RW |
4448 | if test -s conftest.err; then |
4449 | sed '10a\ | |
4450 | ... rest of stderr output deleted ... | |
4451 | 10q' conftest.err >conftest.er1 | |
4452 | cat conftest.er1 >&5 | |
5213506e | 4453 | fi |
22e05272 | 4454 | rm -f conftest.er1 conftest.err |
5213506e RW |
4455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4456 | test $ac_status = 0; } | |
4457 | done | |
1c710c3c | 4458 | |
5213506e | 4459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4460 | /* end confdefs.h. */ |
4461 | ||
4462 | int | |
4463 | main () | |
4464 | { | |
4465 | ||
4466 | ; | |
4467 | return 0; | |
4468 | } | |
4469 | _ACEOF | |
4470 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4471 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4472 | # Try to create an executable without -o first, disregard a.out. |
4473 | # It will help us diagnose broken compilers, and finding out an intuition | |
4474 | # of exeext. | |
22e05272 JM |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4476 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4477 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4478 | ||
4479 | # The possible output files: | |
4480 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4481 | ||
4482 | ac_rmfiles= | |
4483 | for ac_file in $ac_files | |
4484 | do | |
4485 | case $ac_file in | |
4486 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4487 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4488 | esac | |
4489 | done | |
4490 | rm -f $ac_rmfiles | |
4491 | ||
4492 | if { { ac_try="$ac_link_default" | |
4493 | case "(($ac_try" in | |
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4495 | *) ac_try_echo=$ac_try;; | |
4496 | esac | |
4497 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4498 | $as_echo "$ac_try_echo"; } >&5 | |
4499 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4500 | ac_status=$? |
5213506e RW |
4501 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4502 | test $ac_status = 0; }; then : | |
4503 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4504 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4505 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4506 | # so that the user can short-circuit this test for compilers unknown to | |
4507 | # Autoconf. | |
4508 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4509 | do |
4510 | test -f "$ac_file" || continue | |
4511 | case $ac_file in | |
5213506e | 4512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4513 | ;; |
4514 | [ab].out ) | |
4515 | # We found the default executable, but exeext='' is most | |
4516 | # certainly right. | |
4517 | break;; | |
4518 | *.* ) | |
5213506e RW |
4519 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4520 | then :; else | |
4521 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4522 | fi | |
4523 | # We set ac_cv_exeext here because the later test for it is not | |
4524 | # safe: cross compilers may not add the suffix if given an `-o' | |
4525 | # argument, so we may need to know it at that point already. | |
4526 | # Even if this section looks crufty: it has the advantage of | |
4527 | # actually working. | |
1c710c3c DJ |
4528 | break;; |
4529 | * ) | |
4530 | break;; | |
4531 | esac | |
4532 | done | |
5213506e RW |
4533 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4534 | ||
1c710c3c | 4535 | else |
5213506e RW |
4536 | ac_file='' |
4537 | fi | |
5213506e | 4538 | if test -z "$ac_file"; then : |
22e05272 JM |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4540 | $as_echo "no" >&6; } | |
4541 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4542 | sed 's/^/| /' conftest.$ac_ext >&5 |
4543 | ||
5213506e RW |
4544 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4546 | as_fn_error 77 "C compiler cannot create executables |
4547 | See \`config.log' for more details" "$LINENO" 5; } | |
4548 | else | |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4550 | $as_echo "yes" >&6; } | |
1c710c3c | 4551 | fi |
22e05272 JM |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4553 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4555 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4556 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4557 | |
22e05272 | 4558 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4559 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4561 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4562 | if { { ac_try="$ac_link" | |
4563 | case "(($ac_try" in | |
4564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4565 | *) ac_try_echo=$ac_try;; | |
4566 | esac | |
4567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4568 | $as_echo "$ac_try_echo"; } >&5 | |
4569 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4570 | ac_status=$? |
5213506e RW |
4571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4572 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4573 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4574 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4575 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4576 | # `rm'. | |
4577 | for ac_file in conftest.exe conftest conftest.*; do | |
4578 | test -f "$ac_file" || continue | |
4579 | case $ac_file in | |
5213506e | 4580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4581 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4582 | break;; |
4583 | * ) break;; | |
4584 | esac | |
4585 | done | |
af71363e | 4586 | else |
5213506e RW |
4587 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4589 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4590 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4591 | fi |
22e05272 | 4592 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4594 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4595 | |
4596 | rm -f conftest.$ac_ext | |
4597 | EXEEXT=$ac_cv_exeext | |
4598 | ac_exeext=$EXEEXT | |
22e05272 JM |
4599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4600 | /* end confdefs.h. */ | |
4601 | #include <stdio.h> | |
4602 | int | |
4603 | main () | |
4604 | { | |
4605 | FILE *f = fopen ("conftest.out", "w"); | |
4606 | return ferror (f) || fclose (f) != 0; | |
4607 | ||
4608 | ; | |
4609 | return 0; | |
4610 | } | |
4611 | _ACEOF | |
4612 | ac_clean_files="$ac_clean_files conftest.out" | |
4613 | # Check that the compiler produces executables we can run. If not, either | |
4614 | # the compiler is broken, or we cross compile. | |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4616 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4617 | if test "$cross_compiling" != yes; then | |
4618 | { { ac_try="$ac_link" | |
4619 | case "(($ac_try" in | |
4620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4621 | *) ac_try_echo=$ac_try;; | |
4622 | esac | |
4623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4624 | $as_echo "$ac_try_echo"; } >&5 | |
4625 | (eval "$ac_link") 2>&5 | |
4626 | ac_status=$? | |
4627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4628 | test $ac_status = 0; } | |
4629 | if { ac_try='./conftest$ac_cv_exeext' | |
4630 | { { case "(($ac_try" in | |
4631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4632 | *) ac_try_echo=$ac_try;; | |
4633 | esac | |
4634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4635 | $as_echo "$ac_try_echo"; } >&5 | |
4636 | (eval "$ac_try") 2>&5 | |
4637 | ac_status=$? | |
4638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4639 | test $ac_status = 0; }; }; then | |
4640 | cross_compiling=no | |
4641 | else | |
4642 | if test "$cross_compiling" = maybe; then | |
4643 | cross_compiling=yes | |
4644 | else | |
4645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4647 | as_fn_error $? "cannot run C compiled programs. | |
4648 | If you meant to cross compile, use \`--host'. | |
4649 | See \`config.log' for more details" "$LINENO" 5; } | |
4650 | fi | |
4651 | fi | |
4652 | fi | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4654 | $as_echo "$cross_compiling" >&6; } | |
4655 | ||
4656 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4657 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4659 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4660 | if ${ac_cv_objext+:} false; then : |
5213506e | 4661 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4662 | else |
5213506e | 4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4664 | /* end confdefs.h. */ |
4665 | ||
4666 | int | |
4667 | main () | |
4668 | { | |
4669 | ||
4670 | ; | |
4671 | return 0; | |
4672 | } | |
4673 | _ACEOF | |
4674 | rm -f conftest.o conftest.obj | |
5213506e RW |
4675 | if { { ac_try="$ac_compile" |
4676 | case "(($ac_try" in | |
4677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4678 | *) ac_try_echo=$ac_try;; | |
4679 | esac | |
4680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4681 | $as_echo "$ac_try_echo"; } >&5 | |
4682 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4683 | ac_status=$? |
5213506e RW |
4684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4685 | test $ac_status = 0; }; then : | |
4686 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4687 | test -f "$ac_file" || continue; | |
1c710c3c | 4688 | case $ac_file in |
5213506e | 4689 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4690 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4691 | break;; | |
4692 | esac | |
4693 | done | |
4694 | else | |
5213506e | 4695 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4696 | sed 's/^/| /' conftest.$ac_ext >&5 |
4697 | ||
5213506e RW |
4698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4700 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4701 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4702 | fi |
1c710c3c DJ |
4703 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4704 | fi | |
5213506e RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4706 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4707 | OBJEXT=$ac_cv_objext |
4708 | ac_objext=$OBJEXT | |
5213506e RW |
4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4710 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4711 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4712 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4713 | else |
5213506e | 4714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4715 | /* end confdefs.h. */ |
4716 | ||
4717 | int | |
4718 | main () | |
4719 | { | |
4720 | #ifndef __GNUC__ | |
4721 | choke me | |
4722 | #endif | |
4723 | ||
4724 | ; | |
4725 | return 0; | |
4726 | } | |
4727 | _ACEOF | |
5213506e | 4728 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4729 | ac_compiler_gnu=yes |
4730 | else | |
5213506e | 4731 | ac_compiler_gnu=no |
1c710c3c | 4732 | fi |
5213506e | 4733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4734 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4735 | ||
4736 | fi | |
5213506e RW |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4738 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4739 | if test $ac_compiler_gnu = yes; then | |
4740 | GCC=yes | |
4741 | else | |
4742 | GCC= | |
4743 | fi | |
1c710c3c DJ |
4744 | ac_test_CFLAGS=${CFLAGS+set} |
4745 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4747 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4748 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4749 | $as_echo_n "(cached) " >&6 |
4750 | else | |
4751 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4752 | ac_c_werror_flag=yes | |
4753 | ac_cv_prog_cc_g=no | |
4754 | CFLAGS="-g" | |
4755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4756 | /* end confdefs.h. */ |
4757 | ||
4758 | int | |
4759 | main () | |
4760 | { | |
4761 | ||
4762 | ; | |
4763 | return 0; | |
4764 | } | |
4765 | _ACEOF | |
5213506e | 4766 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4767 | ac_cv_prog_cc_g=yes |
4768 | else | |
5213506e RW |
4769 | CFLAGS="" |
4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4771 | /* end confdefs.h. */ | |
4772 | ||
4773 | int | |
4774 | main () | |
4775 | { | |
4776 | ||
4777 | ; | |
4778 | return 0; | |
4779 | } | |
4780 | _ACEOF | |
4781 | if ac_fn_c_try_compile "$LINENO"; then : | |
4782 | ||
4783 | else | |
4784 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4785 | CFLAGS="-g" | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4787 | /* end confdefs.h. */ | |
af71363e | 4788 | |
5213506e RW |
4789 | int |
4790 | main () | |
4791 | { | |
4792 | ||
4793 | ; | |
4794 | return 0; | |
4795 | } | |
4796 | _ACEOF | |
4797 | if ac_fn_c_try_compile "$LINENO"; then : | |
4798 | ac_cv_prog_cc_g=yes | |
4799 | fi | |
4800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4801 | fi |
5213506e | 4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4803 | fi |
5213506e RW |
4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4805 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4806 | fi | |
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4808 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4809 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4810 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4811 | elif test $ac_cv_prog_cc_g = yes; then |
4812 | if test "$GCC" = yes; then | |
4813 | CFLAGS="-g -O2" | |
4814 | else | |
4815 | CFLAGS="-g" | |
4816 | fi | |
4817 | else | |
4818 | if test "$GCC" = yes; then | |
4819 | CFLAGS="-O2" | |
4820 | else | |
4821 | CFLAGS= | |
4822 | fi | |
4823 | fi | |
5213506e RW |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4825 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4826 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4827 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4828 | else |
5213506e | 4829 | ac_cv_prog_cc_c89=no |
1c710c3c | 4830 | ac_save_CC=$CC |
5213506e | 4831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4832 | /* end confdefs.h. */ |
4833 | #include <stdarg.h> | |
4834 | #include <stdio.h> | |
22e05272 | 4835 | struct stat; |
1c710c3c DJ |
4836 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4837 | struct buf { int x; }; | |
4838 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4839 | static char *e (p, i) | |
4840 | char **p; | |
4841 | int i; | |
4842 | { | |
4843 | return p[i]; | |
4844 | } | |
4845 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4846 | { | |
4847 | char *s; | |
4848 | va_list v; | |
4849 | va_start (v,p); | |
4850 | s = g (p, va_arg (v,int)); | |
4851 | va_end (v); | |
4852 | return s; | |
4853 | } | |
4854 | ||
4855 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4856 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4857 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4858 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4859 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4860 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4861 | that's true only with -std. */ |
1c710c3c DJ |
4862 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4863 | ||
5213506e RW |
4864 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4865 | inside strings and character constants. */ | |
4866 | #define FOO(x) 'x' | |
4867 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4868 | ||
1c710c3c DJ |
4869 | int test (int i, double x); |
4870 | struct s1 {int (*f) (int a);}; | |
4871 | struct s2 {int (*f) (double a);}; | |
4872 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4873 | int argc; | |
4874 | char **argv; | |
4875 | int | |
4876 | main () | |
4877 | { | |
4878 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4879 | ; | |
4880 | return 0; | |
4881 | } | |
4882 | _ACEOF | |
5213506e RW |
4883 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4884 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4885 | do |
4886 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4887 | if ac_fn_c_try_compile "$LINENO"; then : |
4888 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4889 | fi |
5213506e RW |
4890 | rm -f core conftest.err conftest.$ac_objext |
4891 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4892 | done |
5213506e | 4893 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4894 | CC=$ac_save_CC |
4895 | ||
4896 | fi | |
5213506e RW |
4897 | # AC_CACHE_VAL |
4898 | case "x$ac_cv_prog_cc_c89" in | |
4899 | x) | |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4901 | $as_echo "none needed" >&6; } ;; | |
4902 | xno) | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4904 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4905 | *) |
5213506e RW |
4906 | CC="$CC $ac_cv_prog_cc_c89" |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4908 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4909 | esac |
5213506e | 4910 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4911 | |
2aeb72e9 DD |
4912 | fi |
4913 | ||
2aeb72e9 DD |
4914 | ac_ext=c |
4915 | ac_cpp='$CPP $CPPFLAGS' | |
4916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4919 | ||
5213506e | 4920 | ac_ext=cpp |
2aeb72e9 DD |
4921 | ac_cpp='$CXXCPP $CPPFLAGS' |
4922 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4923 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4924 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4925 | if test -z "$CXX"; then |
4926 | if test -n "$CCC"; then | |
4927 | CXX=$CCC | |
4928 | else | |
4929 | if test -n "$ac_tool_prefix"; then | |
4930 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4931 | do |
4932 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4933 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4935 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4936 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 4937 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
4938 | else |
4939 | if test -n "$CXX"; then | |
4940 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4941 | else | |
4942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4943 | for as_dir in $PATH | |
4944 | do | |
4945 | IFS=$as_save_IFS | |
4946 | test -z "$as_dir" && as_dir=. | |
5213506e | 4947 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 4949 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4951 | break 2 |
4952 | fi | |
4953 | done | |
5213506e RW |
4954 | done |
4955 | IFS=$as_save_IFS | |
55ffb5ed | 4956 | |
c3a86da9 DJ |
4957 | fi |
4958 | fi | |
4959 | CXX=$ac_cv_prog_CXX | |
4960 | if test -n "$CXX"; then | |
5213506e RW |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4962 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4963 | else |
5213506e RW |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4965 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4966 | fi |
4967 | ||
5213506e | 4968 | |
c3a86da9 DJ |
4969 | test -n "$CXX" && break |
4970 | done | |
4971 | fi | |
4972 | if test -z "$CXX"; then | |
4973 | ac_ct_CXX=$CXX | |
5213506e | 4974 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4975 | do |
4976 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4977 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4979 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4980 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 4981 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
4982 | else |
4983 | if test -n "$ac_ct_CXX"; then | |
4984 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4985 | else | |
4986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4987 | for as_dir in $PATH | |
4988 | do | |
4989 | IFS=$as_save_IFS | |
4990 | test -z "$as_dir" && as_dir=. | |
5213506e | 4991 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 4993 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4995 | break 2 |
4996 | fi | |
4997 | done | |
5213506e RW |
4998 | done |
4999 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5000 | |
5001 | fi | |
5002 | fi | |
5003 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5004 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5006 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5007 | else |
5213506e RW |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5009 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5010 | fi |
5011 | ||
5213506e | 5012 | |
c3a86da9 DJ |
5013 | test -n "$ac_ct_CXX" && break |
5014 | done | |
c3a86da9 | 5015 | |
5213506e RW |
5016 | if test "x$ac_ct_CXX" = x; then |
5017 | CXX="g++" | |
5018 | else | |
5019 | case $cross_compiling:$ac_tool_warned in | |
5020 | yes:) | |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5022 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5023 | ac_tool_warned=yes ;; | |
5024 | esac | |
5025 | CXX=$ac_ct_CXX | |
5026 | fi | |
c3a86da9 DJ |
5027 | fi |
5028 | ||
5213506e RW |
5029 | fi |
5030 | fi | |
c3a86da9 | 5031 | # Provide some information about the compiler. |
5213506e RW |
5032 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5033 | set X $ac_compile | |
5034 | ac_compiler=$2 | |
5035 | for ac_option in --version -v -V -qversion; do | |
5036 | { { ac_try="$ac_compiler $ac_option >&5" | |
5037 | case "(($ac_try" in | |
5038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5039 | *) ac_try_echo=$ac_try;; | |
5040 | esac | |
5041 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5042 | $as_echo "$ac_try_echo"; } >&5 | |
5043 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5044 | ac_status=$? |
5213506e RW |
5045 | if test -s conftest.err; then |
5046 | sed '10a\ | |
5047 | ... rest of stderr output deleted ... | |
5048 | 10q' conftest.err >conftest.er1 | |
5049 | cat conftest.er1 >&5 | |
5213506e | 5050 | fi |
22e05272 | 5051 | rm -f conftest.er1 conftest.err |
5213506e RW |
5052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5053 | test $ac_status = 0; } | |
5054 | done | |
c3a86da9 | 5055 | |
5213506e RW |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5057 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5058 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5059 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5060 | else |
5213506e | 5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5062 | /* end confdefs.h. */ |
5063 | ||
5064 | int | |
5065 | main () | |
5066 | { | |
5067 | #ifndef __GNUC__ | |
5068 | choke me | |
5069 | #endif | |
5070 | ||
5071 | ; | |
5072 | return 0; | |
5073 | } | |
5074 | _ACEOF | |
5213506e | 5075 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5076 | ac_compiler_gnu=yes |
5077 | else | |
5213506e | 5078 | ac_compiler_gnu=no |
c3a86da9 | 5079 | fi |
5213506e | 5080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5081 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5082 | ||
5083 | fi | |
5213506e RW |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5085 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5086 | if test $ac_compiler_gnu = yes; then | |
5087 | GXX=yes | |
5088 | else | |
5089 | GXX= | |
5090 | fi | |
c3a86da9 DJ |
5091 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5092 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5094 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5095 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5096 | $as_echo_n "(cached) " >&6 |
5097 | else | |
5098 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5099 | ac_cxx_werror_flag=yes | |
5100 | ac_cv_prog_cxx_g=no | |
5101 | CXXFLAGS="-g" | |
5102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5103 | /* end confdefs.h. */ |
5104 | ||
5105 | int | |
5106 | main () | |
5107 | { | |
5108 | ||
5109 | ; | |
5110 | return 0; | |
5111 | } | |
5112 | _ACEOF | |
5213506e | 5113 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5114 | ac_cv_prog_cxx_g=yes |
5115 | else | |
5213506e RW |
5116 | CXXFLAGS="" |
5117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5118 | /* end confdefs.h. */ |
5213506e | 5119 | |
c3a86da9 DJ |
5120 | int |
5121 | main () | |
5122 | { | |
5213506e | 5123 | |
c3a86da9 DJ |
5124 | ; |
5125 | return 0; | |
5126 | } | |
5127 | _ACEOF | |
5213506e | 5128 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5129 | |
5213506e RW |
5130 | else |
5131 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5132 | CXXFLAGS="-g" | |
5133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5134 | /* end confdefs.h. */ |
5213506e | 5135 | |
c3a86da9 DJ |
5136 | int |
5137 | main () | |
5138 | { | |
5213506e | 5139 | |
c3a86da9 DJ |
5140 | ; |
5141 | return 0; | |
5142 | } | |
5143 | _ACEOF | |
5213506e RW |
5144 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5145 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5146 | fi |
5213506e RW |
5147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5148 | fi | |
5149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5150 | fi | |
5151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5152 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5153 | fi | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5155 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5156 | if test "$ac_test_CXXFLAGS" = set; then | |
5157 | CXXFLAGS=$ac_save_CXXFLAGS | |
5158 | elif test $ac_cv_prog_cxx_g = yes; then | |
5159 | if test "$GXX" = yes; then | |
5160 | CXXFLAGS="-g -O2" | |
5161 | else | |
5162 | CXXFLAGS="-g" | |
5163 | fi | |
5164 | else | |
5165 | if test "$GXX" = yes; then | |
5166 | CXXFLAGS="-O2" | |
5167 | else | |
5168 | CXXFLAGS= | |
5169 | fi | |
c3a86da9 | 5170 | fi |
c3a86da9 DJ |
5171 | ac_ext=c |
5172 | ac_cpp='$CPP $CPPFLAGS' | |
5173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5176 | ||
5177 | ||
5178 | # We must set the default linker to the linker used by gcc for the correct | |
5179 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5180 | # set the LD default to the ld used by gcc. | |
5181 | if test -z "$LD"; then | |
5182 | if test "$GCC" = yes; then | |
5183 | case $build in | |
5184 | *-*-mingw*) | |
5185 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5186 | *) | |
5187 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5188 | esac | |
5189 | case $gcc_prog_ld in | |
5190 | # Accept absolute paths. | |
5191 | [\\/]* | [A-Za-z]:[\\/]*) | |
5192 | LD="$gcc_prog_ld" ;; | |
5193 | esac | |
5194 | fi | |
23f6b2f9 PB |
5195 | fi |
5196 | ||
0b21f5d3 EB |
5197 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5198 | have_static_libs=no | |
5199 | if test "$GCC" = yes; then | |
5200 | saved_LDFLAGS="$LDFLAGS" | |
5201 | ||
5202 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5204 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5205 | ac_ext=cpp | |
5206 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5210 | ||
5211 | ||
5212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213 | /* end confdefs.h. */ | |
0d6414b2 EB |
5214 | |
5215 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5216 | #error -static-libstdc++ not implemented | |
5217 | #endif | |
0b21f5d3 EB |
5218 | int main() {} |
5219 | _ACEOF | |
5220 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5222 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5223 | else | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5225 | $as_echo "no" >&6; } | |
5226 | fi | |
5227 | rm -f core conftest.err conftest.$ac_objext \ | |
5228 | conftest$ac_exeext conftest.$ac_ext | |
5229 | ac_ext=c | |
5230 | ac_cpp='$CPP $CPPFLAGS' | |
5231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5234 | ||
5235 | ||
5236 | LDFLAGS="$saved_LDFLAGS" | |
5237 | fi | |
5238 | ||
23f6b2f9 PB |
5239 | |
5240 | ||
55ffb5ed | 5241 | |
1c710c3c DJ |
5242 | if test -n "$ac_tool_prefix"; then |
5243 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5244 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5246 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5247 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5248 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5249 | else |
5250 | if test -n "$GNATBIND"; then | |
5251 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5252 | else | |
1c710c3c DJ |
5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5254 | for as_dir in $PATH | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
5257 | test -z "$as_dir" && as_dir=. | |
5213506e | 5258 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5260 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5262 | break 2 |
5263 | fi | |
5264 | done | |
5213506e RW |
5265 | done |
5266 | IFS=$as_save_IFS | |
1c710c3c | 5267 | |
55ffb5ed NN |
5268 | fi |
5269 | fi | |
1c710c3c | 5270 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5271 | if test -n "$GNATBIND"; then |
5213506e RW |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5273 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5274 | else |
5213506e RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5276 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5277 | fi |
5278 | ||
5213506e | 5279 | |
1c710c3c | 5280 | fi |
55ffb5ed | 5281 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5282 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5283 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5284 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5286 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5287 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5288 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5289 | else |
1c710c3c DJ |
5290 | if test -n "$ac_ct_GNATBIND"; then |
5291 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5292 | else |
1c710c3c DJ |
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5294 | for as_dir in $PATH | |
5295 | do | |
5296 | IFS=$as_save_IFS | |
5297 | test -z "$as_dir" && as_dir=. | |
5213506e | 5298 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5300 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5302 | break 2 |
5303 | fi | |
5304 | done | |
5213506e RW |
5305 | done |
5306 | IFS=$as_save_IFS | |
1c710c3c | 5307 | |
55ffb5ed NN |
5308 | fi |
5309 | fi | |
1c710c3c DJ |
5310 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5311 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5313 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5314 | else |
5213506e RW |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5316 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5317 | fi |
5318 | ||
5213506e RW |
5319 | if test "x$ac_ct_GNATBIND" = x; then |
5320 | GNATBIND="no" | |
5321 | else | |
5322 | case $cross_compiling:$ac_tool_warned in | |
5323 | yes:) | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5326 | ac_tool_warned=yes ;; | |
5327 | esac | |
5328 | GNATBIND=$ac_ct_GNATBIND | |
5329 | fi | |
55ffb5ed | 5330 | else |
1c710c3c | 5331 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5332 | fi |
5333 | ||
1c710c3c DJ |
5334 | if test -n "$ac_tool_prefix"; then |
5335 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5336 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5338 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5339 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5340 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5341 | else |
5342 | if test -n "$GNATMAKE"; then | |
5343 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5344 | else | |
1c710c3c DJ |
5345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5346 | for as_dir in $PATH | |
5347 | do | |
5348 | IFS=$as_save_IFS | |
5349 | test -z "$as_dir" && as_dir=. | |
5213506e | 5350 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5352 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5353 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5354 | break 2 |
5355 | fi | |
5356 | done | |
5213506e RW |
5357 | done |
5358 | IFS=$as_save_IFS | |
1c710c3c | 5359 | |
5305be7e RG |
5360 | fi |
5361 | fi | |
1c710c3c | 5362 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5363 | if test -n "$GNATMAKE"; then |
5213506e RW |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5365 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5366 | else |
5213506e RW |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5368 | $as_echo "no" >&6; } | |
5305be7e RG |
5369 | fi |
5370 | ||
5213506e | 5371 | |
1c710c3c | 5372 | fi |
5305be7e | 5373 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5374 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5375 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5376 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5378 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5379 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5380 | $as_echo_n "(cached) " >&6 |
5305be7e | 5381 | else |
1c710c3c DJ |
5382 | if test -n "$ac_ct_GNATMAKE"; then |
5383 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5384 | else |
1c710c3c DJ |
5385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5386 | for as_dir in $PATH | |
5387 | do | |
5388 | IFS=$as_save_IFS | |
5389 | test -z "$as_dir" && as_dir=. | |
5213506e | 5390 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5392 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5394 | break 2 |
5395 | fi | |
5396 | done | |
5213506e RW |
5397 | done |
5398 | IFS=$as_save_IFS | |
1c710c3c | 5399 | |
5305be7e RG |
5400 | fi |
5401 | fi | |
1c710c3c DJ |
5402 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5403 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5405 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5406 | else |
5213506e RW |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5408 | $as_echo "no" >&6; } | |
5305be7e RG |
5409 | fi |
5410 | ||
5213506e RW |
5411 | if test "x$ac_ct_GNATMAKE" = x; then |
5412 | GNATMAKE="no" | |
5413 | else | |
5414 | case $cross_compiling:$ac_tool_warned in | |
5415 | yes:) | |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5417 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5418 | ac_tool_warned=yes ;; | |
5419 | esac | |
5420 | GNATMAKE=$ac_ct_GNATMAKE | |
5421 | fi | |
5305be7e | 5422 | else |
1c710c3c | 5423 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5424 | fi |
5425 | ||
5213506e RW |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5427 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5428 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5429 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5430 | else |
5431 | cat >conftest.adb <<EOF | |
5432 | procedure conftest is begin null; end conftest; | |
5433 | EOF | |
5434 | acx_cv_cc_gcc_supports_ada=no | |
5435 | # There is a bug in old released versions of GCC which causes the | |
5436 | # driver to exit successfully when the appropriate language module | |
5437 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5438 | # Therefore we must check for the error message as well as an | |
5439 | # unsuccessful exit. | |
1db673ca RO |
5440 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5441 | # given a .adb file, but produce no object file. So we must check | |
5442 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5443 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5444 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5445 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5446 | fi |
5447 | rm -f conftest.* | |
5448 | fi | |
5213506e RW |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5450 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5451 | |
7cb62ef1 | 5452 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5453 | have_gnat=yes |
5454 | else | |
5455 | have_gnat=no | |
5456 | fi | |
5457 | ||
5213506e RW |
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5459 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5460 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5461 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5462 | else |
5463 | echo abfoo >t1 | |
5464 | echo cdfoo >t2 | |
b55e6680 | 5465 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5466 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5467 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5468 | : | |
5469 | else | |
5470 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5471 | fi | |
5472 | fi | |
a76494aa PB |
5473 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5474 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5475 | : |
a76494aa PB |
5476 | else |
5477 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5478 | fi | |
5479 | fi | |
5480 | rm t1 t2 | |
5481 | ||
5482 | fi | |
5213506e RW |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5484 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5485 | do_compare="$gcc_cv_prog_cmp_skip" |
5486 | ||
5487 | ||
55ffb5ed | 5488 | |
ff3ac0f4 ILT |
5489 | # Check whether --enable-bootstrap was given. |
5490 | if test "${enable_bootstrap+set}" = set; then : | |
5491 | enableval=$enable_bootstrap; | |
5492 | else | |
5493 | enable_bootstrap=default | |
5494 | fi | |
5495 | ||
5496 | ||
5497 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5498 | if test -r $srcdir/gcc/configure; then |
5499 | have_compiler=yes | |
5500 | else | |
5501 | have_compiler=no | |
5502 | fi | |
ff3ac0f4 ILT |
5503 | |
5504 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5505 | *:*:*:no) ;; | |
5506 | ||
5507 | # Default behavior. Enable bootstrap if we have a compiler | |
5508 | # and we are in a native configuration. | |
5509 | yes:$build:$build:default) | |
5510 | enable_bootstrap=yes ;; | |
5511 | ||
5512 | *:*:*:default) | |
5513 | enable_bootstrap=no ;; | |
5514 | ||
5515 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5516 | yes:$build:$build:yes) | |
5517 | ;; | |
5518 | ||
5519 | # Other configurations, but we have a compiler. Assume the user knows | |
5520 | # what he's doing. | |
5521 | yes:*:*:yes) | |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5523 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5524 | ;; | |
5525 | ||
5526 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5527 | no:*:*:yes) | |
22e05272 | 5528 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5529 | |
5530 | # Fail if wrong command line | |
5531 | *) | |
22e05272 | 5532 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5533 | ;; |
5534 | esac | |
5535 | ||
5329b59a | 5536 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5537 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5538 | # require C++11 (or higher). | |
46070488 | 5539 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5540 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5541 | elif test "$have_compiler" = yes; then |
5542 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5543 | ac_ext=cpp | |
5544 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5548 | ac_success=no | |
5549 | ||
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5551 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5552 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5553 | $as_echo_n "(cached) " >&6 | |
5554 | else | |
5555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5556 | /* end confdefs.h. */ | |
5557 | ||
5558 | ||
5559 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5560 | // Hopefully, this will speed up the test. | |
5561 | ||
5562 | #ifndef __cplusplus | |
5563 | ||
5564 | #error "This is not a C++ compiler" | |
5565 | ||
5566 | #elif __cplusplus < 201103L | |
5567 | ||
5568 | #error "This is not a C++11 compiler" | |
5569 | ||
5570 | #else | |
5571 | ||
5572 | namespace cxx11 | |
5573 | { | |
5574 | ||
5575 | namespace test_static_assert | |
5576 | { | |
5577 | ||
5578 | template <typename T> | |
5579 | struct check | |
5580 | { | |
5581 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5582 | }; | |
5583 | ||
5584 | } | |
5585 | ||
5586 | namespace test_final_override | |
5587 | { | |
5588 | ||
5589 | struct Base | |
5590 | { | |
5591 | virtual ~Base() {} | |
5592 | virtual void f() {} | |
5593 | }; | |
5594 | ||
5595 | struct Derived : public Base | |
5596 | { | |
5597 | virtual ~Derived() override {} | |
5598 | virtual void f() override {} | |
5599 | }; | |
5600 | ||
5601 | } | |
5602 | ||
5603 | namespace test_double_right_angle_brackets | |
5604 | { | |
5605 | ||
5606 | template < typename T > | |
5607 | struct check {}; | |
5608 | ||
5609 | typedef check<void> single_type; | |
5610 | typedef check<check<void>> double_type; | |
5611 | typedef check<check<check<void>>> triple_type; | |
5612 | typedef check<check<check<check<void>>>> quadruple_type; | |
5613 | ||
5614 | } | |
5615 | ||
5616 | namespace test_decltype | |
5617 | { | |
5618 | ||
5619 | int | |
5620 | f() | |
5621 | { | |
5622 | int a = 1; | |
5623 | decltype(a) b = 2; | |
5624 | return a + b; | |
5625 | } | |
5626 | ||
5627 | } | |
5628 | ||
5629 | namespace test_type_deduction | |
5630 | { | |
5631 | ||
5632 | template < typename T1, typename T2 > | |
5633 | struct is_same | |
5634 | { | |
5635 | static const bool value = false; | |
5636 | }; | |
5637 | ||
5638 | template < typename T > | |
5639 | struct is_same<T, T> | |
5640 | { | |
5641 | static const bool value = true; | |
5642 | }; | |
5643 | ||
5644 | template < typename T1, typename T2 > | |
5645 | auto | |
5646 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5647 | { | |
5648 | return a1 + a2; | |
5649 | } | |
5650 | ||
5651 | int | |
5652 | test(const int c, volatile int v) | |
5653 | { | |
5654 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5655 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5656 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5657 | auto ac = c; | |
5658 | auto av = v; | |
5659 | auto sumi = ac + av + 'x'; | |
5660 | auto sumf = ac + av + 1.0; | |
5661 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5662 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5663 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5664 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5665 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5666 | return (sumf > 0.0) ? sumi : add(c, v); | |
5667 | } | |
5668 | ||
5669 | } | |
5670 | ||
5671 | namespace test_noexcept | |
5672 | { | |
5673 | ||
5674 | int f() { return 0; } | |
5675 | int g() noexcept { return 0; } | |
5676 | ||
5677 | static_assert(noexcept(f()) == false, ""); | |
5678 | static_assert(noexcept(g()) == true, ""); | |
5679 | ||
5680 | } | |
5681 | ||
5682 | namespace test_constexpr | |
5683 | { | |
5684 | ||
5685 | template < typename CharT > | |
5686 | unsigned long constexpr | |
5687 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5688 | { | |
5689 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5690 | } | |
5691 | ||
5692 | template < typename CharT > | |
5693 | unsigned long constexpr | |
5694 | strlen_c(const CharT *const s) noexcept | |
5695 | { | |
5696 | return strlen_c_r(s, 0UL); | |
5697 | } | |
5698 | ||
5699 | static_assert(strlen_c("") == 0UL, ""); | |
5700 | static_assert(strlen_c("1") == 1UL, ""); | |
5701 | static_assert(strlen_c("example") == 7UL, ""); | |
5702 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5703 | ||
5704 | } | |
5705 | ||
5706 | namespace test_rvalue_references | |
5707 | { | |
5708 | ||
5709 | template < int N > | |
5710 | struct answer | |
5711 | { | |
5712 | static constexpr int value = N; | |
5713 | }; | |
5714 | ||
5715 | answer<1> f(int&) { return answer<1>(); } | |
5716 | answer<2> f(const int&) { return answer<2>(); } | |
5717 | answer<3> f(int&&) { return answer<3>(); } | |
5718 | ||
5719 | void | |
5720 | test() | |
5721 | { | |
5722 | int i = 0; | |
5723 | const int c = 0; | |
5724 | static_assert(decltype(f(i))::value == 1, ""); | |
5725 | static_assert(decltype(f(c))::value == 2, ""); | |
5726 | static_assert(decltype(f(0))::value == 3, ""); | |
5727 | } | |
5728 | ||
5729 | } | |
5730 | ||
5731 | namespace test_uniform_initialization | |
5732 | { | |
5733 | ||
5734 | struct test | |
5735 | { | |
5736 | static const int zero {}; | |
5737 | static const int one {1}; | |
5738 | }; | |
5739 | ||
5740 | static_assert(test::zero == 0, ""); | |
5741 | static_assert(test::one == 1, ""); | |
5742 | ||
5743 | } | |
5744 | ||
5745 | namespace test_lambdas | |
5746 | { | |
5747 | ||
5748 | void | |
5749 | test1() | |
5750 | { | |
5751 | auto lambda1 = [](){}; | |
5752 | auto lambda2 = lambda1; | |
5753 | lambda1(); | |
5754 | lambda2(); | |
5755 | } | |
5756 | ||
5757 | int | |
5758 | test2() | |
5759 | { | |
5760 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
5761 | auto b = []() -> int { return '0'; }(); | |
5762 | auto c = [=](){ return a + b; }(); | |
5763 | auto d = [&](){ return c; }(); | |
5764 | auto e = [a, &b](int x) mutable { | |
5765 | const auto identity = [](int y){ return y; }; | |
5766 | for (auto i = 0; i < a; ++i) | |
5767 | a += b--; | |
5768 | return x + identity(a + b); | |
5769 | }(0); | |
5770 | return a + b + c + d + e; | |
5771 | } | |
5772 | ||
5773 | int | |
5774 | test3() | |
5775 | { | |
5776 | const auto nullary = [](){ return 0; }; | |
5777 | const auto unary = [](int x){ return x; }; | |
5778 | using nullary_t = decltype(nullary); | |
5779 | using unary_t = decltype(unary); | |
5780 | const auto higher1st = [](nullary_t f){ return f(); }; | |
5781 | const auto higher2nd = [unary](nullary_t f1){ | |
5782 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
5783 | }; | |
5784 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
5785 | } | |
5786 | ||
5787 | } | |
5788 | ||
5789 | namespace test_variadic_templates | |
5790 | { | |
5791 | ||
5792 | template <int...> | |
5793 | struct sum; | |
5794 | ||
5795 | template <int N0, int... N1toN> | |
5796 | struct sum<N0, N1toN...> | |
5797 | { | |
5798 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
5799 | }; | |
5800 | ||
5801 | template <> | |
5802 | struct sum<> | |
5803 | { | |
5804 | static constexpr auto value = 0; | |
5805 | }; | |
5806 | ||
5807 | static_assert(sum<>::value == 0, ""); | |
5808 | static_assert(sum<1>::value == 1, ""); | |
5809 | static_assert(sum<23>::value == 23, ""); | |
5810 | static_assert(sum<1, 2>::value == 3, ""); | |
5811 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
5812 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
5813 | ||
5814 | } | |
5815 | ||
5816 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
5817 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
5818 | // because of this. | |
5819 | namespace test_template_alias_sfinae | |
5820 | { | |
5821 | ||
5822 | struct foo {}; | |
5823 | ||
5824 | template<typename T> | |
5825 | using member = typename T::member_type; | |
5826 | ||
5827 | template<typename T> | |
5828 | void func(...) {} | |
5829 | ||
5830 | template<typename T> | |
5831 | void func(member<T>*) {} | |
5832 | ||
5833 | void test(); | |
5834 | ||
5835 | void test() { func<foo>(0); } | |
5836 | ||
5837 | } | |
5838 | ||
5839 | } // namespace cxx11 | |
5840 | ||
5841 | #endif // __cplusplus >= 201103L | |
5842 | ||
5843 | ||
5844 | ||
5845 | _ACEOF | |
5846 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5847 | ax_cv_cxx_compile_cxx11=yes | |
5848 | else | |
5849 | ax_cv_cxx_compile_cxx11=no | |
5850 | fi | |
5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5852 | fi | |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
5854 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
5855 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
5856 | ac_success=yes | |
5857 | fi | |
5858 | ||
5859 | if test x$ac_success = xno; then | |
5860 | for alternative in ${ax_cxx_compile_alternatives}; do | |
5861 | switch="-std=gnu++${alternative}" | |
5862 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
5864 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
5865 | if eval \${$cachevar+:} false; then : | |
5866 | $as_echo_n "(cached) " >&6 | |
5867 | else | |
5868 | ac_save_CXX="$CXX" | |
5869 | CXX="$CXX $switch" | |
5870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5871 | /* end confdefs.h. */ | |
5872 | ||
5873 | ||
5874 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5875 | // Hopefully, this will speed up the test. | |
5876 | ||
5877 | #ifndef __cplusplus | |
5878 | ||
5879 | #error "This is not a C++ compiler" | |
5880 | ||
5881 | #elif __cplusplus < 201103L | |
5882 | ||
5883 | #error "This is not a C++11 compiler" | |
5884 | ||
5885 | #else | |
5886 | ||
5887 | namespace cxx11 | |
5888 | { | |
5889 | ||
5890 | namespace test_static_assert | |
5891 | { | |
5892 | ||
5893 | template <typename T> | |
5894 | struct check | |
5895 | { | |
5896 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5897 | }; | |
5898 | ||
5899 | } | |
5900 | ||
5901 | namespace test_final_override | |
5902 | { | |
5903 | ||
5904 | struct Base | |
5905 | { | |
5906 | virtual ~Base() {} | |
5907 | virtual void f() {} | |
5908 | }; | |
5909 | ||
5910 | struct Derived : public Base | |
5911 | { | |
5912 | virtual ~Derived() override {} | |
5913 | virtual void f() override {} | |
5914 | }; | |
5915 | ||
5916 | } | |
5917 | ||
5918 | namespace test_double_right_angle_brackets | |
5919 | { | |
5920 | ||
5921 | template < typename T > | |
5922 | struct check {}; | |
5923 | ||
5924 | typedef check<void> single_type; | |
5925 | typedef check<check<void>> double_type; | |
5926 | typedef check<check<check<void>>> triple_type; | |
5927 | typedef check<check<check<check<void>>>> quadruple_type; | |
5928 | ||
5929 | } | |
5930 | ||
5931 | namespace test_decltype | |
5932 | { | |
5933 | ||
5934 | int | |
5935 | f() | |
5936 | { | |
5937 | int a = 1; | |
5938 | decltype(a) b = 2; | |
5939 | return a + b; | |
5940 | } | |
5941 | ||
5942 | } | |
5943 | ||
5944 | namespace test_type_deduction | |
5945 | { | |
5946 | ||
5947 | template < typename T1, typename T2 > | |
5948 | struct is_same | |
5949 | { | |
5950 | static const bool value = false; | |
5951 | }; | |
5952 | ||
5953 | template < typename T > | |
5954 | struct is_same<T, T> | |
5955 | { | |
5956 | static const bool value = true; | |
5957 | }; | |
5958 | ||
5959 | template < typename T1, typename T2 > | |
5960 | auto | |
5961 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5962 | { | |
5963 | return a1 + a2; | |
5964 | } | |
5965 | ||
5966 | int | |
5967 | test(const int c, volatile int v) | |
5968 | { | |
5969 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5970 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5971 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5972 | auto ac = c; | |
5973 | auto av = v; | |
5974 | auto sumi = ac + av + 'x'; | |
5975 | auto sumf = ac + av + 1.0; | |
5976 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5977 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5978 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5979 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5980 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5981 | return (sumf > 0.0) ? sumi : add(c, v); | |
5982 | } | |
5983 | ||
5984 | } | |
5985 | ||
5986 | namespace test_noexcept | |
5987 | { | |
5988 | ||
5989 | int f() { return 0; } | |
5990 | int g() noexcept { return 0; } | |
5991 | ||
5992 | static_assert(noexcept(f()) == false, ""); | |
5993 | static_assert(noexcept(g()) == true, ""); | |
5994 | ||
5995 | } | |
5996 | ||
5997 | namespace test_constexpr | |
5998 | { | |
5999 | ||
6000 | template < typename CharT > | |
6001 | unsigned long constexpr | |
6002 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6003 | { | |
6004 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6005 | } | |
6006 | ||
6007 | template < typename CharT > | |
6008 | unsigned long constexpr | |
6009 | strlen_c(const CharT *const s) noexcept | |
6010 | { | |
6011 | return strlen_c_r(s, 0UL); | |
6012 | } | |
6013 | ||
6014 | static_assert(strlen_c("") == 0UL, ""); | |
6015 | static_assert(strlen_c("1") == 1UL, ""); | |
6016 | static_assert(strlen_c("example") == 7UL, ""); | |
6017 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6018 | ||
6019 | } | |
6020 | ||
6021 | namespace test_rvalue_references | |
6022 | { | |
6023 | ||
6024 | template < int N > | |
6025 | struct answer | |
6026 | { | |
6027 | static constexpr int value = N; | |
6028 | }; | |
6029 | ||
6030 | answer<1> f(int&) { return answer<1>(); } | |
6031 | answer<2> f(const int&) { return answer<2>(); } | |
6032 | answer<3> f(int&&) { return answer<3>(); } | |
6033 | ||
6034 | void | |
6035 | test() | |
6036 | { | |
6037 | int i = 0; | |
6038 | const int c = 0; | |
6039 | static_assert(decltype(f(i))::value == 1, ""); | |
6040 | static_assert(decltype(f(c))::value == 2, ""); | |
6041 | static_assert(decltype(f(0))::value == 3, ""); | |
6042 | } | |
6043 | ||
6044 | } | |
6045 | ||
6046 | namespace test_uniform_initialization | |
6047 | { | |
6048 | ||
6049 | struct test | |
6050 | { | |
6051 | static const int zero {}; | |
6052 | static const int one {1}; | |
6053 | }; | |
6054 | ||
6055 | static_assert(test::zero == 0, ""); | |
6056 | static_assert(test::one == 1, ""); | |
6057 | ||
6058 | } | |
6059 | ||
6060 | namespace test_lambdas | |
6061 | { | |
6062 | ||
6063 | void | |
6064 | test1() | |
6065 | { | |
6066 | auto lambda1 = [](){}; | |
6067 | auto lambda2 = lambda1; | |
6068 | lambda1(); | |
6069 | lambda2(); | |
6070 | } | |
6071 | ||
6072 | int | |
6073 | test2() | |
6074 | { | |
6075 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6076 | auto b = []() -> int { return '0'; }(); | |
6077 | auto c = [=](){ return a + b; }(); | |
6078 | auto d = [&](){ return c; }(); | |
6079 | auto e = [a, &b](int x) mutable { | |
6080 | const auto identity = [](int y){ return y; }; | |
6081 | for (auto i = 0; i < a; ++i) | |
6082 | a += b--; | |
6083 | return x + identity(a + b); | |
6084 | }(0); | |
6085 | return a + b + c + d + e; | |
6086 | } | |
6087 | ||
6088 | int | |
6089 | test3() | |
6090 | { | |
6091 | const auto nullary = [](){ return 0; }; | |
6092 | const auto unary = [](int x){ return x; }; | |
6093 | using nullary_t = decltype(nullary); | |
6094 | using unary_t = decltype(unary); | |
6095 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6096 | const auto higher2nd = [unary](nullary_t f1){ | |
6097 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6098 | }; | |
6099 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6100 | } | |
6101 | ||
6102 | } | |
6103 | ||
6104 | namespace test_variadic_templates | |
6105 | { | |
6106 | ||
6107 | template <int...> | |
6108 | struct sum; | |
6109 | ||
6110 | template <int N0, int... N1toN> | |
6111 | struct sum<N0, N1toN...> | |
6112 | { | |
6113 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6114 | }; | |
6115 | ||
6116 | template <> | |
6117 | struct sum<> | |
6118 | { | |
6119 | static constexpr auto value = 0; | |
6120 | }; | |
6121 | ||
6122 | static_assert(sum<>::value == 0, ""); | |
6123 | static_assert(sum<1>::value == 1, ""); | |
6124 | static_assert(sum<23>::value == 23, ""); | |
6125 | static_assert(sum<1, 2>::value == 3, ""); | |
6126 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6127 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6128 | ||
6129 | } | |
6130 | ||
6131 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6132 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6133 | // because of this. | |
6134 | namespace test_template_alias_sfinae | |
6135 | { | |
6136 | ||
6137 | struct foo {}; | |
6138 | ||
6139 | template<typename T> | |
6140 | using member = typename T::member_type; | |
6141 | ||
6142 | template<typename T> | |
6143 | void func(...) {} | |
6144 | ||
6145 | template<typename T> | |
6146 | void func(member<T>*) {} | |
6147 | ||
6148 | void test(); | |
6149 | ||
6150 | void test() { func<foo>(0); } | |
6151 | ||
6152 | } | |
6153 | ||
6154 | } // namespace cxx11 | |
6155 | ||
6156 | #endif // __cplusplus >= 201103L | |
6157 | ||
6158 | ||
6159 | ||
6160 | _ACEOF | |
6161 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6162 | eval $cachevar=yes | |
6163 | else | |
6164 | eval $cachevar=no | |
6165 | fi | |
6166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6167 | CXX="$ac_save_CXX" | |
6168 | fi | |
6169 | eval ac_res=\$$cachevar | |
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6171 | $as_echo "$ac_res" >&6; } | |
6172 | if eval test x\$$cachevar = xyes; then | |
6173 | CXX="$CXX $switch" | |
6174 | if test -n "$CXXCPP" ; then | |
6175 | CXXCPP="$CXXCPP $switch" | |
6176 | fi | |
6177 | ac_success=yes | |
6178 | break | |
6179 | fi | |
6180 | done | |
6181 | fi | |
6182 | ||
6183 | if test x$ac_success = xno; then | |
6184 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6185 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6186 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6188 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6189 | if eval \${$cachevar+:} false; then : | |
6190 | $as_echo_n "(cached) " >&6 | |
6191 | else | |
6192 | ac_save_CXX="$CXX" | |
6193 | CXX="$CXX $switch" | |
6194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6195 | /* end confdefs.h. */ | |
6196 | ||
6197 | ||
6198 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6199 | // Hopefully, this will speed up the test. | |
6200 | ||
6201 | #ifndef __cplusplus | |
6202 | ||
6203 | #error "This is not a C++ compiler" | |
6204 | ||
6205 | #elif __cplusplus < 201103L | |
6206 | ||
6207 | #error "This is not a C++11 compiler" | |
6208 | ||
6209 | #else | |
6210 | ||
6211 | namespace cxx11 | |
6212 | { | |
6213 | ||
6214 | namespace test_static_assert | |
6215 | { | |
6216 | ||
6217 | template <typename T> | |
6218 | struct check | |
6219 | { | |
6220 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6221 | }; | |
6222 | ||
6223 | } | |
6224 | ||
6225 | namespace test_final_override | |
6226 | { | |
6227 | ||
6228 | struct Base | |
6229 | { | |
6230 | virtual ~Base() {} | |
6231 | virtual void f() {} | |
6232 | }; | |
6233 | ||
6234 | struct Derived : public Base | |
6235 | { | |
6236 | virtual ~Derived() override {} | |
6237 | virtual void f() override {} | |
6238 | }; | |
6239 | ||
6240 | } | |
6241 | ||
6242 | namespace test_double_right_angle_brackets | |
6243 | { | |
6244 | ||
6245 | template < typename T > | |
6246 | struct check {}; | |
6247 | ||
6248 | typedef check<void> single_type; | |
6249 | typedef check<check<void>> double_type; | |
6250 | typedef check<check<check<void>>> triple_type; | |
6251 | typedef check<check<check<check<void>>>> quadruple_type; | |
6252 | ||
6253 | } | |
6254 | ||
6255 | namespace test_decltype | |
6256 | { | |
6257 | ||
6258 | int | |
6259 | f() | |
6260 | { | |
6261 | int a = 1; | |
6262 | decltype(a) b = 2; | |
6263 | return a + b; | |
6264 | } | |
6265 | ||
6266 | } | |
6267 | ||
6268 | namespace test_type_deduction | |
6269 | { | |
6270 | ||
6271 | template < typename T1, typename T2 > | |
6272 | struct is_same | |
6273 | { | |
6274 | static const bool value = false; | |
6275 | }; | |
6276 | ||
6277 | template < typename T > | |
6278 | struct is_same<T, T> | |
6279 | { | |
6280 | static const bool value = true; | |
6281 | }; | |
6282 | ||
6283 | template < typename T1, typename T2 > | |
6284 | auto | |
6285 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6286 | { | |
6287 | return a1 + a2; | |
6288 | } | |
6289 | ||
6290 | int | |
6291 | test(const int c, volatile int v) | |
6292 | { | |
6293 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6294 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6295 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6296 | auto ac = c; | |
6297 | auto av = v; | |
6298 | auto sumi = ac + av + 'x'; | |
6299 | auto sumf = ac + av + 1.0; | |
6300 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6301 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6302 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6303 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6304 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6305 | return (sumf > 0.0) ? sumi : add(c, v); | |
6306 | } | |
6307 | ||
6308 | } | |
6309 | ||
6310 | namespace test_noexcept | |
6311 | { | |
6312 | ||
6313 | int f() { return 0; } | |
6314 | int g() noexcept { return 0; } | |
6315 | ||
6316 | static_assert(noexcept(f()) == false, ""); | |
6317 | static_assert(noexcept(g()) == true, ""); | |
6318 | ||
6319 | } | |
6320 | ||
6321 | namespace test_constexpr | |
6322 | { | |
6323 | ||
6324 | template < typename CharT > | |
6325 | unsigned long constexpr | |
6326 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6327 | { | |
6328 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6329 | } | |
6330 | ||
6331 | template < typename CharT > | |
6332 | unsigned long constexpr | |
6333 | strlen_c(const CharT *const s) noexcept | |
6334 | { | |
6335 | return strlen_c_r(s, 0UL); | |
6336 | } | |
6337 | ||
6338 | static_assert(strlen_c("") == 0UL, ""); | |
6339 | static_assert(strlen_c("1") == 1UL, ""); | |
6340 | static_assert(strlen_c("example") == 7UL, ""); | |
6341 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6342 | ||
6343 | } | |
6344 | ||
6345 | namespace test_rvalue_references | |
6346 | { | |
6347 | ||
6348 | template < int N > | |
6349 | struct answer | |
6350 | { | |
6351 | static constexpr int value = N; | |
6352 | }; | |
6353 | ||
6354 | answer<1> f(int&) { return answer<1>(); } | |
6355 | answer<2> f(const int&) { return answer<2>(); } | |
6356 | answer<3> f(int&&) { return answer<3>(); } | |
6357 | ||
6358 | void | |
6359 | test() | |
6360 | { | |
6361 | int i = 0; | |
6362 | const int c = 0; | |
6363 | static_assert(decltype(f(i))::value == 1, ""); | |
6364 | static_assert(decltype(f(c))::value == 2, ""); | |
6365 | static_assert(decltype(f(0))::value == 3, ""); | |
6366 | } | |
6367 | ||
6368 | } | |
6369 | ||
6370 | namespace test_uniform_initialization | |
6371 | { | |
6372 | ||
6373 | struct test | |
6374 | { | |
6375 | static const int zero {}; | |
6376 | static const int one {1}; | |
6377 | }; | |
6378 | ||
6379 | static_assert(test::zero == 0, ""); | |
6380 | static_assert(test::one == 1, ""); | |
6381 | ||
6382 | } | |
6383 | ||
6384 | namespace test_lambdas | |
6385 | { | |
6386 | ||
6387 | void | |
6388 | test1() | |
6389 | { | |
6390 | auto lambda1 = [](){}; | |
6391 | auto lambda2 = lambda1; | |
6392 | lambda1(); | |
6393 | lambda2(); | |
6394 | } | |
6395 | ||
6396 | int | |
6397 | test2() | |
6398 | { | |
6399 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6400 | auto b = []() -> int { return '0'; }(); | |
6401 | auto c = [=](){ return a + b; }(); | |
6402 | auto d = [&](){ return c; }(); | |
6403 | auto e = [a, &b](int x) mutable { | |
6404 | const auto identity = [](int y){ return y; }; | |
6405 | for (auto i = 0; i < a; ++i) | |
6406 | a += b--; | |
6407 | return x + identity(a + b); | |
6408 | }(0); | |
6409 | return a + b + c + d + e; | |
6410 | } | |
6411 | ||
6412 | int | |
6413 | test3() | |
6414 | { | |
6415 | const auto nullary = [](){ return 0; }; | |
6416 | const auto unary = [](int x){ return x; }; | |
6417 | using nullary_t = decltype(nullary); | |
6418 | using unary_t = decltype(unary); | |
6419 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6420 | const auto higher2nd = [unary](nullary_t f1){ | |
6421 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6422 | }; | |
6423 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6424 | } | |
6425 | ||
6426 | } | |
6427 | ||
6428 | namespace test_variadic_templates | |
6429 | { | |
6430 | ||
6431 | template <int...> | |
6432 | struct sum; | |
6433 | ||
6434 | template <int N0, int... N1toN> | |
6435 | struct sum<N0, N1toN...> | |
6436 | { | |
6437 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6438 | }; | |
6439 | ||
6440 | template <> | |
6441 | struct sum<> | |
6442 | { | |
6443 | static constexpr auto value = 0; | |
6444 | }; | |
6445 | ||
6446 | static_assert(sum<>::value == 0, ""); | |
6447 | static_assert(sum<1>::value == 1, ""); | |
6448 | static_assert(sum<23>::value == 23, ""); | |
6449 | static_assert(sum<1, 2>::value == 3, ""); | |
6450 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6451 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6452 | ||
6453 | } | |
6454 | ||
6455 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6456 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6457 | // because of this. | |
6458 | namespace test_template_alias_sfinae | |
6459 | { | |
6460 | ||
6461 | struct foo {}; | |
6462 | ||
6463 | template<typename T> | |
6464 | using member = typename T::member_type; | |
6465 | ||
6466 | template<typename T> | |
6467 | void func(...) {} | |
6468 | ||
6469 | template<typename T> | |
6470 | void func(member<T>*) {} | |
6471 | ||
6472 | void test(); | |
6473 | ||
6474 | void test() { func<foo>(0); } | |
6475 | ||
6476 | } | |
6477 | ||
6478 | } // namespace cxx11 | |
6479 | ||
6480 | #endif // __cplusplus >= 201103L | |
6481 | ||
6482 | ||
6483 | ||
6484 | _ACEOF | |
6485 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6486 | eval $cachevar=yes | |
6487 | else | |
6488 | eval $cachevar=no | |
6489 | fi | |
6490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6491 | CXX="$ac_save_CXX" | |
6492 | fi | |
6493 | eval ac_res=\$$cachevar | |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6495 | $as_echo "$ac_res" >&6; } | |
6496 | if eval test x\$$cachevar = xyes; then | |
6497 | CXX="$CXX $switch" | |
6498 | if test -n "$CXXCPP" ; then | |
6499 | CXXCPP="$CXXCPP $switch" | |
6500 | fi | |
6501 | ac_success=yes | |
6502 | break | |
6503 | fi | |
6504 | done | |
6505 | if test x$ac_success = xyes; then | |
6506 | break | |
6507 | fi | |
6508 | done | |
6509 | fi | |
7ffcf5d6 | 6510 | |
ffac9597 JM |
6511 | ac_ext=c |
6512 | ac_cpp='$CPP $CPPFLAGS' | |
6513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6516 | ||
6517 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6518 | if test x$ac_success = xno; then | |
6519 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6520 | fi | |
6521 | fi | |
6522 | if test x$ac_success = xno; then | |
6523 | HAVE_CXX11=0 | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6525 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6526 | else | |
6527 | HAVE_CXX11=1 | |
6528 | ||
6529 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6530 | ||
6531 | fi | |
6532 | ||
6533 | ||
7ffcf5d6 TB |
6534 | |
6535 | if test "${build}" != "${host}"; then | |
6536 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6537 | ac_ext=cpp | |
6538 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6539 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6540 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6541 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6542 | ac_success=no | |
6543 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6544 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6545 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6546 | CXX="$CXX_FOR_BUILD" | |
6547 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6548 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6550 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6551 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6552 | $as_echo_n "(cached) " >&6 | |
6553 | else | |
6554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6555 | /* end confdefs.h. */ | |
6556 | ||
6557 | ||
6558 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6559 | // Hopefully, this will speed up the test. | |
6560 | ||
6561 | #ifndef __cplusplus | |
6562 | ||
6563 | #error "This is not a C++ compiler" | |
6564 | ||
6565 | #elif __cplusplus < 201103L | |
6566 | ||
6567 | #error "This is not a C++11 compiler" | |
6568 | ||
6569 | #else | |
6570 | ||
6571 | namespace cxx11 | |
6572 | { | |
6573 | ||
6574 | namespace test_static_assert | |
6575 | { | |
6576 | ||
6577 | template <typename T> | |
6578 | struct check | |
6579 | { | |
6580 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6581 | }; | |
6582 | ||
6583 | } | |
6584 | ||
6585 | namespace test_final_override | |
6586 | { | |
6587 | ||
6588 | struct Base | |
6589 | { | |
6590 | virtual ~Base() {} | |
6591 | virtual void f() {} | |
6592 | }; | |
6593 | ||
6594 | struct Derived : public Base | |
6595 | { | |
6596 | virtual ~Derived() override {} | |
6597 | virtual void f() override {} | |
6598 | }; | |
6599 | ||
6600 | } | |
6601 | ||
6602 | namespace test_double_right_angle_brackets | |
6603 | { | |
6604 | ||
6605 | template < typename T > | |
6606 | struct check {}; | |
6607 | ||
6608 | typedef check<void> single_type; | |
6609 | typedef check<check<void>> double_type; | |
6610 | typedef check<check<check<void>>> triple_type; | |
6611 | typedef check<check<check<check<void>>>> quadruple_type; | |
6612 | ||
6613 | } | |
6614 | ||
6615 | namespace test_decltype | |
6616 | { | |
6617 | ||
6618 | int | |
6619 | f() | |
6620 | { | |
6621 | int a = 1; | |
6622 | decltype(a) b = 2; | |
6623 | return a + b; | |
6624 | } | |
6625 | ||
6626 | } | |
6627 | ||
6628 | namespace test_type_deduction | |
6629 | { | |
6630 | ||
6631 | template < typename T1, typename T2 > | |
6632 | struct is_same | |
6633 | { | |
6634 | static const bool value = false; | |
6635 | }; | |
6636 | ||
6637 | template < typename T > | |
6638 | struct is_same<T, T> | |
6639 | { | |
6640 | static const bool value = true; | |
6641 | }; | |
6642 | ||
6643 | template < typename T1, typename T2 > | |
6644 | auto | |
6645 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6646 | { | |
6647 | return a1 + a2; | |
6648 | } | |
6649 | ||
6650 | int | |
6651 | test(const int c, volatile int v) | |
6652 | { | |
6653 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6654 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6655 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6656 | auto ac = c; | |
6657 | auto av = v; | |
6658 | auto sumi = ac + av + 'x'; | |
6659 | auto sumf = ac + av + 1.0; | |
6660 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6661 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6662 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6663 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6664 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6665 | return (sumf > 0.0) ? sumi : add(c, v); | |
6666 | } | |
6667 | ||
6668 | } | |
6669 | ||
6670 | namespace test_noexcept | |
6671 | { | |
6672 | ||
6673 | int f() { return 0; } | |
6674 | int g() noexcept { return 0; } | |
6675 | ||
6676 | static_assert(noexcept(f()) == false, ""); | |
6677 | static_assert(noexcept(g()) == true, ""); | |
6678 | ||
6679 | } | |
6680 | ||
6681 | namespace test_constexpr | |
6682 | { | |
6683 | ||
6684 | template < typename CharT > | |
6685 | unsigned long constexpr | |
6686 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6687 | { | |
6688 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6689 | } | |
6690 | ||
6691 | template < typename CharT > | |
6692 | unsigned long constexpr | |
6693 | strlen_c(const CharT *const s) noexcept | |
6694 | { | |
6695 | return strlen_c_r(s, 0UL); | |
6696 | } | |
6697 | ||
6698 | static_assert(strlen_c("") == 0UL, ""); | |
6699 | static_assert(strlen_c("1") == 1UL, ""); | |
6700 | static_assert(strlen_c("example") == 7UL, ""); | |
6701 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6702 | ||
6703 | } | |
6704 | ||
6705 | namespace test_rvalue_references | |
6706 | { | |
6707 | ||
6708 | template < int N > | |
6709 | struct answer | |
6710 | { | |
6711 | static constexpr int value = N; | |
6712 | }; | |
6713 | ||
6714 | answer<1> f(int&) { return answer<1>(); } | |
6715 | answer<2> f(const int&) { return answer<2>(); } | |
6716 | answer<3> f(int&&) { return answer<3>(); } | |
6717 | ||
6718 | void | |
6719 | test() | |
6720 | { | |
6721 | int i = 0; | |
6722 | const int c = 0; | |
6723 | static_assert(decltype(f(i))::value == 1, ""); | |
6724 | static_assert(decltype(f(c))::value == 2, ""); | |
6725 | static_assert(decltype(f(0))::value == 3, ""); | |
6726 | } | |
6727 | ||
6728 | } | |
6729 | ||
6730 | namespace test_uniform_initialization | |
6731 | { | |
6732 | ||
6733 | struct test | |
6734 | { | |
6735 | static const int zero {}; | |
6736 | static const int one {1}; | |
6737 | }; | |
6738 | ||
6739 | static_assert(test::zero == 0, ""); | |
6740 | static_assert(test::one == 1, ""); | |
6741 | ||
6742 | } | |
6743 | ||
6744 | namespace test_lambdas | |
6745 | { | |
6746 | ||
6747 | void | |
6748 | test1() | |
6749 | { | |
6750 | auto lambda1 = [](){}; | |
6751 | auto lambda2 = lambda1; | |
6752 | lambda1(); | |
6753 | lambda2(); | |
6754 | } | |
6755 | ||
6756 | int | |
6757 | test2() | |
6758 | { | |
6759 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6760 | auto b = []() -> int { return '0'; }(); | |
6761 | auto c = [=](){ return a + b; }(); | |
6762 | auto d = [&](){ return c; }(); | |
6763 | auto e = [a, &b](int x) mutable { | |
6764 | const auto identity = [](int y){ return y; }; | |
6765 | for (auto i = 0; i < a; ++i) | |
6766 | a += b--; | |
6767 | return x + identity(a + b); | |
6768 | }(0); | |
6769 | return a + b + c + d + e; | |
6770 | } | |
6771 | ||
6772 | int | |
6773 | test3() | |
6774 | { | |
6775 | const auto nullary = [](){ return 0; }; | |
6776 | const auto unary = [](int x){ return x; }; | |
6777 | using nullary_t = decltype(nullary); | |
6778 | using unary_t = decltype(unary); | |
6779 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6780 | const auto higher2nd = [unary](nullary_t f1){ | |
6781 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6782 | }; | |
6783 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6784 | } | |
6785 | ||
6786 | } | |
6787 | ||
6788 | namespace test_variadic_templates | |
6789 | { | |
6790 | ||
6791 | template <int...> | |
6792 | struct sum; | |
6793 | ||
6794 | template <int N0, int... N1toN> | |
6795 | struct sum<N0, N1toN...> | |
6796 | { | |
6797 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6798 | }; | |
6799 | ||
6800 | template <> | |
6801 | struct sum<> | |
6802 | { | |
6803 | static constexpr auto value = 0; | |
6804 | }; | |
6805 | ||
6806 | static_assert(sum<>::value == 0, ""); | |
6807 | static_assert(sum<1>::value == 1, ""); | |
6808 | static_assert(sum<23>::value == 23, ""); | |
6809 | static_assert(sum<1, 2>::value == 3, ""); | |
6810 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6811 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6812 | ||
6813 | } | |
6814 | ||
6815 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6816 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6817 | // because of this. | |
6818 | namespace test_template_alias_sfinae | |
6819 | { | |
6820 | ||
6821 | struct foo {}; | |
6822 | ||
6823 | template<typename T> | |
6824 | using member = typename T::member_type; | |
6825 | ||
6826 | template<typename T> | |
6827 | void func(...) {} | |
6828 | ||
6829 | template<typename T> | |
6830 | void func(member<T>*) {} | |
6831 | ||
6832 | void test(); | |
6833 | ||
6834 | void test() { func<foo>(0); } | |
6835 | ||
6836 | } | |
6837 | ||
6838 | } // namespace cxx11 | |
6839 | ||
6840 | #endif // __cplusplus >= 201103L | |
6841 | ||
6842 | ||
6843 | ||
6844 | _ACEOF | |
6845 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6846 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
6847 | else | |
6848 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
6849 | fi | |
6850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6851 | fi | |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
6853 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
6854 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
6855 | ac_success=yes | |
6856 | fi | |
6857 | ||
6858 | if test x$ac_success = xno; then | |
6859 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6860 | switch="-std=gnu++${alternative}" | |
6861 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
6862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6863 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6864 | if eval \${$cachevar+:} false; then : | |
6865 | $as_echo_n "(cached) " >&6 | |
6866 | else | |
6867 | ac_save_CXX="$CXX" | |
6868 | CXX="$CXX $switch" | |
6869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6870 | /* end confdefs.h. */ | |
6871 | ||
6872 | ||
6873 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6874 | // Hopefully, this will speed up the test. | |
6875 | ||
6876 | #ifndef __cplusplus | |
6877 | ||
6878 | #error "This is not a C++ compiler" | |
6879 | ||
6880 | #elif __cplusplus < 201103L | |
6881 | ||
6882 | #error "This is not a C++11 compiler" | |
6883 | ||
6884 | #else | |
6885 | ||
6886 | namespace cxx11 | |
6887 | { | |
6888 | ||
6889 | namespace test_static_assert | |
6890 | { | |
6891 | ||
6892 | template <typename T> | |
6893 | struct check | |
6894 | { | |
6895 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6896 | }; | |
6897 | ||
6898 | } | |
6899 | ||
6900 | namespace test_final_override | |
6901 | { | |
6902 | ||
6903 | struct Base | |
6904 | { | |
6905 | virtual ~Base() {} | |
6906 | virtual void f() {} | |
6907 | }; | |
6908 | ||
6909 | struct Derived : public Base | |
6910 | { | |
6911 | virtual ~Derived() override {} | |
6912 | virtual void f() override {} | |
6913 | }; | |
6914 | ||
6915 | } | |
6916 | ||
6917 | namespace test_double_right_angle_brackets | |
6918 | { | |
6919 | ||
6920 | template < typename T > | |
6921 | struct check {}; | |
6922 | ||
6923 | typedef check<void> single_type; | |
6924 | typedef check<check<void>> double_type; | |
6925 | typedef check<check<check<void>>> triple_type; | |
6926 | typedef check<check<check<check<void>>>> quadruple_type; | |
6927 | ||
6928 | } | |
6929 | ||
6930 | namespace test_decltype | |
6931 | { | |
6932 | ||
6933 | int | |
6934 | f() | |
6935 | { | |
6936 | int a = 1; | |
6937 | decltype(a) b = 2; | |
6938 | return a + b; | |
6939 | } | |
6940 | ||
6941 | } | |
6942 | ||
6943 | namespace test_type_deduction | |
6944 | { | |
6945 | ||
6946 | template < typename T1, typename T2 > | |
6947 | struct is_same | |
6948 | { | |
6949 | static const bool value = false; | |
6950 | }; | |
6951 | ||
6952 | template < typename T > | |
6953 | struct is_same<T, T> | |
6954 | { | |
6955 | static const bool value = true; | |
6956 | }; | |
6957 | ||
6958 | template < typename T1, typename T2 > | |
6959 | auto | |
6960 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6961 | { | |
6962 | return a1 + a2; | |
6963 | } | |
6964 | ||
6965 | int | |
6966 | test(const int c, volatile int v) | |
6967 | { | |
6968 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6969 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6970 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6971 | auto ac = c; | |
6972 | auto av = v; | |
6973 | auto sumi = ac + av + 'x'; | |
6974 | auto sumf = ac + av + 1.0; | |
6975 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6976 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6977 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6978 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6979 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6980 | return (sumf > 0.0) ? sumi : add(c, v); | |
6981 | } | |
6982 | ||
6983 | } | |
6984 | ||
6985 | namespace test_noexcept | |
6986 | { | |
6987 | ||
6988 | int f() { return 0; } | |
6989 | int g() noexcept { return 0; } | |
6990 | ||
6991 | static_assert(noexcept(f()) == false, ""); | |
6992 | static_assert(noexcept(g()) == true, ""); | |
6993 | ||
6994 | } | |
6995 | ||
6996 | namespace test_constexpr | |
6997 | { | |
6998 | ||
6999 | template < typename CharT > | |
7000 | unsigned long constexpr | |
7001 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7002 | { | |
7003 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7004 | } | |
7005 | ||
7006 | template < typename CharT > | |
7007 | unsigned long constexpr | |
7008 | strlen_c(const CharT *const s) noexcept | |
7009 | { | |
7010 | return strlen_c_r(s, 0UL); | |
7011 | } | |
7012 | ||
7013 | static_assert(strlen_c("") == 0UL, ""); | |
7014 | static_assert(strlen_c("1") == 1UL, ""); | |
7015 | static_assert(strlen_c("example") == 7UL, ""); | |
7016 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7017 | ||
7018 | } | |
7019 | ||
7020 | namespace test_rvalue_references | |
7021 | { | |
7022 | ||
7023 | template < int N > | |
7024 | struct answer | |
7025 | { | |
7026 | static constexpr int value = N; | |
7027 | }; | |
7028 | ||
7029 | answer<1> f(int&) { return answer<1>(); } | |
7030 | answer<2> f(const int&) { return answer<2>(); } | |
7031 | answer<3> f(int&&) { return answer<3>(); } | |
7032 | ||
7033 | void | |
7034 | test() | |
7035 | { | |
7036 | int i = 0; | |
7037 | const int c = 0; | |
7038 | static_assert(decltype(f(i))::value == 1, ""); | |
7039 | static_assert(decltype(f(c))::value == 2, ""); | |
7040 | static_assert(decltype(f(0))::value == 3, ""); | |
7041 | } | |
7042 | ||
7043 | } | |
7044 | ||
7045 | namespace test_uniform_initialization | |
7046 | { | |
7047 | ||
7048 | struct test | |
7049 | { | |
7050 | static const int zero {}; | |
7051 | static const int one {1}; | |
7052 | }; | |
7053 | ||
7054 | static_assert(test::zero == 0, ""); | |
7055 | static_assert(test::one == 1, ""); | |
7056 | ||
7057 | } | |
7058 | ||
7059 | namespace test_lambdas | |
7060 | { | |
7061 | ||
7062 | void | |
7063 | test1() | |
7064 | { | |
7065 | auto lambda1 = [](){}; | |
7066 | auto lambda2 = lambda1; | |
7067 | lambda1(); | |
7068 | lambda2(); | |
7069 | } | |
7070 | ||
7071 | int | |
7072 | test2() | |
7073 | { | |
7074 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7075 | auto b = []() -> int { return '0'; }(); | |
7076 | auto c = [=](){ return a + b; }(); | |
7077 | auto d = [&](){ return c; }(); | |
7078 | auto e = [a, &b](int x) mutable { | |
7079 | const auto identity = [](int y){ return y; }; | |
7080 | for (auto i = 0; i < a; ++i) | |
7081 | a += b--; | |
7082 | return x + identity(a + b); | |
7083 | }(0); | |
7084 | return a + b + c + d + e; | |
7085 | } | |
7086 | ||
7087 | int | |
7088 | test3() | |
7089 | { | |
7090 | const auto nullary = [](){ return 0; }; | |
7091 | const auto unary = [](int x){ return x; }; | |
7092 | using nullary_t = decltype(nullary); | |
7093 | using unary_t = decltype(unary); | |
7094 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7095 | const auto higher2nd = [unary](nullary_t f1){ | |
7096 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7097 | }; | |
7098 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7099 | } | |
7100 | ||
7101 | } | |
7102 | ||
7103 | namespace test_variadic_templates | |
7104 | { | |
7105 | ||
7106 | template <int...> | |
7107 | struct sum; | |
7108 | ||
7109 | template <int N0, int... N1toN> | |
7110 | struct sum<N0, N1toN...> | |
7111 | { | |
7112 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7113 | }; | |
7114 | ||
7115 | template <> | |
7116 | struct sum<> | |
7117 | { | |
7118 | static constexpr auto value = 0; | |
7119 | }; | |
7120 | ||
7121 | static_assert(sum<>::value == 0, ""); | |
7122 | static_assert(sum<1>::value == 1, ""); | |
7123 | static_assert(sum<23>::value == 23, ""); | |
7124 | static_assert(sum<1, 2>::value == 3, ""); | |
7125 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7126 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7127 | ||
7128 | } | |
7129 | ||
7130 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7131 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7132 | // because of this. | |
7133 | namespace test_template_alias_sfinae | |
7134 | { | |
7135 | ||
7136 | struct foo {}; | |
7137 | ||
7138 | template<typename T> | |
7139 | using member = typename T::member_type; | |
7140 | ||
7141 | template<typename T> | |
7142 | void func(...) {} | |
7143 | ||
7144 | template<typename T> | |
7145 | void func(member<T>*) {} | |
7146 | ||
7147 | void test(); | |
7148 | ||
7149 | void test() { func<foo>(0); } | |
7150 | ||
7151 | } | |
7152 | ||
7153 | } // namespace cxx11 | |
7154 | ||
7155 | #endif // __cplusplus >= 201103L | |
7156 | ||
7157 | ||
7158 | ||
7159 | _ACEOF | |
7160 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7161 | eval $cachevar=yes | |
7162 | else | |
7163 | eval $cachevar=no | |
7164 | fi | |
7165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7166 | CXX="$ac_save_CXX" | |
7167 | fi | |
7168 | eval ac_res=\$$cachevar | |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7170 | $as_echo "$ac_res" >&6; } | |
7171 | if eval test x\$$cachevar = xyes; then | |
7172 | CXX="$CXX $switch" | |
7173 | if test -n "$CXXCPP" ; then | |
7174 | CXXCPP="$CXXCPP $switch" | |
7175 | fi | |
7176 | ac_success=yes | |
7177 | break | |
7178 | fi | |
7179 | done | |
7180 | fi | |
7181 | ||
7182 | if test x$ac_success = xno; then | |
7183 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7184 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7185 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7187 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7188 | if eval \${$cachevar+:} false; then : | |
7189 | $as_echo_n "(cached) " >&6 | |
7190 | else | |
7191 | ac_save_CXX="$CXX" | |
7192 | CXX="$CXX $switch" | |
7193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7194 | /* end confdefs.h. */ | |
7195 | ||
7196 | ||
7197 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7198 | // Hopefully, this will speed up the test. | |
7199 | ||
7200 | #ifndef __cplusplus | |
7201 | ||
7202 | #error "This is not a C++ compiler" | |
7203 | ||
7204 | #elif __cplusplus < 201103L | |
7205 | ||
7206 | #error "This is not a C++11 compiler" | |
7207 | ||
7208 | #else | |
7209 | ||
7210 | namespace cxx11 | |
7211 | { | |
7212 | ||
7213 | namespace test_static_assert | |
7214 | { | |
7215 | ||
7216 | template <typename T> | |
7217 | struct check | |
7218 | { | |
7219 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7220 | }; | |
7221 | ||
7222 | } | |
7223 | ||
7224 | namespace test_final_override | |
7225 | { | |
7226 | ||
7227 | struct Base | |
7228 | { | |
7229 | virtual ~Base() {} | |
7230 | virtual void f() {} | |
7231 | }; | |
7232 | ||
7233 | struct Derived : public Base | |
7234 | { | |
7235 | virtual ~Derived() override {} | |
7236 | virtual void f() override {} | |
7237 | }; | |
7238 | ||
7239 | } | |
7240 | ||
7241 | namespace test_double_right_angle_brackets | |
7242 | { | |
7243 | ||
7244 | template < typename T > | |
7245 | struct check {}; | |
7246 | ||
7247 | typedef check<void> single_type; | |
7248 | typedef check<check<void>> double_type; | |
7249 | typedef check<check<check<void>>> triple_type; | |
7250 | typedef check<check<check<check<void>>>> quadruple_type; | |
7251 | ||
7252 | } | |
7253 | ||
7254 | namespace test_decltype | |
7255 | { | |
7256 | ||
7257 | int | |
7258 | f() | |
7259 | { | |
7260 | int a = 1; | |
7261 | decltype(a) b = 2; | |
7262 | return a + b; | |
7263 | } | |
7264 | ||
7265 | } | |
7266 | ||
7267 | namespace test_type_deduction | |
7268 | { | |
7269 | ||
7270 | template < typename T1, typename T2 > | |
7271 | struct is_same | |
7272 | { | |
7273 | static const bool value = false; | |
7274 | }; | |
7275 | ||
7276 | template < typename T > | |
7277 | struct is_same<T, T> | |
7278 | { | |
7279 | static const bool value = true; | |
7280 | }; | |
7281 | ||
7282 | template < typename T1, typename T2 > | |
7283 | auto | |
7284 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7285 | { | |
7286 | return a1 + a2; | |
7287 | } | |
7288 | ||
7289 | int | |
7290 | test(const int c, volatile int v) | |
7291 | { | |
7292 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7293 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7294 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7295 | auto ac = c; | |
7296 | auto av = v; | |
7297 | auto sumi = ac + av + 'x'; | |
7298 | auto sumf = ac + av + 1.0; | |
7299 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7300 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7301 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7302 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7303 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7304 | return (sumf > 0.0) ? sumi : add(c, v); | |
7305 | } | |
7306 | ||
7307 | } | |
7308 | ||
7309 | namespace test_noexcept | |
7310 | { | |
7311 | ||
7312 | int f() { return 0; } | |
7313 | int g() noexcept { return 0; } | |
7314 | ||
7315 | static_assert(noexcept(f()) == false, ""); | |
7316 | static_assert(noexcept(g()) == true, ""); | |
7317 | ||
7318 | } | |
7319 | ||
7320 | namespace test_constexpr | |
7321 | { | |
7322 | ||
7323 | template < typename CharT > | |
7324 | unsigned long constexpr | |
7325 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7326 | { | |
7327 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7328 | } | |
7329 | ||
7330 | template < typename CharT > | |
7331 | unsigned long constexpr | |
7332 | strlen_c(const CharT *const s) noexcept | |
7333 | { | |
7334 | return strlen_c_r(s, 0UL); | |
7335 | } | |
7336 | ||
7337 | static_assert(strlen_c("") == 0UL, ""); | |
7338 | static_assert(strlen_c("1") == 1UL, ""); | |
7339 | static_assert(strlen_c("example") == 7UL, ""); | |
7340 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7341 | ||
7342 | } | |
7343 | ||
7344 | namespace test_rvalue_references | |
7345 | { | |
7346 | ||
7347 | template < int N > | |
7348 | struct answer | |
7349 | { | |
7350 | static constexpr int value = N; | |
7351 | }; | |
7352 | ||
7353 | answer<1> f(int&) { return answer<1>(); } | |
7354 | answer<2> f(const int&) { return answer<2>(); } | |
7355 | answer<3> f(int&&) { return answer<3>(); } | |
7356 | ||
7357 | void | |
7358 | test() | |
7359 | { | |
7360 | int i = 0; | |
7361 | const int c = 0; | |
7362 | static_assert(decltype(f(i))::value == 1, ""); | |
7363 | static_assert(decltype(f(c))::value == 2, ""); | |
7364 | static_assert(decltype(f(0))::value == 3, ""); | |
7365 | } | |
7366 | ||
7367 | } | |
7368 | ||
7369 | namespace test_uniform_initialization | |
7370 | { | |
7371 | ||
7372 | struct test | |
7373 | { | |
7374 | static const int zero {}; | |
7375 | static const int one {1}; | |
7376 | }; | |
7377 | ||
7378 | static_assert(test::zero == 0, ""); | |
7379 | static_assert(test::one == 1, ""); | |
7380 | ||
7381 | } | |
7382 | ||
7383 | namespace test_lambdas | |
7384 | { | |
7385 | ||
7386 | void | |
7387 | test1() | |
7388 | { | |
7389 | auto lambda1 = [](){}; | |
7390 | auto lambda2 = lambda1; | |
7391 | lambda1(); | |
7392 | lambda2(); | |
7393 | } | |
7394 | ||
7395 | int | |
7396 | test2() | |
7397 | { | |
7398 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7399 | auto b = []() -> int { return '0'; }(); | |
7400 | auto c = [=](){ return a + b; }(); | |
7401 | auto d = [&](){ return c; }(); | |
7402 | auto e = [a, &b](int x) mutable { | |
7403 | const auto identity = [](int y){ return y; }; | |
7404 | for (auto i = 0; i < a; ++i) | |
7405 | a += b--; | |
7406 | return x + identity(a + b); | |
7407 | }(0); | |
7408 | return a + b + c + d + e; | |
7409 | } | |
7410 | ||
7411 | int | |
7412 | test3() | |
7413 | { | |
7414 | const auto nullary = [](){ return 0; }; | |
7415 | const auto unary = [](int x){ return x; }; | |
7416 | using nullary_t = decltype(nullary); | |
7417 | using unary_t = decltype(unary); | |
7418 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7419 | const auto higher2nd = [unary](nullary_t f1){ | |
7420 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7421 | }; | |
7422 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7423 | } | |
7424 | ||
7425 | } | |
7426 | ||
7427 | namespace test_variadic_templates | |
7428 | { | |
7429 | ||
7430 | template <int...> | |
7431 | struct sum; | |
7432 | ||
7433 | template <int N0, int... N1toN> | |
7434 | struct sum<N0, N1toN...> | |
7435 | { | |
7436 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7437 | }; | |
7438 | ||
7439 | template <> | |
7440 | struct sum<> | |
7441 | { | |
7442 | static constexpr auto value = 0; | |
7443 | }; | |
7444 | ||
7445 | static_assert(sum<>::value == 0, ""); | |
7446 | static_assert(sum<1>::value == 1, ""); | |
7447 | static_assert(sum<23>::value == 23, ""); | |
7448 | static_assert(sum<1, 2>::value == 3, ""); | |
7449 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7450 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7451 | ||
7452 | } | |
7453 | ||
7454 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7455 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7456 | // because of this. | |
7457 | namespace test_template_alias_sfinae | |
7458 | { | |
7459 | ||
7460 | struct foo {}; | |
7461 | ||
7462 | template<typename T> | |
7463 | using member = typename T::member_type; | |
7464 | ||
7465 | template<typename T> | |
7466 | void func(...) {} | |
7467 | ||
7468 | template<typename T> | |
7469 | void func(member<T>*) {} | |
7470 | ||
7471 | void test(); | |
7472 | ||
7473 | void test() { func<foo>(0); } | |
7474 | ||
7475 | } | |
7476 | ||
7477 | } // namespace cxx11 | |
7478 | ||
7479 | #endif // __cplusplus >= 201103L | |
7480 | ||
7481 | ||
7482 | ||
7483 | _ACEOF | |
7484 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7485 | eval $cachevar=yes | |
7486 | else | |
7487 | eval $cachevar=no | |
7488 | fi | |
7489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7490 | CXX="$ac_save_CXX" | |
7491 | fi | |
7492 | eval ac_res=\$$cachevar | |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7494 | $as_echo "$ac_res" >&6; } | |
7495 | if eval test x\$$cachevar = xyes; then | |
7496 | CXX="$CXX $switch" | |
7497 | if test -n "$CXXCPP" ; then | |
7498 | CXXCPP="$CXXCPP $switch" | |
7499 | fi | |
7500 | ac_success=yes | |
7501 | break | |
7502 | fi | |
7503 | done | |
7504 | if test x$ac_success = xyes; then | |
7505 | break | |
7506 | fi | |
7507 | done | |
7508 | fi | |
7509 | CXX_FOR_BUILD="$CXX" | |
7510 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7511 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7512 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7513 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7514 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7515 | ac_ext=c | |
7516 | ac_cpp='$CPP $CPPFLAGS' | |
7517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7520 | ||
7521 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7522 | if test x$ac_success = xno; then | |
7523 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7524 | fi | |
7525 | fi | |
7526 | if test x$ac_success = xno; then | |
7527 | HAVE_CXX11_FOR_BUILD=0 | |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7529 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7530 | else | |
7531 | HAVE_CXX11_FOR_BUILD=1 | |
7532 | ||
7533 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7534 | ||
7535 | fi | |
7536 | ||
7537 | ||
7538 | fi | |
46070488 JM |
7539 | fi |
7540 | ||
592c90ff KG |
7541 | # Used for setting $lt_cv_objdir |
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7543 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7544 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7545 | $as_echo_n "(cached) " >&6 |
7546 | else | |
7547 | rm -f .libs 2>/dev/null | |
7548 | mkdir .libs 2>/dev/null | |
7549 | if test -d .libs; then | |
7550 | lt_cv_objdir=.libs | |
7551 | else | |
7552 | # MS-DOS does not allow filenames that begin with a dot. | |
7553 | lt_cv_objdir=_libs | |
7554 | fi | |
7555 | rmdir .libs 2>/dev/null | |
7556 | fi | |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7558 | $as_echo "$lt_cv_objdir" >&6; } | |
7559 | objdir=$lt_cv_objdir | |
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | cat >>confdefs.h <<_ACEOF | |
7566 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7567 | _ACEOF | |
7568 | ||
7569 | ||
7570 | ||
acd26225 | 7571 | # Check for GMP, MPFR and MPC |
3a5729ea | 7572 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 7573 | gmpinc= |
e69bf64b | 7574 | have_gmp=no |
acd26225 KG |
7575 | |
7576 | # Specify a location for mpc | |
7577 | # check for this first so it ends up on the link line before mpfr. | |
7578 | ||
5213506e RW |
7579 | # Check whether --with-mpc was given. |
7580 | if test "${with_mpc+set}" = set; then : | |
7581 | withval=$with_mpc; | |
7582 | fi | |
acd26225 | 7583 | |
acd26225 | 7584 | |
9965e3cd | 7585 | # Check whether --with-mpc-include was given. |
5213506e RW |
7586 | if test "${with_mpc_include+set}" = set; then : |
7587 | withval=$with_mpc_include; | |
7588 | fi | |
acd26225 | 7589 | |
acd26225 | 7590 | |
9965e3cd | 7591 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7592 | if test "${with_mpc_lib+set}" = set; then : |
7593 | withval=$with_mpc_lib; | |
7594 | fi | |
acd26225 | 7595 | |
acd26225 KG |
7596 | |
7597 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
7598 | gmplibs="-L$with_mpc/lib $gmplibs" |
7599 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
7600 | fi |
7601 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 7602 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
7603 | fi |
7604 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 7605 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
7606 | fi |
7607 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 7608 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 7609 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
7610 | # Do not test the mpc version. Assume that it is sufficient, since |
7611 | # it is in the source tree, and the library has not been built yet | |
7612 | # but it would be included on the link line in the version check below | |
7613 | # hence making the test fail. | |
3a5729ea | 7614 | have_gmp=yes |
acd26225 | 7615 | fi |
e69bf64b | 7616 | |
bebf829d PB |
7617 | # Specify a location for mpfr |
7618 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 7619 | |
5213506e RW |
7620 | # Check whether --with-mpfr-dir was given. |
7621 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 7622 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
7623 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
7624 | fi | |
7625 | ||
bebf829d PB |
7626 | |
7627 | ||
5213506e RW |
7628 | # Check whether --with-mpfr was given. |
7629 | if test "${with_mpfr+set}" = set; then : | |
7630 | withval=$with_mpfr; | |
7631 | fi | |
1c710c3c | 7632 | |
bebf829d | 7633 | |
9965e3cd | 7634 | # Check whether --with-mpfr-include was given. |
5213506e RW |
7635 | if test "${with_mpfr_include+set}" = set; then : |
7636 | withval=$with_mpfr_include; | |
7637 | fi | |
1c710c3c | 7638 | |
8a877c9c | 7639 | |
9965e3cd | 7640 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
7641 | if test "${with_mpfr_lib+set}" = set; then : |
7642 | withval=$with_mpfr_lib; | |
7643 | fi | |
8a877c9c | 7644 | |
bebf829d PB |
7645 | |
7646 | if test "x$with_mpfr" != x; then | |
7647 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 7648 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 7649 | fi |
8a877c9c | 7650 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 7651 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
7652 | fi |
7653 | if test "x$with_mpfr_lib" != x; then | |
7654 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
7655 | fi | |
e69bf64b | 7656 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
7657 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
7658 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 7659 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 7660 | fi |
00f35794 BE |
7661 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
7662 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
7663 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
7664 | # Do not test the mpfr version. Assume that it is sufficient, since |
7665 | # it is in the source tree, and the library has not been built yet | |
7666 | # but it would be included on the link line in the version check below | |
7667 | # hence making the test fail. | |
7668 | have_gmp=yes | |
7669 | fi | |
bebf829d | 7670 | |
6de9cd9a | 7671 | # Specify a location for gmp |
1c710c3c | 7672 | |
5213506e RW |
7673 | # Check whether --with-gmp-dir was given. |
7674 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 7675 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
7676 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
7677 | fi | |
7678 | ||
6de9cd9a | 7679 | |
6de9cd9a | 7680 | |
5213506e RW |
7681 | # Check whether --with-gmp was given. |
7682 | if test "${with_gmp+set}" = set; then : | |
7683 | withval=$with_gmp; | |
7684 | fi | |
1c710c3c | 7685 | |
6de9cd9a | 7686 | |
9965e3cd | 7687 | # Check whether --with-gmp-include was given. |
5213506e RW |
7688 | if test "${with_gmp_include+set}" = set; then : |
7689 | withval=$with_gmp_include; | |
7690 | fi | |
1c710c3c | 7691 | |
8a877c9c | 7692 | |
9965e3cd | 7693 | # Check whether --with-gmp-lib was given. |
5213506e RW |
7694 | if test "${with_gmp_lib+set}" = set; then : |
7695 | withval=$with_gmp_lib; | |
7696 | fi | |
8a877c9c KG |
7697 | |
7698 | ||
6de9cd9a | 7699 | |
bebf829d PB |
7700 | if test "x$with_gmp" != x; then |
7701 | gmplibs="-L$with_gmp/lib $gmplibs" | |
7702 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 7703 | fi |
8a877c9c KG |
7704 | if test "x$with_gmp_include" != x; then |
7705 | gmpinc="-I$with_gmp_include $gmpinc" | |
7706 | fi | |
7707 | if test "x$with_gmp_lib" != x; then | |
7708 | gmplibs="-L$with_gmp_lib $gmplibs" | |
7709 | fi | |
e69bf64b | 7710 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 7711 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 7712 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 7713 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 7714 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 7715 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
7716 | # Do not test the gmp version. Assume that it is sufficient, since |
7717 | # it is in the source tree, and the library has not been built yet | |
7718 | # but it would be included on the link line in the version check below | |
7719 | # hence making the test fail. | |
7720 | have_gmp=yes | |
7721 | fi | |
6de9cd9a | 7722 | |
d943d7c4 | 7723 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
7724 | have_gmp=yes |
7725 | saved_CFLAGS="$CFLAGS" | |
7726 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
7727 | # Check for the recommended and required versions of GMP. |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
7729 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
7730 | |
7731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
7732 | /* end confdefs.h. */ |
7733 | #include "gmp.h" | |
7734 | int | |
7735 | main () | |
7736 | { | |
7737 | ||
7738 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
7739 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 7740 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
7741 | choke me |
7742 | #endif | |
7743 | ||
7744 | ; | |
7745 | return 0; | |
7746 | } | |
7747 | _ACEOF | |
7748 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 7749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 7750 | /* end confdefs.h. */ |
362c6d2f | 7751 | #include <gmp.h> |
1c710c3c DJ |
7752 | int |
7753 | main () | |
7754 | { | |
6de9cd9a | 7755 | |
362c6d2f KG |
7756 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
7757 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
7758 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
7759 | choke me |
7760 | #endif | |
1c710c3c DJ |
7761 | |
7762 | ; | |
7763 | return 0; | |
7764 | } | |
7765 | _ACEOF | |
5213506e RW |
7766 | if ac_fn_c_try_compile "$LINENO"; then : |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7768 | $as_echo "yes" >&6; } | |
362c6d2f KG |
7769 | else |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
7771 | $as_echo "buggy but acceptable" >&6; } | |
7772 | fi | |
7773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 7774 | else |
5213506e RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7776 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 7777 | fi |
5213506e | 7778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 7779 | |
acd26225 | 7780 | # If we have GMP, check the MPFR version. |
e69bf64b | 7781 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
7782 | # Check for the recommended and required versions of MPFR. |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
7784 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 7786 | /* end confdefs.h. */ |
70ec446f | 7787 | #include <gmp.h> |
e69bf64b | 7788 | #include <mpfr.h> |
1c710c3c DJ |
7789 | int |
7790 | main () | |
7791 | { | |
e48d66a9 | 7792 | |
8be34204 | 7793 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
7794 | choke me |
7795 | #endif | |
1c710c3c DJ |
7796 | |
7797 | ; | |
7798 | return 0; | |
7799 | } | |
7800 | _ACEOF | |
5213506e RW |
7801 | if ac_fn_c_try_compile "$LINENO"; then : |
7802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 7803 | /* end confdefs.h. */ |
a3993f33 | 7804 | #include <gmp.h> |
e69bf64b | 7805 | #include <mpfr.h> |
1c710c3c DJ |
7806 | int |
7807 | main () | |
7808 | { | |
a3993f33 | 7809 | |
8be34204 | 7810 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
7811 | choke me |
7812 | #endif | |
acd26225 KG |
7813 | |
7814 | ; | |
7815 | return 0; | |
7816 | } | |
7817 | _ACEOF | |
5213506e RW |
7818 | if ac_fn_c_try_compile "$LINENO"; then : |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7820 | $as_echo "yes" >&6; } | |
acd26225 | 7821 | else |
5213506e RW |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
7823 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 7824 | fi |
5213506e | 7825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 7826 | else |
5213506e RW |
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7828 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 7829 | fi |
5213506e | 7830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
7831 | fi |
7832 | ||
7833 | # Check for the MPC header version. | |
3a5729ea | 7834 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 7835 | # Check for the recommended and required versions of MPC. |
5213506e RW |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
7837 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
7838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
7839 | /* end confdefs.h. */ |
7840 | #include <mpc.h> | |
7841 | int | |
7842 | main () | |
7843 | { | |
7844 | ||
362c6d2f KG |
7845 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
7846 | choke me | |
7847 | #endif | |
7848 | ||
7849 | ; | |
7850 | return 0; | |
7851 | } | |
7852 | _ACEOF | |
7853 | if ac_fn_c_try_compile "$LINENO"; then : | |
7854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7855 | /* end confdefs.h. */ | |
7856 | #include <mpc.h> | |
7857 | int | |
7858 | main () | |
7859 | { | |
7860 | ||
7861 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
7862 | choke me |
7863 | #endif | |
7864 | ||
7865 | ; | |
7866 | return 0; | |
7867 | } | |
7868 | _ACEOF | |
5213506e RW |
7869 | if ac_fn_c_try_compile "$LINENO"; then : |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 7871 | $as_echo "yes" >&6; } |
362c6d2f KG |
7872 | else |
7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
7874 | $as_echo "buggy but acceptable" >&6; } | |
7875 | fi | |
7876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 7877 | else |
5213506e | 7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 7879 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 7880 | fi |
5213506e | 7881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
7882 | fi |
7883 | ||
7884 | # Now check the MPFR library. | |
7885 | if test x"$have_gmp" = xyes; then | |
7886 | saved_LIBS="$LIBS" | |
7887 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
7889 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 7890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 7891 | /* end confdefs.h. */ |
3a5729ea | 7892 | #include <mpc.h> |
acd26225 KG |
7893 | int |
7894 | main () | |
7895 | { | |
7896 | ||
7897 | mpfr_t n; | |
7898 | mpfr_t x; | |
3a5729ea | 7899 | mpc_t c; |
acd26225 KG |
7900 | int t; |
7901 | mpfr_init (n); | |
7902 | mpfr_init (x); | |
90ca6847 TB |
7903 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
7904 | mpfr_erfc (n, x, MPFR_RNDN); | |
7905 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
7906 | mpfr_clear(n); |
7907 | mpfr_clear(x); | |
7908 | mpc_init2 (c, 53); | |
7909 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
7910 | mpc_cosh (c, c, MPC_RNDNN); | |
7911 | mpc_pow (c, c, c, MPC_RNDNN); | |
7912 | mpc_acosh (c, c, MPC_RNDNN); | |
7913 | mpc_clear (c); | |
1c710c3c DJ |
7914 | |
7915 | ; | |
7916 | return 0; | |
7917 | } | |
7918 | _ACEOF | |
5213506e RW |
7919 | if ac_fn_c_try_link "$LINENO"; then : |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7921 | $as_echo "yes" >&6; } | |
1c710c3c | 7922 | else |
5213506e RW |
7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7924 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 7925 | fi |
5213506e RW |
7926 | rm -f core conftest.err conftest.$ac_objext \ |
7927 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
7928 | LIBS="$saved_LIBS" |
7929 | fi | |
7930 | ||
e69bf64b | 7931 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 7932 | |
362c6d2f KG |
7933 | # The library versions listed in the error message below should match |
7934 | # the HARD-minimums enforced above. | |
e69bf64b | 7935 | if test x$have_gmp != xyes; then |
8be34204 | 7936 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
7937 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
7938 | their locations. Source code for these libraries can be found at | |
7939 | their respective hosting sites as well as at | |
aeebd94c | 7940 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
7941 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
7942 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
7943 | make sure that you have installed both the libraries and the header | |
7944 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 7945 | fi |
70ec446f KG |
7946 | fi |
7947 | ||
acd26225 KG |
7948 | # Flags needed for both GMP, MPFR and/or MPC. |
7949 | ||
7950 | ||
6de9cd9a DN |
7951 | |
7952 | ||
7953 | ||
9e3eba15 | 7954 | |
0ff2d841 | 7955 | |
0b21f5d3 | 7956 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 7957 | |
0b21f5d3 EB |
7958 | # Check whether --with-stage1-libs was given. |
7959 | if test "${with_stage1_libs+set}" = set; then : | |
7960 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
7961 | stage1_libs= | |
00020c16 | 7962 | else |
0b21f5d3 | 7963 | stage1_libs=$withval |
00020c16 ILT |
7964 | fi |
7965 | else | |
5dc85f7e | 7966 | stage1_libs= |
5213506e RW |
7967 | fi |
7968 | ||
00020c16 ILT |
7969 | |
7970 | ||
aac9103b TT |
7971 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
7972 | # default is yes if gcc is being built; no otherwise. The reason for | |
7973 | # this default is that gdb is sometimes linked against GNU Source | |
7974 | # Highlight, which is a shared library that uses C++ exceptions. In | |
7975 | # this case, -static-libstdc++ will cause crashes. | |
7976 | ||
7977 | # Check whether --with-static-standard-libraries was given. | |
7978 | if test "${with_static_standard_libraries+set}" = set; then : | |
7979 | withval=$with_static_standard_libraries; | |
7980 | else | |
7981 | with_static_standard_libraries=auto | |
7982 | fi | |
7983 | ||
7984 | if test "$with_static_standard_libraries" = auto; then | |
7985 | with_static_standard_libraries=$have_compiler | |
7986 | fi | |
7987 | ||
0b21f5d3 | 7988 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 7989 | |
0b21f5d3 EB |
7990 | # Check whether --with-stage1-ldflags was given. |
7991 | if test "${with_stage1_ldflags+set}" = set; then : | |
7992 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
7993 | stage1_ldflags= | |
00020c16 | 7994 | else |
0b21f5d3 | 7995 | stage1_ldflags=$withval |
00020c16 ILT |
7996 | fi |
7997 | else | |
0b21f5d3 EB |
7998 | stage1_ldflags= |
7999 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8000 | # if supported. But if the user explicitly specified the libraries to use, | |
8001 | # trust that they are doing what they want. | |
aac9103b TT |
8002 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8003 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8004 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8005 | fi | |
5213506e RW |
8006 | fi |
8007 | ||
00020c16 ILT |
8008 | |
8009 | ||
5dc85f7e | 8010 | # Libraries to use for stage2 and later builds. |
00020c16 | 8011 | |
5213506e RW |
8012 | # Check whether --with-boot-libs was given. |
8013 | if test "${with_boot_libs+set}" = set; then : | |
8014 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8015 | poststage1_libs= |
8016 | else | |
8017 | poststage1_libs=$withval | |
8018 | fi | |
8019 | else | |
5dc85f7e | 8020 | poststage1_libs= |
5213506e RW |
8021 | fi |
8022 | ||
00020c16 ILT |
8023 | |
8024 | ||
ed2eaa9f ILT |
8025 | # Linker flags to use for stage2 and later builds. |
8026 | ||
8027 | # Check whether --with-boot-ldflags was given. | |
8028 | if test "${with_boot_ldflags+set}" = set; then : | |
8029 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8030 | poststage1_ldflags= | |
8031 | else | |
8032 | poststage1_ldflags=$withval | |
8033 | fi | |
8034 | else | |
8035 | poststage1_ldflags= | |
bec93d73 ILT |
8036 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8037 | # statically. But if the user explicitly specified the libraries to | |
8038 | # use, trust that they are doing what they want. | |
8039 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8040 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8041 | fi | |
8042 | fi | |
8043 | ||
8044 | ||
8045 | ||
e357a5e0 | 8046 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8047 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8048 | |
8049 | ||
33ad93b9 RG |
8050 | # Check whether --with-isl was given. |
8051 | if test "${with_isl+set}" = set; then : | |
8052 | withval=$with_isl; | |
5213506e | 8053 | fi |
f8bf9252 | 8054 | |
f8bf9252 | 8055 | |
eae1a5d4 | 8056 | # Treat --without-isl as a request to disable |
625afa23 | 8057 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8058 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8059 | # Check for isl |
625afa23 RG |
8060 | |
8061 | ||
33ad93b9 RG |
8062 | # Check whether --with-isl-include was given. |
8063 | if test "${with_isl_include+set}" = set; then : | |
8064 | withval=$with_isl_include; | |
5213506e RW |
8065 | fi |
8066 | ||
f8bf9252 | 8067 | |
33ad93b9 RG |
8068 | # Check whether --with-isl-lib was given. |
8069 | if test "${with_isl_lib+set}" = set; then : | |
8070 | withval=$with_isl_lib; | |
5213506e | 8071 | fi |
f8bf9252 | 8072 | |
f8bf9252 | 8073 | |
33ad93b9 RG |
8074 | # Check whether --enable-isl-version-check was given. |
8075 | if test "${enable_isl_version_check+set}" = set; then : | |
8076 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8077 | else | |
8078 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8079 | fi |
8080 | ||
8081 | ||
33ad93b9 RG |
8082 | # Initialize isllibs and islinc. |
8083 | case $with_isl in | |
8084 | no) | |
8085 | isllibs= | |
8086 | islinc= | |
8087 | ;; | |
8088 | "" | yes) | |
8089 | ;; | |
8090 | *) | |
8091 | isllibs="-L$with_isl/lib" | |
8092 | islinc="-I$with_isl/include" | |
8093 | ;; | |
8094 | esac | |
8095 | if test "x${with_isl_include}" != x ; then | |
8096 | islinc="-I$with_isl_include" | |
8097 | fi | |
8098 | if test "x${with_isl_lib}" != x; then | |
8099 | isllibs="-L$with_isl_lib" | |
8100 | fi | |
8101 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8102 | && test -d ${srcdir}/isl; then | |
8103 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8104 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8105 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8107 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8108 | fi |
7d32a440 | 8109 | |
eae1a5d4 RG |
8110 | isllibs="${isllibs} -lisl" |
8111 | ||
7d32a440 | 8112 | |
7d32a440 | 8113 | |
9847828b RB |
8114 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8115 | _isl_saved_CFLAGS=$CFLAGS | |
8116 | _isl_saved_LDFLAGS=$LDFLAGS | |
8117 | _isl_saved_LIBS=$LIBS | |
8118 | ||
8119 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8120 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8121 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8122 | |
f877b3ad RB |
8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8124 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8126 | /* end confdefs.h. */ |
f877b3ad | 8127 | #include <isl/schedule.h> |
622dbadf BC |
8128 | int |
8129 | main () | |
8130 | { | |
f877b3ad | 8131 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8132 | ; |
8133 | return 0; | |
8134 | } | |
8135 | _ACEOF | |
8136 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8137 | gcc_cv_isl=yes |
622dbadf BC |
8138 | else |
8139 | gcc_cv_isl=no | |
8140 | fi | |
8141 | rm -f core conftest.err conftest.$ac_objext \ | |
8142 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8144 | $as_echo "$gcc_cv_isl" >&6; } | |
8145 | ||
560d18d3 | 8146 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8148 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8149 | fi |
8150 | ||
9847828b RB |
8151 | CFLAGS=$_isl_saved_CFLAGS |
8152 | LDFLAGS=$_isl_saved_LDFLAGS | |
8153 | LIBS=$_isl_saved_LIBS | |
8154 | fi | |
8155 | ||
8156 | ||
f8bf9252 | 8157 | |
f8bf9252 | 8158 | |
33ad93b9 RG |
8159 | |
8160 | ||
33ad93b9 RG |
8161 | if test "x${with_isl}" = xno; then |
8162 | graphite_requested=no | |
8163 | elif test "x${with_isl}" != x \ | |
8164 | || test "x${with_isl_include}" != x \ | |
8165 | || test "x${with_isl_lib}" != x ; then | |
8166 | graphite_requested=yes | |
8167 | else | |
8168 | graphite_requested=no | |
7d32a440 | 8169 | fi |
d789184e | 8170 | |
d789184e SP |
8171 | |
8172 | ||
33ad93b9 RG |
8173 | if test "${gcc_cv_isl}" = no ; then |
8174 | isllibs= | |
8175 | islinc= | |
8176 | fi | |
8177 | ||
8178 | if test "${graphite_requested}" = yes \ | |
8179 | && test "x${isllibs}" = x \ | |
8180 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8181 | |
22e05272 | 8182 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8183 | fi |
f8bf9252 | 8184 | |
d32ef397 | 8185 | |
d32ef397 AS |
8186 | fi |
8187 | ||
e357a5e0 | 8188 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8189 | if test "x$with_isl" = xno || |
625afa23 | 8190 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8191 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8192 | islinc= |
32d024bf RG |
8193 | fi |
8194 | ||
625afa23 RG |
8195 | |
8196 | ||
8197 | ||
d7f09764 DN |
8198 | # Check for LTO support. |
8199 | # Check whether --enable-lto was given. | |
8200 | if test "${enable_lto+set}" = set; then : | |
8201 | enableval=$enable_lto; enable_lto=$enableval | |
8202 | else | |
8203 | enable_lto=yes; default_enable_lto=yes | |
8204 | fi | |
8205 | ||
8206 | ||
7413962d | 8207 | |
9a02962b DK |
8208 | |
8209 | ||
8210 | target_elf=no | |
8211 | case $target in | |
8212 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8213 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8214 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8215 | nvptx-*-none) |
9a02962b DK |
8216 | target_elf=no |
8217 | ;; | |
8218 | *) | |
8219 | target_elf=yes | |
8220 | ;; | |
8221 | esac | |
8222 | ||
8223 | if test $target_elf = yes; then : | |
48215350 DK |
8224 | # ELF platforms build the lto-plugin always. |
8225 | build_lto_plugin=yes | |
9a02962b | 8226 | |
9a02962b DK |
8227 | else |
8228 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8229 | case $target in |
deeba76a | 8230 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8231 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8232 | *) enable_lto=no ;; |
8233 | esac | |
9a02962b | 8234 | else |
db50fe7d IS |
8235 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8236 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8237 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8238 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8239 | # -flto it won't be needed until after installation anyway. | |
8240 | case $target in | |
9e530bcd | 8241 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8242 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8243 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8244 | fi |
8245 | ;; | |
8246 | esac | |
8247 | fi | |
1cd0b716 | 8248 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8249 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8250 | case $target in |
48215350 | 8251 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8252 | *) ;; |
8253 | esac | |
48215350 | 8254 | |
9a02962b DK |
8255 | fi |
8256 | ||
d7f09764 | 8257 | |
45b3824d TS |
8258 | # Check whether --enable-linker-plugin-configure-flags was given. |
8259 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8260 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8261 | else | |
8262 | extra_linker_plugin_configure_flags= | |
8263 | fi | |
8264 | ||
8265 | ||
8266 | # Check whether --enable-linker-plugin-flags was given. | |
8267 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8268 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8269 | else | |
8270 | extra_linker_plugin_flags= | |
8271 | fi | |
8272 | ||
8273 | ||
8274 | ||
cdfee50a NS |
8275 | # Enable --enable-host-shared. |
8276 | # Checked early to determine whether jit is an 'all' language | |
8277 | # Check whether --enable-host-shared was given. | |
8278 | if test "${enable_host_shared+set}" = set; then : | |
8279 | enableval=$enable_host_shared; host_shared=$enableval | |
dddcf63e | 8280 | case $host in |
67d7ab01 IS |
8281 | x86_64-*-darwin* | aarch64-*-darwin*) |
8282 | if test x$host_shared != xyes ; then | |
8283 | # PIC is the default, and actually cannot be switched off. | |
8284 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8285 | host_shared=yes | |
8286 | fi ;; | |
8287 | *) ;; | |
8288 | esac | |
cdfee50a | 8289 | else |
dddcf63e | 8290 | case $host in |
67d7ab01 IS |
8291 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
8292 | *) host_shared=no ;; | |
8293 | esac | |
cdfee50a NS |
8294 | fi |
8295 | ||
8296 | ||
f8bf9252 | 8297 | |
0823efed | 8298 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8299 | stage1_languages=,c, |
2805b53a | 8300 | |
00020c16 | 8301 | # Target libraries that we bootstrap. |
ad1e5170 | 8302 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8303 | |
55ffb5ed NN |
8304 | # Figure out what language subdirectories are present. |
8305 | # Look if the user specified --enable-languages="..."; if not, use | |
8306 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8307 | # go away some day. | |
8308 | # NB: embedded tabs in this IF block -- do not untabify | |
8309 | if test -d ${srcdir}/gcc; then | |
8310 | if test x"${enable_languages+set}" != xset; then | |
8311 | if test x"${LANGUAGES+set}" = xset; then | |
8312 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8313 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8314 | else |
cdfee50a | 8315 | enable_languages=default |
55ffb5ed NN |
8316 | fi |
8317 | else | |
8318 | if test x"${enable_languages}" = x || | |
8319 | test x"${enable_languages}" = xyes; | |
8320 | then | |
6b1786aa | 8321 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8322 | exit 1 |
8323 | fi | |
8324 | fi | |
8325 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8326 | ||
7f26dfa3 FXC |
8327 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8328 | # and make the substitution. | |
8329 | case ,${enable_languages}, in | |
8330 | *,f95,*) | |
6b1786aa | 8331 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8332 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8333 | ;; | |
8334 | esac | |
8335 | ||
0823efed DN |
8336 | # If bootstrapping, C++ must be enabled. |
8337 | case ",$enable_languages,:$enable_bootstrap" in | |
8338 | *,c++,*:*) ;; | |
8339 | *:yes) | |
ff3ac0f4 ILT |
8340 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8341 | enable_languages="${enable_languages},c++" | |
8342 | else | |
22e05272 | 8343 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8344 | fi |
8345 | ;; | |
8346 | esac | |
8347 | ||
55ffb5ed NN |
8348 | # First scan to see if an enabled language requires some other language. |
8349 | # We assume that a given config-lang.in will list all the language | |
8350 | # front ends it requires, even if some are required indirectly. | |
8351 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8352 | case ${lang_frag} in | |
8353 | ..) ;; | |
8354 | # The odd quoting in the next line works around | |
8355 | # an apparent bug in bash 1.12 on linux. | |
8356 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8357 | *) | |
69ecd18f ILT |
8358 | # From the config-lang.in, get $language, $lang_requires, and |
8359 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8360 | language= |
8361 | lang_requires= | |
69ecd18f | 8362 | lang_requires_boot_languages= |
d4360477 NS |
8363 | # set srcdir during sourcing lang_frag to the gcc dir. |
8364 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8365 | # polutes this shell | |
8366 | saved_srcdir=${srcdir} | |
8367 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8368 | srcdir=${saved_srcdir} | |
69ecd18f | 8369 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8370 | case ,${enable_languages}, in |
8371 | *,$other,*) ;; | |
cdfee50a | 8372 | *,default,*) ;; |
55ffb5ed NN |
8373 | *,all,*) ;; |
8374 | *,$language,*) | |
8375 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8376 | enable_languages="${enable_languages},${other}" | |
8377 | ;; | |
8378 | esac | |
8379 | done | |
69ecd18f ILT |
8380 | for other in ${lang_requires_boot_languages} ; do |
8381 | if test "$other" != "c"; then | |
8382 | case ,${enable_stage1_languages}, in | |
8383 | *,$other,*) ;; | |
cdfee50a | 8384 | *,default,*) ;; |
69ecd18f ILT |
8385 | *,all,*) ;; |
8386 | *) | |
8387 | case ,${enable_languages}, in | |
8388 | *,$language,*) | |
8389 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8390 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8391 | ;; | |
8392 | esac | |
8393 | ;; | |
8394 | esac | |
8395 | fi | |
8396 | done | |
55ffb5ed NN |
8397 | ;; |
8398 | esac | |
8399 | done | |
8400 | ||
e1888513 | 8401 | new_enable_languages=,c, |
d7f09764 DN |
8402 | |
8403 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8404 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8405 | case ,${enable_languages}, in |
8406 | *,lto,*) ;; | |
8407 | *) enable_languages="${enable_languages},lto" ;; | |
8408 | esac | |
1cd0b716 | 8409 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8410 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8411 | fi |
8412 | fi | |
8413 | ||
426c1eb0 TS |
8414 | # If we're building an offloading compiler, add the LTO front end. |
8415 | if test x"$enable_as_accelerator_for" != x ; then | |
8416 | case ,${enable_languages}, in | |
8417 | *,lto,*) ;; | |
8418 | *) enable_languages="${enable_languages},lto" ;; | |
8419 | esac | |
8420 | fi | |
8421 | ||
cdfee50a | 8422 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8423 | potential_languages=,c, |
55ffb5ed | 8424 | |
4da3b0f8 ILT |
8425 | enabled_target_libs= |
8426 | disabled_target_libs= | |
8427 | ||
55ffb5ed NN |
8428 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8429 | case ${lang_frag} in | |
8430 | ..) ;; | |
8431 | # The odd quoting in the next line works around | |
8432 | # an apparent bug in bash 1.12 on linux. | |
8433 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8434 | *) | |
1c710c3c | 8435 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8436 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8437 | language= |
8438 | target_libs= | |
8439 | lang_dirs= | |
1546bb64 | 8440 | subdir_requires= |
e1888513 PB |
8441 | boot_language=no |
8442 | build_by_default=yes | |
d4360477 NS |
8443 | # set srcdir during sourcing. See above about save & restore |
8444 | saved_srcdir=${srcdir} | |
8445 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8446 | srcdir=${saved_srcdir} | |
e1888513 PB |
8447 | if test x${language} = x; then |
8448 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8449 | exit 1 | |
8450 | fi | |
8451 | ||
78767fd9 | 8452 | if test "$language" = "c++"; then |
0823efed | 8453 | boot_language=yes |
00020c16 ILT |
8454 | fi |
8455 | ||
178f875a | 8456 | add_this_lang=no |
cdfee50a NS |
8457 | # C is always enabled, so no need to add it again |
8458 | if test "$language" != "c"; then | |
8459 | case ,${enable_languages}, in | |
8460 | *,${language},*) | |
8461 | # Language was explicitly selected; include it | |
d4a10d0a | 8462 | add_this_lang=yes |
cdfee50a NS |
8463 | ;; |
8464 | *,all,*) | |
8465 | # All languages are enabled | |
8466 | add_this_lang=all | |
8467 | ;; | |
8468 | *,default,*) | |
8469 | # 'default' was selected, select it if it is a default language | |
178f875a | 8470 | add_this_lang=${build_by_default} |
cdfee50a NS |
8471 | ;; |
8472 | esac | |
8473 | fi | |
6de9cd9a | 8474 | |
1546bb64 | 8475 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8476 | for i in $subdir_requires; do |
b6348cb3 | 8477 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8478 | case ${add_this_lang} in |
8479 | yes) | |
1546bb64 | 8480 | # Specifically requested language; tell them. |
22e05272 | 8481 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8482 | ;; |
cdfee50a NS |
8483 | all) |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8485 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8486 | add_this_lang=unsupported | |
8487 | ;; | |
1546bb64 PB |
8488 | *) |
8489 | # Silently disable. | |
e1888513 | 8490 | add_this_lang=unsupported |
1546bb64 PB |
8491 | ;; |
8492 | esac | |
8493 | done | |
8494 | ||
e1888513 | 8495 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8496 | case ${add_this_lang}:${language}:${have_gnat} in |
8497 | yes:ada:no) | |
e1888513 | 8498 | # Specifically requested language; tell them. |
22e05272 | 8499 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8500 | ;; |
cdfee50a NS |
8501 | all:ada:no) |
8502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8503 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8504 | add_this_lang=unsupported | |
8505 | ;; | |
e1888513 PB |
8506 | *:ada:no) |
8507 | # Silently disable. | |
8508 | add_this_lang=unsupported | |
8509 | ;; | |
8510 | esac | |
8511 | ||
cdfee50a | 8512 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
8513 | # but not if building for Mingw. All code in Windows |
8514 | # is position independent code (PIC). | |
c83027f3 NB |
8515 | case $target in |
8516 | *mingw*) ;; | |
8517 | *) | |
8518 | case ${add_this_lang}:${language}:${host_shared} in | |
8519 | yes:jit:no) | |
8520 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 8521 | as_fn_error $? " |
cdfee50a NS |
8522 | Enabling language \"jit\" requires --enable-host-shared. |
8523 | ||
8524 | --enable-host-shared typically slows the rest of the compiler down by | |
8525 | a few %, so you must explicitly enable it. | |
8526 | ||
8527 | If you want to build both the jit and the regular compiler, it is often | |
8528 | best to do this via two separate configure/builds, in separate | |
8529 | directories, to avoid imposing the performance cost of | |
8530 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
8531 | ;; |
8532 | all:jit:no) | |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 8534 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
8535 | add_this_lang=unsupported |
8536 | ;; | |
8537 | *:jit:no) | |
8538 | # Silently disable. | |
8539 | add_this_lang=unsupported | |
8540 | ;; | |
8541 | esac | |
8542 | ;; | |
8543 | esac | |
cdfee50a NS |
8544 | |
8545 | # Disable a language that is unsupported by the target. | |
8546 | case "${add_this_lang}: $unsupported_languages " in | |
8547 | no:*) ;; | |
8548 | unsupported:*) ;; | |
8549 | *:*" $language "*) | |
8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
8551 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 8552 | add_this_lang=unsupported |
4fab7234 HPN |
8553 | ;; |
8554 | esac | |
8555 | ||
6de9cd9a | 8556 | case $add_this_lang in |
e1888513 | 8557 | unsupported) |
55ffb5ed | 8558 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
8559 | disabled_target_libs="$disabled_target_libs $target_libs" |
8560 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 8561 | ;; |
e1888513 PB |
8562 | no) |
8563 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
8564 | disabled_target_libs="$disabled_target_libs $target_libs" |
8565 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
8566 | potential_languages="${potential_languages}${language}," |
8567 | ;; | |
cdfee50a | 8568 | all|yes) |
e1888513 PB |
8569 | new_enable_languages="${new_enable_languages}${language}," |
8570 | potential_languages="${potential_languages}${language}," | |
2805b53a | 8571 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 8572 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
8573 | case "${boot_language}:,$enable_stage1_languages," in |
8574 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 8575 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
8576 | case ",$stage1_languages," in |
8577 | *,$language,* | ,yes, | ,all,) ;; | |
8578 | *) stage1_languages="${stage1_languages}${language}," ;; | |
8579 | esac | |
00020c16 ILT |
8580 | # We need to bootstrap any supporting libraries. |
8581 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
8582 | ;; |
8583 | esac | |
8584 | ;; | |
55ffb5ed NN |
8585 | esac |
8586 | ;; | |
8587 | esac | |
8588 | done | |
8589 | ||
4da3b0f8 ILT |
8590 | # Add target libraries which are only needed for disabled languages |
8591 | # to noconfigdirs. | |
8592 | if test -n "$disabled_target_libs"; then | |
8593 | for dir in $disabled_target_libs; do | |
8594 | case " $enabled_target_libs " in | |
8595 | *" ${dir} "*) ;; | |
8596 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
8597 | esac | |
8598 | done | |
8599 | fi | |
8600 | ||
5213506e RW |
8601 | # Check whether --enable-stage1-languages was given. |
8602 | if test "${enable_stage1_languages+set}" = set; then : | |
8603 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
8604 | ,no,|,,) |
8605 | # Set it to something that will have no effect in the loop below | |
8606 | enable_stage1_languages=c ;; | |
8607 | ,yes,) | |
8608 | enable_stage1_languages=`echo $new_enable_languages | \ | |
8609 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
8610 | *,all,*) | |
8611 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
8612 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
8613 | esac | |
8614 | ||
8615 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
8616 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
8617 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
8618 | case $potential_languages in | |
8619 | *,$i,*) | |
8620 | case $stage1_languages in | |
8621 | *,$i,*) ;; | |
8622 | *) stage1_languages="$stage1_languages$i," ;; | |
8623 | esac ;; | |
8624 | *) | |
8625 | case $missing_languages in | |
8626 | *,$i,*) ;; | |
8627 | *) missing_languages="$missing_languages$i," ;; | |
8628 | esac ;; | |
8629 | esac | |
8630 | done | |
5213506e RW |
8631 | fi |
8632 | ||
e1888513 PB |
8633 | |
8634 | # Remove leading/trailing commas that were added for simplicity | |
8635 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 8636 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
8637 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
8638 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
8639 | ||
55ffb5ed | 8640 | if test "x$missing_languages" != x; then |
22e05272 | 8641 | as_fn_error $? " |
0cf085e4 | 8642 | The following requested languages could not be built: ${missing_languages} |
5213506e | 8643 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 8644 | fi |
55ffb5ed NN |
8645 | if test "x$new_enable_languages" != "x$enable_languages"; then |
8646 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 8647 | enable_languages="$new_enable_languages" |
55ffb5ed | 8648 | fi |
e1888513 | 8649 | |
1c710c3c | 8650 | |
b2eaac4a | 8651 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
8652 | fi |
8653 | ||
27079765 AH |
8654 | # Handle --disable-<component> generically. |
8655 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
8656 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
8657 | varname=`echo $dirname | sed -e s/+/_/g` |
8658 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
8659 | noconfigdirs="$noconfigdirs $dir" |
8660 | fi | |
8661 | done | |
8662 | ||
43c40f3e RO |
8663 | # Check for Boehm's garbage collector |
8664 | # Check whether --enable-objc-gc was given. | |
8665 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
8666 | enableval=$enable_objc_gc; |
8667 | fi | |
8668 | ||
8669 | ||
8670 | # Check whether --with-target-bdw-gc was given. | |
8671 | if test "${with_target_bdw_gc+set}" = set; then : | |
8672 | withval=$with_target_bdw_gc; | |
8673 | fi | |
8674 | ||
8675 | ||
8676 | # Check whether --with-target-bdw-gc-include was given. | |
8677 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
8678 | withval=$with_target_bdw_gc_include; | |
8679 | fi | |
8680 | ||
8681 | ||
8682 | # Check whether --with-target-bdw-gc-lib was given. | |
8683 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
8684 | withval=$with_target_bdw_gc_lib; | |
8685 | fi | |
8686 | ||
8687 | ||
8688 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
8690 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
8691 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
8693 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
8694 | else |
8695 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 8696 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 8697 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 8698 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
8699 | else |
8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
8701 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
8702 | fi | |
8703 | fi | |
43c40f3e RO |
8704 | esac |
8705 | ||
5e9d6aa4 | 8706 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 8707 | case ,${enable_languages}, in |
1007a55c | 8708 | *,c++,*) |
5e9d6aa4 | 8709 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
8710 | case "${noconfigdirs}" in |
8711 | *target-libstdc++-v3*) | |
5e9d6aa4 | 8712 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
8713 | ;; |
8714 | *) ;; | |
8715 | esac | |
8716 | ;; | |
99776ebd | 8717 | *) |
5e9d6aa4 | 8718 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
8719 | ;; |
8720 | esac | |
8721 | ||
ee6a22df L |
8722 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
8723 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
8724 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
8725 | ||
8726 | notsupp="" | |
8727 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 8728 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
8729 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8730 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
8731 | if test -r $srcdir/$dirname/configure ; then | |
8732 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8733 | true | |
8734 | else | |
8735 | notsupp="$notsupp $dir" | |
8736 | fi | |
8737 | fi | |
8738 | fi | |
ee6a22df L |
8739 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8740 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
8741 | if test -r $srcdir/$dirname/configure ; then | |
8742 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8743 | true | |
8744 | else | |
8745 | notsupp="$notsupp $dir" | |
8746 | fi | |
8747 | fi | |
8748 | fi | |
55ffb5ed NN |
8749 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
8750 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
8751 | if test -r $srcdir/$dirname/configure ; then | |
8752 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8753 | true | |
8754 | else | |
8755 | notsupp="$notsupp $dir" | |
8756 | fi | |
8757 | fi | |
8758 | fi | |
8759 | done | |
8760 | ||
55ffb5ed NN |
8761 | # Quietly strip out all directories which aren't configurable in this tree. |
8762 | # This relies on all configurable subdirectories being autoconfiscated, which | |
8763 | # is now the case. | |
23f6b2f9 PB |
8764 | build_configdirs_all="$build_configdirs" |
8765 | build_configdirs= | |
8766 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 8767 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
8768 | if test -f ${srcdir}/$j/configure ; then |
8769 | build_configdirs="${build_configdirs} $i" | |
8770 | fi | |
8771 | done | |
8772 | ||
55ffb5ed NN |
8773 | configdirs_all="$configdirs" |
8774 | configdirs= | |
8775 | for i in ${configdirs_all} ; do | |
8776 | if test -f ${srcdir}/$i/configure ; then | |
8777 | configdirs="${configdirs} $i" | |
8778 | fi | |
8779 | done | |
23f6b2f9 | 8780 | |
55ffb5ed NN |
8781 | target_configdirs_all="$target_configdirs" |
8782 | target_configdirs= | |
8783 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 8784 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
8785 | if test -f ${srcdir}/$j/configure ; then |
8786 | target_configdirs="${target_configdirs} $i" | |
8787 | fi | |
8788 | done | |
8789 | ||
45b3824d TS |
8790 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
8791 | # so we have to add it after the preceding checks. | |
8792 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
8793 | then | |
8794 | case " $configdirs " in | |
8795 | *" libiberty "*) | |
8796 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
8797 | configdirs="$configdirs libiberty-linker-plugin" | |
8798 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
8799 | --with-libiberty=../libiberty-linker-plugin";; | |
8800 | *) | |
22e05272 | 8801 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
8802 | esac |
8803 | fi | |
8804 | ||
fca38047 TS |
8805 | # Sometimes we have special requirements for the host libiberty. |
8806 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 8807 | extra_host_zlib_configure_flags= |
fca38047 TS |
8808 | case " $configdirs " in |
8809 | *" lto-plugin "* | *" libcc1 "*) | |
8810 | # When these are to be built as shared libraries, the same applies to | |
8811 | # libiberty. | |
8812 | extra_host_libiberty_configure_flags=--enable-shared | |
8813 | ;; | |
1c01ebf6 L |
8814 | *" bfd "*) |
8815 | # When bfd is to be built as a shared library, the same applies to | |
8816 | # zlib. | |
8817 | if test "$enable_shared" = "yes"; then | |
8818 | extra_host_zlib_configure_flags=--enable-host-shared | |
8819 | fi | |
8820 | ;; | |
fca38047 TS |
8821 | esac |
8822 | ||
8823 | ||
1c01ebf6 | 8824 | |
55ffb5ed NN |
8825 | # Produce a warning message for the subdirs we can't configure. |
8826 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
8827 | # FSF releases, it's important to let people know when their machine isn't | |
8828 | # supported by the one or two programs in a package. | |
8829 | ||
8830 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
8831 | # If $appdirs is non-empty, at least one of those directories must still | |
8832 | # be configured, or we error out. (E.g., if the gas release supports a | |
8833 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
8834 | # pretend that all is well.) | |
8835 | if test -n "$appdirs" ; then | |
8836 | for dir in $appdirs ; do | |
8837 | if test -r $dir/Makefile.in ; then | |
8838 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
8839 | appdirs="" | |
8840 | break | |
8841 | fi | |
23f6b2f9 | 8842 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
8843 | appdirs="" |
8844 | break | |
8845 | fi | |
8846 | fi | |
8847 | done | |
8848 | if test -n "$appdirs" ; then | |
8849 | echo "*** This configuration is not supported by this package." 1>&2 | |
8850 | exit 1 | |
8851 | fi | |
8852 | fi | |
8853 | # Okay, some application will build, or we don't care to check. Still | |
8854 | # notify of subdirs not getting built. | |
8855 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
8856 | echo " ${notsupp}" 1>&2 | |
8857 | echo " (Any other directories should still work fine.)" 1>&2 | |
8858 | fi | |
8859 | ||
8860 | case "$host" in | |
8861 | *msdosdjgpp*) | |
8862 | enable_gdbtk=no ;; | |
8863 | esac | |
8864 | ||
c3a86da9 DJ |
8865 | # To find our prefix, in gcc_cv_tool_prefix. |
8866 | ||
8867 | # The user is always right. | |
8868 | if test "${PATH_SEPARATOR+set}" != set; then | |
8869 | echo "#! /bin/sh" >conf$$.sh | |
8870 | echo "exit 0" >>conf$$.sh | |
8871 | chmod +x conf$$.sh | |
8872 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8873 | PATH_SEPARATOR=';' | |
8874 | else | |
8875 | PATH_SEPARATOR=: | |
8876 | fi | |
8877 | rm -f conf$$.sh | |
8878 | fi | |
8879 | ||
8880 | ||
3c36aa6b JJ |
8881 | get_gcc_base_ver="cat" |
8882 | ||
8883 | # Check whether --with-gcc-major-version-only was given. | |
8884 | if test "${with_gcc_major_version_only+set}" = set; then : | |
8885 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 8886 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
8887 | fi |
8888 | ||
8889 | fi | |
8890 | ||
8891 | ||
8892 | ||
8893 | ||
8894 | ||
c3a86da9 DJ |
8895 | |
8896 | if test "x$exec_prefix" = xNONE; then | |
8897 | if test "x$prefix" = xNONE; then | |
8898 | gcc_cv_tool_prefix=$ac_default_prefix | |
8899 | else | |
8900 | gcc_cv_tool_prefix=$prefix | |
8901 | fi | |
8902 | else | |
8903 | gcc_cv_tool_prefix=$exec_prefix | |
8904 | fi | |
8905 | ||
8906 | # If there is no compiler in the tree, use the PATH only. In any | |
8907 | # case, if there is no compiler in the tree nobody should use | |
8908 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
8909 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
8910 | if test x$with_gcc_major_version_only = xyes ; then |
8911 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
8912 | else | |
8913 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
8914 | fi | |
c3a86da9 DJ |
8915 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
8916 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
8917 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
8918 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
8919 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
8920 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
8921 | else | |
8922 | gcc_cv_tool_dirs= | |
8923 | fi | |
8924 | ||
8925 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
8926 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
8927 | fi | |
8928 | ||
8929 | ||
8930 | ||
55ffb5ed NN |
8931 | copy_dirs= |
8932 | ||
1c710c3c | 8933 | |
5213506e RW |
8934 | # Check whether --with-build-sysroot was given. |
8935 | if test "${with_build_sysroot+set}" = set; then : | |
8936 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
8937 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
8938 | fi | |
8939 | else | |
8940 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 8941 | fi |
526635cb MM |
8942 | |
8943 | ||
c8aea42c | 8944 | |
5213506e RW |
8945 | |
8946 | # Check whether --with-debug-prefix-map was given. | |
8947 | if test "${with_debug_prefix_map+set}" = set; then : | |
8948 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
8949 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
8950 | for debug_map in $withval; do | |
8951 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
8952 | done | |
8953 | fi | |
8954 | else | |
8955 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
8956 | fi |
8957 | ||
c8aea42c PB |
8958 | |
8959 | ||
1c8bd6a3 PB |
8960 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
8961 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
8962 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
8963 | # We want to ensure that TARGET libraries (which we know are built with | |
8964 | # gcc) are built with "-O2 -g", so include those options when setting | |
8965 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
8966 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
8967 | if test "x${is_cross_compiler}" = xyes; then |
8968 | CFLAGS_FOR_TARGET="-g -O2" | |
8969 | else | |
8970 | CFLAGS_FOR_TARGET=$CFLAGS | |
8971 | case " $CFLAGS " in | |
8972 | *" -O2 "*) ;; | |
8973 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
8974 | esac | |
8975 | case " $CFLAGS " in | |
8976 | *" -g "* | *" -g3 "*) ;; | |
8977 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
8978 | esac | |
8979 | fi | |
1c8bd6a3 PB |
8980 | fi |
8981 | ||
8982 | ||
8983 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
8984 | if test "x${is_cross_compiler}" = xyes; then |
8985 | CXXFLAGS_FOR_TARGET="-g -O2" | |
8986 | else | |
8987 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
8988 | case " $CXXFLAGS " in | |
8989 | *" -O2 "*) ;; | |
8990 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
8991 | esac | |
8992 | case " $CXXFLAGS " in | |
8993 | *" -g "* | *" -g3 "*) ;; | |
8994 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
8995 | esac | |
8996 | fi | |
1c8bd6a3 PB |
8997 | fi |
8998 | ||
8999 | ||
6f57bdf6 DK |
9000 | |
9001 | ||
55ffb5ed NN |
9002 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9003 | # the named directory are copied to $(tooldir)/sys-include. | |
9004 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9005 | if test x${is_cross_compiler} = xno ; then | |
9006 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9007 | exit 1 | |
9008 | fi | |
9009 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9010 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9011 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9012 | fi |
9013 | fi | |
9014 | ||
9015 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9016 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9017 | # are permitted. | |
9018 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9019 | if test x${is_cross_compiler} = xno ; then | |
9020 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9021 | exit 1 | |
9022 | fi | |
9023 | if test x"${with_libs}" != xyes ; then | |
9024 | # Copy the libraries in reverse order, so that files in the first named | |
9025 | # library override files in subsequent libraries. | |
c3a86da9 | 9026 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9027 | for l in ${with_libs}; do |
1c710c3c | 9028 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9029 | done |
9030 | fi | |
9031 | fi | |
9032 | ||
d7f09764 | 9033 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9034 | # |
9035 | # This is done by determining whether or not the appropriate directory | |
9036 | # is available, and by checking whether or not specific configurations | |
9037 | # have requested that this magic not happen. | |
1c710c3c DJ |
9038 | # |
9039 | # The command line options always override the explicit settings in | |
6b1786aa | 9040 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9041 | # |
1c710c3c | 9042 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9043 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9044 | # --without-gnu-ld options for the configure script. Similarly, if |
9045 | # the default is to use the included zlib and you don't want to do that, | |
9046 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9047 | |
9048 | if test x${use_gnu_as} = x && | |
9049 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9050 | with_gnu_as=yes | |
9051 | extra_host_args="$extra_host_args --with-gnu-as" | |
9052 | fi | |
9053 | ||
9054 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9055 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9056 | with_gnu_ld=yes |
9057 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9058 | fi | |
9059 | ||
d7f09764 DN |
9060 | if test x${use_included_zlib} = x && |
9061 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9062 | : | |
9063 | else | |
9064 | with_system_zlib=yes | |
9065 | extra_host_args="$extra_host_args --with-system-zlib" | |
9066 | fi | |
9067 | ||
e8b05380 PB |
9068 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9069 | # can detect this case. | |
9070 | ||
9071 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9072 | with_newlib=yes | |
9073 | extra_host_args="$extra_host_args --with-newlib" | |
9074 | fi | |
9075 | ||
55ffb5ed NN |
9076 | # Handle ${copy_dirs} |
9077 | set fnord ${copy_dirs} | |
9078 | shift | |
9079 | while test $# != 0 ; do | |
9080 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9081 | : | |
9082 | else | |
9083 | echo Copying $1 to $2 | |
9084 | ||
9085 | # Use the install script to create the directory and all required | |
9086 | # parent directories. | |
9087 | if test -d $2 ; then | |
9088 | : | |
9089 | else | |
9090 | echo >config.temp | |
9091 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9092 | fi | |
9093 | ||
9094 | # Copy the directory, assuming we have tar. | |
9095 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9096 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9097 | ||
9098 | # It is the responsibility of the user to correctly adjust all | |
9099 | # symlinks. If somebody can figure out how to handle them correctly | |
9100 | # here, feel free to add the code. | |
9101 | ||
9102 | echo $1 > $2/COPIED | |
9103 | fi | |
9104 | shift; shift | |
9105 | done | |
9106 | ||
e8b05380 PB |
9107 | # Determine a target-dependent exec_prefix that the installed |
9108 | # gcc will search in. Keep this list sorted by triplet, with | |
9109 | # the *-*-osname triplets last. | |
9110 | md_exec_prefix= | |
9111 | case "${target}" in | |
30b74385 | 9112 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9113 | md_exec_prefix=/dev/env/DJDIR/bin |
9114 | ;; | |
e8b05380 | 9115 | *-*-hpux* | \ |
e8b05380 | 9116 | *-*-nto-qnx* | \ |
6de66370 | 9117 | *-*-solaris2*) |
e8b05380 PB |
9118 | md_exec_prefix=/usr/ccs/bin |
9119 | ;; | |
9120 | esac | |
9121 | ||
671aa708 NN |
9122 | extra_arflags_for_target= |
9123 | extra_nmflags_for_target= | |
9124 | extra_ranlibflags_for_target= | |
9125 | target_makefile_frag=/dev/null | |
9126 | case "${target}" in | |
58e24147 AM |
9127 | spu-*-*) |
9128 | target_makefile_frag="config/mt-spu" | |
9129 | ;; | |
d896cc4d | 9130 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9131 | target_makefile_frag="config/mt-sde" |
9132 | ;; | |
1ec3b87b RS |
9133 | mipsisa*-*-elfoabi*) |
9134 | target_makefile_frag="config/mt-mips-elfoabi" | |
9135 | ;; | |
08d0963a RS |
9136 | mips*-*-*linux* | mips*-*-gnu*) |
9137 | target_makefile_frag="config/mt-mips-gnu" | |
9138 | ;; | |
707f1839 SL |
9139 | nios2-*-elf*) |
9140 | target_makefile_frag="config/mt-nios2-elf" | |
9141 | ;; | |
76052545 EB |
9142 | *-*-linux-android*) |
9143 | target_makefile_frag="config/mt-android" | |
9144 | ;; | |
416ac4d4 | 9145 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9146 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9147 | ;; |
9148 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9149 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9150 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9151 | # harmless if we're using GNU nm or ar. | |
9152 | extra_arflags_for_target=" -X32_64" | |
9153 | extra_nmflags_for_target=" -B -X32_64" | |
9154 | ;; | |
671aa708 NN |
9155 | esac |
9156 | ||
9157 | alphaieee_frag=/dev/null | |
9158 | case $target in | |
9159 | alpha*-*-*) | |
9160 | # This just makes sure to use the -mieee option to build target libs. | |
9161 | # This should probably be set individually by each library. | |
9162 | alphaieee_frag="config/mt-alphaieee" | |
9163 | ;; | |
9164 | esac | |
9165 | ||
9166 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9167 | # the target libraries, similarly if it is not specified, use -Os | |
9168 | # on selected platforms. | |
9169 | ospace_frag=/dev/null | |
9170 | case "${enable_target_optspace}:${target}" in | |
9171 | yes:*) | |
9172 | ospace_frag="config/mt-ospace" | |
9173 | ;; | |
9174 | :d30v-*) | |
9175 | ospace_frag="config/mt-d30v" | |
9176 | ;; | |
d9063947 | 9177 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9178 | ospace_frag="config/mt-ospace" |
9179 | ;; | |
9180 | no:* | :*) | |
9181 | ;; | |
9182 | *) | |
9183 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9184 | ;; | |
9185 | esac | |
9186 | ||
671aa708 NN |
9187 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9188 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9189 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9190 | build_tooldir=${tooldir} |
9191 | ||
671aa708 NN |
9192 | # Create a .gdbinit file which runs the one in srcdir |
9193 | # and tells GDB to look there for source files. | |
9194 | ||
9195 | if test -r ${srcdir}/.gdbinit ; then | |
9196 | case ${srcdir} in | |
9197 | .) ;; | |
9198 | *) cat > ./.gdbinit <<EOF | |
9199 | # ${NO_EDIT} | |
9200 | dir ${srcdir} | |
9201 | dir . | |
9202 | source ${srcdir}/.gdbinit | |
9203 | EOF | |
9204 | ;; | |
9205 | esac | |
9206 | fi | |
9207 | ||
671aa708 NN |
9208 | # Make sure that the compiler is able to generate an executable. If it |
9209 | # can't, we are probably in trouble. We don't care whether we can run the | |
9210 | # executable--we might be using a cross compiler--we only care whether it | |
9211 | # can be created. At this point the main configure script has set CC. | |
9212 | we_are_ok=no | |
9213 | echo "int main () { return 0; }" > conftest.c | |
9214 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9215 | if test $? = 0 ; then | |
9216 | if test -s conftest || test -s conftest.exe ; then | |
9217 | we_are_ok=yes | |
9218 | fi | |
1c710c3c | 9219 | fi |
671aa708 NN |
9220 | case $we_are_ok in |
9221 | no) | |
9222 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9223 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9224 | rm -f conftest* | |
9225 | exit 1 | |
9226 | ;; | |
9227 | esac | |
9228 | rm -f conftest* | |
9229 | ||
d89f0ad6 | 9230 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9231 | case "${host}" in |
9232 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9233 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9234 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9235 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9236 | esac | |
9237 | ||
d89f0ad6 AL |
9238 | # On systems where the dynamic library environment variable is PATH, |
9239 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9240 | # built executables to PATH. | |
9241 | if test "$RPATH_ENVVAR" = PATH; then | |
9242 | GCC_SHLIB_SUBDIR=/shlib | |
9243 | else | |
9244 | GCC_SHLIB_SUBDIR= | |
9245 | fi | |
9246 | ||
beeda1d9 JJ |
9247 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9248 | case $enable_bootstrap in | |
9249 | yes) | |
9250 | bootstrap_suffix=bootstrap | |
9251 | BUILD_CONFIG=bootstrap-debug | |
9252 | ;; | |
9253 | no) | |
9254 | bootstrap_suffix=no-bootstrap | |
9255 | BUILD_CONFIG= | |
9256 | ;; | |
9257 | esac | |
9258 | ||
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9260 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9261 | ||
9262 | ||
9263 | # Check whether --with-build-config was given. | |
9264 | if test "${with_build_config+set}" = set; then : | |
9265 | withval=$with_build_config; case $with_build_config in | |
9266 | yes) with_build_config= ;; | |
9267 | no) with_build_config= BUILD_CONFIG= ;; | |
9268 | esac | |
9269 | fi | |
9270 | ||
9271 | ||
9272 | if test "x${with_build_config}" != x; then | |
9273 | BUILD_CONFIG=$with_build_config | |
9274 | else | |
9275 | case $BUILD_CONFIG in | |
9276 | bootstrap-debug) | |
9277 | if echo "int f (void) { return 0; }" > conftest.c && | |
9278 | ${CC} -c conftest.c && | |
9279 | mv conftest.o conftest.o.g0 && | |
9280 | ${CC} -c -g conftest.c && | |
9281 | mv conftest.o conftest.o.g && | |
9282 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9283 | : | |
9284 | else | |
9285 | BUILD_CONFIG= | |
9286 | fi | |
9287 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9288 | ;; | |
9289 | esac | |
9290 | fi | |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9292 | $as_echo "$BUILD_CONFIG" >&6; } | |
9293 | ||
9294 | ||
9295 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9297 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9298 | # Check whether --enable-vtable-verify was given. | |
9299 | if test "${enable_vtable_verify+set}" = set; then : | |
9300 | enableval=$enable_vtable_verify; case "$enableval" in | |
9301 | yes) enable_vtable_verify=yes ;; | |
9302 | no) enable_vtable_verify=no ;; | |
9303 | *) enable_vtable_verify=no;; | |
9304 | esac | |
9305 | else | |
9306 | enable_vtable_verify=no | |
9307 | fi | |
9308 | ||
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9310 | $as_echo "$enable_vtable_verify" >&6; } | |
9311 | ||
671aa708 NN |
9312 | # Record target_configdirs and the configure arguments for target and |
9313 | # build configuration in Makefile. | |
9314 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9315 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9316 | bootstrap_fixincludes=no |
671aa708 | 9317 | |
ad1e5170 JR |
9318 | # If we are building libgomp, bootstrap it. |
9319 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9320 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9321 | fi | |
9322 | ||
beeda1d9 JJ |
9323 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9324 | # or bootstrap-ubsan, bootstrap it. | |
9325 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9326 | case "$BUILD_CONFIG" in | |
170e618e | 9327 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9328 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9329 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9330 | ;; |
9331 | esac | |
ac8701fe L |
9332 | fi |
9333 | ||
beeda1d9 JJ |
9334 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9335 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9336 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9337 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9338 | fi | |
9339 | ||
671aa708 NN |
9340 | # Determine whether gdb needs tk/tcl or not. |
9341 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9342 | # and in that case we want gdb to be built without tk. Ugh! | |
9343 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9344 | # so we should be able to put the 'maybe's in unconditionally and | |
9345 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9346 | # 100% sure that that's safe though. | |
e914a571 | 9347 | |
b4f96efe | 9348 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9349 | case "$enable_gdbtk" in |
9350 | no) | |
9351 | GDB_TK="" ;; | |
e914a571 AC |
9352 | yes) |
9353 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9354 | *) |
e914a571 AC |
9355 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9356 | # distro. Eventually someone will fix this and move Insight, nee | |
9357 | # gdbtk to a separate directory. | |
9358 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9359 | GDB_TK="${gdb_tk}" | |
9360 | else | |
9361 | GDB_TK="" | |
9362 | fi | |
9363 | ;; | |
671aa708 | 9364 | esac |
ef9db8d5 DJ |
9365 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9366 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9367 | |
f9d09df0 TT |
9368 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9369 | # else does, only include them if one of these is built. The Makefile | |
9370 | # provides the ordering, so it's enough here to add to the list. | |
9371 | case " ${configdirs} " in | |
9372 | *\ gdb\ *) | |
9373 | configdirs="${configdirs} gnulib gdbsupport" | |
9374 | ;; | |
9375 | *\ gdbserver\ *) | |
9376 | configdirs="${configdirs} gnulib gdbsupport" | |
9377 | ;; | |
9378 | esac | |
98e5be21 | 9379 | |
60975492 | 9380 | # Strip out unwanted targets. |
8b87bb96 NN |
9381 | |
9382 | # While at that, we remove Makefiles if we were started for recursive | |
9383 | # configuration, so that the top-level Makefile reconfigures them, | |
9384 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9385 | |
3e54529c RW |
9386 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9387 | # but now we're fixing up the Makefile ourselves with the additional | |
9388 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9389 | # extrasub-{build,host,target} not because there is any reason to split | |
9390 | # the substitutions up that way, but only to remain below the limit of | |
9391 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9392 | |
9393 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9394 | # configure will not warn you at all. | |
8b87bb96 | 9395 | |
79cd2b23 RW |
9396 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9397 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9398 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9399 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9400 | ;; |
9401 | esac | |
9402 | ||
3e54529c | 9403 | extrasub_build= |
23f6b2f9 | 9404 | for module in ${build_configdirs} ; do |
5607edfd PB |
9405 | if test -z "${no_recursion}" \ |
9406 | && test -f ${build_subdir}/${module}/Makefile; then | |
9407 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9408 | rm -f ${build_subdir}/${module}/Makefile | |
9409 | fi | |
3e54529c | 9410 | extrasub_build="$extrasub_build |
5607edfd PB |
9411 | /^@if build-$module\$/d |
9412 | /^@endif build-$module\$/d | |
da34ca3f | 9413 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9414 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9415 | /^@endif build-$module-$bootstrap_suffix\$/d |
9416 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9417 | done |
3e54529c | 9418 | extrasub_host= |
5607edfd | 9419 | for module in ${configdirs} ; do |
a6fbc1e2 | 9420 | if test -z "${no_recursion}"; then |
f063a9ed | 9421 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9422 | if test -f ${file}; then |
9423 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9424 | rm -f ${file} | |
9425 | fi | |
9426 | done | |
5607edfd | 9427 | fi |
9e1c8fc1 JJ |
9428 | case ${module},${bootstrap_fixincludes} in |
9429 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9430 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9431 | esac | |
3e54529c | 9432 | extrasub_host="$extrasub_host |
5607edfd PB |
9433 | /^@if $module\$/d |
9434 | /^@endif $module\$/d | |
da34ca3f | 9435 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9436 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9437 | /^@endif $module-$host_bootstrap_suffix\$/d |
9438 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9439 | done |
3e54529c | 9440 | extrasub_target= |
5607edfd PB |
9441 | for module in ${target_configdirs} ; do |
9442 | if test -z "${no_recursion}" \ | |
9443 | && test -f ${target_subdir}/${module}/Makefile; then | |
9444 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9445 | rm -f ${target_subdir}/${module}/Makefile | |
9446 | fi | |
00020c16 ILT |
9447 | |
9448 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9449 | case $bootstrap_target_libs in | |
9450 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9451 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9452 | esac | |
9453 | ||
3e54529c | 9454 | extrasub_target="$extrasub_target |
5607edfd PB |
9455 | /^@if target-$module\$/d |
9456 | /^@endif target-$module\$/d | |
da34ca3f | 9457 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 9458 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
9459 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9460 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
9461 | done |
9462 | ||
3e54529c RW |
9463 | # Do the final fixup along with target modules. |
9464 | extrasub_target="$extrasub_target | |
da34ca3f AO |
9465 | /^@if /,/^@endif /d |
9466 | /^@unless /d | |
9467 | /^@endunless /d" | |
671aa708 NN |
9468 | |
9469 | # Create the serialization dependencies. This uses a temporary file. | |
9470 | ||
5213506e RW |
9471 | # Check whether --enable-serial-configure was given. |
9472 | if test "${enable_serial_configure+set}" = set; then : | |
9473 | enableval=$enable_serial_configure; | |
9474 | fi | |
ade82b16 AO |
9475 | |
9476 | ||
bf1d3e81 NN |
9477 | case ${enable_serial_configure} in |
9478 | yes) | |
9479 | enable_serial_build_configure=yes | |
9480 | enable_serial_host_configure=yes | |
9481 | enable_serial_target_configure=yes | |
9482 | ;; | |
9483 | esac | |
9484 | ||
671aa708 NN |
9485 | # These force 'configure's to be done one at a time, to avoid problems |
9486 | # with contention over a shared config.cache. | |
9487 | rm -f serdep.tmp | |
ade82b16 | 9488 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 9489 | olditem= |
bf1d3e81 | 9490 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
9491 | for item in ${build_configdirs} ; do |
9492 | case ${olditem} in | |
9493 | "") ;; | |
ade82b16 | 9494 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9495 | esac |
9496 | olditem=${item} | |
9497 | done | |
9498 | olditem= | |
bf1d3e81 | 9499 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
9500 | for item in ${configdirs} ; do |
9501 | case ${olditem} in | |
9502 | "") ;; | |
ade82b16 | 9503 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9504 | esac |
9505 | olditem=${item} | |
9506 | done | |
9507 | olditem= | |
bf1d3e81 | 9508 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
9509 | for item in ${target_configdirs} ; do |
9510 | case ${olditem} in | |
9511 | "") ;; | |
ade82b16 | 9512 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
9513 | esac |
9514 | olditem=${item} | |
9515 | done | |
9516 | serialization_dependencies=serdep.tmp | |
9517 | ||
9518 | ||
ade82b16 | 9519 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 9520 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
9521 | # might not want to pass down to subconfigures. The exception being |
9522 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
9523 | # files altogether, and which should be passed on to subconfigures. | |
9524 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
9525 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 9526 | baseargs= |
29a63921 | 9527 | tbaseargs= |
1c710c3c DJ |
9528 | keep_next=no |
9529 | skip_next=no | |
9530 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
9531 | for ac_arg |
9532 | do | |
1c710c3c DJ |
9533 | if test X"$skip_next" = X"yes"; then |
9534 | skip_next=no | |
9535 | continue | |
9536 | fi | |
9537 | if test X"$keep_next" = X"yes"; then | |
9538 | case $ac_arg in | |
9539 | *\'*) | |
9540 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9541 | esac | |
9542 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9543 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
9544 | keep_next=no |
9545 | continue | |
9546 | fi | |
9547 | ||
9548 | # Handle separated arguments. Based on the logic generated by | |
9549 | # autoconf 2.59. | |
9550 | case $ac_arg in | |
9551 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
9552 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
9553 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
9554 | | -with-* | --with-* | -without-* | --without-* | --x) | |
9555 | separate_arg=no | |
9556 | ;; | |
9557 | -*) | |
9558 | separate_arg=yes | |
9559 | ;; | |
9560 | *) | |
9561 | separate_arg=no | |
9562 | ;; | |
9563 | esac | |
9564 | ||
29a63921 AO |
9565 | skip_targ=no |
9566 | case $ac_arg in | |
9567 | ||
9568 | --with-* | --without-*) | |
9569 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
9570 | ||
9571 | case $libopt in | |
9572 | *[-_]include) | |
9573 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
9574 | ;; | |
9575 | *[-_]lib) | |
9576 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
9577 | ;; | |
9578 | *) | |
9579 | lib=$libopt | |
9580 | ;; | |
9581 | esac | |
9582 | ||
9583 | ||
9584 | case $lib in | |
4a9bb2aa | 9585 | mpc | mpfr | gmp | isl) |
29a63921 AO |
9586 | # If we're processing --with-$lib, --with-$lib-include or |
9587 | # --with-$lib-lib, for one of the libs above, and target is | |
9588 | # different from host, don't pass the current argument to any | |
9589 | # target library's configure. | |
9590 | if test x$is_cross_compiler = xyes; then | |
9591 | skip_targ=yes | |
9592 | fi | |
9593 | ;; | |
9594 | esac | |
9595 | ;; | |
9596 | esac | |
9597 | ||
1c710c3c | 9598 | case "$ac_arg" in |
f1a036e4 NC |
9599 | --cache-file=/dev/null | \ |
9600 | -cache-file=/dev/null ) | |
9601 | # Handled here to avoid the test to skip args below. | |
9602 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 9603 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
9604 | # Assert: $separate_arg should always be no. |
9605 | keep_next=$separate_arg | |
9606 | ;; | |
1c710c3c DJ |
9607 | --no*) |
9608 | continue | |
9609 | ;; | |
9610 | --c* | \ | |
9611 | --sr* | \ | |
9612 | --ho* | \ | |
9613 | --bu* | \ | |
9614 | --t* | \ | |
9615 | --program-* | \ | |
9616 | -cache_file* | \ | |
9617 | -srcdir* | \ | |
9618 | -host* | \ | |
9619 | -build* | \ | |
9620 | -target* | \ | |
9621 | -program-prefix* | \ | |
9622 | -program-suffix* | \ | |
9623 | -program-transform-name* ) | |
9624 | skip_next=$separate_arg | |
9625 | continue | |
9626 | ;; | |
9627 | -*) | |
9628 | # An option. Add it. | |
9629 | case $ac_arg in | |
9630 | *\'*) | |
9631 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9632 | esac | |
9633 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
9634 | if test X"$skip_targ" = Xno; then |
9635 | tbaseargs="$tbaseargs '$ac_arg'" | |
9636 | fi | |
1c710c3c DJ |
9637 | keep_next=$separate_arg |
9638 | ;; | |
9639 | *) | |
9640 | # Either a variable assignment, or a nonopt (triplet). Don't | |
9641 | # pass it down; let the Makefile handle this. | |
9642 | continue | |
9643 | ;; | |
9644 | esac | |
9645 | done | |
9646 | # Remove the initial space we just introduced and, as these will be | |
9647 | # expanded by make, quote '$'. | |
9648 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 9649 | |
43bb47c2 DJ |
9650 | # Add in --program-transform-name, after --program-prefix and |
9651 | # --program-suffix have been applied to it. Autoconf has already | |
9652 | # doubled dollar signs and backslashes in program_transform_name; we want | |
9653 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 9654 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
9655 | # Also, because we want to override the logic in subdir configure scripts to |
9656 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
9657 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
9658 | ${program_transform_name} | |
9659 | EOF_SED | |
9660 | gcc_transform_name=`cat conftestsed.out` | |
9661 | rm -f conftestsed.out | |
9662 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 9663 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
9664 | if test "$silent" = yes; then |
9665 | baseargs="$baseargs --silent" | |
29a63921 | 9666 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 9667 | fi |
0115d4a3 | 9668 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 9669 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 9670 | |
ffedf511 RW |
9671 | # Record and document user additions to sub configure arguments. |
9672 | ||
9673 | ||
9674 | ||
9675 | ||
671aa708 NN |
9676 | # For the build-side libraries, we just need to pretend we're native, |
9677 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
9678 | # desired. We can't even use the same cache file for all build-side |
9679 | # libraries, as they're compiled differently; some with C, some with | |
9680 | # C++ or with different feature-enabling options. | |
9681 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
9682 | |
9683 | # For host modules, accept cache file option, or specification as blank. | |
9684 | case "${cache_file}" in | |
9685 | "") # empty | |
9686 | cache_file_option="" ;; | |
9687 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
9688 | cache_file_option="--cache-file=${cache_file}" ;; | |
9689 | *) # relative path | |
9690 | cache_file_option="--cache-file=../${cache_file}" ;; | |
9691 | esac | |
9692 | ||
09438bde NN |
9693 | # Host dirs don't like to share a cache file either, horribly enough. |
9694 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 9695 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 9696 | |
29a63921 | 9697 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
9698 | |
9699 | # Passing a --with-cross-host argument lets the target libraries know | |
9700 | # whether they are being built with a cross-compiler or being built | |
9701 | # native. However, it would be better to use other mechanisms to make the | |
9702 | # sorts of decisions they want to make on this basis. Please consider | |
9703 | # this option to be deprecated. FIXME. | |
9704 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 9705 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
9706 | fi |
9707 | ||
79e0604d FXC |
9708 | # Special user-friendly check for native x86_64-linux build, if |
9709 | # multilib is not explicitly enabled. | |
9710 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
9711 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 9712 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
9713 | dev64=no |
9714 | echo "int main () { return 0; }" > conftest.c | |
9715 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9716 | if test $? = 0 ; then | |
9717 | if test -s conftest || test -s conftest.exe ; then | |
9718 | dev64=yes | |
9719 | fi | |
9720 | fi | |
9721 | rm -f conftest* | |
9722 | if test x${dev64} != xyes ; then | |
22e05272 | 9723 | 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 |
9724 | fi |
9725 | ;; | |
9726 | esac | |
9727 | ||
dc683a3f RW |
9728 | # Default to --enable-multilib. |
9729 | if test x${enable_multilib} = x ; then | |
671aa708 | 9730 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 9731 | fi |
671aa708 NN |
9732 | |
9733 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
9734 | # changed from the earlier setting of with_newlib. | |
9735 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
9736 | target_configargs="--with-newlib ${target_configargs}" | |
9737 | fi | |
9738 | ||
6b9eb62c NN |
9739 | # Different target subdirs use different values of certain variables |
9740 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
9741 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
9742 | # it doesn't automatically accept command-line overrides of them. | |
9743 | # This means it's not safe for target subdirs to share a cache file, | |
9744 | # which is disgusting, but there you have it. Hopefully this can be | |
9745 | # fixed in future. It's still worthwhile to use a cache file for each | |
9746 | # directory. I think. | |
9747 | ||
bebcd931 MS |
9748 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
9749 | # We need to pass --target, as newer autoconf's requires consistency | |
9750 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 9751 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 9752 | |
671aa708 NN |
9753 | FLAGS_FOR_TARGET= |
9754 | case " $target_configdirs " in | |
9755 | *" newlib "*) | |
9756 | case " $target_configargs " in | |
9757 | *" --with-newlib "*) | |
9758 | case "$target" in | |
5d571eaa | 9759 | *-cygwin*) |
443e6238 | 9760 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 9761 | ;; |
671aa708 NN |
9762 | esac |
9763 | ||
9764 | # If we're not building GCC, don't discard standard headers. | |
9765 | if test -d ${srcdir}/gcc; then | |
9766 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
9767 | ||
9768 | if test "${build}" != "${host}"; then | |
9769 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
9770 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
9771 | # to it. This is right: we don't want to search that directory | |
9772 | # for binaries, but we want the header files in there, so add | |
9773 | # them explicitly. | |
0463992b | 9774 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
9775 | |
9776 | # Someone might think of using the pre-installed headers on | |
9777 | # Canadian crosses, in case the installed compiler is not fully | |
9778 | # compatible with the compiler being built. In this case, it | |
9779 | # would be better to flag an error than risking having | |
9780 | # incompatible object files being constructed. We can't | |
9781 | # guarantee that an error will be flagged, but let's hope the | |
9782 | # compiler will do it, when presented with incompatible header | |
9783 | # files. | |
9784 | fi | |
9785 | fi | |
9786 | ||
9787 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 9788 | i[3456789]86-*-linux*-no) |
671aa708 NN |
9789 | # Here host == target, so we don't need to build gcc, |
9790 | # so we don't want to discard standard headers. | |
9791 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
9792 | ;; | |
9793 | *) | |
9794 | # If we're building newlib, use its generic headers last, but search | |
9795 | # for any libc-related directories first (so make it the last -B | |
9796 | # switch). | |
9797 | 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 |
9798 | |
9799 | # If we're building libgloss, find the startup file, simulator library | |
9800 | # and linker script. | |
9801 | case " $target_configdirs " in | |
9802 | *" libgloss "*) | |
9803 | # Look for startup file, simulator library and maybe linker script. | |
9804 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
9805 | # Look for libnosys.a in case the target needs it. | |
9806 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
9807 | # Most targets have the linker script in the source directory. | |
9808 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
9809 | ;; | |
9810 | esac | |
671aa708 NN |
9811 | ;; |
9812 | esac | |
9813 | ;; | |
9814 | esac | |
9815 | ;; | |
9816 | esac | |
5d571eaa | 9817 | |
b91f0a41 | 9818 | case "$target" in |
5d571eaa OS |
9819 | x86_64-*mingw* | *-w64-mingw*) |
9820 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
9821 | # however, use a symlink named 'mingw' in ${prefix} . | |
9822 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
9823 | ;; | |
9824 | *-mingw*) | |
9825 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
9826 | 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' | |
9827 | ;; | |
b91f0a41 | 9828 | esac |
671aa708 | 9829 | |
6691a79e ME |
9830 | # Allow the user to override the flags for |
9831 | # our build compiler if desired. | |
f019adc1 MF |
9832 | if test x"${build}" = x"${host}" ; then |
9833 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
9834 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
9835 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
9836 | fi | |
6691a79e | 9837 | |
671aa708 NN |
9838 | # On Canadian crosses, we'll be searching the right directories for |
9839 | # the previously-installed cross compiler, so don't bother to add | |
9840 | # flags for directories within the install tree of the compiler | |
9841 | # being built; programs in there won't even run. | |
9842 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
9843 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 9844 | 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 |
9845 | fi |
9846 | ||
9847 | if test "x${use_gnu_ld}" = x && | |
9848 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
9849 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 9850 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
9851 | fi |
9852 | ||
e88a2c09 DD |
9853 | # Search for other target-specific linker scripts and such. |
9854 | case "${target}" in | |
3e19841a PB |
9855 | mep*) |
9856 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
9857 | ;; | |
e88a2c09 DD |
9858 | esac |
9859 | ||
671aa708 | 9860 | # Makefile fragments. |
7b61653a PE |
9861 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
9862 | do | |
9863 | eval fragval=\$$frag | |
9864 | if test $fragval != /dev/null; then | |
9865 | eval $frag=${srcdir}/$fragval | |
9866 | fi | |
9867 | done | |
671aa708 NN |
9868 | |
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | # Miscellanea: directories, flags, etc. | |
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
d89f0ad6 | 9881 | |
23f6b2f9 | 9882 | # Build module lists & subconfigure args. |
671aa708 NN |
9883 | |
9884 | ||
9885 | ||
2abefe3d PB |
9886 | # Host module lists & subconfigure args. |
9887 | ||
9888 | ||
9889 | ||
aae29963 | 9890 | |
2abefe3d PB |
9891 | # Target module lists & subconfigure args. |
9892 | ||
9893 | ||
9894 | ||
9895 | # Build tools. | |
9896 | ||
9897 | ||
9898 | ||
0999159b PB |
9899 | |
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
b4c522fa | 9912 | |
10abab41 | 9913 | |
67d7ab01 IS |
9914 | |
9915 | ||
2abefe3d PB |
9916 | # Generate default definitions for YACC, M4, LEX and other programs that run |
9917 | # on the build machine. These are used if the Makefile can't locate these | |
9918 | # programs in objdir. | |
9919 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
9920 | ||
9921 | for ac_prog in 'bison -y' byacc yacc | |
9922 | do | |
1c710c3c | 9923 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9924 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9926 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9927 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 9928 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9929 | else |
9930 | if test -n "$YACC"; then | |
9931 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9932 | else | |
1c710c3c DJ |
9933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9934 | for as_dir in $PATH | |
9935 | do | |
9936 | IFS=$as_save_IFS | |
9937 | test -z "$as_dir" && as_dir=. | |
5213506e | 9938 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9940 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 9941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9942 | break 2 |
9943 | fi | |
9944 | done | |
5213506e RW |
9945 | done |
9946 | IFS=$as_save_IFS | |
1c710c3c | 9947 | |
2abefe3d PB |
9948 | fi |
9949 | fi | |
1c710c3c | 9950 | YACC=$ac_cv_prog_YACC |
2abefe3d | 9951 | if test -n "$YACC"; then |
5213506e RW |
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
9953 | $as_echo "$YACC" >&6; } | |
2abefe3d | 9954 | else |
5213506e RW |
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9956 | $as_echo "no" >&6; } | |
2abefe3d PB |
9957 | fi |
9958 | ||
5213506e | 9959 | |
1c710c3c | 9960 | test -n "$YACC" && break |
2abefe3d PB |
9961 | done |
9962 | test -n "$YACC" || YACC="$MISSING bison -y" | |
9963 | ||
9964 | case " $build_configdirs " in | |
9965 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
9966 | esac |
9967 | ||
9968 | for ac_prog in bison | |
9969 | do | |
1c710c3c | 9970 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9971 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9973 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9974 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 9975 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9976 | else |
9977 | if test -n "$BISON"; then | |
9978 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
9979 | else | |
1c710c3c DJ |
9980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9981 | for as_dir in $PATH | |
9982 | do | |
9983 | IFS=$as_save_IFS | |
9984 | test -z "$as_dir" && as_dir=. | |
5213506e | 9985 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9987 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 9988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9989 | break 2 |
9990 | fi | |
9991 | done | |
5213506e RW |
9992 | done |
9993 | IFS=$as_save_IFS | |
1c710c3c | 9994 | |
2abefe3d PB |
9995 | fi |
9996 | fi | |
1c710c3c | 9997 | BISON=$ac_cv_prog_BISON |
2abefe3d | 9998 | if test -n "$BISON"; then |
5213506e RW |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10000 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10001 | else |
5213506e RW |
10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10003 | $as_echo "no" >&6; } | |
2abefe3d PB |
10004 | fi |
10005 | ||
5213506e | 10006 | |
1c710c3c | 10007 | test -n "$BISON" && break |
2abefe3d PB |
10008 | done |
10009 | test -n "$BISON" || BISON="$MISSING bison" | |
10010 | ||
10011 | case " $build_configdirs " in | |
10012 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10013 | esac | |
10014 | ||
10015 | for ac_prog in gm4 gnum4 m4 | |
10016 | do | |
1c710c3c | 10017 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10018 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10020 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10021 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10022 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10023 | else |
10024 | if test -n "$M4"; then | |
10025 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10026 | else | |
1c710c3c DJ |
10027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10028 | for as_dir in $PATH | |
10029 | do | |
10030 | IFS=$as_save_IFS | |
10031 | test -z "$as_dir" && as_dir=. | |
5213506e | 10032 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10034 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10036 | break 2 |
10037 | fi | |
10038 | done | |
5213506e RW |
10039 | done |
10040 | IFS=$as_save_IFS | |
1c710c3c | 10041 | |
2abefe3d PB |
10042 | fi |
10043 | fi | |
1c710c3c | 10044 | M4=$ac_cv_prog_M4 |
2abefe3d | 10045 | if test -n "$M4"; then |
5213506e RW |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10047 | $as_echo "$M4" >&6; } | |
2abefe3d | 10048 | else |
5213506e RW |
10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10050 | $as_echo "no" >&6; } | |
2abefe3d PB |
10051 | fi |
10052 | ||
5213506e | 10053 | |
1c710c3c | 10054 | test -n "$M4" && break |
2abefe3d PB |
10055 | done |
10056 | test -n "$M4" || M4="$MISSING m4" | |
10057 | ||
10058 | case " $build_configdirs " in | |
10059 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10060 | esac | |
10061 | ||
10062 | for ac_prog in flex lex | |
10063 | do | |
1c710c3c | 10064 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10065 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10068 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10069 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10070 | else |
10071 | if test -n "$LEX"; then | |
10072 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10073 | else | |
1c710c3c DJ |
10074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10075 | for as_dir in $PATH | |
10076 | do | |
10077 | IFS=$as_save_IFS | |
10078 | test -z "$as_dir" && as_dir=. | |
5213506e | 10079 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10081 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10083 | break 2 |
10084 | fi | |
10085 | done | |
5213506e RW |
10086 | done |
10087 | IFS=$as_save_IFS | |
1c710c3c | 10088 | |
2abefe3d PB |
10089 | fi |
10090 | fi | |
1c710c3c | 10091 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10092 | if test -n "$LEX"; then |
5213506e RW |
10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10094 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10095 | else |
5213506e RW |
10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10097 | $as_echo "no" >&6; } | |
2abefe3d PB |
10098 | fi |
10099 | ||
5213506e | 10100 | |
1c710c3c | 10101 | test -n "$LEX" && break |
2abefe3d PB |
10102 | done |
10103 | test -n "$LEX" || LEX="$MISSING flex" | |
10104 | ||
10105 | case " $build_configdirs " in | |
10106 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10107 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10108 | esac | |
10109 | ||
10110 | for ac_prog in flex | |
10111 | do | |
1c710c3c | 10112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10113 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10115 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10116 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10117 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10118 | else |
10119 | if test -n "$FLEX"; then | |
10120 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10121 | else | |
1c710c3c DJ |
10122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10123 | for as_dir in $PATH | |
10124 | do | |
10125 | IFS=$as_save_IFS | |
10126 | test -z "$as_dir" && as_dir=. | |
5213506e | 10127 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10129 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10131 | break 2 |
10132 | fi | |
10133 | done | |
5213506e RW |
10134 | done |
10135 | IFS=$as_save_IFS | |
1c710c3c | 10136 | |
2abefe3d PB |
10137 | fi |
10138 | fi | |
1c710c3c | 10139 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10140 | if test -n "$FLEX"; then |
5213506e RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10142 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10143 | else |
5213506e RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10145 | $as_echo "no" >&6; } | |
2abefe3d PB |
10146 | fi |
10147 | ||
5213506e | 10148 | |
1c710c3c | 10149 | test -n "$FLEX" && break |
2abefe3d PB |
10150 | done |
10151 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10152 | ||
10153 | case " $build_configdirs " in | |
10154 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10155 | esac | |
10156 | ||
10157 | for ac_prog in makeinfo | |
10158 | do | |
1c710c3c | 10159 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10160 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10162 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10163 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10164 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10165 | else |
10166 | if test -n "$MAKEINFO"; then | |
10167 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10168 | else | |
1c710c3c DJ |
10169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10170 | for as_dir in $PATH | |
10171 | do | |
10172 | IFS=$as_save_IFS | |
10173 | test -z "$as_dir" && as_dir=. | |
5213506e | 10174 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10176 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10178 | break 2 |
10179 | fi | |
10180 | done | |
5213506e RW |
10181 | done |
10182 | IFS=$as_save_IFS | |
1c710c3c | 10183 | |
2abefe3d PB |
10184 | fi |
10185 | fi | |
1c710c3c | 10186 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10187 | if test -n "$MAKEINFO"; then |
5213506e RW |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10189 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10190 | else |
5213506e RW |
10191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10192 | $as_echo "no" >&6; } | |
2abefe3d PB |
10193 | fi |
10194 | ||
5213506e | 10195 | |
1c710c3c | 10196 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10197 | done |
10198 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10199 | ||
10200 | case " $build_configdirs " in | |
10201 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10202 | *) | |
10203 | ||
d18ff35a | 10204 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10205 | # higher, else we use the "missing" dummy. |
10206 | if ${MAKEINFO} --version \ | |
d18ff35a | 10207 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10208 | : |
10209 | else | |
10210 | MAKEINFO="$MISSING makeinfo" | |
10211 | fi | |
10212 | ;; | |
10213 | ||
10214 | esac | |
671aa708 | 10215 | |
2abefe3d | 10216 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10217 | |
2abefe3d PB |
10218 | for ac_prog in expect |
10219 | do | |
1c710c3c | 10220 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10221 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10223 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10224 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10225 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10226 | else |
10227 | if test -n "$EXPECT"; then | |
10228 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10229 | else | |
1c710c3c DJ |
10230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10231 | for as_dir in $PATH | |
10232 | do | |
10233 | IFS=$as_save_IFS | |
10234 | test -z "$as_dir" && as_dir=. | |
5213506e | 10235 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10237 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10239 | break 2 |
10240 | fi | |
10241 | done | |
5213506e RW |
10242 | done |
10243 | IFS=$as_save_IFS | |
1c710c3c | 10244 | |
2abefe3d PB |
10245 | fi |
10246 | fi | |
1c710c3c | 10247 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10248 | if test -n "$EXPECT"; then |
5213506e RW |
10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10250 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10251 | else |
5213506e RW |
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10253 | $as_echo "no" >&6; } | |
2abefe3d | 10254 | fi |
671aa708 | 10255 | |
5213506e | 10256 | |
1c710c3c | 10257 | test -n "$EXPECT" && break |
2abefe3d PB |
10258 | done |
10259 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10260 | |
2abefe3d PB |
10261 | case " $configdirs " in |
10262 | *" expect "*) | |
10263 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10264 | ;; | |
10265 | esac | |
671aa708 | 10266 | |
2abefe3d PB |
10267 | for ac_prog in runtest |
10268 | do | |
1c710c3c | 10269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10270 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10272 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10273 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10274 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10275 | else |
10276 | if test -n "$RUNTEST"; then | |
10277 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10278 | else |
1c710c3c DJ |
10279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10280 | for as_dir in $PATH | |
10281 | do | |
10282 | IFS=$as_save_IFS | |
10283 | test -z "$as_dir" && as_dir=. | |
5213506e | 10284 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10286 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10288 | break 2 |
10289 | fi | |
10290 | done | |
5213506e RW |
10291 | done |
10292 | IFS=$as_save_IFS | |
1c710c3c | 10293 | |
2abefe3d PB |
10294 | fi |
10295 | fi | |
1c710c3c | 10296 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10297 | if test -n "$RUNTEST"; then |
5213506e RW |
10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10299 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10300 | else |
5213506e RW |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10302 | $as_echo "no" >&6; } | |
2abefe3d | 10303 | fi |
671aa708 | 10304 | |
5213506e | 10305 | |
1c710c3c | 10306 | test -n "$RUNTEST" && break |
2abefe3d PB |
10307 | done |
10308 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10309 | |
2abefe3d PB |
10310 | case " $configdirs " in |
10311 | *" dejagnu "*) | |
c394e891 | 10312 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10313 | ;; |
10314 | esac | |
671aa708 NN |
10315 | |
10316 | ||
671aa708 | 10317 | # Host tools. |
ca9f4b81 AO |
10318 | ncn_tool_prefix= |
10319 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10320 | ncn_target_tool_prefix= | |
10321 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10322 | ||
278a7a38 AO |
10323 | |
10324 | ||
10325 | if test -n "$AR"; then | |
10326 | ac_cv_prog_AR=$AR | |
10327 | elif test -n "$ac_cv_prog_AR"; then | |
10328 | AR=$ac_cv_prog_AR | |
10329 | fi | |
10330 | ||
10331 | if test -n "$ac_cv_prog_AR"; then | |
10332 | for ncn_progname in ar; do | |
10333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10334 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10336 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10337 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10338 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10339 | else |
10340 | if test -n "$AR"; then | |
10341 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10342 | else | |
10343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10344 | for as_dir in $PATH | |
10345 | do | |
10346 | IFS=$as_save_IFS | |
10347 | test -z "$as_dir" && as_dir=. | |
5213506e | 10348 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10350 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10352 | break 2 |
10353 | fi | |
10354 | done | |
5213506e RW |
10355 | done |
10356 | IFS=$as_save_IFS | |
278a7a38 AO |
10357 | |
10358 | fi | |
10359 | fi | |
10360 | AR=$ac_cv_prog_AR | |
10361 | if test -n "$AR"; then | |
5213506e RW |
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10363 | $as_echo "$AR" >&6; } | |
278a7a38 | 10364 | else |
5213506e RW |
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10366 | $as_echo "no" >&6; } | |
278a7a38 AO |
10367 | fi |
10368 | ||
5213506e | 10369 | |
278a7a38 AO |
10370 | done |
10371 | fi | |
10372 | ||
10373 | for ncn_progname in ar; do | |
2693c0b0 PB |
10374 | if test -n "$ncn_tool_prefix"; then |
10375 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10376 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10378 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10379 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10380 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10381 | else |
10382 | if test -n "$AR"; then | |
10383 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10384 | else | |
1c710c3c DJ |
10385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10386 | for as_dir in $PATH | |
10387 | do | |
10388 | IFS=$as_save_IFS | |
10389 | test -z "$as_dir" && as_dir=. | |
5213506e | 10390 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10392 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10394 | break 2 |
10395 | fi | |
10396 | done | |
5213506e RW |
10397 | done |
10398 | IFS=$as_save_IFS | |
1c710c3c | 10399 | |
ca9f4b81 AO |
10400 | fi |
10401 | fi | |
1c710c3c | 10402 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10403 | if test -n "$AR"; then |
5213506e RW |
10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10405 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10406 | else |
5213506e RW |
10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10408 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10409 | fi |
10410 | ||
5213506e | 10411 | |
2693c0b0 PB |
10412 | fi |
10413 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10415 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10417 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10418 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10419 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10420 | else |
2693c0b0 | 10421 | if test -n "$AR"; then |
af71363e AS |
10422 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10423 | else | |
1c710c3c DJ |
10424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10425 | for as_dir in $PATH | |
10426 | do | |
10427 | IFS=$as_save_IFS | |
10428 | test -z "$as_dir" && as_dir=. | |
5213506e | 10429 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10431 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10433 | break 2 |
10434 | fi | |
10435 | done | |
5213506e RW |
10436 | done |
10437 | IFS=$as_save_IFS | |
1c710c3c | 10438 | |
ca9f4b81 AO |
10439 | fi |
10440 | fi | |
1c710c3c | 10441 | AR=$ac_cv_prog_AR |
2693c0b0 | 10442 | if test -n "$AR"; then |
5213506e RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10444 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10445 | else |
5213506e RW |
10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10447 | $as_echo "no" >&6; } | |
ca9f4b81 | 10448 | fi |
1c710c3c | 10449 | |
5213506e | 10450 | |
2693c0b0 PB |
10451 | fi |
10452 | test -n "$ac_cv_prog_AR" && break | |
10453 | done | |
10454 | ||
10455 | if test -z "$ac_cv_prog_AR" ; then | |
10456 | set dummy ar | |
10457 | if test $build = $host ; then | |
10458 | AR="$2" | |
ca9f4b81 | 10459 | else |
2693c0b0 | 10460 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 10461 | fi |
ca9f4b81 AO |
10462 | fi |
10463 | ||
278a7a38 AO |
10464 | |
10465 | ||
10466 | if test -n "$AS"; then | |
10467 | ac_cv_prog_AS=$AS | |
10468 | elif test -n "$ac_cv_prog_AS"; then | |
10469 | AS=$ac_cv_prog_AS | |
10470 | fi | |
10471 | ||
10472 | if test -n "$ac_cv_prog_AS"; then | |
10473 | for ncn_progname in as; do | |
10474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10475 | set dummy ${ncn_progname}; 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_AS+:} false; then : |
5213506e | 10479 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10480 | else |
10481 | if test -n "$AS"; then | |
10482 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10483 | else | |
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 |
278a7a38 | 10491 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10493 | break 2 |
10494 | fi | |
10495 | done | |
5213506e RW |
10496 | done |
10497 | IFS=$as_save_IFS | |
278a7a38 AO |
10498 | |
10499 | fi | |
10500 | fi | |
10501 | AS=$ac_cv_prog_AS | |
10502 | if test -n "$AS"; then | |
5213506e RW |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10504 | $as_echo "$AS" >&6; } | |
278a7a38 | 10505 | else |
5213506e RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10507 | $as_echo "no" >&6; } | |
278a7a38 AO |
10508 | fi |
10509 | ||
5213506e | 10510 | |
278a7a38 AO |
10511 | done |
10512 | fi | |
10513 | ||
10514 | for ncn_progname in as; do | |
2693c0b0 PB |
10515 | if test -n "$ncn_tool_prefix"; then |
10516 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10517 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10519 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10520 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10521 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10522 | else |
10523 | if test -n "$AS"; then | |
10524 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 10525 | else |
1c710c3c DJ |
10526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10527 | for as_dir in $PATH | |
10528 | do | |
10529 | IFS=$as_save_IFS | |
10530 | test -z "$as_dir" && as_dir=. | |
5213506e | 10531 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10533 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10535 | break 2 |
10536 | fi | |
10537 | done | |
5213506e RW |
10538 | done |
10539 | IFS=$as_save_IFS | |
1c710c3c | 10540 | |
ca9f4b81 AO |
10541 | fi |
10542 | fi | |
1c710c3c | 10543 | AS=$ac_cv_prog_AS |
ca9f4b81 | 10544 | if test -n "$AS"; then |
5213506e RW |
10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10546 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10547 | else |
5213506e RW |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10549 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10550 | fi |
10551 | ||
5213506e | 10552 | |
2693c0b0 PB |
10553 | fi |
10554 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
10555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10556 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10558 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10559 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 10560 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10561 | else |
2693c0b0 PB |
10562 | if test -n "$AS"; then |
10563 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 10564 | else |
1c710c3c DJ |
10565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10566 | for as_dir in $PATH | |
10567 | do | |
10568 | IFS=$as_save_IFS | |
10569 | test -z "$as_dir" && as_dir=. | |
5213506e | 10570 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10572 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 10573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10574 | break 2 |
10575 | fi | |
10576 | done | |
5213506e RW |
10577 | done |
10578 | IFS=$as_save_IFS | |
1c710c3c | 10579 | |
ca9f4b81 AO |
10580 | fi |
10581 | fi | |
1c710c3c | 10582 | AS=$ac_cv_prog_AS |
2693c0b0 | 10583 | if test -n "$AS"; then |
5213506e RW |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
10585 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 10586 | else |
5213506e RW |
10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10588 | $as_echo "no" >&6; } | |
ca9f4b81 | 10589 | fi |
1c710c3c | 10590 | |
5213506e | 10591 | |
2693c0b0 PB |
10592 | fi |
10593 | test -n "$ac_cv_prog_AS" && break | |
10594 | done | |
10595 | ||
10596 | if test -z "$ac_cv_prog_AS" ; then | |
10597 | set dummy as | |
10598 | if test $build = $host ; then | |
10599 | AS="$2" | |
ca9f4b81 | 10600 | else |
2693c0b0 | 10601 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 10602 | fi |
ca9f4b81 AO |
10603 | fi |
10604 | ||
278a7a38 AO |
10605 | |
10606 | ||
10607 | if test -n "$DLLTOOL"; then | |
10608 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
10609 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
10610 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10611 | fi | |
10612 | ||
10613 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
10614 | for ncn_progname in dlltool; do | |
10615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10616 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10619 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10620 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10621 | else |
10622 | if test -n "$DLLTOOL"; then | |
10623 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10624 | else | |
10625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10626 | for as_dir in $PATH | |
10627 | do | |
10628 | IFS=$as_save_IFS | |
10629 | test -z "$as_dir" && as_dir=. | |
5213506e | 10630 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10632 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10634 | break 2 |
10635 | fi | |
10636 | done | |
5213506e RW |
10637 | done |
10638 | IFS=$as_save_IFS | |
278a7a38 AO |
10639 | |
10640 | fi | |
10641 | fi | |
10642 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
10643 | if test -n "$DLLTOOL"; then | |
5213506e RW |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10645 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 10646 | else |
5213506e RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10648 | $as_echo "no" >&6; } | |
278a7a38 AO |
10649 | fi |
10650 | ||
5213506e | 10651 | |
278a7a38 AO |
10652 | done |
10653 | fi | |
10654 | ||
10655 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
10656 | if test -n "$ncn_tool_prefix"; then |
10657 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10658 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10660 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10661 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10662 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10663 | else |
10664 | if test -n "$DLLTOOL"; then | |
10665 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
10666 | else | |
1c710c3c DJ |
10667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10668 | for as_dir in $PATH | |
10669 | do | |
10670 | IFS=$as_save_IFS | |
10671 | test -z "$as_dir" && as_dir=. | |
5213506e | 10672 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10674 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10676 | break 2 |
10677 | fi | |
10678 | done | |
5213506e RW |
10679 | done |
10680 | IFS=$as_save_IFS | |
1c710c3c | 10681 | |
ca9f4b81 AO |
10682 | fi |
10683 | fi | |
1c710c3c | 10684 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 10685 | if test -n "$DLLTOOL"; then |
5213506e RW |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10687 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 10688 | else |
5213506e RW |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10690 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10691 | fi |
10692 | ||
5213506e | 10693 | |
2693c0b0 PB |
10694 | fi |
10695 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
10696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10697 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10700 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 10701 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10702 | else |
2693c0b0 PB |
10703 | if test -n "$DLLTOOL"; then |
10704 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 10705 | else |
1c710c3c DJ |
10706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10707 | for as_dir in $PATH | |
10708 | do | |
10709 | IFS=$as_save_IFS | |
10710 | test -z "$as_dir" && as_dir=. | |
5213506e | 10711 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10713 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 10714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10715 | break 2 |
10716 | fi | |
10717 | done | |
5213506e RW |
10718 | done |
10719 | IFS=$as_save_IFS | |
1c710c3c | 10720 | |
ca9f4b81 AO |
10721 | fi |
10722 | fi | |
1c710c3c | 10723 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 10724 | if test -n "$DLLTOOL"; then |
5213506e RW |
10725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
10726 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 10727 | else |
5213506e RW |
10728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10729 | $as_echo "no" >&6; } | |
ca9f4b81 | 10730 | fi |
1c710c3c | 10731 | |
5213506e | 10732 | |
2693c0b0 PB |
10733 | fi |
10734 | test -n "$ac_cv_prog_DLLTOOL" && break | |
10735 | done | |
10736 | ||
10737 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
10738 | set dummy dlltool | |
10739 | if test $build = $host ; then | |
10740 | DLLTOOL="$2" | |
ca9f4b81 | 10741 | else |
2693c0b0 | 10742 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 10743 | fi |
ca9f4b81 AO |
10744 | fi |
10745 | ||
278a7a38 AO |
10746 | |
10747 | ||
10abab41 IS |
10748 | if test -n "$DSYMUTIL"; then |
10749 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
10750 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
10751 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
10752 | fi | |
10753 | ||
10754 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
10755 | for ncn_progname in dsymutil; do | |
10756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10757 | set dummy ${ncn_progname}; ac_word=$2 | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10759 | $as_echo_n "checking for $ac_word... " >&6; } | |
10760 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
10761 | $as_echo_n "(cached) " >&6 | |
10762 | else | |
10763 | if test -n "$DSYMUTIL"; then | |
10764 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
10765 | else | |
10766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10767 | for as_dir in $PATH | |
10768 | do | |
10769 | IFS=$as_save_IFS | |
10770 | test -z "$as_dir" && as_dir=. | |
10771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10773 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
10774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10775 | break 2 | |
10776 | fi | |
10777 | done | |
10778 | done | |
10779 | IFS=$as_save_IFS | |
10780 | ||
10781 | fi | |
10782 | fi | |
10783 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
10784 | if test -n "$DSYMUTIL"; then | |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
10786 | $as_echo "$DSYMUTIL" >&6; } | |
10787 | else | |
10788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10789 | $as_echo "no" >&6; } | |
10790 | fi | |
10791 | ||
10792 | ||
10793 | done | |
10794 | fi | |
10795 | ||
10796 | for ncn_progname in dsymutil; do | |
10797 | if test -n "$ncn_tool_prefix"; then | |
10798 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10799 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10801 | $as_echo_n "checking for $ac_word... " >&6; } | |
10802 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
10803 | $as_echo_n "(cached) " >&6 | |
10804 | else | |
10805 | if test -n "$DSYMUTIL"; then | |
10806 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
10807 | else | |
10808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10809 | for as_dir in $PATH | |
10810 | do | |
10811 | IFS=$as_save_IFS | |
10812 | test -z "$as_dir" && as_dir=. | |
10813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10815 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
10816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10817 | break 2 | |
10818 | fi | |
10819 | done | |
10820 | done | |
10821 | IFS=$as_save_IFS | |
10822 | ||
10823 | fi | |
10824 | fi | |
10825 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
10826 | if test -n "$DSYMUTIL"; then | |
10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
10828 | $as_echo "$DSYMUTIL" >&6; } | |
10829 | else | |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10831 | $as_echo "no" >&6; } | |
10832 | fi | |
10833 | ||
10834 | ||
10835 | fi | |
10836 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
10837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10838 | set dummy ${ncn_progname}; ac_word=$2 | |
10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10840 | $as_echo_n "checking for $ac_word... " >&6; } | |
10841 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
10842 | $as_echo_n "(cached) " >&6 | |
10843 | else | |
10844 | if test -n "$DSYMUTIL"; then | |
10845 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
10846 | else | |
10847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10848 | for as_dir in $PATH | |
10849 | do | |
10850 | IFS=$as_save_IFS | |
10851 | test -z "$as_dir" && as_dir=. | |
10852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10853 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10854 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
10855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10856 | break 2 | |
10857 | fi | |
10858 | done | |
10859 | done | |
10860 | IFS=$as_save_IFS | |
10861 | ||
10862 | fi | |
10863 | fi | |
10864 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
10865 | if test -n "$DSYMUTIL"; then | |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
10867 | $as_echo "$DSYMUTIL" >&6; } | |
10868 | else | |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10870 | $as_echo "no" >&6; } | |
10871 | fi | |
10872 | ||
10873 | ||
10874 | fi | |
10875 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
10876 | done | |
10877 | ||
10878 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
10879 | set dummy dsymutil | |
10880 | if test $build = $host ; then | |
10881 | DSYMUTIL="$2" | |
10882 | else | |
10883 | DSYMUTIL="${ncn_tool_prefix}$2" | |
10884 | fi | |
10885 | fi | |
10886 | ||
10887 | ||
10888 | ||
278a7a38 AO |
10889 | if test -n "$LD"; then |
10890 | ac_cv_prog_LD=$LD | |
10891 | elif test -n "$ac_cv_prog_LD"; then | |
10892 | LD=$ac_cv_prog_LD | |
10893 | fi | |
10894 | ||
10895 | if test -n "$ac_cv_prog_LD"; then | |
10896 | for ncn_progname in ld; do | |
10897 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10898 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10900 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10901 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10902 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10903 | else |
10904 | if test -n "$LD"; then | |
10905 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
10906 | else | |
10907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10908 | for as_dir in $PATH | |
10909 | do | |
10910 | IFS=$as_save_IFS | |
10911 | test -z "$as_dir" && as_dir=. | |
5213506e | 10912 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10914 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 10915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10916 | break 2 |
10917 | fi | |
10918 | done | |
5213506e RW |
10919 | done |
10920 | IFS=$as_save_IFS | |
278a7a38 AO |
10921 | |
10922 | fi | |
10923 | fi | |
10924 | LD=$ac_cv_prog_LD | |
10925 | if test -n "$LD"; then | |
5213506e RW |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
10927 | $as_echo "$LD" >&6; } | |
278a7a38 | 10928 | else |
5213506e RW |
10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10930 | $as_echo "no" >&6; } | |
278a7a38 AO |
10931 | fi |
10932 | ||
5213506e | 10933 | |
278a7a38 AO |
10934 | done |
10935 | fi | |
10936 | ||
10937 | for ncn_progname in ld; do | |
2693c0b0 PB |
10938 | if test -n "$ncn_tool_prefix"; then |
10939 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10940 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10942 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10943 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10944 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10945 | else |
10946 | if test -n "$LD"; then | |
10947 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
10948 | else | |
1c710c3c DJ |
10949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10950 | for as_dir in $PATH | |
10951 | do | |
10952 | IFS=$as_save_IFS | |
10953 | test -z "$as_dir" && as_dir=. | |
5213506e | 10954 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10956 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10958 | break 2 |
10959 | fi | |
10960 | done | |
5213506e RW |
10961 | done |
10962 | IFS=$as_save_IFS | |
1c710c3c | 10963 | |
ca9f4b81 AO |
10964 | fi |
10965 | fi | |
1c710c3c | 10966 | LD=$ac_cv_prog_LD |
ca9f4b81 | 10967 | if test -n "$LD"; then |
5213506e RW |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
10969 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 10970 | else |
5213506e RW |
10971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10972 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10973 | fi |
10974 | ||
5213506e | 10975 | |
2693c0b0 PB |
10976 | fi |
10977 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
10978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10979 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10981 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10982 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 10983 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10984 | else |
2693c0b0 PB |
10985 | if test -n "$LD"; then |
10986 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 10987 | else |
1c710c3c DJ |
10988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10989 | for as_dir in $PATH | |
10990 | do | |
10991 | IFS=$as_save_IFS | |
10992 | test -z "$as_dir" && as_dir=. | |
5213506e | 10993 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10995 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 10996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10997 | break 2 |
10998 | fi | |
10999 | done | |
5213506e RW |
11000 | done |
11001 | IFS=$as_save_IFS | |
1c710c3c | 11002 | |
ca9f4b81 AO |
11003 | fi |
11004 | fi | |
1c710c3c | 11005 | LD=$ac_cv_prog_LD |
2693c0b0 | 11006 | if test -n "$LD"; then |
5213506e RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11008 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11009 | else |
5213506e RW |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11011 | $as_echo "no" >&6; } | |
ca9f4b81 | 11012 | fi |
1c710c3c | 11013 | |
5213506e | 11014 | |
2693c0b0 PB |
11015 | fi |
11016 | test -n "$ac_cv_prog_LD" && break | |
11017 | done | |
11018 | ||
11019 | if test -z "$ac_cv_prog_LD" ; then | |
11020 | set dummy ld | |
11021 | if test $build = $host ; then | |
11022 | LD="$2" | |
ca9f4b81 | 11023 | else |
2693c0b0 | 11024 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11025 | fi |
ca9f4b81 AO |
11026 | fi |
11027 | ||
278a7a38 AO |
11028 | |
11029 | ||
11030 | if test -n "$LIPO"; then | |
11031 | ac_cv_prog_LIPO=$LIPO | |
11032 | elif test -n "$ac_cv_prog_LIPO"; then | |
11033 | LIPO=$ac_cv_prog_LIPO | |
11034 | fi | |
11035 | ||
11036 | if test -n "$ac_cv_prog_LIPO"; then | |
11037 | for ncn_progname in lipo; do | |
11038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11039 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11042 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11043 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11044 | else |
11045 | if test -n "$LIPO"; then | |
11046 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11047 | else | |
11048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11049 | for as_dir in $PATH | |
11050 | do | |
11051 | IFS=$as_save_IFS | |
11052 | test -z "$as_dir" && as_dir=. | |
5213506e | 11053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11055 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11057 | break 2 |
11058 | fi | |
11059 | done | |
5213506e RW |
11060 | done |
11061 | IFS=$as_save_IFS | |
278a7a38 AO |
11062 | |
11063 | fi | |
11064 | fi | |
11065 | LIPO=$ac_cv_prog_LIPO | |
11066 | if test -n "$LIPO"; then | |
5213506e RW |
11067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11068 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11069 | else |
5213506e RW |
11070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11071 | $as_echo "no" >&6; } | |
278a7a38 AO |
11072 | fi |
11073 | ||
5213506e | 11074 | |
278a7a38 AO |
11075 | done |
11076 | fi | |
11077 | ||
11078 | for ncn_progname in lipo; do | |
2abefe3d PB |
11079 | if test -n "$ncn_tool_prefix"; then |
11080 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11081 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11083 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11084 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11085 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11086 | else |
11087 | if test -n "$LIPO"; then | |
11088 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11089 | else | |
1c710c3c DJ |
11090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11091 | for as_dir in $PATH | |
11092 | do | |
11093 | IFS=$as_save_IFS | |
11094 | test -z "$as_dir" && as_dir=. | |
5213506e | 11095 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11097 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11099 | break 2 |
11100 | fi | |
11101 | done | |
5213506e RW |
11102 | done |
11103 | IFS=$as_save_IFS | |
1c710c3c | 11104 | |
2abefe3d PB |
11105 | fi |
11106 | fi | |
1c710c3c | 11107 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11108 | if test -n "$LIPO"; then |
5213506e RW |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11110 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11111 | else |
5213506e RW |
11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11113 | $as_echo "no" >&6; } | |
2abefe3d PB |
11114 | fi |
11115 | ||
5213506e | 11116 | |
2abefe3d PB |
11117 | fi |
11118 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11119 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11120 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11122 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11123 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11124 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11125 | else |
11126 | if test -n "$LIPO"; then | |
11127 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11128 | else | |
1c710c3c DJ |
11129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11130 | for as_dir in $PATH | |
11131 | do | |
11132 | IFS=$as_save_IFS | |
11133 | test -z "$as_dir" && as_dir=. | |
5213506e | 11134 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11136 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11138 | break 2 |
11139 | fi | |
11140 | done | |
5213506e RW |
11141 | done |
11142 | IFS=$as_save_IFS | |
1c710c3c | 11143 | |
2abefe3d PB |
11144 | fi |
11145 | fi | |
1c710c3c | 11146 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11147 | if test -n "$LIPO"; then |
5213506e RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11149 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11150 | else |
5213506e RW |
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11152 | $as_echo "no" >&6; } | |
2abefe3d | 11153 | fi |
1c710c3c | 11154 | |
5213506e | 11155 | |
2abefe3d PB |
11156 | fi |
11157 | test -n "$ac_cv_prog_LIPO" && break | |
11158 | done | |
11159 | ||
11160 | if test -z "$ac_cv_prog_LIPO" ; then | |
11161 | set dummy lipo | |
11162 | if test $build = $host ; then | |
11163 | LIPO="$2" | |
11164 | else | |
11165 | LIPO="${ncn_tool_prefix}$2" | |
11166 | fi | |
11167 | fi | |
11168 | ||
278a7a38 AO |
11169 | |
11170 | ||
11171 | if test -n "$NM"; then | |
11172 | ac_cv_prog_NM=$NM | |
11173 | elif test -n "$ac_cv_prog_NM"; then | |
11174 | NM=$ac_cv_prog_NM | |
11175 | fi | |
11176 | ||
11177 | if test -n "$ac_cv_prog_NM"; then | |
11178 | for ncn_progname in nm; do | |
11179 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11180 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11182 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11183 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11184 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11185 | else |
11186 | if test -n "$NM"; then | |
11187 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11188 | else | |
1c710c3c DJ |
11189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11190 | for as_dir in $PATH | |
11191 | do | |
11192 | IFS=$as_save_IFS | |
11193 | test -z "$as_dir" && as_dir=. | |
5213506e | 11194 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11196 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11198 | break 2 |
11199 | fi | |
11200 | done | |
5213506e RW |
11201 | done |
11202 | IFS=$as_save_IFS | |
1c710c3c | 11203 | |
ca9f4b81 AO |
11204 | fi |
11205 | fi | |
1c710c3c | 11206 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11207 | if test -n "$NM"; then |
5213506e RW |
11208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11209 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11210 | else |
5213506e RW |
11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11212 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11213 | fi |
11214 | ||
5213506e | 11215 | |
278a7a38 AO |
11216 | done |
11217 | fi | |
11218 | ||
11219 | for ncn_progname in nm; do | |
11220 | if test -n "$ncn_tool_prefix"; then | |
11221 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11222 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11224 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11225 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11226 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11227 | else |
2693c0b0 PB |
11228 | if test -n "$NM"; then |
11229 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11230 | else |
1c710c3c DJ |
11231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11232 | for as_dir in $PATH | |
11233 | do | |
11234 | IFS=$as_save_IFS | |
11235 | test -z "$as_dir" && as_dir=. | |
5213506e | 11236 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11238 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11240 | break 2 |
11241 | fi | |
11242 | done | |
5213506e RW |
11243 | done |
11244 | IFS=$as_save_IFS | |
1c710c3c | 11245 | |
ca9f4b81 AO |
11246 | fi |
11247 | fi | |
1c710c3c | 11248 | NM=$ac_cv_prog_NM |
2693c0b0 | 11249 | if test -n "$NM"; then |
5213506e RW |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11251 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11252 | else |
5213506e RW |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11254 | $as_echo "no" >&6; } | |
ca9f4b81 | 11255 | fi |
1c710c3c | 11256 | |
5213506e | 11257 | |
2693c0b0 | 11258 | fi |
278a7a38 AO |
11259 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11261 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11263 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11264 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11265 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11266 | else |
11267 | if test -n "$NM"; then | |
11268 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11269 | else | |
11270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11271 | for as_dir in $PATH | |
11272 | do | |
11273 | IFS=$as_save_IFS | |
11274 | test -z "$as_dir" && as_dir=. | |
5213506e | 11275 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11277 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11279 | break 2 |
11280 | fi | |
11281 | done | |
5213506e RW |
11282 | done |
11283 | IFS=$as_save_IFS | |
278a7a38 AO |
11284 | |
11285 | fi | |
11286 | fi | |
11287 | NM=$ac_cv_prog_NM | |
11288 | if test -n "$NM"; then | |
5213506e RW |
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11290 | $as_echo "$NM" >&6; } | |
278a7a38 | 11291 | else |
5213506e RW |
11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11293 | $as_echo "no" >&6; } | |
278a7a38 AO |
11294 | fi |
11295 | ||
5213506e | 11296 | |
278a7a38 AO |
11297 | fi |
11298 | test -n "$ac_cv_prog_NM" && break | |
11299 | done | |
11300 | ||
11301 | if test -z "$ac_cv_prog_NM" ; then | |
11302 | set dummy nm | |
11303 | if test $build = $host ; then | |
11304 | NM="$2" | |
11305 | else | |
11306 | NM="${ncn_tool_prefix}$2" | |
11307 | fi | |
11308 | fi | |
11309 | ||
11310 | ||
11311 | ||
11312 | if test -n "$RANLIB"; then | |
11313 | ac_cv_prog_RANLIB=$RANLIB | |
11314 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11315 | RANLIB=$ac_cv_prog_RANLIB | |
11316 | fi | |
11317 | ||
11318 | if test -n "$ac_cv_prog_RANLIB"; then | |
11319 | for ncn_progname in ranlib; do | |
11320 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11321 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11324 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11325 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11326 | else |
11327 | if test -n "$RANLIB"; then | |
11328 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11329 | else | |
11330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11331 | for as_dir in $PATH | |
11332 | do | |
11333 | IFS=$as_save_IFS | |
11334 | test -z "$as_dir" && as_dir=. | |
5213506e | 11335 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11337 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11339 | break 2 |
11340 | fi | |
11341 | done | |
5213506e RW |
11342 | done |
11343 | IFS=$as_save_IFS | |
278a7a38 AO |
11344 | |
11345 | fi | |
11346 | fi | |
11347 | RANLIB=$ac_cv_prog_RANLIB | |
11348 | if test -n "$RANLIB"; then | |
5213506e RW |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11350 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11351 | else |
5213506e RW |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11353 | $as_echo "no" >&6; } | |
278a7a38 AO |
11354 | fi |
11355 | ||
5213506e | 11356 | |
278a7a38 AO |
11357 | done |
11358 | fi | |
ca9f4b81 | 11359 | |
278a7a38 | 11360 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11361 | if test -n "$ncn_tool_prefix"; then |
11362 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11363 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11365 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11366 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11367 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11368 | else |
11369 | if test -n "$RANLIB"; then | |
11370 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11371 | else | |
1c710c3c DJ |
11372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11373 | for as_dir in $PATH | |
11374 | do | |
11375 | IFS=$as_save_IFS | |
11376 | test -z "$as_dir" && as_dir=. | |
5213506e | 11377 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11378 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11379 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11381 | break 2 |
11382 | fi | |
11383 | done | |
5213506e RW |
11384 | done |
11385 | IFS=$as_save_IFS | |
1c710c3c | 11386 | |
ca9f4b81 AO |
11387 | fi |
11388 | fi | |
1c710c3c | 11389 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11390 | if test -n "$RANLIB"; then |
5213506e RW |
11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11392 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11393 | else |
5213506e RW |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11395 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11396 | fi |
11397 | ||
5213506e | 11398 | |
2693c0b0 PB |
11399 | fi |
11400 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11401 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11402 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11404 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11405 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11406 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11407 | else |
2693c0b0 PB |
11408 | if test -n "$RANLIB"; then |
11409 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11410 | else |
1c710c3c DJ |
11411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11412 | for as_dir in $PATH | |
11413 | do | |
11414 | IFS=$as_save_IFS | |
11415 | test -z "$as_dir" && as_dir=. | |
5213506e | 11416 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11418 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11420 | break 2 |
11421 | fi | |
11422 | done | |
5213506e RW |
11423 | done |
11424 | IFS=$as_save_IFS | |
1c710c3c | 11425 | |
ca9f4b81 AO |
11426 | fi |
11427 | fi | |
1c710c3c | 11428 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11429 | if test -n "$RANLIB"; then |
5213506e RW |
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11431 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11432 | else |
5213506e RW |
11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11434 | $as_echo "no" >&6; } | |
ca9f4b81 | 11435 | fi |
1c710c3c | 11436 | |
5213506e | 11437 | |
ca9f4b81 | 11438 | fi |
2693c0b0 PB |
11439 | test -n "$ac_cv_prog_RANLIB" && break |
11440 | done | |
11441 | ||
11442 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 11443 | RANLIB="true" |
ca9f4b81 AO |
11444 | fi |
11445 | ||
278a7a38 AO |
11446 | |
11447 | ||
11448 | if test -n "$STRIP"; then | |
11449 | ac_cv_prog_STRIP=$STRIP | |
11450 | elif test -n "$ac_cv_prog_STRIP"; then | |
11451 | STRIP=$ac_cv_prog_STRIP | |
11452 | fi | |
11453 | ||
11454 | if test -n "$ac_cv_prog_STRIP"; then | |
11455 | for ncn_progname in strip; do | |
11456 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11457 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11459 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11460 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11461 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11462 | else |
11463 | if test -n "$STRIP"; then | |
11464 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11465 | else | |
11466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11467 | for as_dir in $PATH | |
11468 | do | |
11469 | IFS=$as_save_IFS | |
11470 | test -z "$as_dir" && as_dir=. | |
5213506e | 11471 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11473 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11475 | break 2 |
11476 | fi | |
11477 | done | |
5213506e RW |
11478 | done |
11479 | IFS=$as_save_IFS | |
278a7a38 AO |
11480 | |
11481 | fi | |
11482 | fi | |
11483 | STRIP=$ac_cv_prog_STRIP | |
11484 | if test -n "$STRIP"; then | |
5213506e RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11486 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 11487 | else |
5213506e RW |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11489 | $as_echo "no" >&6; } | |
278a7a38 AO |
11490 | fi |
11491 | ||
5213506e | 11492 | |
278a7a38 AO |
11493 | done |
11494 | fi | |
11495 | ||
11496 | for ncn_progname in strip; do | |
2abefe3d PB |
11497 | if test -n "$ncn_tool_prefix"; then |
11498 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11499 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11502 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11503 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11504 | else |
11505 | if test -n "$STRIP"; then | |
11506 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11507 | else | |
1c710c3c DJ |
11508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11509 | for as_dir in $PATH | |
11510 | do | |
11511 | IFS=$as_save_IFS | |
11512 | test -z "$as_dir" && as_dir=. | |
5213506e | 11513 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11515 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11517 | break 2 |
11518 | fi | |
11519 | done | |
5213506e RW |
11520 | done |
11521 | IFS=$as_save_IFS | |
1c710c3c | 11522 | |
2abefe3d PB |
11523 | fi |
11524 | fi | |
1c710c3c | 11525 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11526 | if test -n "$STRIP"; then |
5213506e RW |
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11528 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11529 | else |
5213506e RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11531 | $as_echo "no" >&6; } | |
2abefe3d PB |
11532 | fi |
11533 | ||
5213506e | 11534 | |
2abefe3d PB |
11535 | fi |
11536 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
11537 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11538 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11540 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11541 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 11542 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11543 | else |
11544 | if test -n "$STRIP"; then | |
11545 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11546 | else | |
1c710c3c DJ |
11547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11548 | for as_dir in $PATH | |
11549 | do | |
11550 | IFS=$as_save_IFS | |
11551 | test -z "$as_dir" && as_dir=. | |
5213506e | 11552 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11554 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 11555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11556 | break 2 |
11557 | fi | |
11558 | done | |
5213506e RW |
11559 | done |
11560 | IFS=$as_save_IFS | |
1c710c3c | 11561 | |
2abefe3d PB |
11562 | fi |
11563 | fi | |
1c710c3c | 11564 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 11565 | if test -n "$STRIP"; then |
5213506e RW |
11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11567 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 11568 | else |
5213506e RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11570 | $as_echo "no" >&6; } | |
2abefe3d | 11571 | fi |
1c710c3c | 11572 | |
5213506e | 11573 | |
2abefe3d PB |
11574 | fi |
11575 | test -n "$ac_cv_prog_STRIP" && break | |
11576 | done | |
11577 | ||
11578 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 11579 | STRIP="true" |
2abefe3d PB |
11580 | fi |
11581 | ||
278a7a38 AO |
11582 | |
11583 | ||
11584 | if test -n "$WINDRES"; then | |
11585 | ac_cv_prog_WINDRES=$WINDRES | |
11586 | elif test -n "$ac_cv_prog_WINDRES"; then | |
11587 | WINDRES=$ac_cv_prog_WINDRES | |
11588 | fi | |
11589 | ||
11590 | if test -n "$ac_cv_prog_WINDRES"; then | |
11591 | for ncn_progname in windres; do | |
11592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11593 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11595 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11596 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11597 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11598 | else |
11599 | if test -n "$WINDRES"; then | |
11600 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11601 | else | |
11602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11603 | for as_dir in $PATH | |
11604 | do | |
11605 | IFS=$as_save_IFS | |
11606 | test -z "$as_dir" && as_dir=. | |
5213506e | 11607 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11609 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11611 | break 2 |
11612 | fi | |
11613 | done | |
5213506e RW |
11614 | done |
11615 | IFS=$as_save_IFS | |
278a7a38 AO |
11616 | |
11617 | fi | |
11618 | fi | |
11619 | WINDRES=$ac_cv_prog_WINDRES | |
11620 | if test -n "$WINDRES"; then | |
5213506e RW |
11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11622 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 11623 | else |
5213506e RW |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11625 | $as_echo "no" >&6; } | |
278a7a38 AO |
11626 | fi |
11627 | ||
5213506e | 11628 | |
278a7a38 AO |
11629 | done |
11630 | fi | |
11631 | ||
11632 | for ncn_progname in windres; do | |
2693c0b0 PB |
11633 | if test -n "$ncn_tool_prefix"; then |
11634 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11635 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11637 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11638 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11639 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11640 | else |
11641 | if test -n "$WINDRES"; then | |
11642 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
11643 | else | |
1c710c3c DJ |
11644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11645 | for as_dir in $PATH | |
11646 | do | |
11647 | IFS=$as_save_IFS | |
11648 | test -z "$as_dir" && as_dir=. | |
5213506e | 11649 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11651 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11653 | break 2 |
11654 | fi | |
11655 | done | |
5213506e RW |
11656 | done |
11657 | IFS=$as_save_IFS | |
1c710c3c | 11658 | |
ca9f4b81 AO |
11659 | fi |
11660 | fi | |
1c710c3c | 11661 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 11662 | if test -n "$WINDRES"; then |
5213506e RW |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11664 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11665 | else |
5213506e RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11667 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11668 | fi |
11669 | ||
5213506e | 11670 | |
2693c0b0 PB |
11671 | fi |
11672 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
11673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11674 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11676 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11677 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 11678 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11679 | else |
2693c0b0 PB |
11680 | if test -n "$WINDRES"; then |
11681 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 11682 | else |
1c710c3c DJ |
11683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11684 | for as_dir in $PATH | |
11685 | do | |
11686 | IFS=$as_save_IFS | |
11687 | test -z "$as_dir" && as_dir=. | |
5213506e | 11688 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11690 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 11691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11692 | break 2 |
11693 | fi | |
11694 | done | |
5213506e RW |
11695 | done |
11696 | IFS=$as_save_IFS | |
1c710c3c | 11697 | |
ca9f4b81 AO |
11698 | fi |
11699 | fi | |
1c710c3c | 11700 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 11701 | if test -n "$WINDRES"; then |
5213506e RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
11703 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 11704 | else |
5213506e RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11706 | $as_echo "no" >&6; } | |
ca9f4b81 | 11707 | fi |
1c710c3c | 11708 | |
5213506e | 11709 | |
2693c0b0 PB |
11710 | fi |
11711 | test -n "$ac_cv_prog_WINDRES" && break | |
11712 | done | |
11713 | ||
11714 | if test -z "$ac_cv_prog_WINDRES" ; then | |
11715 | set dummy windres | |
11716 | if test $build = $host ; then | |
11717 | WINDRES="$2" | |
ca9f4b81 | 11718 | else |
2693c0b0 | 11719 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 11720 | fi |
ca9f4b81 AO |
11721 | fi |
11722 | ||
278a7a38 AO |
11723 | |
11724 | ||
901119ae KT |
11725 | if test -n "$WINDMC"; then |
11726 | ac_cv_prog_WINDMC=$WINDMC | |
11727 | elif test -n "$ac_cv_prog_WINDMC"; then | |
11728 | WINDMC=$ac_cv_prog_WINDMC | |
11729 | fi | |
11730 | ||
11731 | if test -n "$ac_cv_prog_WINDMC"; then | |
11732 | for ncn_progname in windmc; do | |
11733 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11734 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11736 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11737 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11738 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11739 | else |
11740 | if test -n "$WINDMC"; then | |
11741 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11742 | else | |
11743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11744 | for as_dir in $PATH | |
11745 | do | |
11746 | IFS=$as_save_IFS | |
11747 | test -z "$as_dir" && as_dir=. | |
5213506e | 11748 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11749 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11750 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 11751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11752 | break 2 |
11753 | fi | |
11754 | done | |
5213506e RW |
11755 | done |
11756 | IFS=$as_save_IFS | |
901119ae KT |
11757 | |
11758 | fi | |
11759 | fi | |
11760 | WINDMC=$ac_cv_prog_WINDMC | |
11761 | if test -n "$WINDMC"; then | |
5213506e RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11763 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11764 | else |
5213506e RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11766 | $as_echo "no" >&6; } | |
901119ae KT |
11767 | fi |
11768 | ||
5213506e | 11769 | |
901119ae KT |
11770 | done |
11771 | fi | |
11772 | ||
11773 | for ncn_progname in windmc; do | |
11774 | if test -n "$ncn_tool_prefix"; then | |
11775 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11776 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11779 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11780 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11781 | else |
11782 | if test -n "$WINDMC"; then | |
11783 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11784 | else | |
11785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11786 | for as_dir in $PATH | |
11787 | do | |
11788 | IFS=$as_save_IFS | |
11789 | test -z "$as_dir" && as_dir=. | |
5213506e | 11790 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11792 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11794 | break 2 |
11795 | fi | |
11796 | done | |
5213506e RW |
11797 | done |
11798 | IFS=$as_save_IFS | |
901119ae KT |
11799 | |
11800 | fi | |
11801 | fi | |
11802 | WINDMC=$ac_cv_prog_WINDMC | |
11803 | if test -n "$WINDMC"; then | |
5213506e RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11805 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11806 | else |
5213506e RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
901119ae KT |
11809 | fi |
11810 | ||
5213506e | 11811 | |
901119ae KT |
11812 | fi |
11813 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
11814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11815 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11818 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 11819 | $as_echo_n "(cached) " >&6 |
901119ae KT |
11820 | else |
11821 | if test -n "$WINDMC"; then | |
11822 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
11823 | else | |
11824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11825 | for as_dir in $PATH | |
11826 | do | |
11827 | IFS=$as_save_IFS | |
11828 | test -z "$as_dir" && as_dir=. | |
5213506e | 11829 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 11831 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 11832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
11833 | break 2 |
11834 | fi | |
11835 | done | |
5213506e RW |
11836 | done |
11837 | IFS=$as_save_IFS | |
901119ae KT |
11838 | |
11839 | fi | |
11840 | fi | |
11841 | WINDMC=$ac_cv_prog_WINDMC | |
11842 | if test -n "$WINDMC"; then | |
5213506e RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
11844 | $as_echo "$WINDMC" >&6; } | |
901119ae | 11845 | else |
5213506e RW |
11846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | $as_echo "no" >&6; } | |
901119ae KT |
11848 | fi |
11849 | ||
5213506e | 11850 | |
901119ae KT |
11851 | fi |
11852 | test -n "$ac_cv_prog_WINDMC" && break | |
11853 | done | |
11854 | ||
11855 | if test -z "$ac_cv_prog_WINDMC" ; then | |
11856 | set dummy windmc | |
11857 | if test $build = $host ; then | |
11858 | WINDMC="$2" | |
11859 | else | |
11860 | WINDMC="${ncn_tool_prefix}$2" | |
11861 | fi | |
11862 | fi | |
11863 | ||
11864 | ||
11865 | ||
278a7a38 AO |
11866 | if test -n "$OBJCOPY"; then |
11867 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
11868 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
11869 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
11870 | fi | |
11871 | ||
11872 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
11873 | for ncn_progname in objcopy; do | |
11874 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11875 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11877 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11878 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11879 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11880 | else |
11881 | if test -n "$OBJCOPY"; then | |
11882 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
11883 | else | |
11884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11885 | for as_dir in $PATH | |
11886 | do | |
11887 | IFS=$as_save_IFS | |
11888 | test -z "$as_dir" && as_dir=. | |
5213506e | 11889 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11890 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11891 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 11892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11893 | break 2 |
11894 | fi | |
11895 | done | |
5213506e RW |
11896 | done |
11897 | IFS=$as_save_IFS | |
278a7a38 AO |
11898 | |
11899 | fi | |
11900 | fi | |
11901 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
11902 | if test -n "$OBJCOPY"; then | |
5213506e RW |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11904 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 11905 | else |
5213506e RW |
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11907 | $as_echo "no" >&6; } | |
278a7a38 AO |
11908 | fi |
11909 | ||
5213506e | 11910 | |
278a7a38 AO |
11911 | done |
11912 | fi | |
11913 | ||
11914 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
11915 | if test -n "$ncn_tool_prefix"; then |
11916 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11917 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11919 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11920 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11921 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11922 | else |
11923 | if test -n "$OBJCOPY"; then | |
11924 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
11925 | else | |
1c710c3c DJ |
11926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11927 | for as_dir in $PATH | |
11928 | do | |
11929 | IFS=$as_save_IFS | |
11930 | test -z "$as_dir" && as_dir=. | |
5213506e | 11931 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11933 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11935 | break 2 |
11936 | fi | |
11937 | done | |
5213506e RW |
11938 | done |
11939 | IFS=$as_save_IFS | |
1c710c3c | 11940 | |
ca9f4b81 AO |
11941 | fi |
11942 | fi | |
1c710c3c | 11943 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 11944 | if test -n "$OBJCOPY"; then |
5213506e RW |
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11946 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 11947 | else |
5213506e RW |
11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11949 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11950 | fi |
11951 | ||
5213506e | 11952 | |
2693c0b0 PB |
11953 | fi |
11954 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
11955 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11956 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11958 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11959 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 11960 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11961 | else |
2693c0b0 PB |
11962 | if test -n "$OBJCOPY"; then |
11963 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 11964 | else |
1c710c3c DJ |
11965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11966 | for as_dir in $PATH | |
11967 | do | |
11968 | IFS=$as_save_IFS | |
11969 | test -z "$as_dir" && as_dir=. | |
5213506e | 11970 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11972 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 11973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11974 | break 2 |
11975 | fi | |
11976 | done | |
5213506e RW |
11977 | done |
11978 | IFS=$as_save_IFS | |
1c710c3c | 11979 | |
ca9f4b81 AO |
11980 | fi |
11981 | fi | |
1c710c3c | 11982 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 11983 | if test -n "$OBJCOPY"; then |
5213506e RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
11985 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 11986 | else |
5213506e RW |
11987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11988 | $as_echo "no" >&6; } | |
ca9f4b81 | 11989 | fi |
1c710c3c | 11990 | |
5213506e | 11991 | |
2693c0b0 PB |
11992 | fi |
11993 | test -n "$ac_cv_prog_OBJCOPY" && break | |
11994 | done | |
11995 | ||
11996 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
11997 | set dummy objcopy | |
11998 | if test $build = $host ; then | |
11999 | OBJCOPY="$2" | |
ca9f4b81 | 12000 | else |
2693c0b0 | 12001 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12002 | fi |
ca9f4b81 AO |
12003 | fi |
12004 | ||
278a7a38 AO |
12005 | |
12006 | ||
12007 | if test -n "$OBJDUMP"; then | |
12008 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12009 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12010 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12011 | fi | |
12012 | ||
12013 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12014 | for ncn_progname in objdump; do | |
12015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12016 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12018 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12019 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12020 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12021 | else |
12022 | if test -n "$OBJDUMP"; then | |
12023 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12024 | else | |
12025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12026 | for as_dir in $PATH | |
12027 | do | |
12028 | IFS=$as_save_IFS | |
12029 | test -z "$as_dir" && as_dir=. | |
5213506e | 12030 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12032 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12034 | break 2 |
12035 | fi | |
12036 | done | |
5213506e RW |
12037 | done |
12038 | IFS=$as_save_IFS | |
278a7a38 AO |
12039 | |
12040 | fi | |
12041 | fi | |
12042 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12043 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12045 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12046 | else |
5213506e RW |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12048 | $as_echo "no" >&6; } | |
278a7a38 AO |
12049 | fi |
12050 | ||
5213506e | 12051 | |
278a7a38 AO |
12052 | done |
12053 | fi | |
12054 | ||
12055 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12056 | if test -n "$ncn_tool_prefix"; then |
12057 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12058 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12060 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12061 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12062 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12063 | else |
12064 | if test -n "$OBJDUMP"; then | |
12065 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12066 | else | |
1c710c3c DJ |
12067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12068 | for as_dir in $PATH | |
12069 | do | |
12070 | IFS=$as_save_IFS | |
12071 | test -z "$as_dir" && as_dir=. | |
5213506e | 12072 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12074 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12076 | break 2 |
12077 | fi | |
12078 | done | |
5213506e RW |
12079 | done |
12080 | IFS=$as_save_IFS | |
1c710c3c | 12081 | |
ca9f4b81 AO |
12082 | fi |
12083 | fi | |
1c710c3c | 12084 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12085 | if test -n "$OBJDUMP"; then |
5213506e RW |
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12087 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12088 | else |
5213506e RW |
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12090 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12091 | fi |
12092 | ||
5213506e | 12093 | |
2693c0b0 PB |
12094 | fi |
12095 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12096 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12097 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12099 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12100 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12101 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12102 | else |
2693c0b0 PB |
12103 | if test -n "$OBJDUMP"; then |
12104 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12105 | else |
1c710c3c DJ |
12106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12107 | for as_dir in $PATH | |
12108 | do | |
12109 | IFS=$as_save_IFS | |
12110 | test -z "$as_dir" && as_dir=. | |
5213506e | 12111 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12113 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12115 | break 2 |
12116 | fi | |
12117 | done | |
5213506e RW |
12118 | done |
12119 | IFS=$as_save_IFS | |
1c710c3c | 12120 | |
ca9f4b81 AO |
12121 | fi |
12122 | fi | |
1c710c3c | 12123 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12124 | if test -n "$OBJDUMP"; then |
5213506e RW |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12126 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12127 | else |
5213506e RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12129 | $as_echo "no" >&6; } | |
ca9f4b81 | 12130 | fi |
1c710c3c | 12131 | |
5213506e | 12132 | |
2693c0b0 PB |
12133 | fi |
12134 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12135 | done | |
12136 | ||
12137 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12138 | set dummy objdump | |
12139 | if test $build = $host ; then | |
12140 | OBJDUMP="$2" | |
ca9f4b81 | 12141 | else |
2693c0b0 | 12142 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12143 | fi |
ca9f4b81 AO |
12144 | fi |
12145 | ||
671aa708 NN |
12146 | |
12147 | ||
e4a9a572 IS |
12148 | if test -n "$OTOOL"; then |
12149 | ac_cv_prog_OTOOL=$OTOOL | |
12150 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12151 | OTOOL=$ac_cv_prog_OTOOL | |
12152 | fi | |
12153 | ||
12154 | if test -n "$ac_cv_prog_OTOOL"; then | |
12155 | for ncn_progname in otool; do | |
12156 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12157 | set dummy ${ncn_progname}; ac_word=$2 | |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12159 | $as_echo_n "checking for $ac_word... " >&6; } | |
12160 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12161 | $as_echo_n "(cached) " >&6 | |
12162 | else | |
12163 | if test -n "$OTOOL"; then | |
12164 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12165 | else | |
12166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12167 | for as_dir in $PATH | |
12168 | do | |
12169 | IFS=$as_save_IFS | |
12170 | test -z "$as_dir" && as_dir=. | |
12171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12173 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12175 | break 2 | |
12176 | fi | |
12177 | done | |
12178 | done | |
12179 | IFS=$as_save_IFS | |
12180 | ||
12181 | fi | |
12182 | fi | |
12183 | OTOOL=$ac_cv_prog_OTOOL | |
12184 | if test -n "$OTOOL"; then | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12186 | $as_echo "$OTOOL" >&6; } | |
12187 | else | |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12189 | $as_echo "no" >&6; } | |
12190 | fi | |
12191 | ||
12192 | ||
12193 | done | |
12194 | fi | |
12195 | ||
12196 | for ncn_progname in otool; do | |
12197 | if test -n "$ncn_tool_prefix"; then | |
12198 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12199 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12201 | $as_echo_n "checking for $ac_word... " >&6; } | |
12202 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12203 | $as_echo_n "(cached) " >&6 | |
12204 | else | |
12205 | if test -n "$OTOOL"; then | |
12206 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12207 | else | |
12208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12209 | for as_dir in $PATH | |
12210 | do | |
12211 | IFS=$as_save_IFS | |
12212 | test -z "$as_dir" && as_dir=. | |
12213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12215 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12217 | break 2 | |
12218 | fi | |
12219 | done | |
12220 | done | |
12221 | IFS=$as_save_IFS | |
12222 | ||
12223 | fi | |
12224 | fi | |
12225 | OTOOL=$ac_cv_prog_OTOOL | |
12226 | if test -n "$OTOOL"; then | |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12228 | $as_echo "$OTOOL" >&6; } | |
12229 | else | |
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12231 | $as_echo "no" >&6; } | |
12232 | fi | |
12233 | ||
12234 | ||
12235 | fi | |
12236 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12237 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12238 | set dummy ${ncn_progname}; ac_word=$2 | |
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12240 | $as_echo_n "checking for $ac_word... " >&6; } | |
12241 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12242 | $as_echo_n "(cached) " >&6 | |
12243 | else | |
12244 | if test -n "$OTOOL"; then | |
12245 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12246 | else | |
12247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12248 | for as_dir in $PATH | |
12249 | do | |
12250 | IFS=$as_save_IFS | |
12251 | test -z "$as_dir" && as_dir=. | |
12252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12254 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12256 | break 2 | |
12257 | fi | |
12258 | done | |
12259 | done | |
12260 | IFS=$as_save_IFS | |
12261 | ||
12262 | fi | |
12263 | fi | |
12264 | OTOOL=$ac_cv_prog_OTOOL | |
12265 | if test -n "$OTOOL"; then | |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12267 | $as_echo "$OTOOL" >&6; } | |
12268 | else | |
12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12270 | $as_echo "no" >&6; } | |
12271 | fi | |
12272 | ||
12273 | ||
12274 | fi | |
12275 | test -n "$ac_cv_prog_OTOOL" && break | |
12276 | done | |
12277 | ||
12278 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12279 | set dummy otool | |
12280 | if test $build = $host ; then | |
12281 | OTOOL="$2" | |
12282 | else | |
12283 | OTOOL="${ncn_tool_prefix}$2" | |
12284 | fi | |
12285 | fi | |
12286 | ||
12287 | ||
12288 | ||
e7a82751 RM |
12289 | if test -n "$READELF"; then |
12290 | ac_cv_prog_READELF=$READELF | |
12291 | elif test -n "$ac_cv_prog_READELF"; then | |
12292 | READELF=$ac_cv_prog_READELF | |
12293 | fi | |
12294 | ||
12295 | if test -n "$ac_cv_prog_READELF"; then | |
12296 | for ncn_progname in readelf; do | |
12297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12298 | set dummy ${ncn_progname}; ac_word=$2 | |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12300 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12301 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12302 | $as_echo_n "(cached) " >&6 |
12303 | else | |
12304 | if test -n "$READELF"; then | |
12305 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12306 | else | |
12307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12308 | for as_dir in $PATH | |
12309 | do | |
12310 | IFS=$as_save_IFS | |
12311 | test -z "$as_dir" && as_dir=. | |
12312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12314 | ac_cv_prog_READELF="${ncn_progname}" |
12315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12316 | break 2 | |
12317 | fi | |
12318 | done | |
12319 | done | |
12320 | IFS=$as_save_IFS | |
12321 | ||
12322 | fi | |
12323 | fi | |
12324 | READELF=$ac_cv_prog_READELF | |
12325 | if test -n "$READELF"; then | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12327 | $as_echo "$READELF" >&6; } | |
12328 | else | |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12330 | $as_echo "no" >&6; } | |
12331 | fi | |
12332 | ||
12333 | ||
12334 | done | |
12335 | fi | |
12336 | ||
12337 | for ncn_progname in readelf; do | |
12338 | if test -n "$ncn_tool_prefix"; then | |
12339 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12340 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12342 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12343 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12344 | $as_echo_n "(cached) " >&6 |
12345 | else | |
12346 | if test -n "$READELF"; then | |
12347 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12348 | else | |
12349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12350 | for as_dir in $PATH | |
12351 | do | |
12352 | IFS=$as_save_IFS | |
12353 | test -z "$as_dir" && as_dir=. | |
12354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12356 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12358 | break 2 | |
12359 | fi | |
12360 | done | |
12361 | done | |
12362 | IFS=$as_save_IFS | |
12363 | ||
12364 | fi | |
12365 | fi | |
12366 | READELF=$ac_cv_prog_READELF | |
12367 | if test -n "$READELF"; then | |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12369 | $as_echo "$READELF" >&6; } | |
12370 | else | |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12372 | $as_echo "no" >&6; } | |
12373 | fi | |
12374 | ||
12375 | ||
12376 | fi | |
12377 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12378 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12379 | set dummy ${ncn_progname}; ac_word=$2 | |
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12381 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12382 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12383 | $as_echo_n "(cached) " >&6 |
12384 | else | |
12385 | if test -n "$READELF"; then | |
12386 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12387 | else | |
12388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12389 | for as_dir in $PATH | |
12390 | do | |
12391 | IFS=$as_save_IFS | |
12392 | test -z "$as_dir" && as_dir=. | |
12393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12394 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12395 | ac_cv_prog_READELF="${ncn_progname}" |
12396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12397 | break 2 | |
12398 | fi | |
12399 | done | |
12400 | done | |
12401 | IFS=$as_save_IFS | |
12402 | ||
12403 | fi | |
12404 | fi | |
12405 | READELF=$ac_cv_prog_READELF | |
12406 | if test -n "$READELF"; then | |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12408 | $as_echo "$READELF" >&6; } | |
12409 | else | |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12411 | $as_echo "no" >&6; } | |
12412 | fi | |
12413 | ||
12414 | ||
12415 | fi | |
12416 | test -n "$ac_cv_prog_READELF" && break | |
12417 | done | |
12418 | ||
12419 | if test -z "$ac_cv_prog_READELF" ; then | |
12420 | set dummy readelf | |
12421 | if test $build = $host ; then | |
12422 | READELF="$2" | |
12423 | else | |
12424 | READELF="${ncn_tool_prefix}$2" | |
12425 | fi | |
12426 | fi | |
12427 | ||
12428 | ||
12429 | ||
671aa708 NN |
12430 | |
12431 | ||
12432 | ||
2abefe3d | 12433 | # Target tools. |
1c710c3c | 12434 | |
5213506e RW |
12435 | # Check whether --with-build-time-tools was given. |
12436 | if test "${with_build_time_tools+set}" = set; then : | |
12437 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
12438 | x/*) ;; |
12439 | *) | |
12440 | with_build_time_tools= | |
5213506e RW |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
12442 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
12443 | ;; |
12444 | esac | |
ca9f4b81 | 12445 | else |
e8b05380 | 12446 | with_build_time_tools= |
5213506e RW |
12447 | fi |
12448 | ||
ca9f4b81 | 12449 | |
278a7a38 AO |
12450 | |
12451 | ||
12452 | if test -n "$CC_FOR_TARGET"; then | |
12453 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
12454 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12455 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12456 | fi | |
12457 | ||
12458 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
12459 | for ncn_progname in cc gcc; do | |
12460 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12461 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12463 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12464 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12465 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12466 | else |
12467 | if test -n "$CC_FOR_TARGET"; then | |
12468 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12469 | else | |
12470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12471 | for as_dir in $PATH | |
12472 | do | |
12473 | IFS=$as_save_IFS | |
12474 | test -z "$as_dir" && as_dir=. | |
5213506e | 12475 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12477 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12479 | break 2 |
12480 | fi | |
12481 | done | |
5213506e RW |
12482 | done |
12483 | IFS=$as_save_IFS | |
278a7a38 AO |
12484 | |
12485 | fi | |
12486 | fi | |
12487 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
12488 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
12489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12490 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 12491 | else |
5213506e RW |
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12493 | $as_echo "no" >&6; } | |
278a7a38 AO |
12494 | fi |
12495 | ||
5213506e | 12496 | |
278a7a38 AO |
12497 | done |
12498 | fi | |
12499 | ||
12500 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12501 | for ncn_progname in cc gcc; do |
5213506e RW |
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12503 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12504 | if test -x $with_build_time_tools/${ncn_progname}; then |
12505 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12507 | $as_echo "yes" >&6; } | |
72a7ab82 | 12508 | break |
e8b05380 | 12509 | else |
5213506e RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12511 | $as_echo "no" >&6; } | |
72a7ab82 AP |
12512 | fi |
12513 | done | |
4de997d1 PB |
12514 | fi |
12515 | ||
e8b05380 PB |
12516 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
12517 | for ncn_progname in cc gcc; do | |
12518 | if test -n "$ncn_target_tool_prefix"; then | |
12519 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12520 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12522 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12523 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12524 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12525 | else |
12526 | if test -n "$CC_FOR_TARGET"; then | |
12527 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
12528 | else | |
1c710c3c DJ |
12529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12530 | for as_dir in $PATH | |
12531 | do | |
12532 | IFS=$as_save_IFS | |
12533 | test -z "$as_dir" && as_dir=. | |
5213506e | 12534 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12536 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12538 | break 2 |
12539 | fi | |
12540 | done | |
5213506e RW |
12541 | done |
12542 | IFS=$as_save_IFS | |
1c710c3c | 12543 | |
4de997d1 PB |
12544 | fi |
12545 | fi | |
1c710c3c | 12546 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 12547 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12549 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12550 | else |
5213506e RW |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12552 | $as_echo "no" >&6; } | |
4de997d1 PB |
12553 | fi |
12554 | ||
5213506e | 12555 | |
e8b05380 PB |
12556 | fi |
12557 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
12558 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12559 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12561 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12562 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 12563 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12564 | else |
2693c0b0 PB |
12565 | if test -n "$CC_FOR_TARGET"; then |
12566 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12567 | else |
1c710c3c DJ |
12568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12569 | for as_dir in $PATH | |
12570 | do | |
12571 | IFS=$as_save_IFS | |
12572 | test -z "$as_dir" && as_dir=. | |
5213506e | 12573 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12575 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 12576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12577 | break 2 |
12578 | fi | |
12579 | done | |
5213506e RW |
12580 | done |
12581 | IFS=$as_save_IFS | |
1c710c3c | 12582 | |
4de997d1 PB |
12583 | fi |
12584 | fi | |
1c710c3c | 12585 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 12586 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
12588 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 12589 | else |
5213506e RW |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12591 | $as_echo "no" >&6; } | |
4de997d1 | 12592 | fi |
1c710c3c | 12593 | |
5213506e | 12594 | |
e8b05380 PB |
12595 | fi |
12596 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
12597 | done | |
12598 | fi | |
1c710c3c | 12599 | |
2693c0b0 PB |
12600 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
12601 | set dummy cc gcc | |
12602 | if test $build = $target ; then | |
12603 | CC_FOR_TARGET="$2" | |
4de997d1 | 12604 | else |
2693c0b0 | 12605 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12606 | fi |
1c00b503 PB |
12607 | else |
12608 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
12609 | fi |
12610 | ||
278a7a38 AO |
12611 | |
12612 | ||
12613 | if test -n "$CXX_FOR_TARGET"; then | |
12614 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
12615 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12616 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12617 | fi | |
12618 | ||
12619 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12620 | for ncn_progname in c++ g++ cxx gxx; do | |
12621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12622 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12624 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12625 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12626 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12627 | else |
12628 | if test -n "$CXX_FOR_TARGET"; then | |
12629 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12630 | else | |
12631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12632 | for as_dir in $PATH | |
12633 | do | |
12634 | IFS=$as_save_IFS | |
12635 | test -z "$as_dir" && as_dir=. | |
5213506e | 12636 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12638 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12640 | break 2 |
12641 | fi | |
12642 | done | |
5213506e RW |
12643 | done |
12644 | IFS=$as_save_IFS | |
278a7a38 AO |
12645 | |
12646 | fi | |
12647 | fi | |
12648 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
12649 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12651 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 12652 | else |
5213506e RW |
12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12654 | $as_echo "no" >&6; } | |
278a7a38 AO |
12655 | fi |
12656 | ||
5213506e | 12657 | |
278a7a38 AO |
12658 | done |
12659 | fi | |
12660 | ||
12661 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12662 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12664 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12665 | if test -x $with_build_time_tools/${ncn_progname}; then |
12666 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12668 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12669 | break |
12670 | else | |
5213506e RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12672 | $as_echo "no" >&6; } | |
e8b05380 PB |
12673 | fi |
12674 | done | |
12675 | fi | |
12676 | ||
12677 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
12678 | for ncn_progname in c++ g++ cxx gxx; do | |
12679 | if test -n "$ncn_target_tool_prefix"; then | |
12680 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12681 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12683 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12684 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12685 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
12686 | else |
12687 | if test -n "$CXX_FOR_TARGET"; then | |
12688 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
12689 | else | |
1c710c3c DJ |
12690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12691 | for as_dir in $PATH | |
12692 | do | |
12693 | IFS=$as_save_IFS | |
12694 | test -z "$as_dir" && as_dir=. | |
5213506e | 12695 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12697 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12699 | break 2 |
12700 | fi | |
12701 | done | |
5213506e RW |
12702 | done |
12703 | IFS=$as_save_IFS | |
1c710c3c | 12704 | |
4de997d1 PB |
12705 | fi |
12706 | fi | |
1c710c3c | 12707 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 12708 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12710 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 12711 | else |
5213506e RW |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12713 | $as_echo "no" >&6; } | |
4de997d1 PB |
12714 | fi |
12715 | ||
5213506e | 12716 | |
e8b05380 PB |
12717 | fi |
12718 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
12719 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12720 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12722 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12723 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 12724 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12725 | else |
2693c0b0 PB |
12726 | if test -n "$CXX_FOR_TARGET"; then |
12727 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12728 | else |
1c710c3c DJ |
12729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12730 | for as_dir in $PATH | |
12731 | do | |
12732 | IFS=$as_save_IFS | |
12733 | test -z "$as_dir" && as_dir=. | |
5213506e | 12734 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12735 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12736 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 12737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12738 | break 2 |
12739 | fi | |
12740 | done | |
5213506e RW |
12741 | done |
12742 | IFS=$as_save_IFS | |
1c710c3c | 12743 | |
4de997d1 PB |
12744 | fi |
12745 | fi | |
1c710c3c | 12746 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 12747 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
12749 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 12750 | else |
5213506e RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12752 | $as_echo "no" >&6; } | |
4de997d1 | 12753 | fi |
1c710c3c | 12754 | |
5213506e | 12755 | |
e8b05380 PB |
12756 | fi |
12757 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
12758 | done | |
12759 | fi | |
1c710c3c | 12760 | |
2693c0b0 PB |
12761 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
12762 | set dummy c++ g++ cxx gxx | |
12763 | if test $build = $target ; then | |
12764 | CXX_FOR_TARGET="$2" | |
4de997d1 | 12765 | else |
2693c0b0 | 12766 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 12767 | fi |
1c00b503 PB |
12768 | else |
12769 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
12770 | fi |
12771 | ||
278a7a38 AO |
12772 | |
12773 | ||
12774 | if test -n "$GCC_FOR_TARGET"; then | |
12775 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
12776 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12777 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
12778 | fi | |
12779 | ||
12780 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12781 | for ncn_progname in gcc; do | |
12782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12783 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12785 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12786 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12787 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12788 | else |
12789 | if test -n "$GCC_FOR_TARGET"; then | |
12790 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
12791 | else | |
12792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12793 | for as_dir in $PATH | |
12794 | do | |
12795 | IFS=$as_save_IFS | |
12796 | test -z "$as_dir" && as_dir=. | |
5213506e | 12797 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12799 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 12800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12801 | break 2 |
12802 | fi | |
12803 | done | |
5213506e RW |
12804 | done |
12805 | IFS=$as_save_IFS | |
278a7a38 AO |
12806 | |
12807 | fi | |
12808 | fi | |
12809 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
12810 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12812 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 12813 | else |
5213506e RW |
12814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12815 | $as_echo "no" >&6; } | |
278a7a38 AO |
12816 | fi |
12817 | ||
5213506e | 12818 | |
278a7a38 AO |
12819 | done |
12820 | fi | |
12821 | ||
12822 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12823 | for ncn_progname in gcc; do |
5213506e RW |
12824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12825 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12826 | if test -x $with_build_time_tools/${ncn_progname}; then |
12827 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12829 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12830 | break |
12831 | else | |
5213506e RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833 | $as_echo "no" >&6; } | |
e8b05380 PB |
12834 | fi |
12835 | done | |
12836 | fi | |
12837 | ||
12838 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
12839 | for ncn_progname in gcc; do | |
12840 | if test -n "$ncn_target_tool_prefix"; then | |
12841 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12842 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12844 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12845 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12846 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12847 | else |
e8b05380 PB |
12848 | if test -n "$GCC_FOR_TARGET"; then |
12849 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12850 | else |
1c710c3c DJ |
12851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12852 | for as_dir in $PATH | |
12853 | do | |
12854 | IFS=$as_save_IFS | |
12855 | test -z "$as_dir" && as_dir=. | |
5213506e | 12856 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12858 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12860 | break 2 |
12861 | fi | |
12862 | done | |
5213506e RW |
12863 | done |
12864 | IFS=$as_save_IFS | |
1c710c3c | 12865 | |
ca9f4b81 AO |
12866 | fi |
12867 | fi | |
1c710c3c | 12868 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 12869 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12871 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 12872 | else |
5213506e RW |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12874 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12875 | fi |
12876 | ||
5213506e | 12877 | |
e8b05380 PB |
12878 | fi |
12879 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
12880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12881 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12883 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12884 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 12885 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12886 | else |
e8b05380 PB |
12887 | if test -n "$GCC_FOR_TARGET"; then |
12888 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12889 | else |
1c710c3c DJ |
12890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12891 | for as_dir in $PATH | |
12892 | do | |
12893 | IFS=$as_save_IFS | |
12894 | test -z "$as_dir" && as_dir=. | |
5213506e | 12895 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12897 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 12898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12899 | break 2 |
12900 | fi | |
12901 | done | |
5213506e RW |
12902 | done |
12903 | IFS=$as_save_IFS | |
1c710c3c | 12904 | |
ca9f4b81 AO |
12905 | fi |
12906 | fi | |
1c710c3c | 12907 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 12908 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
12910 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 12911 | else |
5213506e RW |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12913 | $as_echo "no" >&6; } | |
ca9f4b81 | 12914 | fi |
1c710c3c | 12915 | |
5213506e | 12916 | |
e8b05380 PB |
12917 | fi |
12918 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
12919 | done | |
12920 | fi | |
1c710c3c | 12921 | |
e8b05380 PB |
12922 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
12923 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
12924 | else |
12925 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
12926 | fi |
12927 | ||
278a7a38 AO |
12928 | |
12929 | ||
278a7a38 AO |
12930 | if test -n "$GFORTRAN_FOR_TARGET"; then |
12931 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
12932 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
12933 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
12934 | fi |
12935 | ||
278a7a38 AO |
12936 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
12937 | for ncn_progname in gfortran; do | |
12938 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 12939 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12941 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12942 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 12943 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12944 | else |
278a7a38 AO |
12945 | if test -n "$GFORTRAN_FOR_TARGET"; then |
12946 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 12947 | else |
1c710c3c DJ |
12948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12949 | for as_dir in $PATH | |
12950 | do | |
12951 | IFS=$as_save_IFS | |
12952 | test -z "$as_dir" && as_dir=. | |
5213506e | 12953 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12955 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 12956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12957 | break 2 |
12958 | fi | |
12959 | done | |
5213506e RW |
12960 | done |
12961 | IFS=$as_save_IFS | |
1c710c3c | 12962 | |
e8b05380 PB |
12963 | fi |
12964 | fi | |
278a7a38 AO |
12965 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
12966 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
12968 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 12969 | else |
5213506e RW |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12971 | $as_echo "no" >&6; } | |
e8b05380 | 12972 | fi |
1c710c3c | 12973 | |
5213506e | 12974 | |
e8b05380 PB |
12975 | done |
12976 | fi | |
1c710c3c | 12977 | |
278a7a38 | 12978 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 12979 | for ncn_progname in gfortran; do |
5213506e RW |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12981 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12982 | if test -x $with_build_time_tools/${ncn_progname}; then |
12983 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12985 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12986 | break |
12987 | else | |
5213506e RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12989 | $as_echo "no" >&6; } | |
e8b05380 PB |
12990 | fi |
12991 | done | |
12992 | fi | |
12993 | ||
12994 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
12995 | for ncn_progname in gfortran; do | |
12996 | if test -n "$ncn_target_tool_prefix"; then | |
12997 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12998 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13000 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13001 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13002 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13003 | else |
13004 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13005 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13006 | else | |
13007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13008 | for as_dir in $PATH | |
13009 | do | |
13010 | IFS=$as_save_IFS | |
13011 | test -z "$as_dir" && as_dir=. | |
5213506e | 13012 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13013 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13014 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13016 | break 2 |
13017 | fi | |
13018 | done | |
5213506e RW |
13019 | done |
13020 | IFS=$as_save_IFS | |
1c710c3c | 13021 | |
e8b05380 PB |
13022 | fi |
13023 | fi | |
1c710c3c | 13024 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13025 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13027 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13028 | else |
5213506e RW |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13030 | $as_echo "no" >&6; } | |
e8b05380 PB |
13031 | fi |
13032 | ||
5213506e | 13033 | |
e8b05380 PB |
13034 | fi |
13035 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13037 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13039 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13040 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13041 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13042 | else |
13043 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13044 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13045 | else | |
1c710c3c DJ |
13046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13047 | for as_dir in $PATH | |
13048 | do | |
13049 | IFS=$as_save_IFS | |
13050 | test -z "$as_dir" && as_dir=. | |
5213506e | 13051 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13053 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13055 | break 2 |
13056 | fi | |
13057 | done | |
5213506e RW |
13058 | done |
13059 | IFS=$as_save_IFS | |
1c710c3c | 13060 | |
e8b05380 PB |
13061 | fi |
13062 | fi | |
1c710c3c | 13063 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13064 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13066 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13067 | else |
5213506e RW |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13069 | $as_echo "no" >&6; } | |
e8b05380 | 13070 | fi |
1c710c3c | 13071 | |
5213506e | 13072 | |
e8b05380 PB |
13073 | fi |
13074 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13075 | done | |
13076 | fi | |
1c710c3c | 13077 | |
e8b05380 PB |
13078 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13079 | set dummy gfortran | |
2693c0b0 | 13080 | if test $build = $target ; then |
e8b05380 | 13081 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13082 | else |
e8b05380 PB |
13083 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13084 | fi | |
1c00b503 PB |
13085 | else |
13086 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13087 | fi |
13088 | ||
13089 | ||
13090 | ||
632e2a07 ILT |
13091 | if test -n "$GOC_FOR_TARGET"; then |
13092 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13093 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13094 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13095 | fi | |
13096 | ||
13097 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13098 | for ncn_progname in gccgo; do | |
13099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13100 | set dummy ${ncn_progname}; ac_word=$2 | |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13102 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13103 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13104 | $as_echo_n "(cached) " >&6 |
13105 | else | |
13106 | if test -n "$GOC_FOR_TARGET"; then | |
13107 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13108 | else | |
13109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13110 | for as_dir in $PATH | |
13111 | do | |
13112 | IFS=$as_save_IFS | |
13113 | test -z "$as_dir" && as_dir=. | |
13114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13116 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13118 | break 2 | |
13119 | fi | |
13120 | done | |
13121 | done | |
13122 | IFS=$as_save_IFS | |
13123 | ||
13124 | fi | |
13125 | fi | |
13126 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13127 | if test -n "$GOC_FOR_TARGET"; then | |
13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13129 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13130 | else | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13132 | $as_echo "no" >&6; } | |
13133 | fi | |
13134 | ||
13135 | ||
13136 | done | |
13137 | fi | |
13138 | ||
13139 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13140 | for ncn_progname in gccgo; do | |
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13142 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13143 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13144 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13146 | $as_echo "yes" >&6; } | |
13147 | break | |
13148 | else | |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13150 | $as_echo "no" >&6; } | |
13151 | fi | |
13152 | done | |
13153 | fi | |
13154 | ||
13155 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13156 | for ncn_progname in gccgo; do | |
13157 | if test -n "$ncn_target_tool_prefix"; then | |
13158 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13159 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13161 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13162 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13163 | $as_echo_n "(cached) " >&6 |
13164 | else | |
13165 | if test -n "$GOC_FOR_TARGET"; then | |
13166 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13167 | else | |
13168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13169 | for as_dir in $PATH | |
13170 | do | |
13171 | IFS=$as_save_IFS | |
13172 | test -z "$as_dir" && as_dir=. | |
13173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13175 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13177 | break 2 | |
13178 | fi | |
13179 | done | |
13180 | done | |
13181 | IFS=$as_save_IFS | |
13182 | ||
13183 | fi | |
13184 | fi | |
13185 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13186 | if test -n "$GOC_FOR_TARGET"; then | |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13188 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13189 | else | |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13191 | $as_echo "no" >&6; } | |
13192 | fi | |
13193 | ||
13194 | ||
13195 | fi | |
13196 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13198 | set dummy ${ncn_progname}; ac_word=$2 | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13200 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13201 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13202 | $as_echo_n "(cached) " >&6 |
13203 | else | |
13204 | if test -n "$GOC_FOR_TARGET"; then | |
13205 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13206 | else | |
13207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13208 | for as_dir in $PATH | |
13209 | do | |
13210 | IFS=$as_save_IFS | |
13211 | test -z "$as_dir" && as_dir=. | |
13212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13214 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13216 | break 2 | |
13217 | fi | |
13218 | done | |
13219 | done | |
13220 | IFS=$as_save_IFS | |
13221 | ||
13222 | fi | |
13223 | fi | |
13224 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13225 | if test -n "$GOC_FOR_TARGET"; then | |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13227 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13228 | else | |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13230 | $as_echo "no" >&6; } | |
13231 | fi | |
13232 | ||
13233 | ||
13234 | fi | |
13235 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13236 | done | |
13237 | fi | |
13238 | ||
13239 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13240 | set dummy gccgo | |
13241 | if test $build = $target ; then | |
13242 | GOC_FOR_TARGET="$2" | |
13243 | else | |
13244 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13245 | fi | |
13246 | else | |
13247 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13248 | fi | |
13249 | ||
13250 | ||
13251 | ||
b4c522fa IB |
13252 | if test -n "$GDC_FOR_TARGET"; then |
13253 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13254 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13255 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13256 | fi | |
13257 | ||
13258 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13259 | for ncn_progname in gdc; do | |
13260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13261 | set dummy ${ncn_progname}; ac_word=$2 | |
13262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13263 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13264 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13265 | $as_echo_n "(cached) " >&6 |
13266 | else | |
13267 | if test -n "$GDC_FOR_TARGET"; then | |
13268 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13269 | else | |
13270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13271 | for as_dir in $PATH | |
13272 | do | |
13273 | IFS=$as_save_IFS | |
13274 | test -z "$as_dir" && as_dir=. | |
13275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13277 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13279 | break 2 | |
13280 | fi | |
13281 | done | |
13282 | done | |
13283 | IFS=$as_save_IFS | |
13284 | ||
13285 | fi | |
13286 | fi | |
13287 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13288 | if test -n "$GDC_FOR_TARGET"; then | |
13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13290 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13291 | else | |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13293 | $as_echo "no" >&6; } | |
13294 | fi | |
13295 | ||
13296 | ||
13297 | done | |
13298 | fi | |
13299 | ||
13300 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13301 | for ncn_progname in gdc; do | |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13303 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13304 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13305 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13307 | $as_echo "yes" >&6; } | |
13308 | break | |
13309 | else | |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13311 | $as_echo "no" >&6; } | |
13312 | fi | |
13313 | done | |
13314 | fi | |
13315 | ||
13316 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13317 | for ncn_progname in gdc; do | |
13318 | if test -n "$ncn_target_tool_prefix"; then | |
13319 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13320 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13322 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13323 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13324 | $as_echo_n "(cached) " >&6 |
13325 | else | |
13326 | if test -n "$GDC_FOR_TARGET"; then | |
13327 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13328 | else | |
13329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13330 | for as_dir in $PATH | |
13331 | do | |
13332 | IFS=$as_save_IFS | |
13333 | test -z "$as_dir" && as_dir=. | |
13334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13336 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13338 | break 2 | |
13339 | fi | |
13340 | done | |
13341 | done | |
13342 | IFS=$as_save_IFS | |
13343 | ||
13344 | fi | |
13345 | fi | |
13346 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13347 | if test -n "$GDC_FOR_TARGET"; then | |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13349 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13350 | else | |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13352 | $as_echo "no" >&6; } | |
13353 | fi | |
13354 | ||
13355 | ||
13356 | fi | |
13357 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
13358 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13359 | set dummy ${ncn_progname}; ac_word=$2 | |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13361 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13362 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13363 | $as_echo_n "(cached) " >&6 |
13364 | else | |
13365 | if test -n "$GDC_FOR_TARGET"; then | |
13366 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13367 | else | |
13368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13369 | for as_dir in $PATH | |
13370 | do | |
13371 | IFS=$as_save_IFS | |
13372 | test -z "$as_dir" && as_dir=. | |
13373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13375 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13377 | break 2 | |
13378 | fi | |
13379 | done | |
13380 | done | |
13381 | IFS=$as_save_IFS | |
13382 | ||
13383 | fi | |
13384 | fi | |
13385 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13386 | if test -n "$GDC_FOR_TARGET"; then | |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13388 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13389 | else | |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13391 | $as_echo "no" >&6; } | |
13392 | fi | |
13393 | ||
13394 | ||
13395 | fi | |
13396 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
13397 | done | |
13398 | fi | |
13399 | ||
13400 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
13401 | set dummy gdc | |
13402 | if test $build = $target ; then | |
13403 | GDC_FOR_TARGET="$2" | |
13404 | else | |
13405 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13406 | fi | |
13407 | else | |
13408 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
13409 | fi | |
13410 | ||
13411 | ||
13412 | ||
e8b05380 PB |
13413 | cat > conftest.c << \EOF |
13414 | #ifdef __GNUC__ | |
13415 | gcc_yay; | |
13416 | #endif | |
13417 | EOF | |
13418 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
13419 | have_gcc_for_target=yes | |
13420 | else | |
13421 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
13422 | have_gcc_for_target=no | |
13423 | fi | |
13424 | rm conftest.c | |
13425 | ||
13426 | ||
13427 | ||
13428 | ||
13429 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
13430 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
13432 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13433 | if test -x $with_build_time_tools/ar; then |
13434 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
13435 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
13436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
13437 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 13438 | else |
5213506e RW |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13440 | $as_echo "no" >&6; } | |
d1f8db0c | 13441 | fi |
e8b05380 PB |
13442 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13443 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
13444 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
13445 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
13446 | fi |
13447 | fi | |
3e19841a | 13448 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13449 | # Extract the first word of "ar", so it can be a program name with args. |
13450 | set dummy ar; ac_word=$2 | |
5213506e RW |
13451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13452 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13453 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 13454 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13455 | else |
1c710c3c DJ |
13456 | case $AR_FOR_TARGET in |
13457 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13458 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
13459 | ;; | |
e8b05380 | 13460 | *) |
1c710c3c DJ |
13461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13462 | for as_dir in $gcc_cv_tool_dirs | |
13463 | do | |
13464 | IFS=$as_save_IFS | |
13465 | test -z "$as_dir" && as_dir=. | |
5213506e | 13466 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13468 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13470 | break 2 |
13471 | fi | |
13472 | done | |
5213506e RW |
13473 | done |
13474 | IFS=$as_save_IFS | |
1c710c3c | 13475 | |
e8b05380 PB |
13476 | ;; |
13477 | esac | |
13478 | fi | |
1c710c3c | 13479 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 13480 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13482 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13483 | else |
5213506e RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13485 | $as_echo "no" >&6; } | |
4de997d1 PB |
13486 | fi |
13487 | ||
5213506e | 13488 | |
e8b05380 PB |
13489 | fi |
13490 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
13491 | |
13492 | ||
13493 | if test -n "$AR_FOR_TARGET"; then | |
13494 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
13495 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13496 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13497 | fi | |
13498 | ||
13499 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
13500 | for ncn_progname in ar; do | |
13501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13502 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13504 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13505 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13506 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13507 | else |
13508 | if test -n "$AR_FOR_TARGET"; then | |
13509 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13510 | else | |
13511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13512 | for as_dir in $PATH | |
13513 | do | |
13514 | IFS=$as_save_IFS | |
13515 | test -z "$as_dir" && as_dir=. | |
5213506e | 13516 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13518 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13520 | break 2 |
13521 | fi | |
13522 | done | |
5213506e RW |
13523 | done |
13524 | IFS=$as_save_IFS | |
278a7a38 AO |
13525 | |
13526 | fi | |
13527 | fi | |
13528 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
13529 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13531 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 13532 | else |
5213506e RW |
13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13534 | $as_echo "no" >&6; } | |
278a7a38 AO |
13535 | fi |
13536 | ||
5213506e | 13537 | |
278a7a38 AO |
13538 | done |
13539 | fi | |
13540 | ||
13541 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13542 | for ncn_progname in ar; do |
5213506e RW |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13544 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13545 | if test -x $with_build_time_tools/${ncn_progname}; then |
13546 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13548 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13549 | break |
13550 | else | |
5213506e RW |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13552 | $as_echo "no" >&6; } | |
e8b05380 PB |
13553 | fi |
13554 | done | |
13555 | fi | |
13556 | ||
13557 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
13558 | for ncn_progname in ar; do | |
13559 | if test -n "$ncn_target_tool_prefix"; then | |
13560 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13561 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13563 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13564 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13565 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13566 | else |
e8b05380 PB |
13567 | if test -n "$AR_FOR_TARGET"; then |
13568 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13569 | else |
1c710c3c DJ |
13570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13571 | for as_dir in $PATH | |
13572 | do | |
13573 | IFS=$as_save_IFS | |
13574 | test -z "$as_dir" && as_dir=. | |
5213506e | 13575 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13577 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13579 | break 2 |
13580 | fi | |
13581 | done | |
5213506e RW |
13582 | done |
13583 | IFS=$as_save_IFS | |
1c710c3c | 13584 | |
4de997d1 PB |
13585 | fi |
13586 | fi | |
1c710c3c | 13587 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13588 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13590 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 13591 | else |
5213506e RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13593 | $as_echo "no" >&6; } | |
4de997d1 PB |
13594 | fi |
13595 | ||
5213506e | 13596 | |
e8b05380 PB |
13597 | fi |
13598 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
13599 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13600 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13602 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13603 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 13604 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13605 | else |
13606 | if test -n "$AR_FOR_TARGET"; then | |
13607 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
13608 | else | |
1c710c3c DJ |
13609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13610 | for as_dir in $PATH | |
13611 | do | |
13612 | IFS=$as_save_IFS | |
13613 | test -z "$as_dir" && as_dir=. | |
5213506e | 13614 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13616 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 13617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13618 | break 2 |
13619 | fi | |
13620 | done | |
5213506e RW |
13621 | done |
13622 | IFS=$as_save_IFS | |
1c710c3c | 13623 | |
e8b05380 PB |
13624 | fi |
13625 | fi | |
1c710c3c | 13626 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 13627 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
13629 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 13630 | else |
5213506e RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13632 | $as_echo "no" >&6; } | |
e8b05380 | 13633 | fi |
1c710c3c | 13634 | |
5213506e | 13635 | |
e8b05380 PB |
13636 | fi |
13637 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
13638 | done | |
13639 | fi | |
1c710c3c | 13640 | |
e8b05380 PB |
13641 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
13642 | set dummy ar | |
13643 | if test $build = $target ; then | |
13644 | AR_FOR_TARGET="$2" | |
13645 | else | |
13646 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 13647 | fi |
1c00b503 PB |
13648 | else |
13649 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
13650 | fi |
13651 | ||
d1f8db0c PB |
13652 | else |
13653 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
13654 | fi |
13655 | ||
13656 | ||
13657 | ||
13658 | ||
13659 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
13660 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
13662 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13663 | if test -x $with_build_time_tools/as; then |
13664 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
13665 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
13667 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 13668 | else |
5213506e RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13670 | $as_echo "no" >&6; } | |
d1f8db0c | 13671 | fi |
e8b05380 PB |
13672 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13673 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
13674 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
13675 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
13676 | fi |
13677 | fi | |
3e19841a | 13678 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13679 | # Extract the first word of "as", so it can be a program name with args. |
13680 | set dummy as; ac_word=$2 | |
5213506e RW |
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13682 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13683 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 13684 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13685 | else |
1c710c3c DJ |
13686 | case $AS_FOR_TARGET in |
13687 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13688 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
13689 | ;; | |
e8b05380 | 13690 | *) |
1c710c3c DJ |
13691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13692 | for as_dir in $gcc_cv_tool_dirs | |
13693 | do | |
13694 | IFS=$as_save_IFS | |
13695 | test -z "$as_dir" && as_dir=. | |
5213506e | 13696 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13698 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13700 | break 2 |
13701 | fi | |
13702 | done | |
5213506e RW |
13703 | done |
13704 | IFS=$as_save_IFS | |
1c710c3c | 13705 | |
e8b05380 PB |
13706 | ;; |
13707 | esac | |
13708 | fi | |
1c710c3c | 13709 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 13710 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13712 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 13713 | else |
5213506e RW |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13715 | $as_echo "no" >&6; } | |
e8b05380 PB |
13716 | fi |
13717 | ||
5213506e | 13718 | |
e8b05380 PB |
13719 | fi |
13720 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
13721 | |
13722 | ||
13723 | if test -n "$AS_FOR_TARGET"; then | |
13724 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
13725 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
13726 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
13727 | fi | |
13728 | ||
13729 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
13730 | for ncn_progname in as; do | |
13731 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13732 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13734 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13735 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13736 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13737 | else |
13738 | if test -n "$AS_FOR_TARGET"; then | |
13739 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
13740 | else | |
13741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13742 | for as_dir in $PATH | |
13743 | do | |
13744 | IFS=$as_save_IFS | |
13745 | test -z "$as_dir" && as_dir=. | |
5213506e | 13746 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13748 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 13749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13750 | break 2 |
13751 | fi | |
13752 | done | |
5213506e RW |
13753 | done |
13754 | IFS=$as_save_IFS | |
278a7a38 AO |
13755 | |
13756 | fi | |
13757 | fi | |
13758 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
13759 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13761 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 13762 | else |
5213506e RW |
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13764 | $as_echo "no" >&6; } | |
278a7a38 AO |
13765 | fi |
13766 | ||
5213506e | 13767 | |
278a7a38 AO |
13768 | done |
13769 | fi | |
13770 | ||
13771 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13772 | for ncn_progname in as; do |
5213506e RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13774 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13775 | if test -x $with_build_time_tools/${ncn_progname}; then |
13776 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13778 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13779 | break |
13780 | else | |
5213506e RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13782 | $as_echo "no" >&6; } | |
e8b05380 PB |
13783 | fi |
13784 | done | |
13785 | fi | |
13786 | ||
13787 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
13788 | for ncn_progname in as; do | |
13789 | if test -n "$ncn_target_tool_prefix"; then | |
13790 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13791 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13793 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13794 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13795 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13796 | else |
13797 | if test -n "$AS_FOR_TARGET"; then | |
13798 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
13799 | else | |
1c710c3c DJ |
13800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13801 | for as_dir in $PATH | |
13802 | do | |
13803 | IFS=$as_save_IFS | |
13804 | test -z "$as_dir" && as_dir=. | |
5213506e | 13805 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13807 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13809 | break 2 |
13810 | fi | |
13811 | done | |
5213506e RW |
13812 | done |
13813 | IFS=$as_save_IFS | |
1c710c3c | 13814 | |
e8b05380 PB |
13815 | fi |
13816 | fi | |
1c710c3c | 13817 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 13818 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13820 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 13821 | else |
5213506e RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13823 | $as_echo "no" >&6; } | |
e8b05380 PB |
13824 | fi |
13825 | ||
5213506e | 13826 | |
e8b05380 PB |
13827 | fi |
13828 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
13829 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13830 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13832 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13833 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 13834 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13835 | else |
e8b05380 PB |
13836 | if test -n "$AS_FOR_TARGET"; then |
13837 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13838 | else |
1c710c3c DJ |
13839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13840 | for as_dir in $PATH | |
13841 | do | |
13842 | IFS=$as_save_IFS | |
13843 | test -z "$as_dir" && as_dir=. | |
5213506e | 13844 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13846 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 13847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13848 | break 2 |
13849 | fi | |
13850 | done | |
5213506e RW |
13851 | done |
13852 | IFS=$as_save_IFS | |
1c710c3c | 13853 | |
4de997d1 PB |
13854 | fi |
13855 | fi | |
1c710c3c | 13856 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 13857 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
13859 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 13860 | else |
5213506e RW |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13862 | $as_echo "no" >&6; } | |
4de997d1 | 13863 | fi |
1c710c3c | 13864 | |
5213506e | 13865 | |
e8b05380 PB |
13866 | fi |
13867 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
13868 | done | |
13869 | fi | |
1c710c3c | 13870 | |
e8b05380 PB |
13871 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
13872 | set dummy as | |
13873 | if test $build = $target ; then | |
13874 | AS_FOR_TARGET="$2" | |
13875 | else | |
13876 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 13877 | fi |
1c00b503 PB |
13878 | else |
13879 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 13880 | fi |
2693c0b0 | 13881 | |
d1f8db0c PB |
13882 | else |
13883 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
13884 | fi |
13885 | ||
e8b05380 PB |
13886 | |
13887 | ||
13888 | ||
13889 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
13890 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
13892 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13893 | if test -x $with_build_time_tools/dlltool; then |
13894 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
13895 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
13897 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 13898 | else |
5213506e RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13900 | $as_echo "no" >&6; } | |
d1f8db0c | 13901 | fi |
e8b05380 PB |
13902 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13903 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
13904 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
13905 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
13906 | fi |
13907 | fi | |
3e19841a | 13908 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13909 | # Extract the first word of "dlltool", so it can be a program name with args. |
13910 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13912 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13913 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 13914 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13915 | else |
1c710c3c DJ |
13916 | case $DLLTOOL_FOR_TARGET in |
13917 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13918 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
13919 | ;; | |
e8b05380 | 13920 | *) |
1c710c3c DJ |
13921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13922 | for as_dir in $gcc_cv_tool_dirs | |
13923 | do | |
13924 | IFS=$as_save_IFS | |
13925 | test -z "$as_dir" && as_dir=. | |
5213506e | 13926 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13928 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13930 | break 2 |
13931 | fi | |
13932 | done | |
5213506e RW |
13933 | done |
13934 | IFS=$as_save_IFS | |
1c710c3c | 13935 | |
e8b05380 PB |
13936 | ;; |
13937 | esac | |
4de997d1 | 13938 | fi |
1c710c3c | 13939 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 13940 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
13942 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 13943 | else |
5213506e RW |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13945 | $as_echo "no" >&6; } | |
4de997d1 PB |
13946 | fi |
13947 | ||
5213506e | 13948 | |
e8b05380 PB |
13949 | fi |
13950 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
13951 | |
13952 | ||
13953 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
13954 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
13955 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
13956 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
13957 | fi | |
13958 | ||
13959 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
13960 | for ncn_progname in dlltool; do | |
13961 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13962 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13964 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13965 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 13966 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13967 | else |
13968 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
13969 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
13970 | else | |
13971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13972 | for as_dir in $PATH | |
13973 | do | |
13974 | IFS=$as_save_IFS | |
13975 | test -z "$as_dir" && as_dir=. | |
5213506e | 13976 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13978 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 13979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13980 | break 2 |
13981 | fi | |
13982 | done | |
5213506e RW |
13983 | done |
13984 | IFS=$as_save_IFS | |
278a7a38 AO |
13985 | |
13986 | fi | |
13987 | fi | |
13988 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
13989 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
13991 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 13992 | else |
5213506e RW |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13994 | $as_echo "no" >&6; } | |
278a7a38 AO |
13995 | fi |
13996 | ||
5213506e | 13997 | |
278a7a38 AO |
13998 | done |
13999 | fi | |
14000 | ||
14001 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14002 | for ncn_progname in dlltool; do |
5213506e RW |
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14004 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14005 | if test -x $with_build_time_tools/${ncn_progname}; then |
14006 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14008 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14009 | break |
14010 | else | |
5213506e RW |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14012 | $as_echo "no" >&6; } | |
e8b05380 PB |
14013 | fi |
14014 | done | |
14015 | fi | |
14016 | ||
14017 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14018 | for ncn_progname in dlltool; do | |
14019 | if test -n "$ncn_target_tool_prefix"; then | |
14020 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14021 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14023 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14024 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14025 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14026 | else |
e8b05380 PB |
14027 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14028 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14029 | else |
1c710c3c DJ |
14030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14031 | for as_dir in $PATH | |
14032 | do | |
14033 | IFS=$as_save_IFS | |
14034 | test -z "$as_dir" && as_dir=. | |
5213506e | 14035 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14037 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14039 | break 2 |
14040 | fi | |
14041 | done | |
5213506e RW |
14042 | done |
14043 | IFS=$as_save_IFS | |
1c710c3c | 14044 | |
4de997d1 PB |
14045 | fi |
14046 | fi | |
1c710c3c | 14047 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14048 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14050 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14051 | else |
5213506e RW |
14052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14053 | $as_echo "no" >&6; } | |
4de997d1 | 14054 | fi |
4de997d1 | 14055 | |
5213506e | 14056 | |
e8b05380 PB |
14057 | fi |
14058 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14060 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14062 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14063 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14064 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14065 | else |
e8b05380 PB |
14066 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14067 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14068 | else |
1c710c3c DJ |
14069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14070 | for as_dir in $PATH | |
14071 | do | |
14072 | IFS=$as_save_IFS | |
14073 | test -z "$as_dir" && as_dir=. | |
5213506e | 14074 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14076 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14078 | break 2 |
14079 | fi | |
14080 | done | |
5213506e RW |
14081 | done |
14082 | IFS=$as_save_IFS | |
1c710c3c | 14083 | |
4de997d1 PB |
14084 | fi |
14085 | fi | |
1c710c3c | 14086 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14087 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14089 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14090 | else |
5213506e RW |
14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14092 | $as_echo "no" >&6; } | |
4de997d1 | 14093 | fi |
1c710c3c | 14094 | |
5213506e | 14095 | |
e8b05380 PB |
14096 | fi |
14097 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14098 | done | |
14099 | fi | |
1c710c3c | 14100 | |
e8b05380 PB |
14101 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14102 | set dummy dlltool | |
14103 | if test $build = $target ; then | |
14104 | DLLTOOL_FOR_TARGET="$2" | |
14105 | else | |
14106 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14107 | fi | |
1c00b503 PB |
14108 | else |
14109 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14110 | fi |
14111 | ||
d1f8db0c PB |
14112 | else |
14113 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14114 | fi |
14115 | ||
4de997d1 | 14116 | |
e8b05380 PB |
14117 | |
14118 | ||
10abab41 IS |
14119 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14120 | if test -n "$with_build_time_tools"; then | |
14121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14122 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14123 | if test -x $with_build_time_tools/dsymutil; then | |
14124 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14125 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14127 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14128 | else | |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14130 | $as_echo "no" >&6; } | |
14131 | fi | |
14132 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14133 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14134 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14135 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14136 | fi | |
14137 | fi | |
14138 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14139 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14140 | set dummy dsymutil; ac_word=$2 | |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14142 | $as_echo_n "checking for $ac_word... " >&6; } | |
14143 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14144 | $as_echo_n "(cached) " >&6 | |
14145 | else | |
14146 | case $DSYMUTIL_FOR_TARGET in | |
14147 | [\\/]* | ?:[\\/]*) | |
14148 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14149 | ;; | |
14150 | *) | |
14151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14152 | for as_dir in $gcc_cv_tool_dirs | |
14153 | do | |
14154 | IFS=$as_save_IFS | |
14155 | test -z "$as_dir" && as_dir=. | |
14156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14158 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14160 | break 2 | |
14161 | fi | |
14162 | done | |
14163 | done | |
14164 | IFS=$as_save_IFS | |
14165 | ||
14166 | ;; | |
14167 | esac | |
14168 | fi | |
14169 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14170 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14172 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14173 | else | |
14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14175 | $as_echo "no" >&6; } | |
14176 | fi | |
14177 | ||
14178 | ||
14179 | fi | |
14180 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14181 | ||
14182 | ||
14183 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14184 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14185 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14186 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14187 | fi | |
14188 | ||
14189 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14190 | for ncn_progname in dsymutil; do | |
14191 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14192 | set dummy ${ncn_progname}; ac_word=$2 | |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14194 | $as_echo_n "checking for $ac_word... " >&6; } | |
14195 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14196 | $as_echo_n "(cached) " >&6 | |
14197 | else | |
14198 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14199 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14200 | else | |
14201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14202 | for as_dir in $PATH | |
14203 | do | |
14204 | IFS=$as_save_IFS | |
14205 | test -z "$as_dir" && as_dir=. | |
14206 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14208 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14210 | break 2 | |
14211 | fi | |
14212 | done | |
14213 | done | |
14214 | IFS=$as_save_IFS | |
14215 | ||
14216 | fi | |
14217 | fi | |
14218 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14219 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14221 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14222 | else | |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14224 | $as_echo "no" >&6; } | |
14225 | fi | |
14226 | ||
14227 | ||
14228 | done | |
14229 | fi | |
14230 | ||
14231 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14232 | for ncn_progname in dsymutil; do | |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14234 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14235 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14236 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14238 | $as_echo "yes" >&6; } | |
14239 | break | |
14240 | else | |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14242 | $as_echo "no" >&6; } | |
14243 | fi | |
14244 | done | |
14245 | fi | |
14246 | ||
14247 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14248 | for ncn_progname in dsymutil; do | |
14249 | if test -n "$ncn_target_tool_prefix"; then | |
14250 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14251 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14253 | $as_echo_n "checking for $ac_word... " >&6; } | |
14254 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14255 | $as_echo_n "(cached) " >&6 | |
14256 | else | |
14257 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14258 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14259 | else | |
14260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14261 | for as_dir in $PATH | |
14262 | do | |
14263 | IFS=$as_save_IFS | |
14264 | test -z "$as_dir" && as_dir=. | |
14265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14267 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14269 | break 2 | |
14270 | fi | |
14271 | done | |
14272 | done | |
14273 | IFS=$as_save_IFS | |
14274 | ||
14275 | fi | |
14276 | fi | |
14277 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14278 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14280 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14281 | else | |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14283 | $as_echo "no" >&6; } | |
14284 | fi | |
14285 | ||
14286 | ||
14287 | fi | |
14288 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14290 | set dummy ${ncn_progname}; ac_word=$2 | |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14292 | $as_echo_n "checking for $ac_word... " >&6; } | |
14293 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14294 | $as_echo_n "(cached) " >&6 | |
14295 | else | |
14296 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14297 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14298 | else | |
14299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14300 | for as_dir in $PATH | |
14301 | do | |
14302 | IFS=$as_save_IFS | |
14303 | test -z "$as_dir" && as_dir=. | |
14304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14306 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14308 | break 2 | |
14309 | fi | |
14310 | done | |
14311 | done | |
14312 | IFS=$as_save_IFS | |
14313 | ||
14314 | fi | |
14315 | fi | |
14316 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14317 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14319 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14320 | else | |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14322 | $as_echo "no" >&6; } | |
14323 | fi | |
14324 | ||
14325 | ||
14326 | fi | |
14327 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
14328 | done | |
14329 | fi | |
14330 | ||
14331 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
14332 | set dummy dsymutil | |
14333 | if test $build = $target ; then | |
14334 | DSYMUTIL_FOR_TARGET="$2" | |
14335 | else | |
14336 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14337 | fi | |
14338 | else | |
14339 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
14340 | fi | |
14341 | ||
14342 | else | |
14343 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14344 | fi | |
14345 | ||
14346 | ||
14347 | ||
14348 | ||
e8b05380 PB |
14349 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
14350 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14352 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14353 | if test -x $with_build_time_tools/ld; then |
14354 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14355 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14357 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 14358 | else |
5213506e RW |
14359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14360 | $as_echo "no" >&6; } | |
d1f8db0c | 14361 | fi |
e8b05380 PB |
14362 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14363 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
14364 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
14365 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 14366 | fi |
e8b05380 | 14367 | fi |
3e19841a | 14368 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14369 | # Extract the first word of "ld", so it can be a program name with args. |
14370 | set dummy ld; ac_word=$2 | |
5213506e RW |
14371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14372 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14373 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 14374 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14375 | else |
1c710c3c DJ |
14376 | case $LD_FOR_TARGET in |
14377 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14378 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
14379 | ;; | |
e8b05380 | 14380 | *) |
1c710c3c DJ |
14381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14382 | for as_dir in $gcc_cv_tool_dirs | |
14383 | do | |
14384 | IFS=$as_save_IFS | |
14385 | test -z "$as_dir" && as_dir=. | |
5213506e | 14386 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14388 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14390 | break 2 |
14391 | fi | |
14392 | done | |
5213506e RW |
14393 | done |
14394 | IFS=$as_save_IFS | |
1c710c3c | 14395 | |
e8b05380 PB |
14396 | ;; |
14397 | esac | |
4de997d1 | 14398 | fi |
1c710c3c | 14399 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 14400 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14402 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 14403 | else |
5213506e RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14405 | $as_echo "no" >&6; } | |
4de997d1 | 14406 | fi |
2693c0b0 | 14407 | |
5213506e | 14408 | |
e8b05380 PB |
14409 | fi |
14410 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
14411 | |
14412 | ||
14413 | if test -n "$LD_FOR_TARGET"; then | |
14414 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
14415 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14416 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14417 | fi | |
14418 | ||
14419 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
14420 | for ncn_progname in ld; do | |
14421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14422 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14424 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14425 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14426 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14427 | else |
14428 | if test -n "$LD_FOR_TARGET"; then | |
14429 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
14430 | else | |
14431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14432 | for as_dir in $PATH | |
14433 | do | |
14434 | IFS=$as_save_IFS | |
14435 | test -z "$as_dir" && as_dir=. | |
5213506e | 14436 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14438 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14440 | break 2 |
14441 | fi | |
14442 | done | |
5213506e RW |
14443 | done |
14444 | IFS=$as_save_IFS | |
278a7a38 AO |
14445 | |
14446 | fi | |
14447 | fi | |
14448 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
14449 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14451 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 14452 | else |
5213506e RW |
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14454 | $as_echo "no" >&6; } | |
278a7a38 AO |
14455 | fi |
14456 | ||
5213506e | 14457 | |
278a7a38 AO |
14458 | done |
14459 | fi | |
14460 | ||
14461 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14462 | for ncn_progname in ld; do |
5213506e RW |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14464 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14465 | if test -x $with_build_time_tools/${ncn_progname}; then |
14466 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14468 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14469 | break |
14470 | else | |
5213506e RW |
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14472 | $as_echo "no" >&6; } | |
e8b05380 PB |
14473 | fi |
14474 | done | |
ca9f4b81 AO |
14475 | fi |
14476 | ||
e8b05380 PB |
14477 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
14478 | for ncn_progname in ld; do | |
14479 | if test -n "$ncn_target_tool_prefix"; then | |
14480 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14481 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14483 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14484 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14485 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14486 | else |
4de997d1 PB |
14487 | if test -n "$LD_FOR_TARGET"; then |
14488 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14489 | else |
1c710c3c DJ |
14490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14491 | for as_dir in $PATH | |
14492 | do | |
14493 | IFS=$as_save_IFS | |
14494 | test -z "$as_dir" && as_dir=. | |
5213506e | 14495 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14497 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14499 | break 2 |
14500 | fi | |
14501 | done | |
5213506e RW |
14502 | done |
14503 | IFS=$as_save_IFS | |
1c710c3c | 14504 | |
ca9f4b81 AO |
14505 | fi |
14506 | fi | |
1c710c3c | 14507 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 14508 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14510 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14511 | else |
5213506e RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14513 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14514 | fi |
14515 | ||
5213506e | 14516 | |
e8b05380 PB |
14517 | fi |
14518 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
14519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14520 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14522 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14523 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 14524 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14525 | else |
2693c0b0 PB |
14526 | if test -n "$LD_FOR_TARGET"; then |
14527 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14528 | else |
1c710c3c DJ |
14529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14530 | for as_dir in $PATH | |
14531 | do | |
14532 | IFS=$as_save_IFS | |
14533 | test -z "$as_dir" && as_dir=. | |
5213506e | 14534 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14535 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14536 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 14537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14538 | break 2 |
14539 | fi | |
14540 | done | |
5213506e RW |
14541 | done |
14542 | IFS=$as_save_IFS | |
1c710c3c | 14543 | |
ca9f4b81 AO |
14544 | fi |
14545 | fi | |
1c710c3c | 14546 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 14547 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
14549 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 14550 | else |
5213506e RW |
14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14552 | $as_echo "no" >&6; } | |
ca9f4b81 | 14553 | fi |
1c710c3c | 14554 | |
5213506e | 14555 | |
e8b05380 PB |
14556 | fi |
14557 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
14558 | done | |
14559 | fi | |
1c710c3c | 14560 | |
2693c0b0 PB |
14561 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
14562 | set dummy ld | |
14563 | if test $build = $target ; then | |
14564 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 14565 | else |
2693c0b0 | 14566 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 14567 | fi |
1c00b503 PB |
14568 | else |
14569 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
14570 | fi |
14571 | ||
d1f8db0c PB |
14572 | else |
14573 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
14574 | fi |
14575 | ||
14576 | ||
14577 | ||
14578 | ||
14579 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14580 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
14582 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14583 | if test -x $with_build_time_tools/lipo; then |
14584 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
14585 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
14587 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 14588 | else |
5213506e RW |
14589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14590 | $as_echo "no" >&6; } | |
d1f8db0c | 14591 | fi |
e8b05380 PB |
14592 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14593 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
14594 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
14595 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
14596 | fi |
14597 | fi | |
278a7a38 AO |
14598 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
14599 | # Extract the first word of "lipo", so it can be a program name with args. | |
14600 | set dummy lipo; ac_word=$2 | |
5213506e RW |
14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14602 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14603 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14604 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14605 | else |
14606 | case $LIPO_FOR_TARGET in | |
14607 | [\\/]* | ?:[\\/]*) | |
14608 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
14609 | ;; | |
14610 | *) | |
14611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14612 | for as_dir in $gcc_cv_tool_dirs | |
14613 | do | |
14614 | IFS=$as_save_IFS | |
14615 | test -z "$as_dir" && as_dir=. | |
5213506e | 14616 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14617 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14618 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14620 | break 2 |
14621 | fi | |
14622 | done | |
5213506e RW |
14623 | done |
14624 | IFS=$as_save_IFS | |
278a7a38 AO |
14625 | |
14626 | ;; | |
14627 | esac | |
14628 | fi | |
14629 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 14630 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14632 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 14633 | else |
5213506e RW |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14635 | $as_echo "no" >&6; } | |
278a7a38 AO |
14636 | fi |
14637 | ||
5213506e | 14638 | |
278a7a38 AO |
14639 | fi |
14640 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
14641 | ||
14642 | ||
14643 | if test -n "$LIPO_FOR_TARGET"; then | |
14644 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
14645 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14646 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
14647 | fi | |
14648 | ||
14649 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14650 | for ncn_progname in lipo; do | |
14651 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14652 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14654 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14655 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14656 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14657 | else |
278a7a38 AO |
14658 | if test -n "$LIPO_FOR_TARGET"; then |
14659 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
14660 | else | |
14661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14662 | for as_dir in $PATH | |
1c710c3c DJ |
14663 | do |
14664 | IFS=$as_save_IFS | |
14665 | test -z "$as_dir" && as_dir=. | |
5213506e | 14666 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14668 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 14669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14670 | break 2 |
14671 | fi | |
14672 | done | |
5213506e RW |
14673 | done |
14674 | IFS=$as_save_IFS | |
1c710c3c | 14675 | |
e8b05380 | 14676 | fi |
278a7a38 AO |
14677 | fi |
14678 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 14679 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14681 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 14682 | else |
5213506e RW |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14684 | $as_echo "no" >&6; } | |
e8b05380 PB |
14685 | fi |
14686 | ||
5213506e | 14687 | |
278a7a38 | 14688 | done |
e8b05380 | 14689 | fi |
278a7a38 AO |
14690 | |
14691 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14692 | for ncn_progname in lipo; do |
5213506e RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14694 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14695 | if test -x $with_build_time_tools/${ncn_progname}; then |
14696 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14698 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14699 | break |
14700 | else | |
5213506e RW |
14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14702 | $as_echo "no" >&6; } | |
e8b05380 PB |
14703 | fi |
14704 | done | |
14705 | fi | |
14706 | ||
14707 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
14708 | for ncn_progname in lipo; do | |
14709 | if test -n "$ncn_target_tool_prefix"; then | |
14710 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14711 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14713 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14714 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14715 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14716 | else |
14717 | if test -n "$LIPO_FOR_TARGET"; then | |
14718 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
14719 | else | |
1c710c3c DJ |
14720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14721 | for as_dir in $PATH | |
14722 | do | |
14723 | IFS=$as_save_IFS | |
14724 | test -z "$as_dir" && as_dir=. | |
5213506e | 14725 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14727 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14729 | break 2 |
14730 | fi | |
14731 | done | |
5213506e RW |
14732 | done |
14733 | IFS=$as_save_IFS | |
1c710c3c | 14734 | |
040b1c5a GK |
14735 | fi |
14736 | fi | |
1c710c3c | 14737 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 14738 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14740 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 14741 | else |
5213506e RW |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14743 | $as_echo "no" >&6; } | |
040b1c5a GK |
14744 | fi |
14745 | ||
5213506e | 14746 | |
e8b05380 PB |
14747 | fi |
14748 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
14749 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14750 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14752 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14753 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 14754 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14755 | else |
14756 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
14757 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
14758 | else | |
1c710c3c DJ |
14759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14760 | for as_dir in $PATH | |
14761 | do | |
14762 | IFS=$as_save_IFS | |
14763 | test -z "$as_dir" && as_dir=. | |
5213506e | 14764 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14766 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 14767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14768 | break 2 |
14769 | fi | |
14770 | done | |
5213506e RW |
14771 | done |
14772 | IFS=$as_save_IFS | |
1c710c3c | 14773 | |
040b1c5a GK |
14774 | fi |
14775 | fi | |
1c710c3c | 14776 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 14777 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
14779 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 14780 | else |
5213506e RW |
14781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14782 | $as_echo "no" >&6; } | |
040b1c5a | 14783 | fi |
1c710c3c | 14784 | |
5213506e | 14785 | |
e8b05380 PB |
14786 | fi |
14787 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
14788 | done | |
14789 | fi | |
1c710c3c | 14790 | |
040b1c5a GK |
14791 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
14792 | set dummy lipo | |
14793 | if test $build = $target ; then | |
14794 | LIPO_FOR_TARGET="$2" | |
14795 | else | |
14796 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14797 | fi | |
1c00b503 PB |
14798 | else |
14799 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
14800 | fi |
14801 | ||
d1f8db0c PB |
14802 | else |
14803 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
14804 | fi |
14805 | ||
14806 | ||
14807 | ||
14808 | ||
14809 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
14810 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
14812 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14813 | if test -x $with_build_time_tools/nm; then |
14814 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
14815 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
14817 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 14818 | else |
5213506e RW |
14819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14820 | $as_echo "no" >&6; } | |
d1f8db0c | 14821 | fi |
e8b05380 PB |
14822 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14823 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
14824 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
14825 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
14826 | fi |
14827 | fi | |
3e19841a | 14828 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14829 | # Extract the first word of "nm", so it can be a program name with args. |
14830 | set dummy nm; ac_word=$2 | |
5213506e RW |
14831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14832 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14833 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 14834 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14835 | else |
1c710c3c DJ |
14836 | case $NM_FOR_TARGET in |
14837 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14838 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
14839 | ;; | |
e8b05380 | 14840 | *) |
1c710c3c DJ |
14841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14842 | for as_dir in $gcc_cv_tool_dirs | |
14843 | do | |
14844 | IFS=$as_save_IFS | |
14845 | test -z "$as_dir" && as_dir=. | |
5213506e | 14846 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14848 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14850 | break 2 |
14851 | fi | |
14852 | done | |
5213506e RW |
14853 | done |
14854 | IFS=$as_save_IFS | |
1c710c3c | 14855 | |
e8b05380 PB |
14856 | ;; |
14857 | esac | |
14858 | fi | |
1c710c3c | 14859 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 14860 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
14861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14862 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 14863 | else |
5213506e RW |
14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14865 | $as_echo "no" >&6; } | |
e8b05380 PB |
14866 | fi |
14867 | ||
5213506e | 14868 | |
e8b05380 PB |
14869 | fi |
14870 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
14871 | |
14872 | ||
14873 | if test -n "$NM_FOR_TARGET"; then | |
14874 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
14875 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
14876 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
14877 | fi | |
14878 | ||
14879 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
14880 | for ncn_progname in nm; do | |
14881 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14882 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14884 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14885 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14886 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14887 | else |
14888 | if test -n "$NM_FOR_TARGET"; then | |
14889 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
14890 | else | |
14891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14892 | for as_dir in $PATH | |
14893 | do | |
14894 | IFS=$as_save_IFS | |
14895 | test -z "$as_dir" && as_dir=. | |
5213506e | 14896 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14897 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14898 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 14899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14900 | break 2 |
14901 | fi | |
14902 | done | |
5213506e RW |
14903 | done |
14904 | IFS=$as_save_IFS | |
278a7a38 AO |
14905 | |
14906 | fi | |
14907 | fi | |
14908 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
14909 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
14910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14911 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 14912 | else |
5213506e RW |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14914 | $as_echo "no" >&6; } | |
278a7a38 AO |
14915 | fi |
14916 | ||
5213506e | 14917 | |
278a7a38 AO |
14918 | done |
14919 | fi | |
14920 | ||
14921 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14922 | for ncn_progname in nm; do |
5213506e RW |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14924 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14925 | if test -x $with_build_time_tools/${ncn_progname}; then |
14926 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14928 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14929 | break |
14930 | else | |
5213506e RW |
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14932 | $as_echo "no" >&6; } | |
e8b05380 PB |
14933 | fi |
14934 | done | |
14935 | fi | |
14936 | ||
14937 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
14938 | for ncn_progname in nm; do | |
14939 | if test -n "$ncn_target_tool_prefix"; then | |
14940 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14941 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14944 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14945 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14946 | else |
4de997d1 PB |
14947 | if test -n "$NM_FOR_TARGET"; then |
14948 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14949 | else |
1c710c3c DJ |
14950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14951 | for as_dir in $PATH | |
14952 | do | |
14953 | IFS=$as_save_IFS | |
14954 | test -z "$as_dir" && as_dir=. | |
5213506e | 14955 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14957 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14959 | break 2 |
14960 | fi | |
14961 | done | |
5213506e RW |
14962 | done |
14963 | IFS=$as_save_IFS | |
1c710c3c | 14964 | |
ca9f4b81 AO |
14965 | fi |
14966 | fi | |
1c710c3c | 14967 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 14968 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
14969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
14970 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 14971 | else |
5213506e RW |
14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14973 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14974 | fi |
14975 | ||
5213506e | 14976 | |
e8b05380 PB |
14977 | fi |
14978 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
14979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14980 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14982 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14983 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 14984 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14985 | else |
2693c0b0 PB |
14986 | if test -n "$NM_FOR_TARGET"; then |
14987 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14988 | else |
1c710c3c DJ |
14989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14990 | for as_dir in $PATH | |
14991 | do | |
14992 | IFS=$as_save_IFS | |
14993 | test -z "$as_dir" && as_dir=. | |
5213506e | 14994 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14996 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 14997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14998 | break 2 |
14999 | fi | |
15000 | done | |
5213506e RW |
15001 | done |
15002 | IFS=$as_save_IFS | |
1c710c3c | 15003 | |
ca9f4b81 AO |
15004 | fi |
15005 | fi | |
1c710c3c | 15006 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15007 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15009 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15010 | else |
5213506e RW |
15011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15012 | $as_echo "no" >&6; } | |
ca9f4b81 | 15013 | fi |
1c710c3c | 15014 | |
5213506e | 15015 | |
e8b05380 PB |
15016 | fi |
15017 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15018 | done | |
15019 | fi | |
1c710c3c | 15020 | |
2693c0b0 PB |
15021 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15022 | set dummy nm | |
15023 | if test $build = $target ; then | |
15024 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15025 | else |
2693c0b0 | 15026 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15027 | fi |
1c00b503 PB |
15028 | else |
15029 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15030 | fi |
15031 | ||
d1f8db0c PB |
15032 | else |
15033 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15034 | fi |
15035 | ||
15036 | ||
15037 | ||
15038 | ||
9bccfdf5 AP |
15039 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15040 | if test -n "$with_build_time_tools"; then | |
15041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15042 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15043 | if test -x $with_build_time_tools/objcopy; then | |
15044 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15045 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15047 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15048 | else | |
15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15050 | $as_echo "no" >&6; } | |
15051 | fi | |
15052 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15053 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15054 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15055 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15056 | fi | |
15057 | fi | |
15058 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15059 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15060 | set dummy objcopy; ac_word=$2 | |
15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15062 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15063 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15064 | $as_echo_n "(cached) " >&6 |
15065 | else | |
15066 | case $OBJCOPY_FOR_TARGET in | |
15067 | [\\/]* | ?:[\\/]*) | |
15068 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15069 | ;; | |
15070 | *) | |
15071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15072 | for as_dir in $gcc_cv_tool_dirs | |
15073 | do | |
15074 | IFS=$as_save_IFS | |
15075 | test -z "$as_dir" && as_dir=. | |
15076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15078 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15080 | break 2 | |
15081 | fi | |
15082 | done | |
15083 | done | |
15084 | IFS=$as_save_IFS | |
15085 | ||
15086 | ;; | |
15087 | esac | |
15088 | fi | |
15089 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15090 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15092 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15093 | else | |
15094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15095 | $as_echo "no" >&6; } | |
15096 | fi | |
15097 | ||
15098 | ||
15099 | fi | |
15100 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15101 | ||
15102 | ||
15103 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15104 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15105 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15106 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15107 | fi | |
15108 | ||
15109 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15110 | for ncn_progname in objcopy; do | |
15111 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15112 | set dummy ${ncn_progname}; ac_word=$2 | |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15114 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15115 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15116 | $as_echo_n "(cached) " >&6 |
15117 | else | |
15118 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15119 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15120 | else | |
15121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15122 | for as_dir in $PATH | |
15123 | do | |
15124 | IFS=$as_save_IFS | |
15125 | test -z "$as_dir" && as_dir=. | |
15126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15128 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15130 | break 2 | |
15131 | fi | |
15132 | done | |
15133 | done | |
15134 | IFS=$as_save_IFS | |
15135 | ||
15136 | fi | |
15137 | fi | |
15138 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15139 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15141 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15142 | else | |
15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15144 | $as_echo "no" >&6; } | |
15145 | fi | |
15146 | ||
15147 | ||
15148 | done | |
15149 | fi | |
15150 | ||
15151 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15152 | for ncn_progname in objcopy; do | |
15153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15154 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15155 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15156 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15158 | $as_echo "yes" >&6; } | |
15159 | break | |
15160 | else | |
15161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15162 | $as_echo "no" >&6; } | |
15163 | fi | |
15164 | done | |
15165 | fi | |
15166 | ||
15167 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15168 | for ncn_progname in objcopy; do | |
15169 | if test -n "$ncn_target_tool_prefix"; then | |
15170 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15171 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15173 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15174 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15175 | $as_echo_n "(cached) " >&6 |
15176 | else | |
15177 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15178 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15179 | else | |
15180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15181 | for as_dir in $PATH | |
15182 | do | |
15183 | IFS=$as_save_IFS | |
15184 | test -z "$as_dir" && as_dir=. | |
15185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15187 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15189 | break 2 | |
15190 | fi | |
15191 | done | |
15192 | done | |
15193 | IFS=$as_save_IFS | |
15194 | ||
15195 | fi | |
15196 | fi | |
15197 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15198 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15200 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15201 | else | |
15202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15203 | $as_echo "no" >&6; } | |
15204 | fi | |
15205 | ||
15206 | ||
15207 | fi | |
15208 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15209 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15210 | set dummy ${ncn_progname}; ac_word=$2 | |
15211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15212 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15213 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15214 | $as_echo_n "(cached) " >&6 |
15215 | else | |
15216 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15217 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15218 | else | |
15219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15220 | for as_dir in $PATH | |
15221 | do | |
15222 | IFS=$as_save_IFS | |
15223 | test -z "$as_dir" && as_dir=. | |
15224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15226 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15228 | break 2 | |
15229 | fi | |
15230 | done | |
15231 | done | |
15232 | IFS=$as_save_IFS | |
15233 | ||
15234 | fi | |
15235 | fi | |
15236 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15237 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15239 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15240 | else | |
15241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15242 | $as_echo "no" >&6; } | |
15243 | fi | |
15244 | ||
15245 | ||
15246 | fi | |
15247 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15248 | done | |
15249 | fi | |
15250 | ||
15251 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15252 | set dummy objcopy | |
15253 | if test $build = $target ; then | |
15254 | OBJCOPY_FOR_TARGET="$2" | |
15255 | else | |
15256 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15257 | fi | |
15258 | else | |
15259 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15260 | fi | |
15261 | ||
15262 | else | |
15263 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15264 | fi | |
15265 | ||
15266 | ||
15267 | ||
15268 | ||
e8b05380 PB |
15269 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15270 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15272 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15273 | if test -x $with_build_time_tools/objdump; then |
15274 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15275 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15277 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 15278 | else |
5213506e RW |
15279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15280 | $as_echo "no" >&6; } | |
d1f8db0c | 15281 | fi |
e8b05380 PB |
15282 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15283 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
15284 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15285 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15286 | fi |
15287 | fi | |
3e19841a | 15288 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15289 | # Extract the first word of "objdump", so it can be a program name with args. |
15290 | set dummy objdump; ac_word=$2 | |
5213506e RW |
15291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15292 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15293 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15294 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15295 | else |
1c710c3c DJ |
15296 | case $OBJDUMP_FOR_TARGET in |
15297 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15298 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15299 | ;; | |
e8b05380 | 15300 | *) |
1c710c3c DJ |
15301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15302 | for as_dir in $gcc_cv_tool_dirs | |
15303 | do | |
15304 | IFS=$as_save_IFS | |
15305 | test -z "$as_dir" && as_dir=. | |
5213506e | 15306 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15308 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15310 | break 2 |
15311 | fi | |
15312 | done | |
5213506e RW |
15313 | done |
15314 | IFS=$as_save_IFS | |
1c710c3c | 15315 | |
e8b05380 PB |
15316 | ;; |
15317 | esac | |
15318 | fi | |
1c710c3c | 15319 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 15320 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15322 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 15323 | else |
5213506e RW |
15324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15325 | $as_echo "no" >&6; } | |
e8b05380 PB |
15326 | fi |
15327 | ||
5213506e | 15328 | |
e8b05380 PB |
15329 | fi |
15330 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
15331 | |
15332 | ||
15333 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15334 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15335 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15336 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15337 | fi | |
15338 | ||
15339 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15340 | for ncn_progname in objdump; do | |
15341 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15342 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15344 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15345 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15346 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15347 | else |
15348 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15349 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15350 | else | |
15351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15352 | for as_dir in $PATH | |
15353 | do | |
15354 | IFS=$as_save_IFS | |
15355 | test -z "$as_dir" && as_dir=. | |
5213506e | 15356 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15358 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15360 | break 2 |
15361 | fi | |
15362 | done | |
5213506e RW |
15363 | done |
15364 | IFS=$as_save_IFS | |
278a7a38 AO |
15365 | |
15366 | fi | |
15367 | fi | |
15368 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15369 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
15370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15371 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 15372 | else |
5213506e RW |
15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15374 | $as_echo "no" >&6; } | |
278a7a38 AO |
15375 | fi |
15376 | ||
5213506e | 15377 | |
278a7a38 AO |
15378 | done |
15379 | fi | |
15380 | ||
15381 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15382 | for ncn_progname in objdump; do |
5213506e RW |
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15384 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15385 | if test -x $with_build_time_tools/${ncn_progname}; then |
15386 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15388 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15389 | break |
15390 | else | |
5213506e RW |
15391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15392 | $as_echo "no" >&6; } | |
e8b05380 PB |
15393 | fi |
15394 | done | |
15395 | fi | |
15396 | ||
15397 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15398 | for ncn_progname in objdump; do | |
15399 | if test -n "$ncn_target_tool_prefix"; then | |
15400 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15401 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15403 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15404 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15405 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15406 | else |
15407 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15408 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15409 | else | |
1c710c3c DJ |
15410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15411 | for as_dir in $PATH | |
15412 | do | |
15413 | IFS=$as_save_IFS | |
15414 | test -z "$as_dir" && as_dir=. | |
5213506e | 15415 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15417 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15419 | break 2 |
15420 | fi | |
15421 | done | |
5213506e RW |
15422 | done |
15423 | IFS=$as_save_IFS | |
1c710c3c | 15424 | |
d739199a DJ |
15425 | fi |
15426 | fi | |
1c710c3c | 15427 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15428 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15430 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15431 | else |
5213506e RW |
15432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15433 | $as_echo "no" >&6; } | |
d739199a DJ |
15434 | fi |
15435 | ||
5213506e | 15436 | |
e8b05380 PB |
15437 | fi |
15438 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
15439 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 15440 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15442 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15443 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 15444 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
15445 | else |
15446 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15447 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15448 | else | |
1c710c3c DJ |
15449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15450 | for as_dir in $PATH | |
15451 | do | |
15452 | IFS=$as_save_IFS | |
15453 | test -z "$as_dir" && as_dir=. | |
5213506e | 15454 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15456 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 15457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15458 | break 2 |
15459 | fi | |
15460 | done | |
5213506e RW |
15461 | done |
15462 | IFS=$as_save_IFS | |
1c710c3c | 15463 | |
d739199a DJ |
15464 | fi |
15465 | fi | |
1c710c3c | 15466 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 15467 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15469 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 15470 | else |
5213506e RW |
15471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15472 | $as_echo "no" >&6; } | |
d739199a | 15473 | fi |
1c710c3c | 15474 | |
5213506e | 15475 | |
e8b05380 PB |
15476 | fi |
15477 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
15478 | done | |
15479 | fi | |
1c710c3c | 15480 | |
d739199a DJ |
15481 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
15482 | set dummy objdump | |
15483 | if test $build = $target ; then | |
15484 | OBJDUMP_FOR_TARGET="$2" | |
15485 | else | |
15486 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15487 | fi | |
1c00b503 PB |
15488 | else |
15489 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
15490 | fi |
15491 | ||
d1f8db0c PB |
15492 | else |
15493 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
15494 | fi |
15495 | ||
15496 | ||
15497 | ||
15498 | ||
e4a9a572 IS |
15499 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
15500 | if test -n "$with_build_time_tools"; then | |
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
15502 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
15503 | if test -x $with_build_time_tools/otool; then | |
15504 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
15505 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
15507 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
15508 | else | |
15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15510 | $as_echo "no" >&6; } | |
15511 | fi | |
15512 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15513 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
15514 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
15515 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15516 | fi | |
15517 | fi | |
15518 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15519 | # Extract the first word of "otool", so it can be a program name with args. | |
15520 | set dummy otool; ac_word=$2 | |
15521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15522 | $as_echo_n "checking for $ac_word... " >&6; } | |
15523 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
15524 | $as_echo_n "(cached) " >&6 | |
15525 | else | |
15526 | case $OTOOL_FOR_TARGET in | |
15527 | [\\/]* | ?:[\\/]*) | |
15528 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
15529 | ;; | |
15530 | *) | |
15531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15532 | for as_dir in $gcc_cv_tool_dirs | |
15533 | do | |
15534 | IFS=$as_save_IFS | |
15535 | test -z "$as_dir" && as_dir=. | |
15536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15537 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15538 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15540 | break 2 | |
15541 | fi | |
15542 | done | |
15543 | done | |
15544 | IFS=$as_save_IFS | |
15545 | ||
15546 | ;; | |
15547 | esac | |
15548 | fi | |
15549 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15550 | if test -n "$OTOOL_FOR_TARGET"; then | |
15551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15552 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15553 | else | |
15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15555 | $as_echo "no" >&6; } | |
15556 | fi | |
15557 | ||
15558 | ||
15559 | fi | |
15560 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
15561 | ||
15562 | ||
15563 | if test -n "$OTOOL_FOR_TARGET"; then | |
15564 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
15565 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15566 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15567 | fi | |
15568 | ||
15569 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15570 | for ncn_progname in otool; do | |
15571 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15572 | set dummy ${ncn_progname}; ac_word=$2 | |
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15574 | $as_echo_n "checking for $ac_word... " >&6; } | |
15575 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15576 | $as_echo_n "(cached) " >&6 | |
15577 | else | |
15578 | if test -n "$OTOOL_FOR_TARGET"; then | |
15579 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15580 | else | |
15581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15582 | for as_dir in $PATH | |
15583 | do | |
15584 | IFS=$as_save_IFS | |
15585 | test -z "$as_dir" && as_dir=. | |
15586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15588 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15590 | break 2 | |
15591 | fi | |
15592 | done | |
15593 | done | |
15594 | IFS=$as_save_IFS | |
15595 | ||
15596 | fi | |
15597 | fi | |
15598 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15599 | if test -n "$OTOOL_FOR_TARGET"; then | |
15600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15601 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15602 | else | |
15603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15604 | $as_echo "no" >&6; } | |
15605 | fi | |
15606 | ||
15607 | ||
15608 | done | |
15609 | fi | |
15610 | ||
15611 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15612 | for ncn_progname in otool; do | |
15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15614 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15615 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15616 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15618 | $as_echo "yes" >&6; } | |
15619 | break | |
15620 | else | |
15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15622 | $as_echo "no" >&6; } | |
15623 | fi | |
15624 | done | |
15625 | fi | |
15626 | ||
15627 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
15628 | for ncn_progname in otool; do | |
15629 | if test -n "$ncn_target_tool_prefix"; then | |
15630 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15631 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15633 | $as_echo_n "checking for $ac_word... " >&6; } | |
15634 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15635 | $as_echo_n "(cached) " >&6 | |
15636 | else | |
15637 | if test -n "$OTOOL_FOR_TARGET"; then | |
15638 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15639 | else | |
15640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15641 | for as_dir in $PATH | |
15642 | do | |
15643 | IFS=$as_save_IFS | |
15644 | test -z "$as_dir" && as_dir=. | |
15645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15647 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15649 | break 2 | |
15650 | fi | |
15651 | done | |
15652 | done | |
15653 | IFS=$as_save_IFS | |
15654 | ||
15655 | fi | |
15656 | fi | |
15657 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15658 | if test -n "$OTOOL_FOR_TARGET"; then | |
15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15660 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15661 | else | |
15662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15663 | $as_echo "no" >&6; } | |
15664 | fi | |
15665 | ||
15666 | ||
15667 | fi | |
15668 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
15669 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15670 | set dummy ${ncn_progname}; ac_word=$2 | |
15671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15672 | $as_echo_n "checking for $ac_word... " >&6; } | |
15673 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
15674 | $as_echo_n "(cached) " >&6 | |
15675 | else | |
15676 | if test -n "$OTOOL_FOR_TARGET"; then | |
15677 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
15678 | else | |
15679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15680 | for as_dir in $PATH | |
15681 | do | |
15682 | IFS=$as_save_IFS | |
15683 | test -z "$as_dir" && as_dir=. | |
15684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15686 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
15687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15688 | break 2 | |
15689 | fi | |
15690 | done | |
15691 | done | |
15692 | IFS=$as_save_IFS | |
15693 | ||
15694 | fi | |
15695 | fi | |
15696 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
15697 | if test -n "$OTOOL_FOR_TARGET"; then | |
15698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
15699 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
15700 | else | |
15701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15702 | $as_echo "no" >&6; } | |
15703 | fi | |
15704 | ||
15705 | ||
15706 | fi | |
15707 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
15708 | done | |
15709 | fi | |
15710 | ||
15711 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
15712 | set dummy otool | |
15713 | if test $build = $target ; then | |
15714 | OTOOL_FOR_TARGET="$2" | |
15715 | else | |
15716 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15717 | fi | |
15718 | else | |
15719 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
15720 | fi | |
15721 | ||
15722 | else | |
15723 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
15724 | fi | |
15725 | ||
15726 | ||
15727 | ||
15728 | ||
e8b05380 PB |
15729 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
15730 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
15732 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15733 | if test -x $with_build_time_tools/ranlib; then |
15734 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
15735 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
15736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
15737 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 15738 | else |
5213506e RW |
15739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15740 | $as_echo "no" >&6; } | |
d1f8db0c | 15741 | fi |
e8b05380 PB |
15742 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15743 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
15744 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
15745 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
15746 | fi |
15747 | fi | |
3e19841a | 15748 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15749 | # Extract the first word of "ranlib", so it can be a program name with args. |
15750 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15752 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15753 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15754 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15755 | else |
1c710c3c DJ |
15756 | case $RANLIB_FOR_TARGET in |
15757 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15758 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
15759 | ;; | |
e8b05380 | 15760 | *) |
1c710c3c DJ |
15761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15762 | for as_dir in $gcc_cv_tool_dirs | |
15763 | do | |
15764 | IFS=$as_save_IFS | |
15765 | test -z "$as_dir" && as_dir=. | |
5213506e | 15766 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15768 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15770 | break 2 |
15771 | fi | |
15772 | done | |
5213506e RW |
15773 | done |
15774 | IFS=$as_save_IFS | |
1c710c3c | 15775 | |
e8b05380 PB |
15776 | ;; |
15777 | esac | |
15778 | fi | |
1c710c3c | 15779 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 15780 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15782 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 15783 | else |
5213506e RW |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15785 | $as_echo "no" >&6; } | |
e8b05380 PB |
15786 | fi |
15787 | ||
5213506e | 15788 | |
e8b05380 PB |
15789 | fi |
15790 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
15791 | |
15792 | ||
15793 | if test -n "$RANLIB_FOR_TARGET"; then | |
15794 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
15795 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15796 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
15797 | fi | |
15798 | ||
15799 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15800 | for ncn_progname in ranlib; do | |
15801 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15802 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15804 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15805 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15806 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15807 | else |
15808 | if test -n "$RANLIB_FOR_TARGET"; then | |
15809 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
15810 | else | |
15811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15812 | for as_dir in $PATH | |
15813 | do | |
15814 | IFS=$as_save_IFS | |
15815 | test -z "$as_dir" && as_dir=. | |
5213506e | 15816 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15818 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 15819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15820 | break 2 |
15821 | fi | |
15822 | done | |
5213506e RW |
15823 | done |
15824 | IFS=$as_save_IFS | |
278a7a38 AO |
15825 | |
15826 | fi | |
15827 | fi | |
15828 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
15829 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15831 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 15832 | else |
5213506e RW |
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15834 | $as_echo "no" >&6; } | |
278a7a38 AO |
15835 | fi |
15836 | ||
5213506e | 15837 | |
278a7a38 AO |
15838 | done |
15839 | fi | |
15840 | ||
15841 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15842 | for ncn_progname in ranlib; do |
5213506e RW |
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15844 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15845 | if test -x $with_build_time_tools/${ncn_progname}; then |
15846 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15848 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15849 | break |
15850 | else | |
5213506e RW |
15851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15852 | $as_echo "no" >&6; } | |
e8b05380 PB |
15853 | fi |
15854 | done | |
15855 | fi | |
15856 | ||
15857 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
15858 | for ncn_progname in ranlib; do | |
15859 | if test -n "$ncn_target_tool_prefix"; then | |
15860 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 15861 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15863 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15864 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15865 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15866 | else |
4de997d1 PB |
15867 | if test -n "$RANLIB_FOR_TARGET"; then |
15868 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15869 | else |
1c710c3c DJ |
15870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15871 | for as_dir in $PATH | |
15872 | do | |
15873 | IFS=$as_save_IFS | |
15874 | test -z "$as_dir" && as_dir=. | |
5213506e | 15875 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15877 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15879 | break 2 |
15880 | fi | |
15881 | done | |
5213506e RW |
15882 | done |
15883 | IFS=$as_save_IFS | |
1c710c3c | 15884 | |
ca9f4b81 AO |
15885 | fi |
15886 | fi | |
1c710c3c | 15887 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 15888 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15890 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 15891 | else |
5213506e RW |
15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15893 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15894 | fi |
15895 | ||
5213506e | 15896 | |
e8b05380 PB |
15897 | fi |
15898 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
15899 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15900 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15902 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15903 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 15904 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15905 | else |
2693c0b0 PB |
15906 | if test -n "$RANLIB_FOR_TARGET"; then |
15907 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15908 | else |
1c710c3c DJ |
15909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15910 | for as_dir in $PATH | |
15911 | do | |
15912 | IFS=$as_save_IFS | |
15913 | test -z "$as_dir" && as_dir=. | |
5213506e | 15914 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15916 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 15917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15918 | break 2 |
15919 | fi | |
15920 | done | |
5213506e RW |
15921 | done |
15922 | IFS=$as_save_IFS | |
1c710c3c | 15923 | |
ca9f4b81 AO |
15924 | fi |
15925 | fi | |
1c710c3c | 15926 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 15927 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
15929 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 15930 | else |
5213506e RW |
15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15932 | $as_echo "no" >&6; } | |
ca9f4b81 | 15933 | fi |
1c710c3c | 15934 | |
5213506e | 15935 | |
e8b05380 PB |
15936 | fi |
15937 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
15938 | done | |
15939 | fi | |
1c710c3c | 15940 | |
e8b05380 PB |
15941 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
15942 | set dummy ranlib | |
15943 | if test $build = $target ; then | |
15944 | RANLIB_FOR_TARGET="$2" | |
15945 | else | |
15946 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 15947 | fi |
1c00b503 PB |
15948 | else |
15949 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 15950 | fi |
2693c0b0 | 15951 | |
d1f8db0c PB |
15952 | else |
15953 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
15954 | fi |
15955 | ||
e8b05380 PB |
15956 | |
15957 | ||
15958 | ||
e7a82751 RM |
15959 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
15960 | if test -n "$with_build_time_tools"; then | |
15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
15962 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
15963 | if test -x $with_build_time_tools/readelf; then | |
15964 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
15965 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
15967 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
15968 | else | |
15969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15970 | $as_echo "no" >&6; } | |
15971 | fi | |
15972 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15973 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
15974 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
15975 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
15976 | fi | |
15977 | fi | |
15978 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15979 | # Extract the first word of "readelf", so it can be a program name with args. | |
15980 | set dummy readelf; ac_word=$2 | |
15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15982 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15983 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
15984 | $as_echo_n "(cached) " >&6 |
15985 | else | |
15986 | case $READELF_FOR_TARGET in | |
15987 | [\\/]* | ?:[\\/]*) | |
15988 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
15989 | ;; | |
15990 | *) | |
15991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15992 | for as_dir in $gcc_cv_tool_dirs | |
15993 | do | |
15994 | IFS=$as_save_IFS | |
15995 | test -z "$as_dir" && as_dir=. | |
15996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
15998 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16000 | break 2 | |
16001 | fi | |
16002 | done | |
16003 | done | |
16004 | IFS=$as_save_IFS | |
16005 | ||
16006 | ;; | |
16007 | esac | |
16008 | fi | |
16009 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16010 | if test -n "$READELF_FOR_TARGET"; then | |
16011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16012 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16013 | else | |
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16015 | $as_echo "no" >&6; } | |
16016 | fi | |
16017 | ||
16018 | ||
16019 | fi | |
16020 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16021 | ||
16022 | ||
16023 | if test -n "$READELF_FOR_TARGET"; then | |
16024 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16025 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16026 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16027 | fi | |
16028 | ||
16029 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16030 | for ncn_progname in readelf; do | |
16031 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16032 | set dummy ${ncn_progname}; ac_word=$2 | |
16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16034 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16035 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16036 | $as_echo_n "(cached) " >&6 |
16037 | else | |
16038 | if test -n "$READELF_FOR_TARGET"; then | |
16039 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16040 | else | |
16041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16042 | for as_dir in $PATH | |
16043 | do | |
16044 | IFS=$as_save_IFS | |
16045 | test -z "$as_dir" && as_dir=. | |
16046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16048 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16050 | break 2 | |
16051 | fi | |
16052 | done | |
16053 | done | |
16054 | IFS=$as_save_IFS | |
16055 | ||
16056 | fi | |
16057 | fi | |
16058 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16059 | if test -n "$READELF_FOR_TARGET"; then | |
16060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16061 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16062 | else | |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16064 | $as_echo "no" >&6; } | |
16065 | fi | |
16066 | ||
16067 | ||
16068 | done | |
16069 | fi | |
16070 | ||
16071 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16072 | for ncn_progname in readelf; do | |
16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16074 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16075 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16076 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16078 | $as_echo "yes" >&6; } | |
16079 | break | |
16080 | else | |
16081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16082 | $as_echo "no" >&6; } | |
16083 | fi | |
16084 | done | |
16085 | fi | |
16086 | ||
16087 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16088 | for ncn_progname in readelf; do | |
16089 | if test -n "$ncn_target_tool_prefix"; then | |
16090 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16091 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16093 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16094 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16095 | $as_echo_n "(cached) " >&6 |
16096 | else | |
16097 | if test -n "$READELF_FOR_TARGET"; then | |
16098 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16099 | else | |
16100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16101 | for as_dir in $PATH | |
16102 | do | |
16103 | IFS=$as_save_IFS | |
16104 | test -z "$as_dir" && as_dir=. | |
16105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16107 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16109 | break 2 | |
16110 | fi | |
16111 | done | |
16112 | done | |
16113 | IFS=$as_save_IFS | |
16114 | ||
16115 | fi | |
16116 | fi | |
16117 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16118 | if test -n "$READELF_FOR_TARGET"; then | |
16119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16120 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16121 | else | |
16122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16123 | $as_echo "no" >&6; } | |
16124 | fi | |
16125 | ||
16126 | ||
16127 | fi | |
16128 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16129 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16130 | set dummy ${ncn_progname}; ac_word=$2 | |
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16132 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16133 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16134 | $as_echo_n "(cached) " >&6 |
16135 | else | |
16136 | if test -n "$READELF_FOR_TARGET"; then | |
16137 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16138 | else | |
16139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16140 | for as_dir in $PATH | |
16141 | do | |
16142 | IFS=$as_save_IFS | |
16143 | test -z "$as_dir" && as_dir=. | |
16144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16146 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16148 | break 2 | |
16149 | fi | |
16150 | done | |
16151 | done | |
16152 | IFS=$as_save_IFS | |
16153 | ||
16154 | fi | |
16155 | fi | |
16156 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16157 | if test -n "$READELF_FOR_TARGET"; then | |
16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16159 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16160 | else | |
16161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16162 | $as_echo "no" >&6; } | |
16163 | fi | |
16164 | ||
16165 | ||
16166 | fi | |
16167 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16168 | done | |
16169 | fi | |
16170 | ||
16171 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16172 | set dummy readelf | |
16173 | if test $build = $target ; then | |
16174 | READELF_FOR_TARGET="$2" | |
16175 | else | |
16176 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16177 | fi | |
16178 | else | |
16179 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16180 | fi | |
16181 | ||
16182 | else | |
16183 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16184 | fi | |
16185 | ||
16186 | ||
16187 | ||
16188 | ||
e8b05380 PB |
16189 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16190 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16192 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16193 | if test -x $with_build_time_tools/strip; then |
16194 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16195 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16197 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 16198 | else |
5213506e RW |
16199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16200 | $as_echo "no" >&6; } | |
d1f8db0c | 16201 | fi |
e8b05380 PB |
16202 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16203 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
16204 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16205 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
16206 | fi |
16207 | fi | |
3e19841a | 16208 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16209 | # Extract the first word of "strip", so it can be a program name with args. |
16210 | set dummy strip; ac_word=$2 | |
5213506e RW |
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16212 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16213 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16214 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16215 | else |
1c710c3c DJ |
16216 | case $STRIP_FOR_TARGET in |
16217 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16218 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16219 | ;; | |
e8b05380 | 16220 | *) |
1c710c3c DJ |
16221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16222 | for as_dir in $gcc_cv_tool_dirs | |
16223 | do | |
16224 | IFS=$as_save_IFS | |
16225 | test -z "$as_dir" && as_dir=. | |
5213506e | 16226 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16228 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16230 | break 2 |
16231 | fi | |
16232 | done | |
5213506e RW |
16233 | done |
16234 | IFS=$as_save_IFS | |
1c710c3c | 16235 | |
e8b05380 PB |
16236 | ;; |
16237 | esac | |
16238 | fi | |
1c710c3c | 16239 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 16240 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16242 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 16243 | else |
5213506e RW |
16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16245 | $as_echo "no" >&6; } | |
e8b05380 PB |
16246 | fi |
16247 | ||
5213506e | 16248 | |
e8b05380 PB |
16249 | fi |
16250 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
16251 | |
16252 | ||
16253 | if test -n "$STRIP_FOR_TARGET"; then | |
16254 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16255 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16256 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16257 | fi | |
16258 | ||
16259 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16260 | for ncn_progname in strip; do | |
16261 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16262 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16265 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16266 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16267 | else |
16268 | if test -n "$STRIP_FOR_TARGET"; then | |
16269 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16270 | else | |
16271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16272 | for as_dir in $PATH | |
16273 | do | |
16274 | IFS=$as_save_IFS | |
16275 | test -z "$as_dir" && as_dir=. | |
5213506e | 16276 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16278 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16280 | break 2 |
16281 | fi | |
16282 | done | |
5213506e RW |
16283 | done |
16284 | IFS=$as_save_IFS | |
278a7a38 AO |
16285 | |
16286 | fi | |
16287 | fi | |
16288 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16289 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
16290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16291 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 16292 | else |
5213506e RW |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16294 | $as_echo "no" >&6; } | |
278a7a38 AO |
16295 | fi |
16296 | ||
5213506e | 16297 | |
278a7a38 AO |
16298 | done |
16299 | fi | |
16300 | ||
16301 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16302 | for ncn_progname in strip; do |
5213506e RW |
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16304 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16305 | if test -x $with_build_time_tools/${ncn_progname}; then |
16306 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16308 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16309 | break |
16310 | else | |
5213506e RW |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16312 | $as_echo "no" >&6; } | |
e8b05380 PB |
16313 | fi |
16314 | done | |
16315 | fi | |
16316 | ||
16317 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16318 | for ncn_progname in strip; do | |
16319 | if test -n "$ncn_target_tool_prefix"; then | |
16320 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16321 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16324 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16325 | $as_echo_n "(cached) " >&6 |
af71363e AS |
16326 | else |
16327 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
16328 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
16329 | else | |
16330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16331 | for as_dir in $PATH | |
16332 | do | |
16333 | IFS=$as_save_IFS | |
16334 | test -z "$as_dir" && as_dir=. | |
5213506e | 16335 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16337 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16339 | break 2 |
16340 | fi | |
16341 | done | |
5213506e RW |
16342 | done |
16343 | IFS=$as_save_IFS | |
1c710c3c | 16344 | |
040b1c5a GK |
16345 | fi |
16346 | fi | |
1c710c3c | 16347 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16348 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16350 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16351 | else |
5213506e RW |
16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16353 | $as_echo "no" >&6; } | |
040b1c5a GK |
16354 | fi |
16355 | ||
5213506e | 16356 | |
e8b05380 PB |
16357 | fi |
16358 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
16359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 16360 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16363 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 16364 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
16365 | else |
16366 | if test -n "$STRIP_FOR_TARGET"; then | |
16367 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16368 | else | |
1c710c3c DJ |
16369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16370 | for as_dir in $PATH | |
16371 | do | |
16372 | IFS=$as_save_IFS | |
16373 | test -z "$as_dir" && as_dir=. | |
5213506e | 16374 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16376 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 16377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16378 | break 2 |
16379 | fi | |
16380 | done | |
5213506e RW |
16381 | done |
16382 | IFS=$as_save_IFS | |
1c710c3c | 16383 | |
040b1c5a GK |
16384 | fi |
16385 | fi | |
1c710c3c | 16386 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 16387 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
16388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16389 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 16390 | else |
5213506e RW |
16391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16392 | $as_echo "no" >&6; } | |
040b1c5a | 16393 | fi |
1c710c3c | 16394 | |
5213506e | 16395 | |
e8b05380 PB |
16396 | fi |
16397 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
16398 | done | |
16399 | fi | |
1c710c3c | 16400 | |
040b1c5a GK |
16401 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
16402 | set dummy strip | |
16403 | if test $build = $target ; then | |
16404 | STRIP_FOR_TARGET="$2" | |
16405 | else | |
16406 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16407 | fi | |
1c00b503 PB |
16408 | else |
16409 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
16410 | fi |
16411 | ||
d1f8db0c PB |
16412 | else |
16413 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
16414 | fi |
16415 | ||
16416 | ||
16417 | ||
16418 | ||
16419 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
16420 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
16422 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16423 | if test -x $with_build_time_tools/windres; then |
16424 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
16425 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
16427 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 16428 | else |
5213506e RW |
16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16430 | $as_echo "no" >&6; } | |
d1f8db0c | 16431 | fi |
e8b05380 PB |
16432 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16433 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
16434 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
16435 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
16436 | fi |
16437 | fi | |
3e19841a | 16438 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16439 | # Extract the first word of "windres", so it can be a program name with args. |
16440 | set dummy windres; ac_word=$2 | |
5213506e RW |
16441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16442 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16443 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16444 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16445 | else |
1c710c3c DJ |
16446 | case $WINDRES_FOR_TARGET in |
16447 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16448 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
16449 | ;; | |
e8b05380 | 16450 | *) |
1c710c3c DJ |
16451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16452 | for as_dir in $gcc_cv_tool_dirs | |
16453 | do | |
16454 | IFS=$as_save_IFS | |
16455 | test -z "$as_dir" && as_dir=. | |
5213506e | 16456 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16458 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16460 | break 2 |
16461 | fi | |
16462 | done | |
5213506e RW |
16463 | done |
16464 | IFS=$as_save_IFS | |
1c710c3c | 16465 | |
e8b05380 PB |
16466 | ;; |
16467 | esac | |
16468 | fi | |
1c710c3c | 16469 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 16470 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16472 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 16473 | else |
5213506e RW |
16474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16475 | $as_echo "no" >&6; } | |
e8b05380 PB |
16476 | fi |
16477 | ||
5213506e | 16478 | |
e8b05380 PB |
16479 | fi |
16480 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
16481 | |
16482 | ||
16483 | if test -n "$WINDRES_FOR_TARGET"; then | |
16484 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
16485 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16486 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16487 | fi | |
16488 | ||
16489 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16490 | for ncn_progname in windres; do | |
16491 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16492 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16494 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16495 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16496 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16497 | else |
16498 | if test -n "$WINDRES_FOR_TARGET"; then | |
16499 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
16500 | else | |
16501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16502 | for as_dir in $PATH | |
16503 | do | |
16504 | IFS=$as_save_IFS | |
16505 | test -z "$as_dir" && as_dir=. | |
5213506e | 16506 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16508 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16510 | break 2 |
16511 | fi | |
16512 | done | |
5213506e RW |
16513 | done |
16514 | IFS=$as_save_IFS | |
278a7a38 AO |
16515 | |
16516 | fi | |
16517 | fi | |
16518 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
16519 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
16520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16521 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 16522 | else |
5213506e RW |
16523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16524 | $as_echo "no" >&6; } | |
278a7a38 AO |
16525 | fi |
16526 | ||
5213506e | 16527 | |
278a7a38 AO |
16528 | done |
16529 | fi | |
16530 | ||
16531 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16532 | for ncn_progname in windres; do |
5213506e RW |
16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16534 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16535 | if test -x $with_build_time_tools/${ncn_progname}; then |
16536 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16538 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16539 | break |
16540 | else | |
5213506e RW |
16541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16542 | $as_echo "no" >&6; } | |
e8b05380 PB |
16543 | fi |
16544 | done | |
16545 | fi | |
16546 | ||
16547 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
16548 | for ncn_progname in windres; do | |
16549 | if test -n "$ncn_target_tool_prefix"; then | |
16550 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16551 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16553 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16554 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16555 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16556 | else |
4de997d1 PB |
16557 | if test -n "$WINDRES_FOR_TARGET"; then |
16558 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16559 | else |
1c710c3c DJ |
16560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16561 | for as_dir in $PATH | |
16562 | do | |
16563 | IFS=$as_save_IFS | |
16564 | test -z "$as_dir" && as_dir=. | |
5213506e | 16565 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16566 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16567 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16569 | break 2 |
16570 | fi | |
16571 | done | |
5213506e RW |
16572 | done |
16573 | IFS=$as_save_IFS | |
1c710c3c | 16574 | |
ca9f4b81 AO |
16575 | fi |
16576 | fi | |
1c710c3c | 16577 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 16578 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16580 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16581 | else |
5213506e RW |
16582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16583 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16584 | fi |
16585 | ||
5213506e | 16586 | |
e8b05380 PB |
16587 | fi |
16588 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
16589 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16590 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16592 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16593 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 16594 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16595 | else |
2693c0b0 PB |
16596 | if test -n "$WINDRES_FOR_TARGET"; then |
16597 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16598 | else |
1c710c3c DJ |
16599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16600 | for as_dir in $PATH | |
16601 | do | |
16602 | IFS=$as_save_IFS | |
16603 | test -z "$as_dir" && as_dir=. | |
5213506e | 16604 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16606 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 16607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16608 | break 2 |
16609 | fi | |
16610 | done | |
5213506e RW |
16611 | done |
16612 | IFS=$as_save_IFS | |
1c710c3c | 16613 | |
ca9f4b81 AO |
16614 | fi |
16615 | fi | |
1c710c3c | 16616 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 16617 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
16619 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 16620 | else |
5213506e RW |
16621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16622 | $as_echo "no" >&6; } | |
ca9f4b81 | 16623 | fi |
1c710c3c | 16624 | |
5213506e | 16625 | |
e8b05380 PB |
16626 | fi |
16627 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
16628 | done | |
16629 | fi | |
1c710c3c | 16630 | |
2693c0b0 PB |
16631 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
16632 | set dummy windres | |
16633 | if test $build = $target ; then | |
16634 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 16635 | else |
2693c0b0 | 16636 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 16637 | fi |
1c00b503 PB |
16638 | else |
16639 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
16640 | fi |
16641 | ||
d1f8db0c PB |
16642 | else |
16643 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
16644 | fi |
16645 | ||
4977bab6 | 16646 | |
901119ae KT |
16647 | |
16648 | ||
16649 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
16650 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
16652 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
16653 | if test -x $with_build_time_tools/windmc; then |
16654 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
16655 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
16657 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16658 | else |
5213506e RW |
16659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16660 | $as_echo "no" >&6; } | |
901119ae KT |
16661 | fi |
16662 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16663 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
16664 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
16665 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
16666 | fi |
16667 | fi | |
16668 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16669 | # Extract the first word of "windmc", so it can be a program name with args. | |
16670 | set dummy windmc; ac_word=$2 | |
5213506e RW |
16671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16672 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16673 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16674 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16675 | else |
16676 | case $WINDMC_FOR_TARGET in | |
16677 | [\\/]* | ?:[\\/]*) | |
16678 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
16679 | ;; | |
16680 | *) | |
16681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16682 | for as_dir in $gcc_cv_tool_dirs | |
16683 | do | |
16684 | IFS=$as_save_IFS | |
16685 | test -z "$as_dir" && as_dir=. | |
5213506e | 16686 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16688 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16690 | break 2 |
16691 | fi | |
16692 | done | |
5213506e RW |
16693 | done |
16694 | IFS=$as_save_IFS | |
901119ae KT |
16695 | |
16696 | ;; | |
16697 | esac | |
16698 | fi | |
16699 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 16700 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
16701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16702 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16703 | else |
5213506e RW |
16704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16705 | $as_echo "no" >&6; } | |
901119ae KT |
16706 | fi |
16707 | ||
5213506e | 16708 | |
901119ae KT |
16709 | fi |
16710 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
16711 | ||
16712 | ||
16713 | if test -n "$WINDMC_FOR_TARGET"; then | |
16714 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
16715 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16716 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16717 | fi | |
16718 | ||
16719 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16720 | for ncn_progname in windmc; do | |
16721 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16722 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16724 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16725 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16726 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16727 | else |
16728 | if test -n "$WINDMC_FOR_TARGET"; then | |
16729 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16730 | else | |
16731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16732 | for as_dir in $PATH | |
16733 | do | |
16734 | IFS=$as_save_IFS | |
16735 | test -z "$as_dir" && as_dir=. | |
5213506e | 16736 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16738 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 16739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16740 | break 2 |
16741 | fi | |
16742 | done | |
5213506e RW |
16743 | done |
16744 | IFS=$as_save_IFS | |
901119ae KT |
16745 | |
16746 | fi | |
16747 | fi | |
16748 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16749 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16751 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16752 | else |
5213506e RW |
16753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16754 | $as_echo "no" >&6; } | |
901119ae KT |
16755 | fi |
16756 | ||
5213506e | 16757 | |
901119ae KT |
16758 | done |
16759 | fi | |
16760 | ||
16761 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16762 | for ncn_progname in windmc; do | |
5213506e RW |
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16764 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
16765 | if test -x $with_build_time_tools/${ncn_progname}; then |
16766 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16768 | $as_echo "yes" >&6; } | |
901119ae KT |
16769 | break |
16770 | else | |
5213506e RW |
16771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16772 | $as_echo "no" >&6; } | |
901119ae KT |
16773 | fi |
16774 | done | |
16775 | fi | |
16776 | ||
16777 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
16778 | for ncn_progname in windmc; do | |
16779 | if test -n "$ncn_target_tool_prefix"; then | |
16780 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16781 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
16782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16783 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16784 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16785 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16786 | else |
16787 | if test -n "$WINDMC_FOR_TARGET"; then | |
16788 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16789 | else | |
16790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16791 | for as_dir in $PATH | |
16792 | do | |
16793 | IFS=$as_save_IFS | |
16794 | test -z "$as_dir" && as_dir=. | |
5213506e | 16795 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16797 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16799 | break 2 |
16800 | fi | |
16801 | done | |
5213506e RW |
16802 | done |
16803 | IFS=$as_save_IFS | |
901119ae KT |
16804 | |
16805 | fi | |
16806 | fi | |
16807 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16808 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16810 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16811 | else |
5213506e RW |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16813 | $as_echo "no" >&6; } | |
901119ae KT |
16814 | fi |
16815 | ||
5213506e | 16816 | |
901119ae KT |
16817 | fi |
16818 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
16819 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16820 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16822 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16823 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 16824 | $as_echo_n "(cached) " >&6 |
901119ae KT |
16825 | else |
16826 | if test -n "$WINDMC_FOR_TARGET"; then | |
16827 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
16828 | else | |
16829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16830 | for as_dir in $PATH | |
16831 | do | |
16832 | IFS=$as_save_IFS | |
16833 | test -z "$as_dir" && as_dir=. | |
5213506e | 16834 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 16836 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 16837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
16838 | break 2 |
16839 | fi | |
16840 | done | |
5213506e RW |
16841 | done |
16842 | IFS=$as_save_IFS | |
901119ae KT |
16843 | |
16844 | fi | |
16845 | fi | |
16846 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
16847 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
16849 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 16850 | else |
5213506e RW |
16851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16852 | $as_echo "no" >&6; } | |
901119ae KT |
16853 | fi |
16854 | ||
5213506e | 16855 | |
901119ae KT |
16856 | fi |
16857 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
16858 | done | |
16859 | fi | |
16860 | ||
16861 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
16862 | set dummy windmc | |
16863 | if test $build = $target ; then | |
16864 | WINDMC_FOR_TARGET="$2" | |
16865 | else | |
16866 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16867 | fi | |
1c00b503 PB |
16868 | else |
16869 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
16870 | fi |
16871 | ||
16872 | else | |
16873 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
16874 | fi | |
16875 | ||
16876 | ||
2abefe3d PB |
16877 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
16878 | ||
5213506e RW |
16879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
16880 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 16881 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16882 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
16883 | # We already found the complete path | |
172e41aa | 16884 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16887 | else |
16888 | # Canadian cross, just use what we found | |
5213506e RW |
16889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16890 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16891 | fi |
2abefe3d PB |
16892 | else |
16893 | ok=yes | |
16894 | case " ${configdirs} " in | |
16895 | *" binutils "*) ;; | |
16896 | *) ok=no ;; | |
16897 | esac | |
1c710c3c | 16898 | |
2abefe3d PB |
16899 | if test $ok = yes; then |
16900 | # An in-tree tool is available and we can use it | |
16901 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16903 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16904 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
16905 | # We already found the complete path | |
172e41aa | 16906 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16908 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16909 | elif test "x$target" = "x$host"; then |
16910 | # We can use an host tool | |
16911 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16913 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16914 | else |
16915 | # We need a cross tool | |
5213506e RW |
16916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16917 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16918 | fi |
16919 | fi | |
0b0dc272 | 16920 | |
5213506e RW |
16921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
16922 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 16923 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16924 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
16925 | # We already found the complete path | |
172e41aa | 16926 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
16927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16928 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16929 | else |
16930 | # Canadian cross, just use what we found | |
5213506e RW |
16931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16932 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16933 | fi |
2abefe3d PB |
16934 | else |
16935 | ok=yes | |
16936 | case " ${configdirs} " in | |
16937 | *" gas "*) ;; | |
16938 | *) ok=no ;; | |
16939 | esac | |
1c710c3c | 16940 | |
2abefe3d PB |
16941 | if test $ok = yes; then |
16942 | # An in-tree tool is available and we can use it | |
16943 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16945 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16946 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
16947 | # We already found the complete path | |
172e41aa | 16948 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16950 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16951 | elif test "x$target" = "x$host"; then |
16952 | # We can use an host tool | |
16953 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
16954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16955 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16956 | else |
16957 | # We need a cross tool | |
5213506e RW |
16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16959 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16960 | fi |
16961 | fi | |
0b0dc272 | 16962 | |
5213506e RW |
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
16964 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 16965 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16966 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
16967 | # We already found the complete path | |
172e41aa | 16968 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16970 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16971 | else |
16972 | # Canadian cross, just use what we found | |
5213506e RW |
16973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16974 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16975 | fi |
2abefe3d PB |
16976 | else |
16977 | ok=yes | |
16978 | case " ${configdirs} " in | |
16979 | *" gcc "*) ;; | |
16980 | *) ok=no ;; | |
16981 | esac | |
1c710c3c | 16982 | |
2abefe3d PB |
16983 | if test $ok = yes; then |
16984 | # An in-tree tool is available and we can use it | |
16985 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16987 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16988 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
16989 | # We already found the complete path | |
172e41aa | 16990 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16992 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16993 | elif test "x$target" = "x$host"; then |
16994 | # We can use an host tool | |
16995 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16997 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16998 | else |
16999 | # We need a cross tool | |
5213506e RW |
17000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17001 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17002 | fi |
17003 | fi | |
0b0dc272 | 17004 | |
5213506e RW |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17006 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17007 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17008 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17009 | # We already found the complete path | |
172e41aa | 17010 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17012 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17013 | else |
17014 | # Canadian cross, just use what we found | |
5213506e RW |
17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17016 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17017 | fi |
2abefe3d PB |
17018 | else |
17019 | ok=yes | |
17020 | case " ${configdirs} " in | |
17021 | *" gcc "*) ;; | |
17022 | *) ok=no ;; | |
17023 | esac | |
17024 | case ,${enable_languages}, in | |
17025 | *,c++,*) ;; | |
17026 | *) ok=no ;; | |
17027 | esac | |
17028 | if test $ok = yes; then | |
17029 | # An in-tree tool is available and we can use it | |
2077db1b | 17030 | 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 |
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17032 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17033 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17034 | # We already found the complete path | |
172e41aa | 17035 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17037 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17038 | elif test "x$target" = "x$host"; then |
17039 | # We can use an host tool | |
17040 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17042 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17043 | else |
17044 | # We need a cross tool | |
5213506e RW |
17045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17046 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17047 | fi |
17048 | fi | |
0b0dc272 | 17049 | |
5213506e RW |
17050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17051 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17052 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17053 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17054 | # We already found the complete path | |
172e41aa | 17055 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17057 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17058 | else |
17059 | # Canadian cross, just use what we found | |
5213506e RW |
17060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17061 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17062 | fi |
2abefe3d PB |
17063 | else |
17064 | ok=yes | |
17065 | case " ${configdirs} " in | |
17066 | *" gcc "*) ;; | |
17067 | *) ok=no ;; | |
17068 | esac | |
17069 | case ,${enable_languages}, in | |
17070 | *,c++,*) ;; | |
17071 | *) ok=no ;; | |
17072 | esac | |
17073 | if test $ok = yes; then | |
17074 | # An in-tree tool is available and we can use it | |
2077db1b | 17075 | 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 |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17077 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17078 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17079 | # We already found the complete path | |
172e41aa | 17080 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17082 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17083 | elif test "x$target" = "x$host"; then |
17084 | # We can use an host tool | |
17085 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17087 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17088 | else |
17089 | # We need a cross tool | |
5213506e RW |
17090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17091 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17092 | fi |
17093 | fi | |
0b0dc272 | 17094 | |
5213506e RW |
17095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17096 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17097 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17098 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17099 | # We already found the complete path | |
172e41aa | 17100 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17102 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17103 | else |
17104 | # Canadian cross, just use what we found | |
5213506e RW |
17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17106 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17107 | fi |
2abefe3d PB |
17108 | else |
17109 | ok=yes | |
17110 | case " ${configdirs} " in | |
17111 | *" binutils "*) ;; | |
17112 | *) ok=no ;; | |
17113 | esac | |
1c710c3c | 17114 | |
2abefe3d PB |
17115 | if test $ok = yes; then |
17116 | # An in-tree tool is available and we can use it | |
17117 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17119 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17120 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17121 | # We already found the complete path | |
172e41aa | 17122 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17124 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17125 | elif test "x$target" = "x$host"; then |
17126 | # We can use an host tool | |
17127 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17129 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17130 | else |
17131 | # We need a cross tool | |
5213506e RW |
17132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17133 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17134 | fi |
17135 | fi | |
0b0dc272 | 17136 | |
10abab41 IS |
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17138 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17139 | if test "x${build}" != "x${host}" ; then | |
17140 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17141 | # We already found the complete path | |
17142 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17144 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17145 | else | |
17146 | # Canadian cross, just use what we found | |
17147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17148 | $as_echo "pre-installed" >&6; } | |
17149 | fi | |
17150 | else | |
17151 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17152 | # We already found the complete path | |
17153 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17155 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17156 | elif test "x$target" = "x$host"; then | |
17157 | # We can use an host tool | |
17158 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17160 | $as_echo "host tool" >&6; } | |
17161 | else | |
17162 | # We need a cross tool | |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17164 | $as_echo "pre-installed" >&6; } | |
17165 | fi | |
17166 | fi | |
17167 | ||
5213506e RW |
17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17169 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 17170 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17171 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17172 | # We already found the complete path | |
172e41aa | 17173 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17175 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17176 | else |
17177 | # Canadian cross, just use what we found | |
5213506e RW |
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17179 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17180 | fi |
2abefe3d PB |
17181 | else |
17182 | ok=yes | |
17183 | case " ${configdirs} " in | |
17184 | *" gcc "*) ;; | |
17185 | *) ok=no ;; | |
17186 | esac | |
1c710c3c | 17187 | |
2abefe3d PB |
17188 | if test $ok = yes; then |
17189 | # An in-tree tool is available and we can use it | |
17190 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17192 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17193 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17194 | # We already found the complete path | |
172e41aa | 17195 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17197 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17198 | elif test "x$target" = "x$host"; then |
17199 | # We can use an host tool | |
17200 | GCC_FOR_TARGET='$()' | |
5213506e RW |
17201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17202 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17203 | else |
17204 | # We need a cross tool | |
5213506e RW |
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17206 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17207 | fi |
17208 | fi | |
0b0dc272 | 17209 | |
5213506e RW |
17210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17211 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 17212 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17213 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17214 | # We already found the complete path | |
172e41aa | 17215 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17217 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17218 | else |
17219 | # Canadian cross, just use what we found | |
5213506e RW |
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17221 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17222 | fi |
2abefe3d PB |
17223 | else |
17224 | ok=yes | |
17225 | case " ${configdirs} " in | |
17226 | *" gcc "*) ;; | |
17227 | *) ok=no ;; | |
17228 | esac | |
17229 | case ,${enable_languages}, in | |
17230 | *,fortran,*) ;; | |
17231 | *) ok=no ;; | |
17232 | esac | |
17233 | if test $ok = yes; then | |
17234 | # An in-tree tool is available and we can use it | |
17235 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17237 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17238 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17239 | # We already found the complete path | |
172e41aa | 17240 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17242 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17243 | elif test "x$target" = "x$host"; then |
17244 | # We can use an host tool | |
17245 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17247 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17248 | else |
17249 | # We need a cross tool | |
5213506e RW |
17250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17251 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17252 | fi |
17253 | fi | |
0b0dc272 | 17254 | |
632e2a07 ILT |
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17256 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17257 | if test "x${build}" != "x${host}" ; then | |
17258 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17259 | # We already found the complete path | |
17260 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17262 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17263 | else | |
17264 | # Canadian cross, just use what we found | |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17266 | $as_echo "pre-installed" >&6; } | |
17267 | fi | |
17268 | else | |
17269 | ok=yes | |
17270 | case " ${configdirs} " in | |
17271 | *" gcc "*) ;; | |
17272 | *) ok=no ;; | |
17273 | esac | |
17274 | case ,${enable_languages}, in | |
17275 | *,go,*) ;; | |
17276 | *) ok=no ;; | |
17277 | esac | |
17278 | if test $ok = yes; then | |
17279 | # An in-tree tool is available and we can use it | |
17280 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17282 | $as_echo "just compiled" >&6; } | |
17283 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17284 | # We already found the complete path | |
17285 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17287 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17288 | elif test "x$target" = "x$host"; then | |
17289 | # We can use an host tool | |
17290 | GOC_FOR_TARGET='$(GOC)' | |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17292 | $as_echo "host tool" >&6; } | |
17293 | else | |
17294 | # We need a cross tool | |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17296 | $as_echo "pre-installed" >&6; } | |
17297 | fi | |
17298 | fi | |
17299 | ||
b4c522fa IB |
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17301 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17302 | if test "x${build}" != "x${host}" ; then | |
17303 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17304 | # We already found the complete path | |
17305 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17307 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17308 | else | |
17309 | # Canadian cross, just use what we found | |
17310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17311 | $as_echo "pre-installed" >&6; } | |
17312 | fi | |
17313 | else | |
17314 | ok=yes | |
17315 | case " ${configdirs} " in | |
17316 | *" gcc "*) ;; | |
17317 | *) ok=no ;; | |
17318 | esac | |
17319 | case ,${enable_languages}, in | |
17320 | *,d,*) ;; | |
17321 | *) ok=no ;; | |
17322 | esac | |
17323 | if test $ok = yes; then | |
17324 | # An in-tree tool is available and we can use it | |
17325 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17327 | $as_echo "just compiled" >&6; } | |
17328 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17329 | # We already found the complete path | |
17330 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17332 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17333 | elif test "x$target" = "x$host"; then | |
17334 | # We can use an host tool | |
17335 | GDC_FOR_TARGET='$(GDC)' | |
17336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17337 | $as_echo "host tool" >&6; } | |
17338 | else | |
17339 | # We need a cross tool | |
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17341 | $as_echo "pre-installed" >&6; } | |
17342 | fi | |
17343 | fi | |
17344 | ||
5213506e RW |
17345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17346 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 17347 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17348 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17349 | # We already found the complete path | |
172e41aa | 17350 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17352 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17353 | else |
17354 | # Canadian cross, just use what we found | |
5213506e RW |
17355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17356 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17357 | fi |
2abefe3d PB |
17358 | else |
17359 | ok=yes | |
17360 | case " ${configdirs} " in | |
17361 | *" ld "*) ;; | |
17362 | *) ok=no ;; | |
17363 | esac | |
1c710c3c | 17364 | |
2abefe3d PB |
17365 | if test $ok = yes; then |
17366 | # An in-tree tool is available and we can use it | |
17367 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
17368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17369 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17370 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17371 | # We already found the complete path | |
172e41aa | 17372 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17374 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17375 | elif test "x$target" = "x$host"; then |
17376 | # We can use an host tool | |
17377 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
17378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17379 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17380 | else |
17381 | # We need a cross tool | |
5213506e RW |
17382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17383 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17384 | fi |
17385 | fi | |
0b0dc272 | 17386 | |
5213506e RW |
17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
17388 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 17389 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17390 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17391 | # We already found the complete path | |
172e41aa | 17392 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17394 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17395 | else |
17396 | # Canadian cross, just use what we found | |
5213506e RW |
17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17398 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17399 | fi |
2abefe3d | 17400 | else |
e8b05380 PB |
17401 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
17402 | # We already found the complete path | |
172e41aa | 17403 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
17404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17405 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 17406 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
17407 | # We can use an host tool |
17408 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17410 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17411 | else |
17412 | # We need a cross tool | |
5213506e RW |
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17414 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17415 | fi |
17416 | fi | |
0b0dc272 | 17417 | |
5213506e RW |
17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
17419 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 17420 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17421 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17422 | # We already found the complete path | |
172e41aa | 17423 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17425 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17426 | else |
17427 | # Canadian cross, just use what we found | |
5213506e RW |
17428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17429 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17430 | fi |
2abefe3d PB |
17431 | else |
17432 | ok=yes | |
17433 | case " ${configdirs} " in | |
17434 | *" binutils "*) ;; | |
17435 | *) ok=no ;; | |
17436 | esac | |
1c710c3c | 17437 | |
2abefe3d PB |
17438 | if test $ok = yes; then |
17439 | # An in-tree tool is available and we can use it | |
17440 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
17441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17442 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17443 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
17444 | # We already found the complete path | |
172e41aa | 17445 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
17446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17447 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17448 | elif test "x$target" = "x$host"; then |
17449 | # We can use an host tool | |
17450 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17452 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17453 | else |
17454 | # We need a cross tool | |
5213506e RW |
17455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17456 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17457 | fi |
17458 | fi | |
0b0dc272 | 17459 | |
9bccfdf5 AP |
17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
17461 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
17462 | if test "x${build}" != "x${host}" ; then | |
17463 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17464 | # We already found the complete path | |
17465 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17468 | else | |
17469 | # Canadian cross, just use what we found | |
17470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17471 | $as_echo "pre-installed" >&6; } | |
17472 | fi | |
17473 | else | |
17474 | ok=yes | |
17475 | case " ${configdirs} " in | |
17476 | *" binutils "*) ;; | |
17477 | *) ok=no ;; | |
17478 | esac | |
17479 | ||
17480 | if test $ok = yes; then | |
17481 | # An in-tree tool is available and we can use it | |
17482 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17484 | $as_echo "just compiled" >&6; } | |
17485 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
17486 | # We already found the complete path | |
17487 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
17488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17489 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17490 | elif test "x$target" = "x$host"; then | |
17491 | # We can use an host tool | |
ec8fd1c0 | 17492 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17494 | $as_echo "host tool" >&6; } | |
17495 | else | |
17496 | # We need a cross tool | |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17498 | $as_echo "pre-installed" >&6; } | |
17499 | fi | |
17500 | fi | |
17501 | ||
5213506e RW |
17502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
17503 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 17504 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17505 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17506 | # We already found the complete path | |
172e41aa | 17507 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17509 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17510 | else |
17511 | # Canadian cross, just use what we found | |
5213506e RW |
17512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17513 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17514 | fi |
2abefe3d PB |
17515 | else |
17516 | ok=yes | |
17517 | case " ${configdirs} " in | |
17518 | *" binutils "*) ;; | |
17519 | *) ok=no ;; | |
17520 | esac | |
1c710c3c | 17521 | |
2abefe3d PB |
17522 | if test $ok = yes; then |
17523 | # An in-tree tool is available and we can use it | |
17524 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17526 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17527 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
17528 | # We already found the complete path | |
172e41aa | 17529 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17531 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17532 | elif test "x$target" = "x$host"; then |
17533 | # We can use an host tool | |
17534 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17536 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17537 | else |
17538 | # We need a cross tool | |
5213506e RW |
17539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17540 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17541 | fi |
17542 | fi | |
0b0dc272 | 17543 | |
e4a9a572 IS |
17544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
17545 | $as_echo_n "checking where to find the target otool... " >&6; } | |
17546 | if test "x${build}" != "x${host}" ; then | |
17547 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17548 | # We already found the complete path | |
17549 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17551 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17552 | else | |
17553 | # Canadian cross, just use what we found | |
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17555 | $as_echo "pre-installed" >&6; } | |
17556 | fi | |
17557 | else | |
17558 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
17559 | # We already found the complete path | |
17560 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
17561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17562 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17563 | elif test "x$target" = "x$host"; then | |
17564 | # We can use an host tool | |
17565 | OTOOL_FOR_TARGET='$(OTOOL)' | |
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17567 | $as_echo "host tool" >&6; } | |
17568 | else | |
17569 | # We need a cross tool | |
17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17571 | $as_echo "pre-installed" >&6; } | |
17572 | fi | |
17573 | fi | |
17574 | ||
5213506e RW |
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
17576 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 17577 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17578 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17579 | # We already found the complete path | |
172e41aa | 17580 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17582 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17583 | else |
17584 | # Canadian cross, just use what we found | |
5213506e RW |
17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17586 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17587 | fi |
2abefe3d PB |
17588 | else |
17589 | ok=yes | |
17590 | case " ${configdirs} " in | |
17591 | *" binutils "*) ;; | |
17592 | *) ok=no ;; | |
17593 | esac | |
1c710c3c | 17594 | |
2abefe3d PB |
17595 | if test $ok = yes; then |
17596 | # An in-tree tool is available and we can use it | |
17597 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
17598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17599 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17600 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
17601 | # We already found the complete path | |
172e41aa | 17602 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17604 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17605 | elif test "x$target" = "x$host"; then |
17606 | # We can use an host tool | |
17607 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
17608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17609 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17610 | else |
17611 | # We need a cross tool | |
5213506e RW |
17612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17613 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17614 | fi |
17615 | fi | |
0b0dc272 | 17616 | |
e7a82751 RM |
17617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
17618 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
17619 | if test "x${build}" != "x${host}" ; then | |
17620 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17621 | # We already found the complete path | |
17622 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17624 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17625 | else | |
17626 | # Canadian cross, just use what we found | |
17627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17628 | $as_echo "pre-installed" >&6; } | |
17629 | fi | |
17630 | else | |
17631 | ok=yes | |
17632 | case " ${configdirs} " in | |
17633 | *" binutils "*) ;; | |
17634 | *) ok=no ;; | |
17635 | esac | |
17636 | ||
17637 | if test $ok = yes; then | |
17638 | # An in-tree tool is available and we can use it | |
17639 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
17640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17641 | $as_echo "just compiled" >&6; } | |
17642 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
17643 | # We already found the complete path | |
17644 | ac_dir=`dirname $READELF_FOR_TARGET` | |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17646 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17647 | elif test "x$target" = "x$host"; then | |
17648 | # We can use an host tool | |
17649 | READELF_FOR_TARGET='$(READELF)' | |
17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17651 | $as_echo "host tool" >&6; } | |
17652 | else | |
17653 | # We need a cross tool | |
17654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17655 | $as_echo "pre-installed" >&6; } | |
17656 | fi | |
17657 | fi | |
17658 | ||
5213506e RW |
17659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
17660 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 17661 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17662 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
17663 | # We already found the complete path | |
172e41aa | 17664 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
17665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17666 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17667 | else |
17668 | # Canadian cross, just use what we found | |
5213506e RW |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17670 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17671 | fi |
2abefe3d PB |
17672 | else |
17673 | ok=yes | |
17674 | case " ${configdirs} " in | |
17675 | *" binutils "*) ;; | |
17676 | *) ok=no ;; | |
17677 | esac | |
1c710c3c | 17678 | |
2abefe3d PB |
17679 | if test $ok = yes; then |
17680 | # An in-tree tool is available and we can use it | |
455c8f48 | 17681 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
17682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17683 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17684 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
17685 | # We already found the complete path | |
172e41aa | 17686 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17688 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17689 | elif test "x$target" = "x$host"; then |
17690 | # We can use an host tool | |
17691 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17693 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17694 | else |
17695 | # We need a cross tool | |
5213506e RW |
17696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17697 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17698 | fi |
17699 | fi | |
0b0dc272 | 17700 | |
5213506e RW |
17701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
17702 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 17703 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17704 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
17705 | # We already found the complete path | |
172e41aa | 17706 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
17707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17708 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17709 | else |
17710 | # Canadian cross, just use what we found | |
5213506e RW |
17711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17712 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17713 | fi |
2abefe3d PB |
17714 | else |
17715 | ok=yes | |
17716 | case " ${configdirs} " in | |
17717 | *" binutils "*) ;; | |
17718 | *) ok=no ;; | |
17719 | esac | |
1c710c3c | 17720 | |
2abefe3d PB |
17721 | if test $ok = yes; then |
17722 | # An in-tree tool is available and we can use it | |
17723 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
17724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17725 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17726 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
17727 | # We already found the complete path | |
172e41aa | 17728 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
17729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17730 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17731 | elif test "x$target" = "x$host"; then |
17732 | # We can use an host tool | |
17733 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
17734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17735 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17736 | else |
17737 | # We need a cross tool | |
5213506e RW |
17738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17739 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 17740 | fi |
671aa708 | 17741 | fi |
be912515 | 17742 | |
5213506e RW |
17743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
17744 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
17745 | if test "x${build}" != "x${host}" ; then |
17746 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
17747 | # We already found the complete path | |
17748 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
17749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17750 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
17751 | else |
17752 | # Canadian cross, just use what we found | |
5213506e RW |
17753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17754 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
17755 | fi |
17756 | else | |
17757 | ok=yes | |
17758 | case " ${configdirs} " in | |
17759 | *" binutils "*) ;; | |
17760 | *) ok=no ;; | |
17761 | esac | |
17762 | ||
17763 | if test $ok = yes; then | |
17764 | # An in-tree tool is available and we can use it | |
17765 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17767 | $as_echo "just compiled" >&6; } | |
901119ae KT |
17768 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
17769 | # We already found the complete path | |
17770 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
17771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17772 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
17773 | elif test "x$target" = "x$host"; then |
17774 | # We can use an host tool | |
17775 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
17776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17777 | $as_echo "host tool" >&6; } | |
901119ae KT |
17778 | else |
17779 | # We need a cross tool | |
5213506e RW |
17780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17781 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
17782 | fi |
17783 | fi | |
17784 | ||
be912515 NN |
17785 | |
17786 | ||
2abefe3d | 17787 | |
0b0dc272 | 17788 | |
671aa708 NN |
17789 | # Certain tools may need extra flags. |
17790 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
17791 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
17792 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
17793 | ||
2abefe3d PB |
17794 | # When building target libraries, except in a Canadian cross, we use |
17795 | # the same toolchain as the compiler we just built. | |
17796 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
17797 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
17798 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
17799 | if test $host = $build; then | |
17800 | case " $configdirs " in | |
17801 | *" gcc "*) | |
17802 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
17803 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
17804 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
17805 | ;; | |
17806 | esac | |
17807 | fi | |
17808 | ||
17809 | ||
17810 | ||
17811 | ||
17812 | ||
5213506e RW |
17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
17814 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
17815 | # Check whether --enable-maintainer-mode was given. | |
17816 | if test "${enable_maintainer_mode+set}" = set; then : | |
17817 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
17818 | else |
17819 | USE_MAINTAINER_MODE=no | |
5213506e RW |
17820 | fi |
17821 | ||
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
17823 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
17824 | |
17825 | ||
17826 | if test "$USE_MAINTAINER_MODE" = yes; then | |
17827 | MAINTAINER_MODE_TRUE= | |
17828 | MAINTAINER_MODE_FALSE='#' | |
17829 | else | |
17830 | MAINTAINER_MODE_TRUE='#' | |
17831 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 17832 | fi |
ee03dc5e AO |
17833 | MAINT=$MAINTAINER_MODE_TRUE |
17834 | ||
2805b53a NN |
17835 | # --------------------- |
17836 | # GCC bootstrap support | |
17837 | # --------------------- | |
17838 | ||
17839 | # Stage specific cflags for build. | |
17840 | stage1_cflags="-g" | |
17841 | case $build in | |
17842 | vax-*-*) | |
17843 | case ${GCC} in | |
17844 | yes) stage1_cflags="-g -Wa,-J" ;; | |
17845 | *) stage1_cflags="-g -J" ;; | |
17846 | esac ;; | |
2805b53a NN |
17847 | esac |
17848 | ||
0b50988a | 17849 | |
2805b53a | 17850 | |
8efea775 | 17851 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
17852 | # Check whether --enable-stage1-checking was given. |
17853 | if test "${enable_stage1_checking+set}" = set; then : | |
17854 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 17855 | else |
e643dc23 | 17856 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
17857 | # For --disable-checking or implicit --enable-checking=release, avoid |
17858 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
17859 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
17860 | case $BUILD_CONFIG in |
17861 | *lto*) | |
7db11a5a JJ |
17862 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
17863 | *) | |
17864 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 17865 | esac |
7db11a5a JJ |
17866 | if test "x$enable_checking" = x && \ |
17867 | test -d ${srcdir}/gcc && \ | |
17868 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 17869 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 17870 | fi |
8efea775 | 17871 | else |
e643dc23 | 17872 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 17873 | fi |
5213506e | 17874 | fi |
8efea775 PB |
17875 | |
17876 | ||
2aeb72e9 | 17877 | |
5213506e RW |
17878 | # Enable -Werror in bootstrap stage2 and later. |
17879 | # Check whether --enable-werror was given. | |
17880 | if test "${enable_werror+set}" = set; then : | |
17881 | enableval=$enable_werror; | |
09a9c095 NN |
17882 | case ${enable_werror} in |
17883 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
17884 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
17885 | esac |
17886 | ||
afd88efc ML |
17887 | else |
17888 | ||
01c712cb ML |
17889 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
17890 | case $BUILD_CONFIG in | |
17891 | bootstrap-debug) | |
17892 | stage2_werror_flag="--enable-werror-always" ;; | |
17893 | "") | |
17894 | stage2_werror_flag="--enable-werror-always" ;; | |
17895 | esac | |
17896 | fi | |
17897 | ||
afd88efc ML |
17898 | fi |
17899 | ||
17900 | ||
01c712cb | 17901 | |
2805b53a | 17902 | |
f2689b09 SE |
17903 | # Specify what files to not compare during bootstrap. |
17904 | ||
17905 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
17906 | case "$target" in | |
17907 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
17908 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
17909 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
17910 | esac |
17911 | ||
17912 | ||
5213506e RW |
17913 | ac_config_files="$ac_config_files Makefile" |
17914 | ||
1c710c3c | 17915 | cat >confcache <<\_ACEOF |
671aa708 NN |
17916 | # This file is a shell script that caches the results of configure |
17917 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
17918 | # scripts and configure runs, see configure's option --config-cache. |
17919 | # It is not useful on other systems. If it contains results you don't | |
17920 | # want to keep, you may remove or edit it. | |
671aa708 | 17921 | # |
1c710c3c DJ |
17922 | # config.status only pays attention to the cache file if you give it |
17923 | # the --recheck option to rerun configure. | |
671aa708 | 17924 | # |
1c710c3c DJ |
17925 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17926 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17927 | # following values. | |
17928 | ||
17929 | _ACEOF | |
17930 | ||
671aa708 NN |
17931 | # The following way of writing the cache mishandles newlines in values, |
17932 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 17933 | # So, we kill variables containing newlines. |
671aa708 NN |
17934 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17935 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
17936 | ( |
17937 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17938 | eval ac_val=\$$ac_var | |
17939 | case $ac_val in #( | |
17940 | *${as_nl}*) | |
17941 | case $ac_var in #( | |
17942 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17943 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17944 | esac | |
17945 | case $ac_var in #( | |
17946 | _ | IFS | as_nl) ;; #( | |
17947 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17948 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17949 | esac ;; | |
17950 | esac | |
17951 | done | |
17952 | ||
1c710c3c | 17953 | (set) 2>&1 | |
5213506e RW |
17954 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17955 | *${as_nl}ac_space=\ *) | |
17956 | # `set' does not quote correctly, so add quotes: double-quote | |
17957 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
17958 | sed -n \ |
17959 | "s/'/'\\\\''/g; | |
17960 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 17961 | ;; #( |
1c710c3c DJ |
17962 | *) |
17963 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 17964 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 17965 | ;; |
5213506e RW |
17966 | esac | |
17967 | sort | |
17968 | ) | | |
1c710c3c | 17969 | sed ' |
5213506e | 17970 | /^ac_cv_env_/b end |
1c710c3c | 17971 | t clear |
5213506e | 17972 | :clear |
1c710c3c DJ |
17973 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17974 | t end | |
5213506e RW |
17975 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17976 | :end' >>confcache | |
17977 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17978 | if test -w "$cache_file"; then | |
22e05272 | 17979 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
17980 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17981 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17982 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17983 | cat confcache >"$cache_file" | |
17984 | else | |
17985 | case $cache_file in #( | |
17986 | */* | ?:*) | |
17987 | mv -f confcache "$cache_file"$$ && | |
17988 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17989 | *) | |
17990 | mv -f confcache "$cache_file" ;; | |
17991 | esac | |
17992 | fi | |
17993 | fi | |
671aa708 | 17994 | else |
5213506e RW |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17996 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 17997 | fi |
4977bab6 | 17998 | fi |
671aa708 | 17999 | rm -f confcache |
79c06341 | 18000 | |
671aa708 NN |
18001 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18002 | # Let make expand exec_prefix. | |
18003 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18004 | |
671aa708 NN |
18005 | # Transform confdefs.h into DEFS. |
18006 | # Protect against shell expansion while executing Makefile rules. | |
18007 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18008 | # |
18009 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18010 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18011 | # look for a macro that doesn't take arguments. |
5213506e RW |
18012 | ac_script=' |
18013 | :mline | |
18014 | /\\$/{ | |
18015 | N | |
18016 | s,\\\n,, | |
18017 | b mline | |
18018 | } | |
1c710c3c | 18019 | t clear |
5213506e RW |
18020 | :clear |
18021 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18022 | t quote |
5213506e | 18023 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18024 | t quote |
5213506e RW |
18025 | b any |
18026 | :quote | |
18027 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18028 | s/\[/\\&/g | |
18029 | s/\]/\\&/g | |
18030 | s/\$/$$/g | |
18031 | H | |
18032 | :any | |
18033 | ${ | |
18034 | g | |
18035 | s/^\n// | |
18036 | s/\n/ /g | |
18037 | p | |
18038 | } | |
18039 | ' | |
18040 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18041 | |
18042 | ||
18043 | ac_libobjs= | |
18044 | ac_ltlibobjs= | |
22e05272 | 18045 | U= |
1c710c3c DJ |
18046 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18047 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18048 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18049 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18050 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18051 | # will be set to the directory where LIBOBJS objects are built. | |
18052 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18053 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18054 | done |
18055 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18056 | |
1c710c3c | 18057 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18058 | |
af71363e | 18059 | |
1c710c3c | 18060 | |
22e05272 | 18061 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18062 | ac_write_fail=0 |
1c710c3c DJ |
18063 | ac_clean_files_save=$ac_clean_files |
18064 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18066 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18067 | as_write_fail=0 | |
18068 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18069 | #! $SHELL |
18070 | # Generated by $as_me. | |
671aa708 | 18071 | # Run this file to recreate the current configuration. |
671aa708 | 18072 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18073 | # configure, is in config.log if it exists. |
0b0dc272 | 18074 | |
1c710c3c DJ |
18075 | debug=false |
18076 | ac_cs_recheck=false | |
18077 | ac_cs_silent=false | |
1c710c3c | 18078 | |
5213506e RW |
18079 | SHELL=\${CONFIG_SHELL-$SHELL} |
18080 | export SHELL | |
18081 | _ASEOF | |
18082 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18083 | ## -------------------- ## | |
18084 | ## M4sh Initialization. ## | |
18085 | ## -------------------- ## | |
18086 | ||
18087 | # Be more Bourne compatible | |
18088 | DUALCASE=1; export DUALCASE # for MKS sh | |
18089 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18090 | emulate sh |
18091 | NULLCMD=: | |
5213506e | 18092 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
18093 | # is contrary to our usage. Disable this feature. |
18094 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
18095 | setopt NO_GLOB_SUBST |
18096 | else | |
18097 | case `(set -o) 2>/dev/null` in #( | |
18098 | *posix*) : | |
18099 | set -o posix ;; #( | |
18100 | *) : | |
18101 | ;; | |
18102 | esac | |
1c710c3c | 18103 | fi |
1c710c3c | 18104 | |
5213506e RW |
18105 | |
18106 | as_nl=' | |
18107 | ' | |
18108 | export as_nl | |
18109 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18110 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18111 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18112 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18113 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18114 | # but without wasting forks for bash or zsh. | |
18115 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18116 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18117 | as_echo='print -r --' | |
18118 | as_echo_n='print -rn --' | |
18119 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18120 | as_echo='printf %s\n' | |
18121 | as_echo_n='printf %s' | |
18122 | else | |
18123 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18124 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18125 | as_echo_n='/usr/ucb/echo -n' | |
18126 | else | |
18127 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18128 | as_echo_n_body='eval | |
18129 | arg=$1; | |
18130 | case $arg in #( | |
18131 | *"$as_nl"*) | |
18132 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18133 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18134 | esac; | |
18135 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18136 | ' | |
18137 | export as_echo_n_body | |
18138 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18139 | fi | |
18140 | export as_echo_body | |
18141 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
18142 | fi |
18143 | ||
5213506e RW |
18144 | # The user is always right. |
18145 | if test "${PATH_SEPARATOR+set}" != set; then | |
18146 | PATH_SEPARATOR=: | |
18147 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18148 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18149 | PATH_SEPARATOR=';' | |
18150 | } | |
18151 | fi | |
18152 | ||
18153 | ||
18154 | # IFS | |
18155 | # We need space, tab and new line, in precisely that order. Quoting is | |
18156 | # there to prevent editors from complaining about space-tab. | |
18157 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18158 | # splitting by setting IFS to empty value.) | |
18159 | IFS=" "" $as_nl" | |
18160 | ||
18161 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 18162 | as_myself= |
5213506e RW |
18163 | case $0 in #(( |
18164 | *[\\/]* ) as_myself=$0 ;; | |
18165 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18166 | for as_dir in $PATH | |
18167 | do | |
18168 | IFS=$as_save_IFS | |
18169 | test -z "$as_dir" && as_dir=. | |
18170 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18171 | done | |
18172 | IFS=$as_save_IFS | |
18173 | ||
18174 | ;; | |
18175 | esac | |
18176 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18177 | # in which case we are not to be found in the path. | |
18178 | if test "x$as_myself" = x; then | |
18179 | as_myself=$0 | |
18180 | fi | |
18181 | if test ! -f "$as_myself"; then | |
18182 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18183 | exit 1 | |
18184 | fi | |
1c710c3c | 18185 | |
5213506e RW |
18186 | # Unset variables that we do not need and which cause bugs (e.g. in |
18187 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18188 | # suppresses any "Segmentation fault" message there. '((' could | |
18189 | # trigger a bug in pdksh 5.2.14. | |
18190 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18191 | do eval test x\${$as_var+set} = xset \ | |
18192 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18193 | done | |
1c710c3c DJ |
18194 | PS1='$ ' |
18195 | PS2='> ' | |
18196 | PS4='+ ' | |
18197 | ||
18198 | # NLS nuisances. | |
5213506e RW |
18199 | LC_ALL=C |
18200 | export LC_ALL | |
18201 | LANGUAGE=C | |
18202 | export LANGUAGE | |
18203 | ||
18204 | # CDPATH. | |
18205 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18206 | ||
18207 | ||
22e05272 JM |
18208 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18209 | # ---------------------------------------- | |
5213506e RW |
18210 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18211 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 18212 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
18213 | as_fn_error () |
18214 | { | |
22e05272 JM |
18215 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18216 | if test "$4"; then | |
18217 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18218 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 18219 | fi |
22e05272 | 18220 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
18221 | as_fn_exit $as_status |
18222 | } # as_fn_error | |
18223 | ||
18224 | ||
18225 | # as_fn_set_status STATUS | |
18226 | # ----------------------- | |
18227 | # Set $? to STATUS, without forking. | |
18228 | as_fn_set_status () | |
18229 | { | |
18230 | return $1 | |
18231 | } # as_fn_set_status | |
18232 | ||
18233 | # as_fn_exit STATUS | |
18234 | # ----------------- | |
18235 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18236 | as_fn_exit () | |
18237 | { | |
18238 | set +e | |
18239 | as_fn_set_status $1 | |
18240 | exit $1 | |
18241 | } # as_fn_exit | |
18242 | ||
18243 | # as_fn_unset VAR | |
18244 | # --------------- | |
18245 | # Portably unset VAR. | |
18246 | as_fn_unset () | |
18247 | { | |
18248 | { eval $1=; unset $1;} | |
18249 | } | |
18250 | as_unset=as_fn_unset | |
18251 | # as_fn_append VAR VALUE | |
18252 | # ---------------------- | |
18253 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18254 | # advantage of any shell optimizations that allow amortized linear growth over | |
18255 | # repeated appends, instead of the typical quadratic growth present in naive | |
18256 | # implementations. | |
18257 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18258 | eval 'as_fn_append () | |
18259 | { | |
18260 | eval $1+=\$2 | |
18261 | }' | |
18262 | else | |
18263 | as_fn_append () | |
18264 | { | |
18265 | eval $1=\$$1\$2 | |
18266 | } | |
18267 | fi # as_fn_append | |
18268 | ||
18269 | # as_fn_arith ARG... | |
18270 | # ------------------ | |
18271 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18272 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18273 | # must be portable across $(()) and expr. | |
18274 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18275 | eval 'as_fn_arith () | |
18276 | { | |
18277 | as_val=$(( $* )) | |
18278 | }' | |
18279 | else | |
18280 | as_fn_arith () | |
18281 | { | |
18282 | as_val=`expr "$@" || test $? -eq 1` | |
18283 | } | |
18284 | fi # as_fn_arith | |
18285 | ||
1c710c3c | 18286 | |
5213506e RW |
18287 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18288 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
18289 | as_expr=expr |
18290 | else | |
18291 | as_expr=false | |
18292 | fi | |
18293 | ||
5213506e | 18294 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
18295 | as_basename=basename |
18296 | else | |
18297 | as_basename=false | |
18298 | fi | |
18299 | ||
5213506e RW |
18300 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18301 | as_dirname=dirname | |
18302 | else | |
18303 | as_dirname=false | |
18304 | fi | |
1c710c3c | 18305 | |
5213506e | 18306 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
18307 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18308 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
18309 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18310 | $as_echo X/"$0" | | |
18311 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18312 | s//\1/ | |
18313 | q | |
18314 | } | |
18315 | /^X\/\(\/\/\)$/{ | |
18316 | s//\1/ | |
18317 | q | |
18318 | } | |
18319 | /^X\/\(\/\).*/{ | |
18320 | s//\1/ | |
18321 | q | |
18322 | } | |
18323 | s/.*/./; q'` | |
2aeb72e9 | 18324 | |
2aeb72e9 DD |
18325 | # Avoid depending upon Character Ranges. |
18326 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18327 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18328 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18329 | as_cr_digits='0123456789' | |
18330 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18331 | ||
5213506e RW |
18332 | ECHO_C= ECHO_N= ECHO_T= |
18333 | case `echo -n x` in #((((( | |
18334 | -n*) | |
18335 | case `echo 'xy\c'` in | |
18336 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18337 | xy) ECHO_C='\c';; | |
18338 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18339 | ECHO_T=' ';; | |
18340 | esac;; | |
18341 | *) | |
18342 | ECHO_N='-n';; | |
1c710c3c DJ |
18343 | esac |
18344 | ||
5213506e RW |
18345 | rm -f conf$$ conf$$.exe conf$$.file |
18346 | if test -d conf$$.dir; then | |
18347 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 18348 | else |
5213506e RW |
18349 | rm -f conf$$.dir |
18350 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 18351 | fi |
5213506e RW |
18352 | if (echo >conf$$.file) 2>/dev/null; then |
18353 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 18354 | as_ln_s='ln -s' |
5213506e RW |
18355 | # ... but there are two gotchas: |
18356 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18357 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 18358 | # In both cases, we have to default to `cp -pR'. |
5213506e | 18359 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 18360 | as_ln_s='cp -pR' |
5213506e RW |
18361 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18362 | as_ln_s=ln | |
18363 | else | |
22e05272 | 18364 | as_ln_s='cp -pR' |
2aeb72e9 | 18365 | fi |
1c710c3c | 18366 | else |
22e05272 | 18367 | as_ln_s='cp -pR' |
1c710c3c | 18368 | fi |
5213506e RW |
18369 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18370 | rmdir conf$$.dir 2>/dev/null | |
18371 | ||
18372 | ||
18373 | # as_fn_mkdir_p | |
18374 | # ------------- | |
18375 | # Create "$as_dir" as a directory, including parents if necessary. | |
18376 | as_fn_mkdir_p () | |
18377 | { | |
18378 | ||
18379 | case $as_dir in #( | |
18380 | -*) as_dir=./$as_dir;; | |
18381 | esac | |
18382 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18383 | as_dirs= | |
18384 | while :; do | |
18385 | case $as_dir in #( | |
18386 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18387 | *) as_qdir=$as_dir;; | |
18388 | esac | |
18389 | as_dirs="'$as_qdir' $as_dirs" | |
18390 | as_dir=`$as_dirname -- "$as_dir" || | |
18391 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18392 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18393 | X"$as_dir" : 'X\(//\)$' \| \ | |
18394 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18395 | $as_echo X"$as_dir" | | |
18396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18397 | s//\1/ | |
18398 | q | |
18399 | } | |
18400 | /^X\(\/\/\)[^/].*/{ | |
18401 | s//\1/ | |
18402 | q | |
18403 | } | |
18404 | /^X\(\/\/\)$/{ | |
18405 | s//\1/ | |
18406 | q | |
18407 | } | |
18408 | /^X\(\/\).*/{ | |
18409 | s//\1/ | |
18410 | q | |
18411 | } | |
18412 | s/.*/./; q'` | |
18413 | test -d "$as_dir" && break | |
18414 | done | |
18415 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 18416 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 18417 | |
1c710c3c | 18418 | |
5213506e | 18419 | } # as_fn_mkdir_p |
1c710c3c | 18420 | if mkdir -p . 2>/dev/null; then |
5213506e | 18421 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
18422 | else |
18423 | test -d ./-p && rmdir ./-p | |
18424 | as_mkdir_p=false | |
18425 | fi | |
18426 | ||
22e05272 JM |
18427 | |
18428 | # as_fn_executable_p FILE | |
18429 | # ----------------------- | |
18430 | # Test if FILE is an executable regular file. | |
18431 | as_fn_executable_p () | |
18432 | { | |
18433 | test -f "$1" && test -x "$1" | |
18434 | } # as_fn_executable_p | |
18435 | as_test_x='test -x' | |
18436 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
18437 | |
18438 | # Sed expression to map a string onto a valid CPP name. | |
18439 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18440 | ||
18441 | # Sed expression to map a string onto a valid variable name. | |
18442 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18443 | ||
18444 | ||
1c710c3c | 18445 | exec 6>&1 |
5213506e RW |
18446 | ## ----------------------------------- ## |
18447 | ## Main body of $CONFIG_STATUS script. ## | |
18448 | ## ----------------------------------- ## | |
18449 | _ASEOF | |
18450 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18451 | ||
18452 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18453 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 18454 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
18455 | # values after options handling. |
18456 | ac_log=" | |
1c710c3c | 18457 | This file was extended by $as_me, which was |
22e05272 | 18458 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
18459 | |
18460 | CONFIG_FILES = $CONFIG_FILES | |
18461 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18462 | CONFIG_LINKS = $CONFIG_LINKS | |
18463 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18464 | $ $0 $@ | |
18465 | ||
5213506e RW |
18466 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18467 | " | |
18468 | ||
1c710c3c DJ |
18469 | _ACEOF |
18470 | ||
5213506e RW |
18471 | case $ac_config_files in *" |
18472 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18473 | esac | |
1c710c3c | 18474 | |
2aeb72e9 | 18475 | |
2aeb72e9 | 18476 | |
5213506e RW |
18477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18478 | # Files that config.status was made for. | |
18479 | config_files="$ac_config_files" | |
1c710c3c | 18480 | |
5213506e | 18481 | _ACEOF |
2aeb72e9 | 18482 | |
5213506e | 18483 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 18484 | ac_cs_usage="\ |
5213506e RW |
18485 | \`$as_me' instantiates files and other configuration actions |
18486 | from templates according to the current configuration. Unless the files | |
18487 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 18488 | |
5213506e | 18489 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
18490 | |
18491 | -h, --help print this help, then exit | |
5213506e | 18492 | -V, --version print version number and configuration settings, then exit |
22e05272 | 18493 | --config print configuration, then exit |
5213506e RW |
18494 | -q, --quiet, --silent |
18495 | do not print progress messages | |
1c710c3c DJ |
18496 | -d, --debug don't remove temporary files |
18497 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
18498 | --file=FILE[:TEMPLATE] |
18499 | instantiate the configuration file FILE | |
1c710c3c DJ |
18500 | |
18501 | Configuration files: | |
18502 | $config_files | |
18503 | ||
5213506e | 18504 | Report bugs to the package provider." |
2aeb72e9 | 18505 | |
5213506e RW |
18506 | _ACEOF |
18507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18508 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
18509 | ac_cs_version="\\ |
18510 | config.status | |
22e05272 JM |
18511 | configured by $0, generated by GNU Autoconf 2.69, |
18512 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 18513 | |
22e05272 | 18514 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
18515 | This config.status script is free software; the Free Software Foundation |
18516 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
18517 | |
18518 | ac_pwd='$ac_pwd' | |
18519 | srcdir='$srcdir' | |
18520 | INSTALL='$INSTALL' | |
87264276 | 18521 | AWK='$AWK' |
5213506e | 18522 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
18523 | _ACEOF |
18524 | ||
5213506e RW |
18525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18526 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
18527 | ac_need_defaults=: |
18528 | while test $# != 0 | |
a4b9e93e | 18529 | do |
1c710c3c | 18530 | case $1 in |
22e05272 | 18531 | --*=?*) |
5213506e RW |
18532 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18533 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
18534 | ac_shift=: |
18535 | ;; | |
22e05272 JM |
18536 | --*=) |
18537 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18538 | ac_optarg= | |
18539 | ac_shift=: | |
18540 | ;; | |
5213506e | 18541 | *) |
1c710c3c DJ |
18542 | ac_option=$1 |
18543 | ac_optarg=$2 | |
18544 | ac_shift=shift | |
18545 | ;; | |
1c710c3c DJ |
18546 | esac |
18547 | ||
18548 | case $ac_option in | |
18549 | # Handling of the options. | |
671aa708 | 18550 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 18551 | ac_cs_recheck=: ;; |
5213506e RW |
18552 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18553 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
18554 | --config | --confi | --conf | --con | --co | --c ) |
18555 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 18556 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
18557 | debug=: ;; |
18558 | --file | --fil | --fi | --f ) | |
18559 | $ac_shift | |
5213506e RW |
18560 | case $ac_optarg in |
18561 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 18562 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
18563 | esac |
18564 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 18565 | ac_need_defaults=false;; |
5213506e RW |
18566 | --he | --h | --help | --hel | -h ) |
18567 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
18568 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18569 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18570 | ac_cs_silent=: ;; | |
18571 | ||
18572 | # This is an error. | |
22e05272 | 18573 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 18574 | Try \`$0 --help' for more information." ;; |
1c710c3c | 18575 | |
5213506e RW |
18576 | *) as_fn_append ac_config_targets " $1" |
18577 | ac_need_defaults=false ;; | |
1c710c3c | 18578 | |
0b0dc272 | 18579 | esac |
1c710c3c | 18580 | shift |
0b0dc272 AM |
18581 | done |
18582 | ||
1c710c3c | 18583 | ac_configure_extra_args= |
0b0dc272 | 18584 | |
1c710c3c DJ |
18585 | if $ac_cs_silent; then |
18586 | exec 6>/dev/null | |
18587 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18588 | fi | |
0b0dc272 | 18589 | |
1c710c3c | 18590 | _ACEOF |
5213506e | 18591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 18592 | if \$ac_cs_recheck; then |
22e05272 | 18593 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
18594 | shift |
18595 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18596 | CONFIG_SHELL='$SHELL' | |
18597 | export CONFIG_SHELL | |
18598 | exec "\$@" | |
1c710c3c DJ |
18599 | fi |
18600 | ||
18601 | _ACEOF | |
5213506e RW |
18602 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18603 | exec 5>>config.log | |
18604 | { | |
18605 | echo | |
18606 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18607 | ## Running $as_me. ## | |
18608 | _ASBOX | |
18609 | $as_echo "$ac_log" | |
18610 | } >&5 | |
1c710c3c | 18611 | |
5213506e RW |
18612 | _ACEOF |
18613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
18614 | # |
18615 | # INIT-COMMANDS | |
18616 | # | |
18617 | extrasub_build="$extrasub_build" | |
18618 | extrasub_host="$extrasub_host" | |
18619 | extrasub_target="$extrasub_target" | |
18620 | ||
5213506e | 18621 | _ACEOF |
1c710c3c | 18622 | |
5213506e | 18623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 18624 | |
5213506e | 18625 | # Handling of arguments. |
1c710c3c DJ |
18626 | for ac_config_target in $ac_config_targets |
18627 | do | |
5213506e RW |
18628 | case $ac_config_target in |
18629 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18630 | ||
22e05272 | 18631 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
18632 | esac |
18633 | done | |
18634 | ||
5213506e | 18635 | |
1c710c3c DJ |
18636 | # If the user did not use the arguments to specify the items to instantiate, |
18637 | # then the envvar interface is used. Set only those that are not. | |
18638 | # We use the long form for the default assignment because of an extremely | |
18639 | # bizarre bug on SunOS 4.1.3. | |
18640 | if $ac_need_defaults; then | |
18641 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18642 | fi | |
18643 | ||
18644 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 18645 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 18646 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
18647 | # Hook for its removal unless debugging. |
18648 | # Note that there is a small window in which the directory will not be cleaned: | |
18649 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
18650 | $debug || |
18651 | { | |
22e05272 | 18652 | tmp= ac_tmp= |
5213506e | 18653 | trap 'exit_status=$? |
22e05272 JM |
18654 | : "${ac_tmp:=$tmp}" |
18655 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
18656 | ' 0 |
18657 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 18658 | } |
1c710c3c DJ |
18659 | # Create a (secure) tmp directory for tmp files. |
18660 | ||
18661 | { | |
5213506e | 18662 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 18663 | test -d "$tmp" |
1c710c3c DJ |
18664 | } || |
18665 | { | |
5213506e RW |
18666 | tmp=./conf$$-$RANDOM |
18667 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18668 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18669 | ac_tmp=$tmp | |
5213506e RW |
18670 | |
18671 | # Set up the scripts for CONFIG_FILES section. | |
18672 | # No need to generate them if there are no CONFIG_FILES. | |
18673 | # This happens for instance with `./config.status config.h'. | |
18674 | if test -n "$CONFIG_FILES"; then | |
18675 | ||
18676 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
18677 | ac_cs_awk_getline=: | |
18678 | ac_cs_awk_pipe_init= | |
18679 | ac_cs_awk_read_file=' | |
18680 | while ((getline aline < (F[key])) > 0) | |
18681 | print(aline) | |
18682 | close(F[key])' | |
18683 | ac_cs_awk_pipe_fini= | |
18684 | else | |
18685 | ac_cs_awk_getline=false | |
18686 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
18687 | ac_cs_awk_read_file=' | |
18688 | print "|#_!!_#|" | |
18689 | print "cat " F[key] " &&" | |
18690 | '$ac_cs_awk_pipe_init | |
18691 | # The final `:' finishes the AND list. | |
18692 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
18693 | fi | |
18694 | ac_cr=`echo X | tr X '\015'` | |
18695 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18696 | # But we know of no other shell where ac_cr would be empty at this | |
18697 | # point, so we can use a bashism as a fallback. | |
18698 | if test "x$ac_cr" = x; then | |
18699 | eval ac_cr=\$\'\\r\' | |
18700 | fi | |
18701 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18702 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 18703 | ac_cs_awk_cr='\\r' |
5213506e RW |
18704 | else |
18705 | ac_cs_awk_cr=$ac_cr | |
18706 | fi | |
18707 | ||
22e05272 | 18708 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
18709 | _ACEOF |
18710 | ||
18711 | # Create commands to substitute file output variables. | |
1c710c3c | 18712 | { |
5213506e | 18713 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 18714 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
18715 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
18716 | echo "_ACAWK" && | |
18717 | echo "_ACEOF" | |
18718 | } >conf$$files.sh && | |
18719 | . ./conf$$files.sh || | |
22e05272 | 18720 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 18721 | rm -f conf$$files.sh |
1c710c3c | 18722 | |
5213506e RW |
18723 | { |
18724 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18725 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18726 | echo "_ACEOF" | |
18727 | } >conf$$subs.sh || | |
22e05272 JM |
18728 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18729 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
18730 | ac_delim='%!_!# ' |
18731 | for ac_last_try in false false false false false :; do | |
18732 | . ./conf$$subs.sh || | |
22e05272 | 18733 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18734 | |
18735 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18736 | if test $ac_delim_n = $ac_delim_num; then | |
18737 | break | |
18738 | elif $ac_last_try; then | |
22e05272 | 18739 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
18740 | else |
18741 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18742 | fi | |
18743 | done | |
18744 | rm -f conf$$subs.sh | |
18745 | ||
18746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18747 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 18748 | _ACEOF |
5213506e RW |
18749 | sed -n ' |
18750 | h | |
18751 | s/^/S["/; s/!.*/"]=/ | |
18752 | p | |
18753 | g | |
18754 | s/^[^!]*!// | |
18755 | :repl | |
18756 | t repl | |
18757 | s/'"$ac_delim"'$// | |
18758 | t delim | |
18759 | :nl | |
18760 | h | |
22e05272 | 18761 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18762 | t more1 |
18763 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18764 | p | |
18765 | n | |
18766 | b repl | |
18767 | :more1 | |
18768 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18769 | p | |
18770 | g | |
18771 | s/.\{148\}// | |
18772 | t nl | |
18773 | :delim | |
18774 | h | |
22e05272 | 18775 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
18776 | t more2 |
18777 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18778 | p | |
18779 | b | |
18780 | :more2 | |
18781 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18782 | p | |
18783 | g | |
18784 | s/.\{148\}// | |
18785 | t delim | |
18786 | ' <conf$$subs.awk | sed ' | |
18787 | /^[^""]/{ | |
18788 | N | |
18789 | s/\n// | |
18790 | } | |
18791 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18792 | rm -f conf$$subs.awk | |
18793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18794 | _ACAWK | |
22e05272 | 18795 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
18796 | for (key in S) S_is_set[key] = 1 |
18797 | FS = "\a" | |
18798 | \$ac_cs_awk_pipe_init | |
18799 | } | |
18800 | { | |
18801 | line = $ 0 | |
18802 | nfields = split(line, field, "@") | |
18803 | substed = 0 | |
18804 | len = length(field[1]) | |
18805 | for (i = 2; i < nfields; i++) { | |
18806 | key = field[i] | |
18807 | keylen = length(key) | |
18808 | if (S_is_set[key]) { | |
18809 | value = S[key] | |
18810 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18811 | len += length(value) + length(field[++i]) | |
18812 | substed = 1 | |
18813 | } else | |
18814 | len += 1 + keylen | |
18815 | } | |
18816 | if (nfields == 3 && !substed) { | |
18817 | key = field[2] | |
18818 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
18819 | \$ac_cs_awk_read_file | |
18820 | next | |
18821 | } | |
18822 | } | |
18823 | print line | |
18824 | } | |
18825 | \$ac_cs_awk_pipe_fini | |
18826 | _ACAWK | |
18827 | _ACEOF | |
18828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18829 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18830 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18831 | else | |
18832 | cat | |
22e05272 JM |
18833 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18834 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
18835 | _ACEOF |
18836 | ||
22e05272 JM |
18837 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18838 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
18839 | # trailing colons and then remove the whole line if VPATH becomes empty |
18840 | # (actually we leave an empty line to preserve line numbers). | |
18841 | if test "x$srcdir" = x.; then | |
22e05272 JM |
18842 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18843 | h | |
18844 | s/// | |
18845 | s/^/:/ | |
18846 | s/[ ]*$/:/ | |
18847 | s/:\$(srcdir):/:/g | |
18848 | s/:\${srcdir}:/:/g | |
18849 | s/:@srcdir@:/:/g | |
18850 | s/^:*// | |
5213506e | 18851 | s/:*$// |
22e05272 JM |
18852 | x |
18853 | s/\(=[ ]*\).*/\1/ | |
18854 | G | |
18855 | s/\n// | |
5213506e RW |
18856 | s/^[^=]*=[ ]*$// |
18857 | }' | |
18858 | fi | |
2aeb72e9 | 18859 | |
5213506e RW |
18860 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18861 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 18862 | |
1c710c3c | 18863 | |
5213506e RW |
18864 | eval set X " :F $CONFIG_FILES " |
18865 | shift | |
18866 | for ac_tag | |
18867 | do | |
18868 | case $ac_tag in | |
18869 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18870 | esac | |
18871 | case $ac_mode$ac_tag in | |
18872 | :[FHL]*:*);; | |
22e05272 | 18873 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
18874 | :[FH]-) ac_tag=-:-;; |
18875 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18876 | esac | |
18877 | ac_save_IFS=$IFS | |
18878 | IFS=: | |
18879 | set x $ac_tag | |
18880 | IFS=$ac_save_IFS | |
18881 | shift | |
18882 | ac_file=$1 | |
18883 | shift | |
79c06341 | 18884 | |
5213506e RW |
18885 | case $ac_mode in |
18886 | :L) ac_source=$1;; | |
18887 | :[FH]) | |
18888 | ac_file_inputs= | |
18889 | for ac_f | |
18890 | do | |
18891 | case $ac_f in | |
22e05272 | 18892 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
18893 | *) # Look for the file first in the build tree, then in the source tree |
18894 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18895 | # because $ac_f cannot contain `:'. | |
18896 | test -f "$ac_f" || | |
18897 | case $ac_f in | |
18898 | [\\/$]*) false;; | |
18899 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18900 | esac || | |
22e05272 | 18901 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
18902 | esac |
18903 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18904 | as_fn_append ac_file_inputs " '$ac_f'" | |
18905 | done | |
1c710c3c | 18906 | |
5213506e RW |
18907 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
18908 | # use $as_me), people would be surprised to read: | |
18909 | # /* config.h. Generated by config.status. */ | |
18910 | configure_input='Generated from '` | |
18911 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18912 | `' by configure.' | |
18913 | if test x"$ac_file" != x-; then | |
18914 | configure_input="$ac_file. $configure_input" | |
18915 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18916 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 18917 | fi |
5213506e RW |
18918 | # Neutralize special characters interpreted by sed in replacement strings. |
18919 | case $configure_input in #( | |
18920 | *\&* | *\|* | *\\* ) | |
18921 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18922 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18923 | *) ac_sed_conf_input=$configure_input;; | |
18924 | esac | |
11a67599 | 18925 | |
5213506e | 18926 | case $ac_tag in |
22e05272 JM |
18927 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18928 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
18929 | esac |
18930 | ;; | |
11a67599 ZW |
18931 | esac |
18932 | ||
5213506e | 18933 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
18934 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
18935 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18936 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
18937 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
18938 | $as_echo X"$ac_file" | | |
18939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18940 | s//\1/ | |
18941 | q | |
18942 | } | |
18943 | /^X\(\/\/\)[^/].*/{ | |
18944 | s//\1/ | |
18945 | q | |
18946 | } | |
18947 | /^X\(\/\/\)$/{ | |
18948 | s//\1/ | |
18949 | q | |
18950 | } | |
18951 | /^X\(\/\).*/{ | |
18952 | s//\1/ | |
18953 | q | |
18954 | } | |
18955 | s/.*/./; q'` | |
18956 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 18957 | ac_builddir=. |
0b0dc272 | 18958 | |
5213506e RW |
18959 | case "$ac_dir" in |
18960 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18961 | *) | |
18962 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18963 | # A ".." for each directory in $ac_dir_suffix. | |
18964 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18965 | case $ac_top_builddir_sub in | |
18966 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18967 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18968 | esac ;; | |
18969 | esac | |
18970 | ac_abs_top_builddir=$ac_pwd | |
18971 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18972 | # for backward compatibility: | |
18973 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
18974 | |
18975 | case $srcdir in | |
5213506e | 18976 | .) # We are building in place. |
1c710c3c | 18977 | ac_srcdir=. |
5213506e RW |
18978 | ac_top_srcdir=$ac_top_builddir_sub |
18979 | ac_abs_top_srcdir=$ac_pwd ;; | |
18980 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 18981 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
18982 | ac_top_srcdir=$srcdir |
18983 | ac_abs_top_srcdir=$srcdir ;; | |
18984 | *) # Relative name. | |
18985 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18986 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18987 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 18988 | esac |
5213506e | 18989 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 18990 | |
0b0dc272 | 18991 | |
5213506e RW |
18992 | case $ac_mode in |
18993 | :F) | |
18994 | # | |
18995 | # CONFIG_FILE | |
18996 | # | |
1c710c3c DJ |
18997 | |
18998 | case $INSTALL in | |
18999 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19000 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19001 | esac |
5213506e | 19002 | _ACEOF |
11a67599 | 19003 | |
5213506e RW |
19004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19005 | # If the template does not know about datarootdir, expand it. | |
19006 | # FIXME: This hack should be removed a few years after 2.60. | |
19007 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19008 | ac_sed_dataroot=' | |
19009 | /datarootdir/ { | |
19010 | p | |
19011 | q | |
19012 | } | |
19013 | /@datadir@/p | |
19014 | /@docdir@/p | |
19015 | /@infodir@/p | |
19016 | /@localedir@/p | |
19017 | /@mandir@/p' | |
19018 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19019 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19020 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19022 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19023 | _ACEOF |
5213506e RW |
19024 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19025 | ac_datarootdir_hack=' | |
19026 | s&@datadir@&$datadir&g | |
19027 | s&@docdir@&$docdir&g | |
19028 | s&@infodir@&$infodir&g | |
19029 | s&@localedir@&$localedir&g | |
19030 | s&@mandir@&$mandir&g | |
19031 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19032 | esac | |
19033 | _ACEOF | |
19034 | ||
19035 | # Neutralize VPATH when `$srcdir' = `.'. | |
19036 | # Shell code in configure.ac might set extrasub. | |
19037 | # FIXME: do we really want to maintain this feature? | |
19038 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19039 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19040 | $extrasub |
19041 | _ACEOF | |
5213506e | 19042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19043 | :t |
19044 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19045 | s|@configure_input@|$ac_sed_conf_input|;t t |
19046 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19047 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19048 | s&@srcdir@&$ac_srcdir&;t t | |
19049 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19050 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19051 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19052 | s&@builddir@&$ac_builddir&;t t | |
19053 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19054 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19055 | s&@INSTALL@&$ac_INSTALL&;t t | |
19056 | $ac_datarootdir_hack | |
19057 | " | |
19058 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19059 | if $ac_cs_awk_getline; then | |
22e05272 | 19060 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19061 | else |
22e05272 JM |
19062 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19063 | fi \ | |
19064 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19065 | |
19066 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19067 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19068 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19069 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19071 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19072 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19073 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19074 | |
22e05272 | 19075 | rm -f "$ac_tmp/stdin" |
5213506e | 19076 | case $ac_file in |
22e05272 JM |
19077 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19078 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19079 | esac \ |
22e05272 | 19080 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19081 | ;; |
11a67599 | 19082 | |
11a67599 | 19083 | |
79c06341 | 19084 | |
5213506e RW |
19085 | esac |
19086 | ||
3e54529c RW |
19087 | |
19088 | case $ac_file$ac_mode in | |
19089 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19090 | sed "$extrasub_host" | | |
19091 | sed "$extrasub_target" > mf$$ | |
19092 | mv -f mf$$ Makefile ;; | |
19093 | ||
19094 | esac | |
5213506e RW |
19095 | done # for ac_tag |
19096 | ||
19097 | ||
19098 | as_fn_exit 0 | |
1c710c3c | 19099 | _ACEOF |
1c710c3c DJ |
19100 | ac_clean_files=$ac_clean_files_save |
19101 | ||
5213506e | 19102 | test $ac_write_fail = 0 || |
22e05272 | 19103 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19104 | |
1c710c3c DJ |
19105 | |
19106 | # configure is writing to config.log, and then calls config.status. | |
19107 | # config.status does its own redirection, appending to config.log. | |
19108 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19109 | # by configure, so config.status won't be able to write to it; its | |
19110 | # output is simply discarded. So we exec the FD to /dev/null, | |
19111 | # effectively closing config.log, so it can be properly (re)opened and | |
19112 | # appended to by config.status. When coming back to configure, we | |
19113 | # need to make the FD available again. | |
19114 | if test "$no_create" != yes; then | |
19115 | ac_cs_success=: | |
19116 | ac_config_status_args= | |
19117 | test "$silent" = yes && | |
19118 | ac_config_status_args="$ac_config_status_args --quiet" | |
19119 | exec 5>/dev/null | |
19120 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19121 | exec 5>>config.log | |
19122 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19123 | # would make configure fail if this is the last instruction. | |
22e05272 | 19124 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
19125 | fi |
19126 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19128 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 19129 | fi |
79c06341 | 19130 |