]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
1c710c3c DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
1c710c3c | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
1c710c3c | 301 | |
5213506e RW |
302 | # as_fn_exit STATUS |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
1c710c3c | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
1c710c3c | 456 | |
2aeb72e9 DD |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 463 | |
1c710c3c | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
1c710c3c | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
1c710c3c | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 482 | t loop |
5213506e | 483 | s/-\n.*// |
1c710c3c | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
1c710c3c DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
1c710c3c DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
1c710c3c DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
2aeb72e9 | 533 | fi |
1c710c3c | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
1c710c3c | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
0b0dc272 | 549 | |
1c710c3c DJ |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
1c710c3c DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
1c710c3c DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
1c710c3c DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
671aa708 | 568 | ac_default_prefix=/usr/local |
5213506e | 569 | ac_clean_files= |
1c710c3c | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
1c710c3c DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
2aeb72e9 | 576 | |
1c710c3c DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
5213506e | 583 | PACKAGE_URL= |
1c710c3c DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
5213506e RW |
586 | enable_option_checking=no |
587 | ac_subst_vars='LTLIBOBJS | |
588 | LIBOBJS | |
589 | compare_exclusions | |
590 | stage2_werror_flag | |
591 | stage1_checking | |
592 | stage1_cflags | |
593 | MAINT | |
594 | MAINTAINER_MODE_FALSE | |
595 | MAINTAINER_MODE_TRUE | |
596 | COMPILER_NM_FOR_TARGET | |
597 | COMPILER_LD_FOR_TARGET | |
598 | COMPILER_AS_FOR_TARGET | |
599 | FLAGS_FOR_TARGET | |
600 | RAW_CXX_FOR_TARGET | |
601 | WINDMC_FOR_TARGET | |
602 | WINDRES_FOR_TARGET | |
603 | STRIP_FOR_TARGET | |
e7a82751 | 604 | READELF_FOR_TARGET |
5213506e | 605 | RANLIB_FOR_TARGET |
e4a9a572 | 606 | OTOOL_FOR_TARGET |
5213506e | 607 | OBJDUMP_FOR_TARGET |
9bccfdf5 | 608 | OBJCOPY_FOR_TARGET |
5213506e RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
3b5e8ee4 | 612 | DSYMUTIL_FOR_TARGET |
5213506e RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
1eee94d3 | 616 | GM2_FOR_TARGET |
b4c522fa | 617 | GDC_FOR_TARGET |
632e2a07 | 618 | GOC_FOR_TARGET |
5213506e | 619 | GFORTRAN_FOR_TARGET |
5213506e RW |
620 | GCC_FOR_TARGET |
621 | CXX_FOR_TARGET | |
622 | CC_FOR_TARGET | |
126f707e L |
623 | RANLIB_PLUGIN_OPTION |
624 | AR_PLUGIN_OPTION | |
5fee5ec3 | 625 | GDCFLAGS |
e7a82751 | 626 | READELF |
e4a9a572 | 627 | OTOOL |
5213506e RW |
628 | OBJDUMP |
629 | OBJCOPY | |
630 | WINDMC | |
631 | WINDRES | |
632 | STRIP | |
633 | RANLIB | |
634 | NM | |
635 | LIPO | |
636 | LD | |
3b5e8ee4 | 637 | DSYMUTIL |
5213506e RW |
638 | DLLTOOL |
639 | AS | |
640 | AR | |
641 | RUNTEST | |
642 | EXPECT | |
643 | MAKEINFO | |
644 | FLEX | |
645 | LEX | |
646 | M4 | |
647 | BISON | |
648 | YACC | |
5213506e RW |
649 | WINDRES_FOR_BUILD |
650 | WINDMC_FOR_BUILD | |
651 | RANLIB_FOR_BUILD | |
652 | NM_FOR_BUILD | |
653 | LD_FOR_BUILD | |
654 | LDFLAGS_FOR_BUILD | |
b4c522fa | 655 | GDC_FOR_BUILD |
632e2a07 | 656 | GOC_FOR_BUILD |
5213506e | 657 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 658 | DSYMUTIL_FOR_BUILD |
5213506e RW |
659 | DLLTOOL_FOR_BUILD |
660 | CXX_FOR_BUILD | |
661 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
662 | CPPFLAGS_FOR_BUILD |
663 | CPP_FOR_BUILD | |
5213506e RW |
664 | CFLAGS_FOR_BUILD |
665 | CC_FOR_BUILD | |
666 | AS_FOR_BUILD | |
667 | AR_FOR_BUILD | |
aae29963 | 668 | target_configdirs |
5213506e | 669 | configdirs |
5213506e | 670 | build_configdirs |
5213506e RW |
671 | INSTALL_GDB_TK |
672 | GDB_TK | |
673 | CONFIGURE_GDB_TK | |
674 | build_tooldir | |
675 | tooldir | |
676 | GCC_SHLIB_SUBDIR | |
677 | RPATH_ENVVAR | |
ffedf511 RW |
678 | target_configargs |
679 | host_configargs | |
680 | build_configargs | |
e12c4094 | 681 | BUILD_CONFIG |
6f57bdf6 | 682 | LDFLAGS_FOR_TARGET |
5213506e RW |
683 | CXXFLAGS_FOR_TARGET |
684 | CFLAGS_FOR_TARGET | |
685 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
686 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 687 | get_gcc_base_ver |
1c01ebf6 | 688 | extra_host_zlib_configure_flags |
d7f09764 | 689 | extra_host_libiberty_configure_flags |
fca38047 | 690 | stage1_languages |
05048fc2 | 691 | host_libs_picflag |
b6cb10af | 692 | PICFLAG |
cdfee50a | 693 | host_shared |
c1fecabe | 694 | gcc_host_pie |
b6cb10af | 695 | host_pie |
45b3824d TS |
696 | extra_linker_plugin_flags |
697 | extra_linker_plugin_configure_flags | |
33ad93b9 | 698 | islinc |
eae1a5d4 | 699 | isllibs |
5213506e | 700 | poststage1_ldflags |
ed2eaa9f | 701 | poststage1_libs |
5213506e | 702 | stage1_ldflags |
0b21f5d3 | 703 | stage1_libs |
0ff2d841 | 704 | extra_isl_gmp_configure_flags |
5213506e RW |
705 | extra_mpc_mpfr_configure_flags |
706 | extra_mpc_gmp_configure_flags | |
707 | extra_mpfr_configure_flags | |
708 | gmpinc | |
709 | gmplibs | |
4a5e71f2 L |
710 | PGO_BUILD_LTO_CFLAGS |
711 | PGO_BUILD_USE_CFLAGS | |
712 | PGO_BUILD_GEN_CFLAGS | |
7ffcf5d6 | 713 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 714 | HAVE_CXX11 |
5213506e | 715 | do_compare |
5fee5ec3 | 716 | GDC |
5213506e RW |
717 | GNATMAKE |
718 | GNATBIND | |
719 | ac_ct_CXX | |
720 | CXXFLAGS | |
721 | CXX | |
722 | OBJEXT | |
723 | EXEEXT | |
724 | ac_ct_CC | |
725 | CPPFLAGS | |
726 | LDFLAGS | |
727 | CFLAGS | |
728 | CC | |
729 | target_subdir | |
730 | host_subdir | |
731 | build_subdir | |
732 | build_libsubdir | |
87264276 PB |
733 | AWK |
734 | SED | |
5213506e RW |
735 | LN_S |
736 | LN | |
737 | INSTALL_DATA | |
738 | INSTALL_SCRIPT | |
739 | INSTALL_PROGRAM | |
740 | target_os | |
741 | target_vendor | |
742 | target_cpu | |
743 | target | |
744 | host_os | |
745 | host_vendor | |
746 | host_cpu | |
747 | host | |
748 | target_noncanonical | |
749 | host_noncanonical | |
750 | build_noncanonical | |
751 | build_os | |
752 | build_vendor | |
753 | build_cpu | |
754 | build | |
755 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
756 | target_alias | |
757 | host_alias | |
758 | build_alias | |
759 | LIBS | |
760 | ECHO_T | |
761 | ECHO_N | |
762 | ECHO_C | |
763 | DEFS | |
764 | mandir | |
765 | localedir | |
766 | libdir | |
767 | psdir | |
768 | pdfdir | |
769 | dvidir | |
770 | htmldir | |
771 | infodir | |
772 | docdir | |
773 | oldincludedir | |
774 | includedir | |
775 | localstatedir | |
776 | sharedstatedir | |
777 | sysconfdir | |
778 | datadir | |
779 | datarootdir | |
780 | libexecdir | |
781 | sbindir | |
782 | bindir | |
783 | program_transform_name | |
784 | prefix | |
785 | exec_prefix | |
786 | PACKAGE_URL | |
787 | PACKAGE_BUGREPORT | |
788 | PACKAGE_STRING | |
789 | PACKAGE_VERSION | |
790 | PACKAGE_TARNAME | |
791 | PACKAGE_NAME | |
792 | PATH_SEPARATOR | |
793 | SHELL' | |
794 | ac_subst_files='serialization_dependencies | |
795 | host_makefile_frag | |
796 | target_makefile_frag | |
797 | alphaieee_frag | |
798 | ospace_frag' | |
799 | ac_user_opts=' | |
800 | enable_option_checking | |
801 | with_build_libsubdir | |
a05c2c75 | 802 | with_system_zlib |
407a2c9a | 803 | with_zstd |
85c64bbe BS |
804 | enable_as_accelerator_for |
805 | enable_offload_targets | |
fe5bfa67 | 806 | enable_offload_defaulted |
5213506e | 807 | enable_gold |
21539e2e | 808 | enable_ld |
24552056 | 809 | enable_gprofng |
78edb32f | 810 | enable_compressed_debug_sections |
c9884636 | 811 | enable_default_compressed_debug_sections_algorithm |
87e6d9dc TB |
812 | enable_libquadmath |
813 | enable_libquadmath_support | |
5213506e | 814 | enable_libada |
1eee94d3 | 815 | enable_libgm2 |
5213506e | 816 | enable_libssp |
1873ec0c | 817 | enable_libstdcxx |
ff3ac0f4 | 818 | enable_bootstrap |
4a5e71f2 | 819 | enable_pgo_build |
5213506e RW |
820 | with_mpc |
821 | with_mpc_include | |
822 | with_mpc_lib | |
5213506e RW |
823 | with_mpfr |
824 | with_mpfr_include | |
825 | with_mpfr_lib | |
5213506e RW |
826 | with_gmp |
827 | with_gmp_include | |
828 | with_gmp_lib | |
5213506e | 829 | with_stage1_libs |
aac9103b | 830 | with_static_standard_libraries |
0b21f5d3 | 831 | with_stage1_ldflags |
5213506e | 832 | with_boot_libs |
ed2eaa9f | 833 | with_boot_ldflags |
33ad93b9 RG |
834 | with_isl |
835 | with_isl_include | |
836 | with_isl_lib | |
837 | enable_isl_version_check | |
d7f09764 | 838 | enable_lto |
45b3824d TS |
839 | enable_linker_plugin_configure_flags |
840 | enable_linker_plugin_flags | |
b6cb10af | 841 | enable_host_pie |
cdfee50a | 842 | enable_host_shared |
5213506e | 843 | enable_stage1_languages |
43c40f3e | 844 | enable_objc_gc |
114bf3f1 MK |
845 | with_target_bdw_gc |
846 | with_target_bdw_gc_include | |
847 | with_target_bdw_gc_lib | |
3c36aa6b | 848 | with_gcc_major_version_only |
5213506e RW |
849 | with_build_sysroot |
850 | with_debug_prefix_map | |
5646b7b9 | 851 | with_build_config |
beeda1d9 | 852 | enable_vtable_verify |
5213506e RW |
853 | enable_serial_configure |
854 | with_build_time_tools | |
855 | enable_maintainer_mode | |
856 | enable_stage1_checking | |
857 | enable_werror | |
5213506e RW |
858 | ' |
859 | ac_precious_vars='build_alias | |
860 | host_alias | |
861 | target_alias | |
862 | CC | |
863 | CFLAGS | |
864 | LDFLAGS | |
865 | LIBS | |
866 | CPPFLAGS | |
867 | CXX | |
868 | CXXFLAGS | |
869 | CCC | |
ffedf511 RW |
870 | build_configargs |
871 | host_configargs | |
872 | target_configargs | |
5213506e RW |
873 | AR |
874 | AS | |
875 | DLLTOOL | |
3b5e8ee4 | 876 | DSYMUTIL |
5213506e RW |
877 | LD |
878 | LIPO | |
879 | NM | |
880 | RANLIB | |
881 | STRIP | |
882 | WINDRES | |
883 | WINDMC | |
884 | OBJCOPY | |
885 | OBJDUMP | |
e4a9a572 | 886 | OTOOL |
e7a82751 | 887 | READELF |
5213506e RW |
888 | CC_FOR_TARGET |
889 | CXX_FOR_TARGET | |
890 | GCC_FOR_TARGET | |
5213506e | 891 | GFORTRAN_FOR_TARGET |
632e2a07 | 892 | GOC_FOR_TARGET |
b4c522fa | 893 | GDC_FOR_TARGET |
1eee94d3 | 894 | GM2_FOR_TARGET |
5213506e RW |
895 | AR_FOR_TARGET |
896 | AS_FOR_TARGET | |
897 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 898 | DSYMUTIL_FOR_TARGET |
5213506e RW |
899 | LD_FOR_TARGET |
900 | LIPO_FOR_TARGET | |
901 | NM_FOR_TARGET | |
9bccfdf5 | 902 | OBJCOPY_FOR_TARGET |
5213506e | 903 | OBJDUMP_FOR_TARGET |
e4a9a572 | 904 | OTOOL_FOR_TARGET |
5213506e | 905 | RANLIB_FOR_TARGET |
e7a82751 | 906 | READELF_FOR_TARGET |
5213506e RW |
907 | STRIP_FOR_TARGET |
908 | WINDRES_FOR_TARGET | |
909 | WINDMC_FOR_TARGET' | |
910 | ||
671aa708 NN |
911 | |
912 | # Initialize some variables set by options. | |
1c710c3c DJ |
913 | ac_init_help= |
914 | ac_init_version=false | |
5213506e RW |
915 | ac_unrecognized_opts= |
916 | ac_unrecognized_sep= | |
671aa708 NN |
917 | # The variables have the same names as the options, with |
918 | # dashes changed to underlines. | |
1c710c3c | 919 | cache_file=/dev/null |
671aa708 | 920 | exec_prefix=NONE |
671aa708 | 921 | no_create= |
671aa708 NN |
922 | no_recursion= |
923 | prefix=NONE | |
924 | program_prefix=NONE | |
925 | program_suffix=NONE | |
926 | program_transform_name=s,x,x, | |
927 | silent= | |
928 | site= | |
929 | srcdir= | |
671aa708 NN |
930 | verbose= |
931 | x_includes=NONE | |
932 | x_libraries=NONE | |
1c710c3c DJ |
933 | |
934 | # Installation directory options. | |
935 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
936 | # and all the variables that are supposed to be based on exec_prefix | |
937 | # by default will actually change. | |
938 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 939 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
940 | bindir='${exec_prefix}/bin' |
941 | sbindir='${exec_prefix}/sbin' | |
942 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
943 | datarootdir='${prefix}/share' |
944 | datadir='${datarootdir}' | |
671aa708 NN |
945 | sysconfdir='${prefix}/etc' |
946 | sharedstatedir='${prefix}/com' | |
947 | localstatedir='${prefix}/var' | |
671aa708 NN |
948 | includedir='${prefix}/include' |
949 | oldincludedir='/usr/include' | |
5213506e RW |
950 | docdir='${datarootdir}/doc/${PACKAGE}' |
951 | infodir='${datarootdir}/info' | |
952 | htmldir='${docdir}' | |
953 | dvidir='${docdir}' | |
954 | pdfdir='${docdir}' | |
955 | psdir='${docdir}' | |
956 | libdir='${exec_prefix}/lib' | |
957 | localedir='${datarootdir}/locale' | |
958 | mandir='${datarootdir}/man' | |
79c06341 | 959 | |
671aa708 | 960 | ac_prev= |
5213506e | 961 | ac_dashdash= |
671aa708 NN |
962 | for ac_option |
963 | do | |
671aa708 NN |
964 | # If the previous option needs an argument, assign it. |
965 | if test -n "$ac_prev"; then | |
5213506e | 966 | eval $ac_prev=\$ac_option |
671aa708 NN |
967 | ac_prev= |
968 | continue | |
969 | fi | |
79c06341 | 970 | |
5213506e | 971 | case $ac_option in |
22e05272 JM |
972 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
973 | *=) ac_optarg= ;; | |
974 | *) ac_optarg=yes ;; | |
5213506e | 975 | esac |
671aa708 NN |
976 | |
977 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
978 | ||
5213506e RW |
979 | case $ac_dashdash$ac_option in |
980 | --) | |
981 | ac_dashdash=yes ;; | |
671aa708 NN |
982 | |
983 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
984 | ac_prev=bindir ;; | |
985 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 986 | bindir=$ac_optarg ;; |
671aa708 NN |
987 | |
988 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 989 | ac_prev=build_alias ;; |
671aa708 | 990 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 991 | build_alias=$ac_optarg ;; |
671aa708 NN |
992 | |
993 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
994 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
995 | ac_prev=cache_file ;; | |
996 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
997 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
998 | cache_file=$ac_optarg ;; |
999 | ||
1000 | --config-cache | -C) | |
1001 | cache_file=config.cache ;; | |
671aa708 | 1002 | |
5213506e | 1003 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 1004 | ac_prev=datadir ;; |
5213506e | 1005 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 1006 | datadir=$ac_optarg ;; |
671aa708 | 1007 | |
5213506e RW |
1008 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1009 | | --dataroo | --dataro | --datar) | |
1010 | ac_prev=datarootdir ;; | |
1011 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1012 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1013 | datarootdir=$ac_optarg ;; | |
1014 | ||
671aa708 | 1015 | -disable-* | --disable-*) |
5213506e | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1017 | # Reject names that are not valid shell variable names. |
5213506e | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1020 | ac_useropt_orig=$ac_useropt |
1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1022 | case $ac_user_opts in | |
1023 | *" | |
1024 | "enable_$ac_useropt" | |
1025 | "*) ;; | |
1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1027 | ac_unrecognized_sep=', ';; | |
1028 | esac | |
1029 | eval enable_$ac_useropt=no ;; | |
1030 | ||
1031 | -docdir | --docdir | --docdi | --doc | --do) | |
1032 | ac_prev=docdir ;; | |
1033 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1034 | docdir=$ac_optarg ;; | |
1035 | ||
1036 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1037 | ac_prev=dvidir ;; | |
1038 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1039 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1040 | |
1041 | -enable-* | --enable-*) | |
5213506e | 1042 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1043 | # Reject names that are not valid shell variable names. |
5213506e | 1044 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1045 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1046 | ac_useropt_orig=$ac_useropt |
1047 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1048 | case $ac_user_opts in | |
1049 | *" | |
1050 | "enable_$ac_useropt" | |
1051 | "*) ;; | |
1052 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1053 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1054 | esac |
5213506e | 1055 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1056 | |
1057 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1058 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1059 | | --exec | --exe | --ex) | |
1060 | ac_prev=exec_prefix ;; | |
1061 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1062 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1063 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1064 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1065 | |
1066 | -gas | --gas | --ga | --g) | |
1067 | # Obsolete; use --with-gas. | |
1068 | with_gas=yes ;; | |
1069 | ||
1c710c3c DJ |
1070 | -help | --help | --hel | --he | -h) |
1071 | ac_init_help=long ;; | |
1072 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1073 | ac_init_help=recursive ;; | |
1074 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1075 | ac_init_help=short ;; | |
671aa708 NN |
1076 | |
1077 | -host | --host | --hos | --ho) | |
1c710c3c | 1078 | ac_prev=host_alias ;; |
671aa708 | 1079 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1080 | host_alias=$ac_optarg ;; |
671aa708 | 1081 | |
5213506e RW |
1082 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1083 | ac_prev=htmldir ;; | |
1084 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1085 | | --ht=*) | |
1086 | htmldir=$ac_optarg ;; | |
1087 | ||
671aa708 NN |
1088 | -includedir | --includedir | --includedi | --included | --include \ |
1089 | | --includ | --inclu | --incl | --inc) | |
1090 | ac_prev=includedir ;; | |
1091 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1092 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1093 | includedir=$ac_optarg ;; |
671aa708 NN |
1094 | |
1095 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1096 | ac_prev=infodir ;; | |
1097 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1098 | infodir=$ac_optarg ;; |
671aa708 NN |
1099 | |
1100 | -libdir | --libdir | --libdi | --libd) | |
1101 | ac_prev=libdir ;; | |
1102 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1103 | libdir=$ac_optarg ;; |
671aa708 NN |
1104 | |
1105 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1106 | | --libexe | --libex | --libe) | |
1107 | ac_prev=libexecdir ;; | |
1108 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1109 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1110 | libexecdir=$ac_optarg ;; |
671aa708 | 1111 | |
5213506e RW |
1112 | -localedir | --localedir | --localedi | --localed | --locale) |
1113 | ac_prev=localedir ;; | |
1114 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1115 | localedir=$ac_optarg ;; | |
1116 | ||
671aa708 | 1117 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1118 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1119 | ac_prev=localstatedir ;; |
1120 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1121 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1122 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1123 | |
1124 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1125 | ac_prev=mandir ;; | |
1126 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1127 | mandir=$ac_optarg ;; |
671aa708 NN |
1128 | |
1129 | -nfp | --nfp | --nf) | |
1130 | # Obsolete; use --without-fp. | |
1131 | with_fp=no ;; | |
1132 | ||
1133 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1134 | | --no-cr | --no-c | -n) |
671aa708 NN |
1135 | no_create=yes ;; |
1136 | ||
1137 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1138 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1139 | no_recursion=yes ;; | |
1140 | ||
1141 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1142 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1143 | | --oldin | --oldi | --old | --ol | --o) | |
1144 | ac_prev=oldincludedir ;; | |
1145 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1146 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1147 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1148 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1149 | |
1150 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1151 | ac_prev=prefix ;; | |
1152 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1153 | prefix=$ac_optarg ;; |
671aa708 NN |
1154 | |
1155 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1156 | | --program-pre | --program-pr | --program-p) | |
1157 | ac_prev=program_prefix ;; | |
1158 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1159 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1160 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1161 | |
1162 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1163 | | --program-suf | --program-su | --program-s) | |
1164 | ac_prev=program_suffix ;; | |
1165 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1166 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1167 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1168 | |
1169 | -program-transform-name | --program-transform-name \ | |
1170 | | --program-transform-nam | --program-transform-na \ | |
1171 | | --program-transform-n | --program-transform- \ | |
1172 | | --program-transform | --program-transfor \ | |
1173 | | --program-transfo | --program-transf \ | |
1174 | | --program-trans | --program-tran \ | |
1175 | | --progr-tra | --program-tr | --program-t) | |
1176 | ac_prev=program_transform_name ;; | |
1177 | -program-transform-name=* | --program-transform-name=* \ | |
1178 | | --program-transform-nam=* | --program-transform-na=* \ | |
1179 | | --program-transform-n=* | --program-transform-=* \ | |
1180 | | --program-transform=* | --program-transfor=* \ | |
1181 | | --program-transfo=* | --program-transf=* \ | |
1182 | | --program-trans=* | --program-tran=* \ | |
1183 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1184 | program_transform_name=$ac_optarg ;; |
671aa708 | 1185 | |
5213506e RW |
1186 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1187 | ac_prev=pdfdir ;; | |
1188 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1189 | pdfdir=$ac_optarg ;; | |
1190 | ||
1191 | -psdir | --psdir | --psdi | --psd | --ps) | |
1192 | ac_prev=psdir ;; | |
1193 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1194 | psdir=$ac_optarg ;; | |
1195 | ||
671aa708 NN |
1196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1197 | | -silent | --silent | --silen | --sile | --sil) | |
1198 | silent=yes ;; | |
1199 | ||
1200 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1201 | ac_prev=sbindir ;; | |
1202 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1203 | | --sbi=* | --sb=*) | |
1c710c3c | 1204 | sbindir=$ac_optarg ;; |
671aa708 NN |
1205 | |
1206 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1207 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1208 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1209 | | --sha | --sh) | |
1210 | ac_prev=sharedstatedir ;; | |
1211 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1212 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1213 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1214 | | --sha=* | --sh=*) | |
1c710c3c | 1215 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1216 | |
1217 | -site | --site | --sit) | |
1218 | ac_prev=site ;; | |
1219 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1220 | site=$ac_optarg ;; |
671aa708 NN |
1221 | |
1222 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1223 | ac_prev=srcdir ;; | |
1224 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1225 | srcdir=$ac_optarg ;; |
671aa708 NN |
1226 | |
1227 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1228 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1229 | ac_prev=sysconfdir ;; | |
1230 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1231 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1232 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1233 | |
1234 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1235 | ac_prev=target_alias ;; |
671aa708 | 1236 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1237 | target_alias=$ac_optarg ;; |
671aa708 NN |
1238 | |
1239 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1240 | verbose=yes ;; | |
1241 | ||
1c710c3c DJ |
1242 | -version | --version | --versio | --versi | --vers | -V) |
1243 | ac_init_version=: ;; | |
671aa708 NN |
1244 | |
1245 | -with-* | --with-*) | |
5213506e | 1246 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1247 | # Reject names that are not valid shell variable names. |
5213506e | 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1249 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1250 | ac_useropt_orig=$ac_useropt |
1251 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1252 | case $ac_user_opts in | |
1253 | *" | |
1254 | "with_$ac_useropt" | |
1255 | "*) ;; | |
1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1257 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1258 | esac |
5213506e | 1259 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1260 | |
1261 | -without-* | --without-*) | |
5213506e | 1262 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1263 | # Reject names that are not valid shell variable names. |
5213506e | 1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1265 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1266 | ac_useropt_orig=$ac_useropt |
1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1268 | case $ac_user_opts in | |
1269 | *" | |
1270 | "with_$ac_useropt" | |
1271 | "*) ;; | |
1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1273 | ac_unrecognized_sep=', ';; | |
1274 | esac | |
1275 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1276 | |
1277 | --x) | |
1278 | # Obsolete; use --with-x. | |
1279 | with_x=yes ;; | |
1280 | ||
1281 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1282 | | --x-incl | --x-inc | --x-in | --x-i) | |
1283 | ac_prev=x_includes ;; | |
1284 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1285 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1286 | x_includes=$ac_optarg ;; |
671aa708 NN |
1287 | |
1288 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1289 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1290 | ac_prev=x_libraries ;; | |
1291 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1292 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1293 | x_libraries=$ac_optarg ;; |
671aa708 | 1294 | |
22e05272 JM |
1295 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1296 | Try \`$0 --help' for more information" | |
671aa708 NN |
1297 | ;; |
1298 | ||
1c710c3c DJ |
1299 | *=*) |
1300 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1301 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1302 | case $ac_envvar in #( |
1303 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1304 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1305 | esac |
1306 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1307 | export $ac_envvar ;; |
1308 | ||
671aa708 | 1309 | *) |
1c710c3c | 1310 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1311 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1312 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1313 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1314 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1315 | ;; |
1316 | ||
1317 | esac | |
1318 | done | |
1319 | ||
1320 | if test -n "$ac_prev"; then | |
1c710c3c | 1321 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1322 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1323 | fi |
af71363e | 1324 | |
5213506e RW |
1325 | if test -n "$ac_unrecognized_opts"; then |
1326 | case $enable_option_checking in | |
1327 | no) ;; | |
22e05272 | 1328 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1329 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1330 | esac |
5213506e | 1331 | fi |
2aeb72e9 | 1332 | |
5213506e RW |
1333 | # Check all directory arguments for consistency. |
1334 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1335 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1336 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1337 | libdir localedir mandir | |
2aeb72e9 | 1338 | do |
5213506e RW |
1339 | eval ac_val=\$$ac_var |
1340 | # Remove trailing slashes. | |
1341 | case $ac_val in | |
1342 | */ ) | |
1343 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1344 | eval $ac_var=\$ac_val;; | |
1345 | esac | |
1346 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1347 | case $ac_val in |
5213506e RW |
1348 | [\\/$]* | ?:[\\/]* ) continue;; |
1349 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1350 | esac |
22e05272 | 1351 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1352 | done |
1353 | ||
1c710c3c DJ |
1354 | # There might be people who depend on the old broken behavior: `$host' |
1355 | # used to hold the argument of --host etc. | |
1356 | # FIXME: To remove some day. | |
1357 | build=$build_alias | |
1358 | host=$host_alias | |
1359 | target=$target_alias | |
0b0dc272 | 1360 | |
1c710c3c DJ |
1361 | # FIXME: To remove some day. |
1362 | if test "x$host_alias" != x; then | |
1363 | if test "x$build_alias" = x; then | |
1364 | cross_compiling=maybe | |
1c710c3c DJ |
1365 | elif test "x$build_alias" != "x$host_alias"; then |
1366 | cross_compiling=yes | |
1367 | fi | |
1368 | fi | |
1369 | ||
1370 | ac_tool_prefix= | |
1371 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1372 | ||
1373 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1374 | |
671aa708 | 1375 | |
5213506e RW |
1376 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1377 | ac_ls_di=`ls -di .` && | |
1378 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1379 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1380 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1381 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1382 | |
1383 | ||
671aa708 NN |
1384 | # Find the source files, if location was not specified. |
1385 | if test -z "$srcdir"; then | |
1386 | ac_srcdir_defaulted=yes | |
5213506e RW |
1387 | # Try the directory containing this script, then the parent directory. |
1388 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1389 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1390 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1391 | X"$as_myself" : 'X\(//\)$' \| \ | |
1392 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1393 | $as_echo X"$as_myself" | | |
1394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)[^/].*/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\/\)$/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | /^X\(\/\).*/{ | |
1407 | s//\1/ | |
1408 | q | |
1409 | } | |
1410 | s/.*/./; q'` | |
671aa708 | 1411 | srcdir=$ac_confdir |
5213506e | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1413 | srcdir=.. |
1414 | fi | |
1415 | else | |
1416 | ac_srcdir_defaulted=no | |
1417 | fi | |
5213506e RW |
1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
1419 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1420 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1421 | fi |
1422 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1423 | ac_abs_confdir=`( | |
22e05272 | 1424 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1425 | pwd)` |
1426 | # When building in place, set srcdir=. | |
1427 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1428 | srcdir=. | |
1429 | fi | |
1430 | # Remove unnecessary trailing slashes from srcdir. | |
1431 | # Double slashes in file names in object file debugging info | |
1432 | # mess up M-x gdb in Emacs. | |
1433 | case $srcdir in | |
1434 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1435 | esac | |
87841584 AM |
1436 | case $srcdir in |
1437 | *" "*) | |
22e05272 | 1438 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1439 | ;; |
1440 | esac | |
ac9e6043 RW |
1441 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1442 | ||
5213506e RW |
1443 | for ac_var in $ac_precious_vars; do |
1444 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1445 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1446 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1448 | done | |
1c710c3c DJ |
1449 | |
1450 | # | |
1451 | # Report the --help message. | |
1452 | # | |
1453 | if test "$ac_init_help" = "long"; then | |
1454 | # Omit some internal or obsolete options to make the list less imposing. | |
1455 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1456 | cat <<_ACEOF | |
1457 | \`configure' configures this package to adapt to many kinds of systems. | |
1458 | ||
1459 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1460 | ||
1461 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1462 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1463 | ||
1464 | Defaults for the options are specified in brackets. | |
1465 | ||
1466 | Configuration: | |
1467 | -h, --help display this help and exit | |
1468 | --help=short display options specific to this package | |
1469 | --help=recursive display the short help of all the included packages | |
1470 | -V, --version display version information and exit | |
22e05272 | 1471 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1472 | --cache-file=FILE cache test results in FILE [disabled] |
1473 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1474 | -n, --no-create do not create output files | |
1475 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1476 | ||
1c710c3c DJ |
1477 | Installation directories: |
1478 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1479 | [$ac_default_prefix] |
1c710c3c | 1480 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1481 | [PREFIX] |
1c710c3c DJ |
1482 | |
1483 | By default, \`make install' will install all the files in | |
1484 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1485 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1486 | for instance \`--prefix=\$HOME'. | |
1487 | ||
1488 | For better control, use the options below. | |
1489 | ||
1490 | Fine tuning of the installation directories: | |
5213506e RW |
1491 | --bindir=DIR user executables [EPREFIX/bin] |
1492 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1493 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1494 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1495 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1496 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1497 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1498 | --includedir=DIR C header files [PREFIX/include] | |
1499 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1500 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1501 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1502 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1503 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1504 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1505 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1506 | --htmldir=DIR html documentation [DOCDIR] | |
1507 | --dvidir=DIR dvi documentation [DOCDIR] | |
1508 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1509 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1510 | _ACEOF |
1511 | ||
1512 | cat <<\_ACEOF | |
1513 | ||
1514 | Program names: | |
1515 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1516 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1517 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1518 | ||
1519 | System types: | |
1520 | --build=BUILD configure for building on BUILD [guessed] | |
1521 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1522 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1523 | _ACEOF | |
1524 | fi | |
1525 | ||
1526 | if test -n "$ac_init_help"; then | |
1527 | ||
1528 | cat <<\_ACEOF | |
1529 | ||
1530 | Optional Features: | |
5213506e | 1531 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1532 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1533 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1534 | --enable-as-accelerator-for=ARG |
1535 | build as offload target compiler. Specify offload | |
1536 | host triple by ARG | |
1537 | --enable-offload-targets=LIST | |
1538 | enable offloading to devices from comma-separated | |
1539 | LIST of TARGET[=DIR]. Use optional path to find | |
1540 | offload target compiler during the build | |
fe5bfa67 TB |
1541 | --enable-offload-defaulted |
1542 | If enabled, configured but not installed offload compilers and | |
1543 | libgomp plugins are silently ignored. Useful for distribution | |
1544 | compilers where those are in separate optional packages. | |
1545 | ||
21539e2e | 1546 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1547 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
24552056 | 1548 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
324402a0 | 1549 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1550 | Enable compressed debug sections for gas, gold or ld |
1551 | by default | |
c9884636 ML |
1552 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1553 | Default compression algorithm for | |
1554 | --enable-compressed-debug-sections. | |
87e6d9dc TB |
1555 | --disable-libquadmath do not build libquadmath directory |
1556 | --disable-libquadmath-support | |
1557 | disable libquadmath support for Fortran | |
30b74385 | 1558 | --enable-libada build libada directory |
1eee94d3 | 1559 | --enable-libgm2 build libgm2 directory |
30b74385 | 1560 | --enable-libssp build libssp directory |
1873ec0c | 1561 | --disable-libstdcxx do not build libstdc++-v3 directory |
ff3ac0f4 | 1562 | --enable-bootstrap enable bootstrapping [yes if native build] |
4a5e71f2 L |
1563 | --enable-pgo-build[=lto] |
1564 | enable the PGO build | |
33ad93b9 | 1565 | --disable-isl-version-check |
560d18d3 | 1566 | disable check for isl version |
d7f09764 | 1567 | --enable-lto enable link time optimization support |
45b3824d TS |
1568 | --enable-linker-plugin-configure-flags=FLAGS |
1569 | additional flags for configuring linker plugins | |
1570 | [none] | |
1571 | --enable-linker-plugin-flags=FLAGS | |
1572 | additional flags for configuring and building linker | |
1573 | plugins [none] | |
b6cb10af | 1574 | --enable-host-pie build position independent host executables |
cdfee50a | 1575 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1576 | --enable-stage1-languages[=all] |
1577 | choose additional languages to build during stage1. | |
1578 | Mostly useful for compiler development | |
43c40f3e RO |
1579 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1580 | Objective-C runtime | |
318a4e6d | 1581 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1582 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1583 | force sequential configuration of sub-packages for |
1584 | the host, target or build machine, or all | |
1585 | sub-packages | |
1586 | --enable-maintainer-mode | |
1587 | enable make rules and dependencies not useful (and | |
1588 | sometimes confusing) to the casual installer | |
1589 | --enable-stage1-checking[=all] | |
1590 | choose additional checking for stage1 of the | |
1591 | compiler | |
1c710c3c DJ |
1592 | --enable-werror enable -Werror in bootstrap stage2 and later |
1593 | ||
1594 | Optional Packages: | |
1595 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1596 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1597 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1598 | --with-system-zlib use installed libz |
407a2c9a FS |
1599 | --with-zstd Support zstd compressed debug sections |
1600 | (default=auto) | |
33e39b66 AS |
1601 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1602 | Equivalent to --with-mpc-include=PATH/include plus | |
1603 | --with-mpc-lib=PATH/lib | |
1604 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1605 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 | 1606 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
33e39b66 AS |
1607 | Equivalent to --with-mpfr-include=PATH/include plus |
1608 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1609 | --with-mpfr-include=PATH |
30b74385 RW |
1610 | specify directory for installed MPFR include files |
1611 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
33e39b66 AS |
1612 | --with-gmp=PATH specify prefix directory for the installed GMP |
1613 | package. Equivalent to | |
1614 | --with-gmp-include=PATH/include plus | |
1615 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1616 | --with-gmp-include=PATH specify directory for installed GMP include files |
1617 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1618 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1619 | --with-static-standard-libraries |
1620 | use -static-libstdc++ and -static-libgcc | |
1621 | (default=auto) | |
33e39b66 AS |
1622 | --with-stage1-ldflags=FLAGS |
1623 | linker flags for stage1 | |
33e39b66 AS |
1624 | --with-boot-libs=LIBS libraries for stage2 and later |
1625 | --with-boot-ldflags=FLAGS | |
1626 | linker flags for stage2 and later | |
e357a5e0 | 1627 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1628 | package. Equivalent to |
33ad93b9 RG |
1629 | --with-isl-include=PATH/include plus |
1630 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1631 | --with-isl-include=PATH Specify directory for installed isl include files |
1632 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1633 | --with-target-bdw-gc=PATHLIST |
1634 | specify prefix directory for installed bdw-gc | |
1635 | package. Equivalent to | |
1636 | --with-target-bdw-gc-include=PATH/include plus | |
1637 | --with-target-bdw-gc-lib=PATH/lib | |
1638 | --with-target-bdw-gc-include=PATHLIST | |
1639 | specify directories for installed bdw-gc include | |
1640 | files | |
1641 | --with-target-bdw-gc-lib=PATHLIST | |
1642 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1643 | --with-gcc-major-version-only |
1644 | use only GCC major number in filesystem paths | |
30b74385 | 1645 | --with-build-sysroot=SYSROOT |
1c710c3c | 1646 | use sysroot as the system root during the build |
c8aea42c | 1647 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1648 | map A to B, C to D ... in debug information |
1649 | --with-build-config='NAME NAME2...' | |
1650 | use config/NAME.mk build configuration | |
30b74385 | 1651 | --with-build-time-tools=PATH |
1c710c3c | 1652 | use given path to find target tools during the build |
1c710c3c DJ |
1653 | |
1654 | Some influential environment variables: | |
1655 | CC C compiler command | |
1656 | CFLAGS C compiler flags | |
1657 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1658 | nonstandard directory <lib dir> | |
5213506e | 1659 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1660 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1661 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1662 | CXX C++ compiler command |
1663 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1664 | build_configargs |
1665 | additional configure arguments for build directories | |
1666 | host_configargs | |
1667 | additional configure arguments for host directories | |
1668 | target_configargs | |
1669 | additional configure arguments for target directories | |
278a7a38 AO |
1670 | AR AR for the host |
1671 | AS AS for the host | |
1672 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1673 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1674 | LD LD for the host |
1675 | LIPO LIPO for the host | |
1676 | NM NM for the host | |
1677 | RANLIB RANLIB for the host | |
1678 | STRIP STRIP for the host | |
1679 | WINDRES WINDRES for the host | |
901119ae | 1680 | WINDMC WINDMC for the host |
278a7a38 AO |
1681 | OBJCOPY OBJCOPY for the host |
1682 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1683 | OTOOL OTOOL for the host |
e7a82751 | 1684 | READELF READELF for the host |
278a7a38 AO |
1685 | CC_FOR_TARGET |
1686 | CC for the target | |
1687 | CXX_FOR_TARGET | |
1688 | CXX for the target | |
1689 | GCC_FOR_TARGET | |
1690 | GCC for the target | |
278a7a38 AO |
1691 | GFORTRAN_FOR_TARGET |
1692 | GFORTRAN for the target | |
632e2a07 ILT |
1693 | GOC_FOR_TARGET |
1694 | GOC for the target | |
b4c522fa IB |
1695 | GDC_FOR_TARGET |
1696 | GDC for the target | |
1eee94d3 GM |
1697 | GM2_FOR_TARGET |
1698 | GM2 for the target | |
278a7a38 AO |
1699 | AR_FOR_TARGET |
1700 | AR for the target | |
1701 | AS_FOR_TARGET | |
1702 | AS for the target | |
1703 | DLLTOOL_FOR_TARGET | |
1704 | DLLTOOL for the target | |
3b5e8ee4 IS |
1705 | DSYMUTIL_FOR_TARGET |
1706 | DSYMUTIL for the target | |
278a7a38 AO |
1707 | LD_FOR_TARGET |
1708 | LD for the target | |
1709 | LIPO_FOR_TARGET | |
1710 | LIPO for the target | |
1711 | NM_FOR_TARGET | |
1712 | NM for the target | |
9bccfdf5 AP |
1713 | OBJCOPY_FOR_TARGET |
1714 | OBJCOPY for the target | |
278a7a38 AO |
1715 | OBJDUMP_FOR_TARGET |
1716 | OBJDUMP for the target | |
e4a9a572 IS |
1717 | OTOOL_FOR_TARGET |
1718 | OTOOL for the target | |
278a7a38 AO |
1719 | RANLIB_FOR_TARGET |
1720 | RANLIB for the target | |
e7a82751 RM |
1721 | READELF_FOR_TARGET |
1722 | READELF for the target | |
278a7a38 AO |
1723 | STRIP_FOR_TARGET |
1724 | STRIP for the target | |
1725 | WINDRES_FOR_TARGET | |
1726 | WINDRES for the target | |
901119ae KT |
1727 | WINDMC_FOR_TARGET |
1728 | WINDMC for the target | |
1c710c3c DJ |
1729 | |
1730 | Use these variables to override the choices made by `configure' or to help | |
1731 | it to find libraries and programs with nonstandard names/locations. | |
1732 | ||
5213506e | 1733 | Report bugs to the package provider. |
1c710c3c | 1734 | _ACEOF |
5213506e | 1735 | ac_status=$? |
1c710c3c DJ |
1736 | fi |
1737 | ||
1738 | if test "$ac_init_help" = "recursive"; then | |
1739 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1740 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1741 | test -d "$ac_dir" || |
1742 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1743 | continue | |
1c710c3c DJ |
1744 | ac_builddir=. |
1745 | ||
5213506e RW |
1746 | case "$ac_dir" in |
1747 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1748 | *) | |
1749 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1750 | # A ".." for each directory in $ac_dir_suffix. | |
1751 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1752 | case $ac_top_builddir_sub in | |
1753 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1754 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1755 | esac ;; | |
1756 | esac | |
1757 | ac_abs_top_builddir=$ac_pwd | |
1758 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1759 | # for backward compatibility: | |
1760 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1761 | |
1762 | case $srcdir in | |
5213506e | 1763 | .) # We are building in place. |
1c710c3c | 1764 | ac_srcdir=. |
5213506e RW |
1765 | ac_top_srcdir=$ac_top_builddir_sub |
1766 | ac_abs_top_srcdir=$ac_pwd ;; | |
1767 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1768 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1769 | ac_top_srcdir=$srcdir |
1770 | ac_abs_top_srcdir=$srcdir ;; | |
1771 | *) # Relative name. | |
1772 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1773 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1774 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1775 | esac |
5213506e RW |
1776 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1777 | ||
1778 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1779 | # Check for guested configure. | |
1780 | if test -f "$ac_srcdir/configure.gnu"; then | |
1781 | echo && | |
1782 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1783 | elif test -f "$ac_srcdir/configure"; then | |
1784 | echo && | |
1785 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1786 | else |
5213506e RW |
1787 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1788 | fi || ac_status=$? | |
1789 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1790 | done |
1791 | fi | |
1792 | ||
5213506e | 1793 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1794 | if $ac_init_version; then |
1795 | cat <<\_ACEOF | |
5213506e | 1796 | configure |
22e05272 | 1797 | generated by GNU Autoconf 2.69 |
1c710c3c | 1798 | |
22e05272 | 1799 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1800 | This configure script is free software; the Free Software Foundation |
1801 | gives unlimited permission to copy, distribute and modify it. | |
1802 | _ACEOF | |
5213506e | 1803 | exit |
0b0dc272 | 1804 | fi |
5213506e RW |
1805 | |
1806 | ## ------------------------ ## | |
1807 | ## Autoconf initialization. ## | |
1808 | ## ------------------------ ## | |
1809 | ||
1810 | # ac_fn_c_try_compile LINENO | |
1811 | # -------------------------- | |
1812 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1813 | ac_fn_c_try_compile () | |
1814 | { | |
1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1816 | rm -f conftest.$ac_objext | |
1817 | if { { ac_try="$ac_compile" | |
1818 | case "(($ac_try" in | |
1819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1820 | *) ac_try_echo=$ac_try;; | |
1821 | esac | |
1822 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1823 | $as_echo "$ac_try_echo"; } >&5 | |
1824 | (eval "$ac_compile") 2>conftest.err | |
1825 | ac_status=$? | |
1826 | if test -s conftest.err; then | |
1827 | grep -v '^ *+' conftest.err >conftest.er1 | |
1828 | cat conftest.er1 >&5 | |
1829 | mv -f conftest.er1 conftest.err | |
1830 | fi | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; } && { | |
1833 | test -z "$ac_c_werror_flag" || | |
1834 | test ! -s conftest.err | |
1835 | } && test -s conftest.$ac_objext; then : | |
1836 | ac_retval=0 | |
1837 | else | |
1838 | $as_echo "$as_me: failed program was:" >&5 | |
1839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1840 | ||
1841 | ac_retval=1 | |
1842 | fi | |
22e05272 JM |
1843 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1844 | as_fn_set_status $ac_retval | |
5213506e RW |
1845 | |
1846 | } # ac_fn_c_try_compile | |
1847 | ||
1848 | # ac_fn_cxx_try_compile LINENO | |
1849 | # ---------------------------- | |
1850 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1851 | ac_fn_cxx_try_compile () | |
1852 | { | |
1853 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1854 | rm -f conftest.$ac_objext | |
1855 | if { { ac_try="$ac_compile" | |
1856 | case "(($ac_try" in | |
1857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1858 | *) ac_try_echo=$ac_try;; | |
1859 | esac | |
1860 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1861 | $as_echo "$ac_try_echo"; } >&5 | |
1862 | (eval "$ac_compile") 2>conftest.err | |
1863 | ac_status=$? | |
1864 | if test -s conftest.err; then | |
1865 | grep -v '^ *+' conftest.err >conftest.er1 | |
1866 | cat conftest.er1 >&5 | |
1867 | mv -f conftest.er1 conftest.err | |
1868 | fi | |
1869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1870 | test $ac_status = 0; } && { | |
1871 | test -z "$ac_cxx_werror_flag" || | |
1872 | test ! -s conftest.err | |
1873 | } && test -s conftest.$ac_objext; then : | |
1874 | ac_retval=0 | |
1875 | else | |
1876 | $as_echo "$as_me: failed program was:" >&5 | |
1877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1878 | ||
1879 | ac_retval=1 | |
1880 | fi | |
22e05272 JM |
1881 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1882 | as_fn_set_status $ac_retval | |
5213506e RW |
1883 | |
1884 | } # ac_fn_cxx_try_compile | |
1885 | ||
0b21f5d3 EB |
1886 | # ac_fn_cxx_try_link LINENO |
1887 | # ------------------------- | |
1888 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1889 | ac_fn_cxx_try_link () | |
1890 | { | |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1893 | if { { ac_try="$ac_link" | |
1894 | case "(($ac_try" in | |
1895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1896 | *) ac_try_echo=$ac_try;; | |
1897 | esac | |
1898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1899 | $as_echo "$ac_try_echo"; } >&5 | |
1900 | (eval "$ac_link") 2>conftest.err | |
1901 | ac_status=$? | |
1902 | if test -s conftest.err; then | |
1903 | grep -v '^ *+' conftest.err >conftest.er1 | |
1904 | cat conftest.er1 >&5 | |
1905 | mv -f conftest.er1 conftest.err | |
1906 | fi | |
1907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1908 | test $ac_status = 0; } && { | |
1909 | test -z "$ac_cxx_werror_flag" || | |
1910 | test ! -s conftest.err | |
1911 | } && test -s conftest$ac_exeext && { | |
1912 | test "$cross_compiling" = yes || | |
22e05272 | 1913 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1914 | }; then : |
1915 | ac_retval=0 | |
1916 | else | |
1917 | $as_echo "$as_me: failed program was:" >&5 | |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1919 | ||
1920 | ac_retval=1 | |
1921 | fi | |
1922 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1923 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1924 | # interfere with the next link command; also delete a directory that is | |
1925 | # left behind by Apple's compiler. We do this before executing the actions. | |
1926 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1928 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1929 | |
1930 | } # ac_fn_cxx_try_link | |
1931 | ||
5213506e RW |
1932 | # ac_fn_c_try_link LINENO |
1933 | # ----------------------- | |
1934 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1935 | ac_fn_c_try_link () | |
1936 | { | |
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1939 | if { { ac_try="$ac_link" | |
1940 | case "(($ac_try" in | |
1941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1942 | *) ac_try_echo=$ac_try;; | |
1943 | esac | |
1944 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1945 | $as_echo "$ac_try_echo"; } >&5 | |
1946 | (eval "$ac_link") 2>conftest.err | |
1947 | ac_status=$? | |
1948 | if test -s conftest.err; then | |
1949 | grep -v '^ *+' conftest.err >conftest.er1 | |
1950 | cat conftest.er1 >&5 | |
1951 | mv -f conftest.er1 conftest.err | |
1952 | fi | |
1953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1954 | test $ac_status = 0; } && { | |
1955 | test -z "$ac_c_werror_flag" || | |
1956 | test ! -s conftest.err | |
1957 | } && test -s conftest$ac_exeext && { | |
1958 | test "$cross_compiling" = yes || | |
22e05272 | 1959 | test -x conftest$ac_exeext |
5213506e RW |
1960 | }; then : |
1961 | ac_retval=0 | |
1962 | else | |
1963 | $as_echo "$as_me: failed program was:" >&5 | |
1964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1965 | ||
1966 | ac_retval=1 | |
1967 | fi | |
1968 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1969 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1970 | # interfere with the next link command; also delete a directory that is | |
1971 | # left behind by Apple's compiler. We do this before executing the actions. | |
1972 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1973 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1974 | as_fn_set_status $ac_retval | |
5213506e RW |
1975 | |
1976 | } # ac_fn_c_try_link | |
1977 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1978 | This file contains any messages produced by compilers while |
1979 | running configure, to aid debugging if configure makes a mistake. | |
1980 | ||
1981 | It was created by $as_me, which was | |
22e05272 | 1982 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1983 | |
1984 | $ $0 $@ | |
1985 | ||
1986 | _ACEOF | |
5213506e | 1987 | exec 5>>config.log |
1c710c3c DJ |
1988 | { |
1989 | cat <<_ASUNAME | |
1990 | ## --------- ## | |
1991 | ## Platform. ## | |
1992 | ## --------- ## | |
1993 | ||
1994 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1995 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1996 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1997 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1998 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1999 | ||
2000 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2001 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2002 | ||
2003 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2004 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2005 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 2006 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
2007 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2008 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2009 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2010 | ||
2011 | _ASUNAME | |
2012 | ||
2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2014 | for as_dir in $PATH | |
2015 | do | |
2016 | IFS=$as_save_IFS | |
2017 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2018 | $as_echo "PATH: $as_dir" |
2019 | done | |
2020 | IFS=$as_save_IFS | |
1c710c3c DJ |
2021 | |
2022 | } >&5 | |
2023 | ||
2024 | cat >&5 <<_ACEOF | |
2025 | ||
2026 | ||
2027 | ## ----------- ## | |
2028 | ## Core tests. ## | |
2029 | ## ----------- ## | |
2030 | ||
2031 | _ACEOF | |
2032 | ||
2033 | ||
2034 | # Keep a trace of the command line. | |
2035 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2036 | # Strip out --silent because we don't want to record it for future runs. | |
2037 | # Also quote any args containing shell meta-characters. | |
2038 | # Make two passes to allow for proper duplicate-argument suppression. | |
2039 | ac_configure_args= | |
2040 | ac_configure_args0= | |
2041 | ac_configure_args1= | |
1c710c3c DJ |
2042 | ac_must_keep_next=false |
2043 | for ac_pass in 1 2 | |
2044 | do | |
2045 | for ac_arg | |
2046 | do | |
2047 | case $ac_arg in | |
2048 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2049 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2050 | | -silent | --silent | --silen | --sile | --sil) | |
2051 | continue ;; | |
5213506e RW |
2052 | *\'*) |
2053 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2054 | esac |
2055 | case $ac_pass in | |
5213506e | 2056 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2057 | 2) |
5213506e | 2058 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2059 | if test $ac_must_keep_next = true; then |
2060 | ac_must_keep_next=false # Got value, back to normal. | |
2061 | else | |
2062 | case $ac_arg in | |
2063 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2064 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2065 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2066 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2067 | case "$ac_configure_args0 " in | |
2068 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2069 | esac | |
2070 | ;; | |
2071 | -* ) ac_must_keep_next=true ;; | |
2072 | esac | |
2073 | fi | |
5213506e | 2074 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2075 | ;; |
2076 | esac | |
2077 | done | |
2078 | done | |
5213506e RW |
2079 | { ac_configure_args0=; unset ac_configure_args0;} |
2080 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2081 | |
2082 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2083 | # config.log. We remove comments because anyway the quotes in there | |
2084 | # would cause problems or look ugly. | |
5213506e RW |
2085 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2086 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2087 | trap 'exit_status=$? |
2088 | # Save into config.log some information that might help in debugging. | |
2089 | { | |
2090 | echo | |
2091 | ||
22e05272 | 2092 | $as_echo "## ---------------- ## |
1c710c3c | 2093 | ## Cache variables. ## |
22e05272 | 2094 | ## ---------------- ##" |
1c710c3c DJ |
2095 | echo |
2096 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2097 | ( |
2098 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2099 | eval ac_val=\$$ac_var | |
2100 | case $ac_val in #( | |
2101 | *${as_nl}*) | |
2102 | case $ac_var in #( | |
2103 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2104 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2105 | esac | |
2106 | case $ac_var in #( | |
2107 | _ | IFS | as_nl) ;; #( | |
2108 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2109 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2110 | esac ;; | |
2111 | esac | |
2112 | done | |
1c710c3c | 2113 | (set) 2>&1 | |
5213506e RW |
2114 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2115 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2116 | sed -n \ |
5213506e RW |
2117 | "s/'\''/'\''\\\\'\'''\''/g; |
2118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2119 | ;; #( | |
1c710c3c | 2120 | *) |
5213506e | 2121 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2122 | ;; |
5213506e RW |
2123 | esac | |
2124 | sort | |
2125 | ) | |
1c710c3c DJ |
2126 | echo |
2127 | ||
22e05272 | 2128 | $as_echo "## ----------------- ## |
1c710c3c | 2129 | ## Output variables. ## |
22e05272 | 2130 | ## ----------------- ##" |
1c710c3c DJ |
2131 | echo |
2132 | for ac_var in $ac_subst_vars | |
2133 | do | |
5213506e RW |
2134 | eval ac_val=\$$ac_var |
2135 | case $ac_val in | |
2136 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2137 | esac | |
2138 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2139 | done | sort |
2140 | echo | |
2141 | ||
2142 | if test -n "$ac_subst_files"; then | |
22e05272 | 2143 | $as_echo "## ------------------- ## |
5213506e | 2144 | ## File substitutions. ## |
22e05272 | 2145 | ## ------------------- ##" |
1c710c3c DJ |
2146 | echo |
2147 | for ac_var in $ac_subst_files | |
2148 | do | |
5213506e RW |
2149 | eval ac_val=\$$ac_var |
2150 | case $ac_val in | |
2151 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2152 | esac | |
2153 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2154 | done | sort |
2155 | echo | |
2156 | fi | |
2157 | ||
2158 | if test -s confdefs.h; then | |
22e05272 | 2159 | $as_echo "## ----------- ## |
1c710c3c | 2160 | ## confdefs.h. ## |
22e05272 | 2161 | ## ----------- ##" |
1c710c3c | 2162 | echo |
5213506e | 2163 | cat confdefs.h |
1c710c3c DJ |
2164 | echo |
2165 | fi | |
2166 | test "$ac_signal" != 0 && | |
5213506e RW |
2167 | $as_echo "$as_me: caught signal $ac_signal" |
2168 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2169 | } >&5 |
5213506e RW |
2170 | rm -f core *.core core.conftest.* && |
2171 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2172 | exit $exit_status |
5213506e | 2173 | ' 0 |
1c710c3c | 2174 | for ac_signal in 1 2 13 15; do |
5213506e | 2175 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2176 | done |
2177 | ac_signal=0 | |
2178 | ||
2179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2180 | rm -f -r conftest* confdefs.h |
2181 | ||
2182 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2183 | |
2184 | # Predefined preprocessor variables. | |
2185 | ||
2186 | cat >>confdefs.h <<_ACEOF | |
2187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2188 | _ACEOF | |
2189 | ||
1c710c3c DJ |
2190 | cat >>confdefs.h <<_ACEOF |
2191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2192 | _ACEOF | |
2193 | ||
1c710c3c DJ |
2194 | cat >>confdefs.h <<_ACEOF |
2195 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2196 | _ACEOF | |
0b0dc272 | 2197 | |
1c710c3c DJ |
2198 | cat >>confdefs.h <<_ACEOF |
2199 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2200 | _ACEOF | |
2201 | ||
1c710c3c DJ |
2202 | cat >>confdefs.h <<_ACEOF |
2203 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2204 | _ACEOF | |
2205 | ||
5213506e RW |
2206 | cat >>confdefs.h <<_ACEOF |
2207 | #define PACKAGE_URL "$PACKAGE_URL" | |
2208 | _ACEOF | |
2209 | ||
1c710c3c DJ |
2210 | |
2211 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2212 | # Prefer an explicitly selected file to automatically selected ones. |
2213 | ac_site_file1=NONE | |
2214 | ac_site_file2=NONE | |
2215 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2216 | # We do not want a PATH search for config.site. |
2217 | case $CONFIG_SITE in #(( | |
2218 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2219 | */*) ac_site_file1=$CONFIG_SITE;; | |
2220 | *) ac_site_file1=./$CONFIG_SITE;; | |
2221 | esac | |
5213506e RW |
2222 | elif test "x$prefix" != xNONE; then |
2223 | ac_site_file1=$prefix/share/config.site | |
2224 | ac_site_file2=$prefix/etc/config.site | |
2225 | else | |
2226 | ac_site_file1=$ac_default_prefix/share/config.site | |
2227 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2228 | fi |
5213506e RW |
2229 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2230 | do | |
2231 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2232 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2234 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2235 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2236 | . "$ac_site_file" \ |
2237 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2239 | as_fn_error $? "failed to load site script $ac_site_file | |
2240 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2241 | fi |
2242 | done | |
2243 | ||
2244 | if test -r "$cache_file"; then | |
22e05272 JM |
2245 | # Some versions of bash will fail to source /dev/null (special files |
2246 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2247 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2249 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2250 | case $cache_file in |
5213506e RW |
2251 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2252 | *) . "./$cache_file";; | |
1c710c3c DJ |
2253 | esac |
2254 | fi | |
671aa708 | 2255 | else |
5213506e RW |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2257 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2258 | >$cache_file |
2259 | fi | |
2260 | ||
2261 | # Check that the precious variables saved in the cache have kept the same | |
2262 | # value. | |
2263 | ac_cache_corrupted=false | |
5213506e | 2264 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2265 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2266 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2267 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2268 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2269 | case $ac_old_set,$ac_new_set in |
2270 | set,) | |
5213506e RW |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2272 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2273 | ac_cache_corrupted=: ;; |
2274 | ,set) | |
5213506e RW |
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2276 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2277 | ac_cache_corrupted=: ;; |
2278 | ,);; | |
2279 | *) | |
2280 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2281 | # differences in whitespace do not lead to failure. |
2282 | ac_old_val_w=`echo x $ac_old_val` | |
2283 | ac_new_val_w=`echo x $ac_new_val` | |
2284 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2286 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2287 | ac_cache_corrupted=: | |
2288 | else | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2290 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2291 | eval $ac_var=\$ac_old_val | |
2292 | fi | |
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2294 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2296 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2297 | fi;; |
2298 | esac | |
2299 | # Pass precious variables to config.status. | |
2300 | if test "$ac_new_set" = set; then | |
2301 | case $ac_new_val in | |
5213506e | 2302 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2303 | *) ac_arg=$ac_var=$ac_new_val ;; |
2304 | esac | |
2305 | case " $ac_configure_args " in | |
2306 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2307 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2308 | esac |
2309 | fi | |
2310 | done | |
2311 | if $ac_cache_corrupted; then | |
5213506e RW |
2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2315 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2316 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2317 | fi |
5213506e RW |
2318 | ## -------------------- ## |
2319 | ## Main body of script. ## | |
2320 | ## -------------------- ## | |
671aa708 | 2321 | |
2aeb72e9 DD |
2322 | ac_ext=c |
2323 | ac_cpp='$CPP $CPPFLAGS' | |
2324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2327 | ||
1c710c3c DJ |
2328 | |
2329 | ||
2330 | ||
1c710c3c DJ |
2331 | |
2332 | ||
0115d4a3 | 2333 | |
1c710c3c | 2334 | |
ad33ff57 RW |
2335 | progname=$0 |
2336 | # if PWD already has a value, it is probably wrong. | |
2337 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2338 | ||
2339 | # Export original configure arguments for use by sub-configures. | |
2340 | # Quote arguments with shell meta charatcers. | |
2341 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2342 | set -- "$progname" "$@" | |
2343 | for ac_arg | |
2344 | do | |
2345 | case "$ac_arg" in | |
2346 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2347 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2348 | # if the argument is of the form -foo=baz, quote the baz part only | |
2349 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2350 | *) ;; | |
2351 | esac | |
2352 | # Add the quoted argument to the list. | |
2353 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2354 | done | |
2355 | if test "$silent" = yes; then | |
2356 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2357 | fi | |
2358 | # Remove the initial space we just introduced and, as these will be | |
2359 | # expanded by make, quote '$'. | |
2360 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2361 | ||
1c710c3c DJ |
2362 | |
2363 | # Find the build, host, and target systems. | |
671aa708 | 2364 | ac_aux_dir= |
5213506e | 2365 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2366 | if test -f "$ac_dir/install-sh"; then |
2367 | ac_aux_dir=$ac_dir | |
2368 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2369 | break | |
2370 | elif test -f "$ac_dir/install.sh"; then | |
2371 | ac_aux_dir=$ac_dir | |
2372 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2373 | break | |
2374 | elif test -f "$ac_dir/shtool"; then | |
2375 | ac_aux_dir=$ac_dir | |
2376 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2377 | break | |
2378 | fi | |
671aa708 NN |
2379 | done |
2380 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2381 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2382 | fi |
5213506e RW |
2383 | |
2384 | # These three variables are undocumented and unsupported, | |
2385 | # and are intended to be withdrawn in a future Autoconf release. | |
2386 | # They can cause serious problems if a builder's source tree is in a directory | |
2387 | # whose full name contains unusual characters. | |
2388 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2389 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2390 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2391 | ||
671aa708 | 2392 | |
1c710c3c | 2393 | # Make sure we can run config.sub. |
5213506e | 2394 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2395 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2396 | |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2398 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2399 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2400 | $as_echo_n "(cached) " >&6 |
2401 | else | |
2402 | ac_build_alias=$build_alias | |
2403 | test "x$ac_build_alias" = x && | |
2404 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2405 | test "x$ac_build_alias" = x && | |
22e05272 | 2406 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2407 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2408 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2409 | |
2410 | fi | |
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2412 | $as_echo "$ac_cv_build" >&6; } | |
2413 | case $ac_cv_build in | |
2414 | *-*-*) ;; | |
22e05272 | 2415 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2416 | esac |
1c710c3c | 2417 | build=$ac_cv_build |
5213506e RW |
2418 | ac_save_IFS=$IFS; IFS='-' |
2419 | set x $ac_cv_build | |
2420 | shift | |
2421 | build_cpu=$1 | |
2422 | build_vendor=$2 | |
2423 | shift; shift | |
2424 | # Remember, the first character of IFS is used to create $*, | |
2425 | # except with old shells: | |
2426 | build_os=$* | |
2427 | IFS=$ac_save_IFS | |
2428 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2429 | |
671aa708 | 2430 | |
1c710c3c DJ |
2431 | case ${build_alias} in |
2432 | "") build_noncanonical=${build} ;; | |
2433 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2434 | esac |
2435 | ||
2436 | ||
af71363e | 2437 | |
1c710c3c DJ |
2438 | case ${host_alias} in |
2439 | "") host_noncanonical=${build_noncanonical} ;; | |
2440 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2441 | esac |
2442 | ||
af71363e | 2443 | |
1c710c3c DJ |
2444 | |
2445 | case ${target_alias} in | |
2446 | "") target_noncanonical=${host_noncanonical} ;; | |
2447 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2448 | esac |
2449 | ||
af71363e | 2450 | |
1c710c3c DJ |
2451 | |
2452 | ||
2453 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2454 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2455 | NONENONEs,x,x, && | |
1c710c3c | 2456 | program_transform_name=s,y,y, |
af71363e | 2457 | |
5213506e RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2459 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2460 | if ${ac_cv_host+:} false; then : |
5213506e | 2461 | $as_echo_n "(cached) " >&6 |
af71363e | 2462 | else |
5213506e RW |
2463 | if test "x$host_alias" = x; then |
2464 | ac_cv_host=$ac_cv_build | |
2465 | else | |
2466 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2467 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2468 | fi |
1c710c3c | 2469 | |
af71363e | 2470 | fi |
5213506e RW |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2472 | $as_echo "$ac_cv_host" >&6; } | |
2473 | case $ac_cv_host in | |
2474 | *-*-*) ;; | |
22e05272 | 2475 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2476 | esac |
1c710c3c | 2477 | host=$ac_cv_host |
5213506e RW |
2478 | ac_save_IFS=$IFS; IFS='-' |
2479 | set x $ac_cv_host | |
2480 | shift | |
2481 | host_cpu=$1 | |
2482 | host_vendor=$2 | |
2483 | shift; shift | |
2484 | # Remember, the first character of IFS is used to create $*, | |
2485 | # except with old shells: | |
2486 | host_os=$* | |
2487 | IFS=$ac_save_IFS | |
2488 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2489 | |
2490 | ||
5213506e RW |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2492 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2493 | if ${ac_cv_target+:} false; then : |
5213506e | 2494 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2495 | else |
5213506e RW |
2496 | if test "x$target_alias" = x; then |
2497 | ac_cv_target=$ac_cv_host | |
2498 | else | |
2499 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2500 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2501 | fi |
1c710c3c DJ |
2502 | |
2503 | fi | |
5213506e RW |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2505 | $as_echo "$ac_cv_target" >&6; } | |
2506 | case $ac_cv_target in | |
2507 | *-*-*) ;; | |
22e05272 | 2508 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2509 | esac |
1c710c3c | 2510 | target=$ac_cv_target |
5213506e RW |
2511 | ac_save_IFS=$IFS; IFS='-' |
2512 | set x $ac_cv_target | |
2513 | shift | |
2514 | target_cpu=$1 | |
2515 | target_vendor=$2 | |
2516 | shift; shift | |
2517 | # Remember, the first character of IFS is used to create $*, | |
2518 | # except with old shells: | |
2519 | target_os=$* | |
2520 | IFS=$ac_save_IFS | |
2521 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2522 | |
2523 | ||
2524 | # The aliases save the names the user supplied, while $host etc. | |
2525 | # will get canonicalized. | |
2526 | test -n "$target_alias" && | |
2527 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2528 | NONENONEs,x,x, && | |
2529 | program_prefix=${target_alias}- | |
5213506e | 2530 | |
671aa708 | 2531 | test "$program_prefix" != NONE && |
5213506e | 2532 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2533 | # Use a double $ so make ignores it. |
2534 | test "$program_suffix" != NONE && | |
5213506e RW |
2535 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2536 | # Double any \ or $. | |
1c710c3c | 2537 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2538 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2539 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2540 | |
671aa708 NN |
2541 | |
2542 | ||
775956d0 NN |
2543 | # Get 'install' or 'install-sh' and its variants. |
2544 | # Find a good install program. We prefer a C program (faster), | |
2545 | # so one script is as good as another. But avoid the broken or | |
2546 | # incompatible versions: | |
2547 | # SysV /etc/install, /usr/sbin/install | |
2548 | # SunOS /usr/etc/install | |
2549 | # IRIX /sbin/install | |
2550 | # AIX /bin/install | |
1c710c3c | 2551 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2552 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2553 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2554 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2555 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2556 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2557 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2559 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2560 | if test -z "$INSTALL"; then |
22e05272 | 2561 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2562 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2563 | else |
2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2565 | for as_dir in $PATH | |
2566 | do | |
2567 | IFS=$as_save_IFS | |
2568 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2569 | # Account for people who put trailing slashes in PATH elements. |
2570 | case $as_dir/ in #(( | |
2571 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2572 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2573 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2574 | /usr/ucb/* ) ;; |
2575 | *) | |
2576 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2577 | # Don't use installbsd from OSF since it installs stuff as root | |
2578 | # by default. | |
2579 | for ac_prog in ginstall scoinst install; do | |
2580 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2581 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2582 | if test $ac_prog = install && |
1c710c3c | 2583 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2584 | # AIX install. It has an incompatible calling convention. |
2585 | : | |
1c710c3c DJ |
2586 | elif test $ac_prog = install && |
2587 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2588 | # program-specific install script used by HP pwplus--don't use. | |
2589 | : | |
775956d0 | 2590 | else |
38d24731 RW |
2591 | rm -rf conftest.one conftest.two conftest.dir |
2592 | echo one > conftest.one | |
2593 | echo two > conftest.two | |
2594 | mkdir conftest.dir | |
2595 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2596 | test -s conftest.one && test -s conftest.two && | |
2597 | test -s conftest.dir/conftest.one && | |
2598 | test -s conftest.dir/conftest.two | |
2599 | then | |
2600 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2601 | break 3 | |
2602 | fi | |
775956d0 NN |
2603 | fi |
2604 | fi | |
2605 | done | |
1c710c3c DJ |
2606 | done |
2607 | ;; | |
2608 | esac | |
5213506e RW |
2609 | |
2610 | done | |
2611 | IFS=$as_save_IFS | |
1c710c3c | 2612 | |
38d24731 | 2613 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2614 | |
2615 | fi | |
2616 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2617 | INSTALL=$ac_cv_path_install |
775956d0 | 2618 | else |
38d24731 RW |
2619 | # As a last resort, use the slow shell script. Don't cache a |
2620 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2621 | # break other packages using the cache if that directory is |
38d24731 | 2622 | # removed, or if the value is a relative name. |
1c710c3c | 2623 | INSTALL=$ac_install_sh |
775956d0 NN |
2624 | fi |
2625 | fi | |
5213506e RW |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2627 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2628 | |
2629 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2630 | # It thinks the first close brace ends the variable substitution. | |
2631 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2632 | ||
1c710c3c | 2633 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2634 | |
2635 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2636 | ||
5213506e RW |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2638 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2639 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2640 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2641 | else |
2642 | rm -f conftestdata_t | |
2643 | echo >conftestdata_f | |
2644 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2645 | then | |
2646 | acx_cv_prog_LN=ln | |
2647 | else | |
2648 | acx_cv_prog_LN=no | |
2649 | fi | |
2650 | rm -f conftestdata_f conftestdata_t | |
2651 | ||
2652 | fi | |
2653 | if test $acx_cv_prog_LN = no; then | |
2654 | LN="cp" | |
5213506e RW |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2656 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2657 | else |
2658 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2660 | $as_echo "yes" >&6; } | |
ad6717df PB |
2661 | fi |
2662 | ||
5213506e RW |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2664 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2665 | LN_S=$as_ln_s |
2666 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2668 | $as_echo "yes" >&6; } | |
fb0103e5 | 2669 | else |
5213506e RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2671 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2672 | fi |
2673 | ||
87264276 PB |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2675 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2676 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2677 | $as_echo_n "(cached) " >&6 |
2678 | else | |
2679 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2680 | for ac_i in 1 2 3 4 5 6 7; do | |
2681 | ac_script="$ac_script$as_nl$ac_script" | |
2682 | done | |
2683 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2684 | { ac_script=; unset ac_script;} | |
2685 | if test -z "$SED"; then | |
2686 | ac_path_SED_found=false | |
2687 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | for as_dir in $PATH | |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
2693 | for ac_prog in sed gsed; do | |
2694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2695 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2696 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2697 | # Check for GNU ac_path_SED and select it if it is found. |
2698 | # Check for GNU $ac_path_SED | |
2699 | case `"$ac_path_SED" --version 2>&1` in | |
2700 | *GNU*) | |
2701 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2702 | *) | |
2703 | ac_count=0 | |
2704 | $as_echo_n 0123456789 >"conftest.in" | |
2705 | while : | |
2706 | do | |
2707 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2708 | mv "conftest.tmp" "conftest.in" | |
2709 | cp "conftest.in" "conftest.nl" | |
2710 | $as_echo '' >> "conftest.nl" | |
2711 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2712 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2713 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2714 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2715 | # Best one so far, save it but keep looking for a better one | |
2716 | ac_cv_path_SED="$ac_path_SED" | |
2717 | ac_path_SED_max=$ac_count | |
2718 | fi | |
2719 | # 10*(2^10) chars as input seems more than enough | |
2720 | test $ac_count -gt 10 && break | |
2721 | done | |
2722 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2723 | esac | |
2724 | ||
2725 | $ac_path_SED_found && break 3 | |
2726 | done | |
2727 | done | |
2728 | done | |
2729 | IFS=$as_save_IFS | |
2730 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2731 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2732 | fi |
2733 | else | |
2734 | ac_cv_path_SED=$SED | |
2735 | fi | |
2736 | ||
2737 | fi | |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2739 | $as_echo "$ac_cv_path_SED" >&6; } | |
2740 | SED="$ac_cv_path_SED" | |
2741 | rm -f conftest.sed | |
2742 | ||
2743 | for ac_prog in gawk mawk nawk awk | |
2744 | do | |
2745 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2746 | set dummy $ac_prog; ac_word=$2 | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2748 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2749 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2750 | $as_echo_n "(cached) " >&6 |
2751 | else | |
2752 | if test -n "$AWK"; then | |
2753 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2754 | else | |
2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2756 | for as_dir in $PATH | |
2757 | do | |
2758 | IFS=$as_save_IFS | |
2759 | test -z "$as_dir" && as_dir=. | |
2760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2762 | ac_cv_prog_AWK="$ac_prog" |
2763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2764 | break 2 | |
2765 | fi | |
2766 | done | |
2767 | done | |
2768 | IFS=$as_save_IFS | |
2769 | ||
2770 | fi | |
2771 | fi | |
2772 | AWK=$ac_cv_prog_AWK | |
2773 | if test -n "$AWK"; then | |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2775 | $as_echo "$AWK" >&6; } | |
2776 | else | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2778 | $as_echo "no" >&6; } | |
2779 | fi | |
2780 | ||
2781 | ||
2782 | test -n "$AWK" && break | |
2783 | done | |
2784 | ||
775956d0 | 2785 | |
ee6a22df L |
2786 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2787 | ||
2788 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2789 | # a relative path. | |
2790 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2791 | INSTALL="${srcpwd}/install-sh -c" | |
2792 | fi | |
2793 | ||
671aa708 NN |
2794 | # Set srcdir to "." if that's what it is. |
2795 | # This is important for multilib support. | |
2796 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2797 | if test "${pwd}" = "${srcpwd}" ; then |
2798 | srcdir=. | |
79c06341 JL |
2799 | fi |
2800 | ||
671aa708 | 2801 | topsrcdir=$srcpwd |
5d4a5ee6 | 2802 | |
671aa708 | 2803 | extra_host_args= |
afabd8e6 | 2804 | |
671aa708 NN |
2805 | ### To add a new directory to the tree, first choose whether it is a target |
2806 | ### or a host dependent tool. Then put it into the appropriate list | |
2807 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2808 | |
1c710c3c | 2809 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2810 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2811 | |
1c710c3c DJ |
2812 | # Dependency sorting is only needed when *configuration* must be done in |
2813 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2814 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2815 | |
671aa708 NN |
2816 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2817 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2818 | |
23f6b2f9 PB |
2819 | # these library is used by various programs built for the build |
2820 | # environment | |
2821 | # | |
929315a9 | 2822 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2823 | |
2824 | # these tools are built for the build environment | |
85bfb75e | 2825 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2826 | |
671aa708 | 2827 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2828 | #f |
3de627ff | 2829 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe" |
671aa708 | 2830 | |
671aa708 NN |
2831 | # these tools are built for the host environment |
2832 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2833 | # know that we are building the simulator. | |
2834 | # binutils, gas and ld appear in that order because it makes sense to run | |
2835 | # "make check" in that particular order. | |
38e3d868 | 2836 | # If --enable-gold is used, "gold" may replace "ld". |
1eee94d3 | 2837 | 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 gm2tools gotools c++tools" |
671aa708 | 2838 | |
671aa708 NN |
2839 | # these libraries are built for the target environment, and are built after |
2840 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2841 | # Note that libiberty is not a target library. |
291f172e | 2842 | target_libraries="target-libgcc \ |
eff02e4f | 2843 | target-libbacktrace \ |
671aa708 NN |
2844 | target-libgloss \ |
2845 | target-newlib \ | |
6d3b5aea | 2846 | target-libgomp \ |
48310492 | 2847 | target-libatomic \ |
0a35513e | 2848 | target-libitm \ |
cb543528 | 2849 | target-libstdc++-v3 \ |
f35db108 | 2850 | target-libsanitizer \ |
2077db1b | 2851 | target-libvtv \ |
77008252 | 2852 | target-libssp \ |
1ec601bf | 2853 | target-libquadmath \ |
6de9cd9a | 2854 | target-libgfortran \ |
012447ea | 2855 | target-libffi \ |
d9cdb878 | 2856 | target-libobjc \ |
632e2a07 | 2857 | target-libada \ |
1eee94d3 | 2858 | target-libgm2 \ |
b4c522fa | 2859 | target-libgo \ |
bb50312e IB |
2860 | target-libphobos \ |
2861 | target-zlib" | |
671aa708 | 2862 | |
4dbda6f0 NN |
2863 | # these tools are built using the target libraries, and are intended to |
2864 | # run only in the target environment | |
671aa708 | 2865 | # |
4dbda6f0 | 2866 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2867 | # list belongs in this list. |
671aa708 | 2868 | # |
85bfb75e | 2869 | target_tools="target-rda" |
79c06341 | 2870 | |
671aa708 | 2871 | ################################################################################ |
79c06341 | 2872 | |
671aa708 NN |
2873 | ## All tools belong in one of the four categories, and are assigned above |
2874 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2875 | ## is important because configure will choke if they ever get through. | |
2876 | ## ${configdirs} is directories we build using the host tools. | |
2877 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2878 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2879 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2880 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2881 | |
ac9e6043 RW |
2882 | |
2883 | ||
671aa708 | 2884 | ################################################################################ |
79c06341 | 2885 | |
671aa708 | 2886 | srcname="gnu development package" |
79c06341 | 2887 | |
671aa708 NN |
2888 | # This gets set non-empty for some net releases of packages. |
2889 | appdirs="" | |
79c06341 | 2890 | |
671aa708 NN |
2891 | # Define is_cross_compiler to save on calls to 'test'. |
2892 | is_cross_compiler= | |
2893 | if test x"${host}" = x"${target}" ; then | |
2894 | is_cross_compiler=no | |
79c06341 | 2895 | else |
671aa708 | 2896 | is_cross_compiler=yes |
1c710c3c | 2897 | fi |
79c06341 | 2898 | |
b4acb5ef | 2899 | # Find the build and target subdir names. |
8b87bb96 | 2900 | |
2e9e6f68 DJ |
2901 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2902 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2903 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2904 | # However, they still use the build modules, because the corresponding | |
2905 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2906 | # finishes. So: | |
2907 | # - build_subdir is where we find build modules, and never changes. | |
2908 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2909 | ||
2910 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2911 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2912 | |
5213506e RW |
2913 | # Check whether --with-build-libsubdir was given. |
2914 | if test "${with_build_libsubdir+set}" = set; then : | |
2915 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2916 | else |
2917 | build_libsubdir="$build_subdir" | |
5213506e RW |
2918 | fi |
2919 | ||
215c351a PB |
2920 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2921 | if ( test $srcdir = . && test -d gcc ) \ | |
2922 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2923 | host_subdir="host-${host_noncanonical}" | |
2924 | else | |
2925 | host_subdir=. | |
2926 | fi | |
8b87bb96 NN |
2927 | # No prefix. |
2928 | target_subdir=${target_noncanonical} | |
1c710c3c | 2929 | |
0db770bd RW |
2930 | # Be sure to cover against remnants of an in-tree build. |
2931 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2932 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2933 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2934 | fi | |
79c06341 | 2935 | |
671aa708 NN |
2936 | # Skipdirs are removed silently. |
2937 | skipdirs= | |
2938 | # Noconfigdirs are removed loudly. | |
2939 | noconfigdirs="" | |
79c06341 | 2940 | |
671aa708 NN |
2941 | use_gnu_ld= |
2942 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2943 | if test x$with_gnu_ld = xno ; then | |
2944 | use_gnu_ld=no | |
5afab7ad | 2945 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2946 | fi |
2947 | ||
671aa708 NN |
2948 | use_gnu_as= |
2949 | # Make sure we don't let GNU as be added if we didn't want it. | |
2950 | if test x$with_gnu_as = xno ; then | |
2951 | use_gnu_as=no | |
2952 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2953 | fi |
2954 | ||
d7f09764 | 2955 | use_included_zlib= |
a05c2c75 L |
2956 | |
2957 | # Check whether --with-system-zlib was given. | |
2958 | if test "${with_system_zlib+set}" = set; then : | |
2959 | withval=$with_system_zlib; | |
2960 | fi | |
2961 | ||
d7f09764 DN |
2962 | # Make sure we don't let ZLIB be added if we didn't want it. |
2963 | if test x$with_system_zlib = xyes ; then | |
2964 | use_included_zlib=no | |
2965 | noconfigdirs="$noconfigdirs zlib" | |
2966 | fi | |
2967 | ||
36ba9851 ДП |
2968 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2969 | # is provided. | |
2970 | if test x$with_system_readline = xyes ; then | |
2971 | noconfigdirs="$noconfigdirs readline" | |
2972 | fi | |
2973 | ||
407a2c9a FS |
2974 | |
2975 | # Check whether --with-zstd was given. | |
2976 | if test "${with_zstd+set}" = set; then : | |
2977 | withval=$with_zstd; | |
2978 | fi | |
2979 | ||
2980 | ||
1c710c3c | 2981 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2982 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2983 | |
671aa708 NN |
2984 | case ${with_x} in |
2985 | yes | "") ;; # the default value for this tree is that X11 is available | |
2986 | no) | |
b4f96efe | 2987 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2988 | # We won't be able to build gdbtk without X. |
1c710c3c | 2989 | enable_gdbtk=no |
671aa708 NN |
2990 | ;; |
2991 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2992 | esac | |
79c06341 | 2993 | |
1bcce263 | 2994 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2995 | # Remove these if host=target. |
2996 | cross_only="target-libgloss target-newlib target-opcodes" | |
2997 | ||
2998 | case $is_cross_compiler in | |
2999 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 3000 | esac |
79c06341 | 3001 | |
671aa708 NN |
3002 | # If both --with-headers and --with-libs are specified, default to |
3003 | # --without-newlib. | |
ee6a22df L |
3004 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
3005 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
3006 | if test x"${with_newlib}" = x ; then |
3007 | with_newlib=no | |
3008 | fi | |
79c06341 JL |
3009 | fi |
3010 | ||
671aa708 NN |
3011 | # Recognize --with-newlib/--without-newlib. |
3012 | case ${with_newlib} in | |
3013 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3014 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3015 | esac | |
79c06341 | 3016 | |
85c64bbe BS |
3017 | # Check whether --enable-as-accelerator-for was given. |
3018 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 3019 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
3020 | fi |
3021 | ||
3022 | ||
3023 | # Check whether --enable-offload-targets was given. | |
3024 | if test "${enable_offload_targets+set}" = set; then : | |
3025 | enableval=$enable_offload_targets; | |
3026 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 3027 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
3028 | fi |
3029 | ||
3030 | else | |
3031 | enable_offload_targets= | |
3032 | fi | |
3033 | ||
3034 | ||
fe5bfa67 TB |
3035 | # Check whether --enable-offload-defaulted was given. |
3036 | if test "${enable_offload_defaulted+set}" = set; then : | |
3037 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3038 | else | |
3039 | enable_offload_defaulted= | |
3040 | fi | |
3041 | ||
3042 | ||
21539e2e MK |
3043 | # Handle --enable-gold, --enable-ld. |
3044 | # --disable-gold [--enable-ld] | |
3045 | # Build only ld. Default option. | |
9580395f L |
3046 | # --enable-gold [--enable-ld] |
3047 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3048 | # as "ld.bfd" and "ld". | |
3049 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3050 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3051 | # install ld as "ld.bfd". | |
3052 | # --enable-gold[=default] --disable-ld | |
3053 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3054 | # --enable-gold --enable-ld=default | |
9580395f L |
3055 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3056 | # and ld.bfd). | |
21539e2e MK |
3057 | # In other words, ld is default |
3058 | # --enable-gold=default --enable-ld=default | |
3059 | # Error. | |
3060 | ||
3061 | default_ld= | |
5213506e RW |
3062 | # Check whether --enable-gold was given. |
3063 | if test "${enable_gold+set}" = set; then : | |
3064 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3065 | else |
3066 | ENABLE_GOLD=no | |
5213506e RW |
3067 | fi |
3068 | ||
21539e2e MK |
3069 | case "${ENABLE_GOLD}" in |
3070 | yes|default) | |
38e3d868 RM |
3071 | # Check for ELF target. |
3072 | is_elf=no | |
3073 | case "${target}" in | |
3074 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3075 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3076 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3077 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3078 | case "${target}" in |
3079 | *-*-linux*aout* | *-*-linux*oldld*) | |
3080 | ;; | |
3081 | *) | |
3082 | is_elf=yes | |
3083 | ;; | |
3084 | esac | |
3085 | esac | |
3086 | ||
3087 | if test "$is_elf" = "yes"; then | |
3088 | # Check for target supported by gold. | |
5afab7ad | 3089 | case "${target}" in |
7705dfd1 | 3090 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
a885ec24 | 3091 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
21539e2e MK |
3092 | configdirs="$configdirs gold" |
3093 | if test x${ENABLE_GOLD} = xdefault; then | |
3094 | default_ld=gold | |
3095 | fi | |
38e3d868 | 3096 | ENABLE_GOLD=yes |
5afab7ad ILT |
3097 | ;; |
3098 | esac | |
38e3d868 RM |
3099 | fi |
3100 | ;; | |
3101 | no) | |
3102 | ;; | |
3103 | *) | |
22e05272 | 3104 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3105 | ;; |
21539e2e MK |
3106 | esac |
3107 | ||
3108 | # Check whether --enable-ld was given. | |
3109 | if test "${enable_ld+set}" = set; then : | |
3110 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3111 | else | |
3112 | ENABLE_LD=yes | |
3113 | fi | |
3114 | ||
3115 | ||
3116 | case "${ENABLE_LD}" in | |
3117 | default) | |
9580395f | 3118 | if test x${default_ld} != x; then |
22e05272 | 3119 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3120 | fi |
3121 | ;; | |
3122 | yes) | |
3123 | ;; | |
3124 | no) | |
3125 | if test x${ENABLE_GOLD} != xyes; then | |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3127 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3128 | fi | |
3129 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3130 | ;; | |
3131 | *) | |
22e05272 | 3132 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3133 | ;; |
3134 | esac | |
5afab7ad | 3135 | |
24552056 VM |
3136 | # Check whether --enable-gprofng was given. |
3137 | if test "${enable_gprofng+set}" = set; then : | |
3138 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3139 | else | |
3140 | enable_gprofng=yes | |
3141 | fi | |
3142 | ||
3143 | if test "$enable_gprofng" = "yes"; then | |
3144 | case "${target}" in | |
3145 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3146 | configdirs="$configdirs gprofng" | |
3147 | ;; | |
3148 | esac | |
3149 | fi | |
3150 | ||
3151 | ||
78edb32f L |
3152 | # PR gas/19109 |
3153 | # Decide the default method for compressing debug sections. | |
3154 | # Provide a configure time option to override our default. | |
3155 | # Check whether --enable-compressed_debug_sections was given. | |
3156 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3157 | enableval=$enable_compressed_debug_sections; | |
3158 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3159 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3160 | fi |
3161 | ||
3162 | else | |
3163 | enable_compressed_debug_sections= | |
3164 | fi | |
3165 | ||
3166 | ||
c9884636 ML |
3167 | # Select default compression algorithm. |
3168 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3169 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3170 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3171 | else | |
3172 | default_compressed_debug_sections_algorithm= | |
3173 | fi | |
3174 | ||
3175 | ||
671aa708 | 3176 | # Configure extra directories which are host specific |
79c06341 | 3177 | |
671aa708 NN |
3178 | case "${host}" in |
3179 | *-cygwin*) | |
3180 | configdirs="$configdirs libtermcap" ;; | |
3181 | esac | |
79c06341 | 3182 | |
4fab7234 HPN |
3183 | # A target can indicate whether a language isn't supported for some reason. |
3184 | # Only spaces may be used in this macro; not newlines or tabs. | |
3185 | unsupported_languages= | |
3186 | ||
1c710c3c | 3187 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3188 | # target this usually means that a port of the program doesn't |
3189 | # exist yet. | |
ec8d6ddc | 3190 | |
671aa708 | 3191 | case "${host}" in |
111eeb6e | 3192 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3193 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3194 | ;; |
671aa708 | 3195 | esac |
ec8d6ddc | 3196 | |
6de9cd9a | 3197 | |
87e6d9dc TB |
3198 | # Check whether --enable-libquadmath was given. |
3199 | if test "${enable_libquadmath+set}" = set; then : | |
3200 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3201 | else | |
3202 | ENABLE_LIBQUADMATH=yes | |
3203 | fi | |
3204 | ||
3205 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3206 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3207 | fi | |
3208 | ||
3209 | ||
3210 | # Check whether --enable-libquadmath-support was given. | |
3211 | if test "${enable_libquadmath_support+set}" = set; then : | |
3212 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3213 | else | |
3214 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3215 | fi | |
3216 | ||
3217 | enable_libquadmath_support= | |
3218 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3219 | enable_libquadmath_support=no | |
3220 | fi | |
3221 | ||
3222 | ||
5213506e RW |
3223 | # Check whether --enable-libada was given. |
3224 | if test "${enable_libada+set}" = set; then : | |
3225 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3226 | else |
3227 | ENABLE_LIBADA=yes | |
5213506e RW |
3228 | fi |
3229 | ||
d9cdb878 | 3230 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3231 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3232 | fi |
3233 | ||
1eee94d3 GM |
3234 | # Check whether --enable-libgm2 was given. |
3235 | if test "${enable_libgm2+set}" = set; then : | |
3236 | enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval | |
3237 | else | |
3238 | ENABLE_LIBGM2=no | |
3239 | fi | |
3240 | ||
3241 | if test "${ENABLE_LIBGM2}" != "yes" ; then | |
3242 | noconfigdirs="$noconfigdirs gm2tools" | |
3243 | fi | |
3244 | ||
5213506e RW |
3245 | # Check whether --enable-libssp was given. |
3246 | if test "${enable_libssp+set}" = set; then : | |
3247 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3248 | else |
3249 | ENABLE_LIBSSP=yes | |
5213506e RW |
3250 | fi |
3251 | ||
ef0087a7 | 3252 | |
1873ec0c L |
3253 | # Check whether --enable-libstdcxx was given. |
3254 | if test "${enable_libstdcxx+set}" = set; then : | |
3255 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3256 | else | |
3257 | ENABLE_LIBSTDCXX=default | |
3258 | fi | |
3259 | ||
3260 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3261 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3262 | fi |
3263 | ||
44a7d18d | 3264 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3265 | if test x$enable_libgomp = x ; then |
953ff289 | 3266 | case "${target}" in |
416ac4d4 | 3267 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3268 | ;; |
8c6d158a | 3269 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3270 | ;; |
b24513a1 | 3271 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3272 | ;; |
cac90078 | 3273 | *-*-darwin* | *-*-aix*) |
953ff289 | 3274 | ;; |
29b1533a | 3275 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3276 | ;; |
953ff289 DN |
3277 | *) |
3278 | noconfigdirs="$noconfigdirs target-libgomp" | |
3279 | ;; | |
3280 | esac | |
27079765 | 3281 | fi |
953ff289 | 3282 | |
48310492 RH |
3283 | # Disable libatomic on unsupported systems. |
3284 | if test -d ${srcdir}/libatomic; then | |
3285 | if test x$enable_libatomic = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3287 | $as_echo_n "checking for libatomic support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libatomic; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libatomic" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
e948157d RH |
3302 | # Disable libitm on unsupported systems. |
3303 | if test -d ${srcdir}/libitm; then | |
3304 | if test x$enable_libitm = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3306 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3307 | if (srcdir=${srcdir}/libitm; \ |
3308 | . ${srcdir}/configure.tgt; \ | |
3309 | test -n "$UNSUPPORTED") | |
3310 | then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3312 | $as_echo "no" >&6; } |
e948157d RH |
3313 | noconfigdirs="$noconfigdirs target-libitm" |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3316 | $as_echo "yes" >&6; } |
e948157d RH |
3317 | fi |
3318 | fi | |
0a35513e AH |
3319 | fi |
3320 | ||
93bf5390 RH |
3321 | # Disable libsanitizer on unsupported systems. |
3322 | if test -d ${srcdir}/libsanitizer; then | |
3323 | if test x$enable_libsanitizer = x; then | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3325 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3326 | if (srcdir=${srcdir}/libsanitizer; \ | |
3327 | . ${srcdir}/configure.tgt; \ | |
3328 | test -n "$UNSUPPORTED") | |
3329 | then | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3331 | $as_echo "no" >&6; } | |
3332 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3333 | else | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3335 | $as_echo "yes" >&6; } | |
3336 | fi | |
3337 | fi | |
3338 | fi | |
3339 | ||
2077db1b CT |
3340 | # Disable libvtv on unsupported systems. |
3341 | if test -d ${srcdir}/libvtv; then | |
3342 | if test x$enable_libvtv = x; then | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3344 | $as_echo_n "checking for libvtv support... " >&6; } | |
3345 | if (srcdir=${srcdir}/libvtv; \ | |
3346 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3347 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3348 | then |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3350 | $as_echo "no" >&6; } | |
3351 | noconfigdirs="$noconfigdirs target-libvtv" | |
3352 | else | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3354 | $as_echo "yes" >&6; } | |
3355 | fi | |
3356 | fi | |
3357 | fi | |
3358 | ||
d91491e5 SE |
3359 | # Disable libquadmath for some systems. |
3360 | case "${target}" in | |
e7fae550 DE |
3361 | avr-*-*) |
3362 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3363 | ;; | |
d91491e5 SE |
3364 | # libquadmath is unused on AIX and libquadmath build process use of |
3365 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3366 | powerpc-*-aix* | rs6000-*-aix*) | |
3367 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3368 | ;; | |
3369 | esac | |
3370 | ||
1e9e0e23 JM |
3371 | # Disable libssp for some systems. |
3372 | case "${target}" in | |
3373 | avr-*-*) | |
b318fb4b | 3374 | # No hosted I/O support. |
1e9e0e23 JM |
3375 | noconfigdirs="$noconfigdirs target-libssp" |
3376 | ;; | |
91dfef96 JM |
3377 | bpf-*-*) |
3378 | noconfigdirs="$noconfigdirs target-libssp" | |
3379 | ;; | |
1e9e0e23 JM |
3380 | powerpc-*-aix* | rs6000-*-aix*) |
3381 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3382 | ;; |
8d2af3a2 DD |
3383 | pru-*-*) |
3384 | # No hosted I/O support. | |
3385 | noconfigdirs="$noconfigdirs target-libssp" | |
3386 | ;; | |
85b8555e | 3387 | rl78-*-*) |
7cb62ef1 EB |
3388 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3389 | # doesn't fault for those - instead, it gives a build-time error | |
3390 | # for explicit misaligned loads. | |
85b8555e | 3391 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3392 | ;; |
0969ec7d EB |
3393 | visium-*-*) |
3394 | # No hosted I/O support. | |
3395 | noconfigdirs="$noconfigdirs target-libssp" | |
3396 | ;; | |
1e9e0e23 JM |
3397 | esac |
3398 | ||
1e9e0e23 | 3399 | # Disable libstdc++-v3 for some systems. |
67a1cb2a | 3400 | # Allow user to override this if they pass --enable-libstdcxx |
1873ec0c L |
3401 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3402 | case "${target}" in | |
3403 | *-*-vxworks*) | |
3404 | # VxWorks uses the Dinkumware C++ library. | |
3405 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3406 | ;; | |
afa3d80e TS |
3407 | amdgcn*-*-*) |
3408 | # Not ported/fails to build when using newlib. | |
3409 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3410 | ;; | |
1873ec0c L |
3411 | arm*-wince-pe*) |
3412 | # the C++ libraries don't build on top of CE's C libraries | |
3413 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3414 | ;; | |
3415 | avr-*-*) | |
3416 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3417 | ;; | |
91dfef96 JM |
3418 | bpf-*-*) |
3419 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3420 | ;; | |
fef939d6 JB |
3421 | ft32-*-*) |
3422 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3423 | ;; | |
1873ec0c L |
3424 | esac |
3425 | fi | |
1e9e0e23 | 3426 | |
91dfef96 JM |
3427 | # Disable C++ on systems where it is known to not work. |
3428 | # For testing, you can override this with --enable-languages=c++. | |
3429 | case ,${enable_languages}, in | |
3430 | *,c++,*) | |
3431 | ;; | |
3432 | *) | |
3433 | case "${target}" in | |
3434 | bpf-*-*) | |
3435 | unsupported_languages="$unsupported_languages c++" | |
3436 | ;; | |
3437 | esac | |
3438 | ;; | |
3439 | esac | |
3440 | ||
3441 | # Disable Objc on systems where it is known to not work. | |
3442 | # For testing, you can override this with --enable-languages=objc. | |
3443 | case ,${enable_languages}, in | |
3444 | *,objc,*) | |
3445 | ;; | |
3446 | *) | |
3447 | case "${target}" in | |
3448 | bpf-*-*) | |
3449 | unsupported_languages="$unsupported_languages objc" | |
3450 | ;; | |
3451 | esac | |
3452 | ;; | |
3453 | esac | |
3454 | ||
260eedb9 IB |
3455 | # Disable D on systems where it is known to not work. |
3456 | # For testing, you can override this with --enable-languages=d. | |
3457 | case ,${enable_languages}, in | |
3458 | *,d,*) | |
3459 | ;; | |
3460 | *) | |
3461 | case "${target}" in | |
91dfef96 | 3462 | bpf-*-*) |
260eedb9 IB |
3463 | unsupported_languages="$unsupported_languages d" |
3464 | ;; | |
3465 | esac | |
3466 | ;; | |
3467 | esac | |
3468 | ||
3469 | # Disable libphobos on unsupported systems. | |
3470 | # For testing, you can override this with --enable-libphobos. | |
3471 | if test -d ${srcdir}/libphobos; then | |
3472 | if test x$enable_libphobos = x; then | |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3474 | $as_echo_n "checking for libphobos support... " >&6; } | |
3475 | if (srcdir=${srcdir}/libphobos; \ | |
3476 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3477 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3478 | then |
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3480 | $as_echo "no" >&6; } | |
3481 | noconfigdirs="$noconfigdirs target-libphobos" | |
3482 | else | |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3484 | $as_echo "yes" >&6; } | |
3485 | fi | |
3486 | fi | |
3487 | fi | |
3488 | ||
1e9e0e23 JM |
3489 | # Disable Fortran for some systems. |
3490 | case "${target}" in | |
3491 | mmix-*-*) | |
3492 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3493 | unsupported_languages="$unsupported_languages fortran" | |
3494 | ;; | |
91dfef96 JM |
3495 | bpf-*-*) |
3496 | unsupported_languages="$unsupported_languages fortran" | |
3497 | ;; | |
1e9e0e23 JM |
3498 | esac |
3499 | ||
012447ea JJ |
3500 | # Disable libffi for some systems. |
3501 | case "${target}" in | |
3502 | powerpc-*-darwin*) | |
3503 | ;; | |
3504 | i[3456789]86-*-darwin*) | |
3505 | ;; | |
3506 | x86_64-*-darwin[912]*) | |
3507 | ;; | |
3508 | *-*-darwin*) | |
3509 | noconfigdirs="$noconfigdirs target-libffi" | |
3510 | ;; | |
3511 | *-*-netware*) | |
3512 | noconfigdirs="$noconfigdirs target-libffi" | |
3513 | ;; | |
3514 | *-*-phoenix*) | |
3515 | noconfigdirs="$noconfigdirs target-libffi" | |
3516 | ;; | |
3517 | *-*-rtems*) | |
3518 | noconfigdirs="$noconfigdirs target-libffi" | |
3519 | ;; | |
3520 | *-*-tpf*) | |
3521 | noconfigdirs="$noconfigdirs target-libffi" | |
3522 | ;; | |
3523 | *-*-uclinux*) | |
3524 | noconfigdirs="$noconfigdirs target-libffi" | |
3525 | ;; | |
3526 | *-*-vxworks*) | |
3527 | noconfigdirs="$noconfigdirs target-libffi" | |
3528 | ;; | |
b20e7532 AT |
3529 | aarch64*-*-freebsd*) |
3530 | noconfigdirs="$noconfigdirs target-libffi" | |
3531 | ;; | |
012447ea JJ |
3532 | alpha*-*-*vms*) |
3533 | noconfigdirs="$noconfigdirs target-libffi" | |
3534 | ;; | |
3535 | arm*-*-freebsd*) | |
3536 | noconfigdirs="$noconfigdirs target-libffi" | |
3537 | ;; | |
3538 | arm-wince-pe) | |
3539 | noconfigdirs="$noconfigdirs target-libffi" | |
3540 | ;; | |
3541 | arm*-*-symbianelf*) | |
3542 | noconfigdirs="$noconfigdirs target-libffi" | |
3543 | ;; | |
91dfef96 JM |
3544 | bpf-*-*) |
3545 | noconfigdirs="$noconfigdirs target-libffi" | |
3546 | ;; | |
012447ea JJ |
3547 | cris-*-* | crisv32-*-*) |
3548 | case "${target}" in | |
3549 | *-*-linux*) | |
3550 | ;; | |
3551 | *) # See PR46792 regarding target-libffi. | |
3552 | noconfigdirs="$noconfigdirs target-libffi";; | |
3553 | esac | |
3554 | ;; | |
3555 | hppa*64*-*-hpux*) | |
3556 | noconfigdirs="$noconfigdirs target-libffi" | |
3557 | ;; | |
012447ea JJ |
3558 | ia64*-*-*vms*) |
3559 | noconfigdirs="$noconfigdirs target-libffi" | |
3560 | ;; | |
3561 | i[3456789]86-w64-mingw*) | |
3562 | noconfigdirs="$noconfigdirs target-libffi" | |
3563 | ;; | |
3564 | i[3456789]86-*-mingw*) | |
3565 | noconfigdirs="$noconfigdirs target-libffi" | |
3566 | ;; | |
3567 | x86_64-*-mingw*) | |
3568 | noconfigdirs="$noconfigdirs target-libffi" | |
3569 | ;; | |
3570 | mmix-*-*) | |
3571 | noconfigdirs="$noconfigdirs target-libffi" | |
3572 | ;; | |
3573 | powerpc-*-aix*) | |
012447ea JJ |
3574 | ;; |
3575 | rs6000-*-aix*) | |
012447ea JJ |
3576 | ;; |
3577 | ft32-*-*) | |
3578 | noconfigdirs="$noconfigdirs target-libffi" | |
3579 | ;; | |
3580 | *-*-lynxos*) | |
3581 | noconfigdirs="$noconfigdirs target-libffi" | |
3582 | ;; | |
3583 | esac | |
3584 | ||
3585 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3586 | # this in sync with contrib/config-list.mk. | |
3587 | case "${target}" in | |
91dfef96 | 3588 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3589 | unsupported_languages="$unsupported_languages go" |
3590 | ;; | |
3591 | esac | |
3592 | ||
f9d09df0 TT |
3593 | # Only allow gdbserver on some systems. |
3594 | if test -d ${srcdir}/gdbserver; then | |
3595 | if test x$enable_gdbserver = x; then | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3597 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3598 | if (srcdir=${srcdir}/gdbserver; \ | |
3599 | . ${srcdir}/configure.srv; \ | |
3600 | test -n "$UNSUPPORTED") | |
3601 | then | |
3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3603 | $as_echo "no" >&6; } | |
3604 | noconfigdirs="$noconfigdirs gdbserver" | |
3605 | else | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3607 | $as_echo "yes" >&6; } | |
3608 | fi | |
3609 | fi | |
3610 | fi | |
3611 | ||
cdbc9e92 ILT |
3612 | # Disable libgo for some systems where it is known to not work. |
3613 | # For testing, you can easily override this with --enable-libgo. | |
3614 | if test x$enable_libgo = x; then | |
3615 | case "${target}" in | |
3616 | *-*-darwin*) | |
3617 | # PR 46986 | |
3618 | noconfigdirs="$noconfigdirs target-libgo" | |
3619 | ;; | |
3620 | *-*-cygwin* | *-*-mingw*) | |
3621 | noconfigdirs="$noconfigdirs target-libgo" | |
3622 | ;; | |
91dfef96 JM |
3623 | bpf-*-*) |
3624 | noconfigdirs="$noconfigdirs target-libgo" | |
3625 | ;; | |
cdbc9e92 ILT |
3626 | esac |
3627 | fi | |
3628 | ||
c03353e2 RIL |
3629 | # Default libgloss CPU subdirectory. |
3630 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3631 | |
fbcf0dca JM |
3632 | case "${target}" in |
3633 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3634 | libgloss_dir=wince | |
3635 | ;; | |
4dddfc74 YZ |
3636 | aarch64*-*-* ) |
3637 | libgloss_dir=aarch64 | |
3638 | ;; | |
fbcf0dca JM |
3639 | arm*-*-*) |
3640 | libgloss_dir=arm | |
3641 | ;; | |
3642 | cris-*-* | crisv32-*-*) | |
3643 | libgloss_dir=cris | |
3644 | ;; | |
3645 | hppa*-*-*) | |
3646 | libgloss_dir=pa | |
3647 | ;; | |
3648 | i[3456789]86-*-*) | |
3649 | libgloss_dir=i386 | |
3650 | ;; | |
c6c0594e | 3651 | loongarch*-*-*) |
3652 | libgloss_dir=loongarch | |
3653 | ;; | |
fbcf0dca JM |
3654 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3655 | libgloss_dir=m68hc11 | |
3656 | ;; | |
3657 | m68*-*-* | fido-*-*) | |
3658 | libgloss_dir=m68k | |
3659 | ;; | |
3660 | mips*-*-*) | |
3661 | libgloss_dir=mips | |
3662 | ;; | |
3663 | powerpc*-*-*) | |
3664 | libgloss_dir=rs6000 | |
3665 | ;; | |
8d2af3a2 DD |
3666 | pru-*-*) |
3667 | libgloss_dir=pru | |
3668 | ;; | |
fbcf0dca JM |
3669 | sparc*-*-*) |
3670 | libgloss_dir=sparc | |
3671 | ;; | |
3672 | esac | |
3673 | ||
6a789d5e | 3674 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3675 | case "${target}" in |
6a789d5e JM |
3676 | alpha*-dec-osf*) |
3677 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3678 | ;; | |
3679 | i[3456789]86-*-linux*) | |
3680 | # This section makes it possible to build newlib natively on linux. | |
3681 | # If we are using a cross compiler then don't configure newlib. | |
3682 | if test x${is_cross_compiler} != xno ; then | |
3683 | noconfigdirs="$noconfigdirs target-newlib" | |
3684 | fi | |
3685 | noconfigdirs="$noconfigdirs target-libgloss" | |
3686 | # If we are not using a cross compiler, do configure newlib. | |
3687 | # Note however, that newlib will only be configured in this situation | |
3688 | # if the --with-newlib option has been given, because otherwise | |
3689 | # 'target-newlib' will appear in skipdirs. | |
3690 | ;; | |
3691 | i[3456789]86-*-rdos*) | |
3692 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3693 | ;; | |
3694 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3695 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3696 | ;; | |
3697 | sparc-*-sunos4*) | |
3698 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3699 | ;; | |
91dfef96 JM |
3700 | bpf-*-*) |
3701 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3702 | ;; | |
6a789d5e JM |
3703 | *-*-aix*) |
3704 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3705 | ;; | |
3706 | *-*-beos*) | |
3707 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3708 | ;; | |
671aa708 | 3709 | *-*-chorusos) |
0036370f | 3710 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3711 | ;; |
6a789d5e JM |
3712 | *-*-dragonfly*) |
3713 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3714 | ;; | |
3715 | *-*-freebsd*) | |
3716 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3717 | ;; | |
3718 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3719 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3720 | ;; | |
3721 | *-*-lynxos*) | |
3722 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3723 | ;; | |
3724 | *-*-mingw*) | |
3725 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3726 | ;; | |
3727 | *-*-netbsd*) | |
3728 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3729 | ;; | |
3730 | *-*-netware*) | |
3731 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3732 | ;; | |
3733 | *-*-tpf*) | |
3734 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3735 | ;; | |
3736 | *-*-uclinux*) | |
3737 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3738 | ;; | |
3739 | *-*-vxworks*) | |
3740 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3741 | ;; | |
3742 | esac | |
3743 | ||
3744 | case "${target}" in | |
3745 | *-*-chorusos) | |
3746 | ;; | |
3be96231 TG |
3747 | aarch64-*-darwin*) |
3748 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3749 | noconfigdirs="$noconfigdirs sim target-rda" | |
3750 | ;; | |
7431c1a1 AS |
3751 | amdgcn*-*-*) |
3752 | ;; | |
3be96231 TG |
3753 | arm-*-darwin*) |
3754 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3755 | noconfigdirs="$noconfigdirs sim target-rda" | |
3756 | ;; | |
75eeae1a | 3757 | powerpc-*-darwin*) |
e1514c3f | 3758 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3759 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3760 | ;; |
354ebf88 RW |
3761 | i[3456789]86-*-darwin*) |
3762 | noconfigdirs="$noconfigdirs ld gprof" | |
3763 | noconfigdirs="$noconfigdirs sim target-rda" | |
3764 | ;; | |
3765 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3766 | noconfigdirs="$noconfigdirs ld gas gprof" |
3767 | noconfigdirs="$noconfigdirs sim target-rda" | |
3768 | ;; | |
42c1cd8a AT |
3769 | *-*-darwin*) |
3770 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3771 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3772 | ;; |
8c6d158a | 3773 | *-*-dragonfly*) |
8c6d158a | 3774 | ;; |
c3f84f61 | 3775 | *-*-freebsd*) |
88252529 | 3776 | if test "x$with_gmp" = x \ |
c0d0a722 | 3777 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3778 | && test -f /usr/local/include/gmp.h; then |
3779 | with_gmp=/usr/local | |
3780 | fi | |
6de9cd9a | 3781 | ;; |
ef4e7569 US |
3782 | *-*-kaos*) |
3783 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3784 | noconfigdirs="$noconfigdirs target-libgloss" |
3785 | ;; | |
671aa708 | 3786 | *-*-netbsd*) |
671aa708 | 3787 | ;; |
61fec9ff | 3788 | *-*-netware*) |
671aa708 | 3789 | ;; |
fd6487af JS |
3790 | *-*-phoenix*) |
3791 | noconfigdirs="$noconfigdirs target-libgloss" | |
3792 | ;; | |
671aa708 | 3793 | *-*-rtems*) |
2909494b | 3794 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3795 | ;; |
a8ba31f2 EC |
3796 | # The tpf target doesn't support gdb yet. |
3797 | *-*-tpf*) | |
6a789d5e | 3798 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3799 | ;; |
5785c0ed | 3800 | *-*-uclinux*) |
6a789d5e | 3801 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3802 | ;; |
671aa708 | 3803 | *-*-vxworks*) |
671aa708 NN |
3804 | ;; |
3805 | alpha*-dec-osf*) | |
3806 | # ld works, but does not support shared libraries. | |
671aa708 | 3807 | # gas doesn't generate exception information. |
6a789d5e | 3808 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3809 | ;; |
3810 | alpha*-*-*vms*) | |
2909494b | 3811 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3812 | ;; |
671aa708 NN |
3813 | alpha*-*-*) |
3814 | # newlib is not 64 bit ready | |
2909494b | 3815 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3816 | ;; |
91dfef96 JM |
3817 | bpf-*-*) |
3818 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3819 | ;; | |
671aa708 | 3820 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3821 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3822 | ;; |
2fd88f4f AK |
3823 | arc*-*-*) |
3824 | noconfigdirs="$noconfigdirs sim" | |
3825 | ;; | |
671aa708 | 3826 | arm-*-pe*) |
2909494b | 3827 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3828 | ;; |
671aa708 | 3829 | arm-*-riscix*) |
0036370f | 3830 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3831 | ;; |
b588ae30 GJL |
3832 | avr-*-*) |
3833 | if test x${with_avrlibc} != xno; then | |
3834 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3835 | fi | |
3836 | ;; | |
671aa708 | 3837 | c4x-*-* | tic4x-*-*) |
0036370f | 3838 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3839 | ;; |
0036370f JM |
3840 | tic54x-*-*) |
3841 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3842 | ;; |
671aa708 | 3843 | d10v-*-*) |
0036370f | 3844 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3845 | ;; |
3846 | d30v-*-*) | |
0036370f | 3847 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3848 | ;; |
3849 | fr30-*-elf*) | |
2909494b | 3850 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3851 | ;; |
a05c2c75 L |
3852 | ft32-*-*) |
3853 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3854 | ;; | |
55f2d967 | 3855 | moxie-*-*) |
a05c2c75 | 3856 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3857 | ;; |
671aa708 | 3858 | h8300*-*-*) |
2909494b | 3859 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3860 | ;; |
3861 | h8500-*-*) | |
0036370f | 3862 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3863 | ;; |
a05c2c75 L |
3864 | hppa*64*-*-hpux*) |
3865 | noconfigdirs="$noconfigdirs gdb" | |
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 | ;; |
a885ec24 AA |
4021 | tilepro*-*-* | tilegx*-*-*) |
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 | ;; | |
c6c0594e | 4033 | loongarch*-*-linux*) |
4034 | ;; | |
4035 | loongarch*-*-*) | |
4036 | noconfigdirs="$noconfigdirs gprof" | |
4037 | ;; | |
671aa708 | 4038 | esac |
79c06341 | 4039 | |
671aa708 NN |
4040 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4041 | # depends upon some newlib header files. | |
4042 | case "${noconfigdirs}" in | |
4043 | *target-libgloss*) ;; | |
4044 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4045 | esac | |
4046 | ||
671aa708 | 4047 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4048 | host_makefile_frag=/dev/null |
4049 | if test -d ${srcdir}/config ; then | |
4050 | case "${host}" in | |
f2a0e225 | 4051 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4052 | host_makefile_frag="config/mh-djgpp" |
4053 | ;; | |
4054 | *-cygwin*) | |
2a79c47f | 4055 | |
5213506e RW |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4057 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4058 | echo a >cygwin-cat-check |
e25a8c82 | 4059 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4060 | rm cygwin-cat-check |
5213506e RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4062 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4063 | else |
4064 | rm cygwin-cat-check | |
5213506e RW |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4066 | $as_echo "no" >&6; } | |
22e05272 | 4067 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4068 | Please either mount the build directory in binary mode or run the following |
4069 | commands before running any configure script: | |
4070 | set -o igncr | |
4071 | export SHELLOPTS | |
5213506e | 4072 | " "$LINENO" 5 |
2a79c47f NC |
4073 | fi |
4074 | ||
671aa708 NN |
4075 | host_makefile_frag="config/mh-cygwin" |
4076 | ;; | |
c53a18d3 | 4077 | *-mingw*) |
1f5a6b84 | 4078 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4079 | ;; |
cabb9d59 | 4080 | alpha*-linux*) |
13be44ed UB |
4081 | host_makefile_frag="config/mh-alpha-linux" |
4082 | ;; | |
111eeb6e | 4083 | hppa*-hp-hpux*) |
efd41714 PB |
4084 | host_makefile_frag="config/mh-pa" |
4085 | ;; | |
4086 | hppa*-*) | |
4087 | host_makefile_frag="config/mh-pa" | |
4088 | ;; | |
54258e22 | 4089 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4090 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4091 | ;; |
d19bca38 PB |
4092 | powerpc-*-aix*) |
4093 | host_makefile_frag="config/mh-ppc-aix" | |
4094 | ;; | |
4095 | rs6000-*-aix*) | |
4096 | host_makefile_frag="config/mh-ppc-aix" | |
4097 | ;; | |
671aa708 NN |
4098 | esac |
4099 | fi | |
4100 | ||
55ffb5ed | 4101 | if test "${build}" != "${host}" ; then |
0999159b PB |
4102 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4103 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4104 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4105 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4106 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4107 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4108 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4109 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4110 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4111 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4112 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4113 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4114 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4115 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4116 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4117 | else | |
4118 | AR_FOR_BUILD="\$(AR)" | |
4119 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4120 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4121 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4122 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4123 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4124 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4125 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4126 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4127 | LD_FOR_BUILD="\$(LD)" | |
4128 | NM_FOR_BUILD="\$(NM)" | |
4129 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4130 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4131 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4132 | fi |
4133 | ||
4134 | ac_ext=c | |
1c710c3c DJ |
4135 | ac_cpp='$CPP $CPPFLAGS' |
4136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4139 | if test -n "$ac_tool_prefix"; then | |
4140 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4141 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4143 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4144 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4145 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4146 | else |
4147 | if test -n "$CC"; then | |
4148 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4149 | else | |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
5213506e | 4155 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4157 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4159 | break 2 |
4160 | fi | |
4161 | done | |
5213506e RW |
4162 | done |
4163 | IFS=$as_save_IFS | |
1c710c3c DJ |
4164 | |
4165 | fi | |
4166 | fi | |
4167 | CC=$ac_cv_prog_CC | |
4168 | if test -n "$CC"; then | |
5213506e RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4170 | $as_echo "$CC" >&6; } | |
1c710c3c | 4171 | else |
5213506e RW |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4173 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4174 | fi |
4175 | ||
5213506e | 4176 | |
1c710c3c DJ |
4177 | fi |
4178 | if test -z "$ac_cv_prog_CC"; then | |
4179 | ac_ct_CC=$CC | |
fb0103e5 RG |
4180 | # Extract the first word of "gcc", so it can be a program name with args. |
4181 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4183 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4184 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4185 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4186 | else |
4187 | if test -n "$ac_ct_CC"; then | |
4188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4189 | else | |
4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4191 | for as_dir in $PATH | |
4192 | do | |
4193 | IFS=$as_save_IFS | |
4194 | test -z "$as_dir" && as_dir=. | |
5213506e | 4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4197 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4199 | break 2 |
4200 | fi | |
4201 | done | |
5213506e RW |
4202 | done |
4203 | IFS=$as_save_IFS | |
1c710c3c DJ |
4204 | |
4205 | fi | |
4206 | fi | |
4207 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4208 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4210 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4211 | else |
5213506e RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4213 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4214 | fi |
4215 | ||
5213506e RW |
4216 | if test "x$ac_ct_CC" = x; then |
4217 | CC="" | |
4218 | else | |
4219 | case $cross_compiling:$ac_tool_warned in | |
4220 | yes:) | |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4223 | ac_tool_warned=yes ;; | |
4224 | esac | |
4225 | CC=$ac_ct_CC | |
4226 | fi | |
1c710c3c DJ |
4227 | else |
4228 | CC="$ac_cv_prog_CC" | |
4229 | fi | |
4230 | ||
4231 | if test -z "$CC"; then | |
5213506e RW |
4232 | if test -n "$ac_tool_prefix"; then |
4233 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4234 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4236 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4237 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4238 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4239 | else |
4240 | if test -n "$CC"; then | |
4241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4242 | else | |
1c710c3c DJ |
4243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4244 | for as_dir in $PATH | |
4245 | do | |
4246 | IFS=$as_save_IFS | |
4247 | test -z "$as_dir" && as_dir=. | |
5213506e | 4248 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4250 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4252 | break 2 |
4253 | fi | |
4254 | done | |
5213506e RW |
4255 | done |
4256 | IFS=$as_save_IFS | |
1c710c3c | 4257 | |
0b0dc272 | 4258 | fi |
0b0dc272 | 4259 | fi |
1c710c3c | 4260 | CC=$ac_cv_prog_CC |
af71363e | 4261 | if test -n "$CC"; then |
5213506e RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4263 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4264 | else |
5213506e RW |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4266 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4267 | fi |
4268 | ||
2aeb72e9 | 4269 | |
5213506e | 4270 | fi |
1c710c3c | 4271 | fi |
55ffb5ed NN |
4272 | if test -z "$CC"; then |
4273 | # Extract the first word of "cc", so it can be a program name with args. | |
4274 | set dummy cc; ac_word=$2 | |
5213506e RW |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4276 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4277 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4278 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4279 | else |
4280 | if test -n "$CC"; then | |
4281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4282 | else | |
0b0dc272 | 4283 | ac_prog_rejected=no |
1c710c3c DJ |
4284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4285 | for as_dir in $PATH | |
4286 | do | |
4287 | IFS=$as_save_IFS | |
4288 | test -z "$as_dir" && as_dir=. | |
5213506e | 4289 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4291 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4292 | ac_prog_rejected=yes | |
4293 | continue | |
4294 | fi | |
4295 | ac_cv_prog_CC="cc" | |
5213506e | 4296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4297 | break 2 |
4298 | fi | |
4299 | done | |
5213506e RW |
4300 | done |
4301 | IFS=$as_save_IFS | |
1c710c3c | 4302 | |
55ffb5ed NN |
4303 | if test $ac_prog_rejected = yes; then |
4304 | # We found a bogon in the path, so make sure we never use it. | |
4305 | set dummy $ac_cv_prog_CC | |
4306 | shift | |
1c710c3c | 4307 | if test $# != 0; then |
55ffb5ed NN |
4308 | # We chose a different compiler from the bogus one. |
4309 | # However, it has the same basename, so the bogon will be chosen | |
4310 | # first if we set CC to just the basename; use the full file name. | |
4311 | shift | |
1c710c3c | 4312 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4313 | fi |
4314 | fi | |
4315 | fi | |
4316 | fi | |
1c710c3c | 4317 | CC=$ac_cv_prog_CC |
55ffb5ed | 4318 | if test -n "$CC"; then |
5213506e RW |
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4320 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4321 | else |
5213506e RW |
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4323 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4324 | fi |
4325 | ||
5213506e | 4326 | |
1c710c3c DJ |
4327 | fi |
4328 | if test -z "$CC"; then | |
4329 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4330 | for ac_prog in cl.exe |
1c710c3c DJ |
4331 | do |
4332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4335 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4336 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4337 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4338 | else |
4339 | if test -n "$CC"; then | |
4340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4341 | else | |
1c710c3c DJ |
4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4343 | for as_dir in $PATH | |
4344 | do | |
4345 | IFS=$as_save_IFS | |
4346 | test -z "$as_dir" && as_dir=. | |
5213506e | 4347 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4349 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4351 | break 2 |
4352 | fi | |
4353 | done | |
5213506e RW |
4354 | done |
4355 | IFS=$as_save_IFS | |
1c710c3c | 4356 | |
55ffb5ed NN |
4357 | fi |
4358 | fi | |
1c710c3c | 4359 | CC=$ac_cv_prog_CC |
55ffb5ed | 4360 | if test -n "$CC"; then |
5213506e RW |
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4362 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4363 | else |
5213506e RW |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4365 | $as_echo "no" >&6; } | |
fb0103e5 | 4366 | fi |
af71363e | 4367 | |
5213506e | 4368 | |
1c710c3c DJ |
4369 | test -n "$CC" && break |
4370 | done | |
af71363e | 4371 | fi |
1c710c3c DJ |
4372 | if test -z "$CC"; then |
4373 | ac_ct_CC=$CC | |
5213506e | 4374 | for ac_prog in cl.exe |
1c710c3c DJ |
4375 | do |
4376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4377 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4379 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4380 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4381 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4382 | else |
1c710c3c DJ |
4383 | if test -n "$ac_ct_CC"; then |
4384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4385 | else |
1c710c3c DJ |
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4387 | for as_dir in $PATH | |
4388 | do | |
4389 | IFS=$as_save_IFS | |
4390 | test -z "$as_dir" && as_dir=. | |
5213506e | 4391 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4393 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4395 | break 2 |
4396 | fi | |
4397 | done | |
5213506e RW |
4398 | done |
4399 | IFS=$as_save_IFS | |
1c710c3c | 4400 | |
af71363e AS |
4401 | fi |
4402 | fi | |
1c710c3c DJ |
4403 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4404 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4406 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4407 | else |
5213506e RW |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4409 | $as_echo "no" >&6; } | |
af71363e | 4410 | fi |
0b0dc272 | 4411 | |
5213506e | 4412 | |
1c710c3c DJ |
4413 | test -n "$ac_ct_CC" && break |
4414 | done | |
4415 | ||
5213506e RW |
4416 | if test "x$ac_ct_CC" = x; then |
4417 | CC="" | |
4418 | else | |
4419 | case $cross_compiling:$ac_tool_warned in | |
4420 | yes:) | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4422 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4423 | ac_tool_warned=yes ;; | |
4424 | esac | |
4425 | CC=$ac_ct_CC | |
4426 | fi | |
1c710c3c DJ |
4427 | fi |
4428 | ||
4429 | fi | |
4430 | ||
4431 | ||
5213506e RW |
4432 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4434 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4435 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4436 | |
4437 | # Provide some information about the compiler. | |
5213506e RW |
4438 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4439 | set X $ac_compile | |
4440 | ac_compiler=$2 | |
4441 | for ac_option in --version -v -V -qversion; do | |
4442 | { { ac_try="$ac_compiler $ac_option >&5" | |
4443 | case "(($ac_try" in | |
4444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4445 | *) ac_try_echo=$ac_try;; | |
4446 | esac | |
4447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4448 | $as_echo "$ac_try_echo"; } >&5 | |
4449 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4450 | ac_status=$? |
5213506e RW |
4451 | if test -s conftest.err; then |
4452 | sed '10a\ | |
4453 | ... rest of stderr output deleted ... | |
4454 | 10q' conftest.err >conftest.er1 | |
4455 | cat conftest.er1 >&5 | |
5213506e | 4456 | fi |
22e05272 | 4457 | rm -f conftest.er1 conftest.err |
5213506e RW |
4458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4459 | test $ac_status = 0; } | |
4460 | done | |
1c710c3c | 4461 | |
5213506e | 4462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4463 | /* end confdefs.h. */ |
4464 | ||
4465 | int | |
4466 | main () | |
4467 | { | |
4468 | ||
4469 | ; | |
4470 | return 0; | |
4471 | } | |
4472 | _ACEOF | |
4473 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4474 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4475 | # Try to create an executable without -o first, disregard a.out. |
4476 | # It will help us diagnose broken compilers, and finding out an intuition | |
4477 | # of exeext. | |
22e05272 JM |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4479 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4480 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4481 | ||
4482 | # The possible output files: | |
4483 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4484 | ||
4485 | ac_rmfiles= | |
4486 | for ac_file in $ac_files | |
4487 | do | |
4488 | case $ac_file in | |
4489 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4490 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4491 | esac | |
4492 | done | |
4493 | rm -f $ac_rmfiles | |
4494 | ||
4495 | if { { ac_try="$ac_link_default" | |
4496 | case "(($ac_try" in | |
4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4498 | *) ac_try_echo=$ac_try;; | |
4499 | esac | |
4500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4501 | $as_echo "$ac_try_echo"; } >&5 | |
4502 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4503 | ac_status=$? |
5213506e RW |
4504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4505 | test $ac_status = 0; }; then : | |
4506 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4507 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4508 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4509 | # so that the user can short-circuit this test for compilers unknown to | |
4510 | # Autoconf. | |
4511 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4512 | do |
4513 | test -f "$ac_file" || continue | |
4514 | case $ac_file in | |
5213506e | 4515 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4516 | ;; |
4517 | [ab].out ) | |
4518 | # We found the default executable, but exeext='' is most | |
4519 | # certainly right. | |
4520 | break;; | |
4521 | *.* ) | |
5213506e RW |
4522 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4523 | then :; else | |
4524 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4525 | fi | |
4526 | # We set ac_cv_exeext here because the later test for it is not | |
4527 | # safe: cross compilers may not add the suffix if given an `-o' | |
4528 | # argument, so we may need to know it at that point already. | |
4529 | # Even if this section looks crufty: it has the advantage of | |
4530 | # actually working. | |
1c710c3c DJ |
4531 | break;; |
4532 | * ) | |
4533 | break;; | |
4534 | esac | |
4535 | done | |
5213506e RW |
4536 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4537 | ||
1c710c3c | 4538 | else |
5213506e RW |
4539 | ac_file='' |
4540 | fi | |
5213506e | 4541 | if test -z "$ac_file"; then : |
22e05272 JM |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4543 | $as_echo "no" >&6; } | |
4544 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
4546 | ||
5213506e RW |
4547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4549 | as_fn_error 77 "C compiler cannot create executables |
4550 | See \`config.log' for more details" "$LINENO" 5; } | |
4551 | else | |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4553 | $as_echo "yes" >&6; } | |
1c710c3c | 4554 | fi |
22e05272 JM |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4556 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4558 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4559 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4560 | |
22e05272 | 4561 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4562 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4564 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4565 | if { { ac_try="$ac_link" | |
4566 | case "(($ac_try" in | |
4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4568 | *) ac_try_echo=$ac_try;; | |
4569 | esac | |
4570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4571 | $as_echo "$ac_try_echo"; } >&5 | |
4572 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4573 | ac_status=$? |
5213506e RW |
4574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4575 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4576 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4577 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4578 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4579 | # `rm'. | |
4580 | for ac_file in conftest.exe conftest conftest.*; do | |
4581 | test -f "$ac_file" || continue | |
4582 | case $ac_file in | |
5213506e | 4583 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4584 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4585 | break;; |
4586 | * ) break;; | |
4587 | esac | |
4588 | done | |
af71363e | 4589 | else |
5213506e RW |
4590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4592 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4593 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4594 | fi |
22e05272 | 4595 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4597 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4598 | |
4599 | rm -f conftest.$ac_ext | |
4600 | EXEEXT=$ac_cv_exeext | |
4601 | ac_exeext=$EXEEXT | |
22e05272 JM |
4602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4603 | /* end confdefs.h. */ | |
4604 | #include <stdio.h> | |
4605 | int | |
4606 | main () | |
4607 | { | |
4608 | FILE *f = fopen ("conftest.out", "w"); | |
4609 | return ferror (f) || fclose (f) != 0; | |
4610 | ||
4611 | ; | |
4612 | return 0; | |
4613 | } | |
4614 | _ACEOF | |
4615 | ac_clean_files="$ac_clean_files conftest.out" | |
4616 | # Check that the compiler produces executables we can run. If not, either | |
4617 | # the compiler is broken, or we cross compile. | |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4619 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4620 | if test "$cross_compiling" != yes; then | |
4621 | { { ac_try="$ac_link" | |
4622 | case "(($ac_try" in | |
4623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4624 | *) ac_try_echo=$ac_try;; | |
4625 | esac | |
4626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4627 | $as_echo "$ac_try_echo"; } >&5 | |
4628 | (eval "$ac_link") 2>&5 | |
4629 | ac_status=$? | |
4630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4631 | test $ac_status = 0; } | |
4632 | if { ac_try='./conftest$ac_cv_exeext' | |
4633 | { { case "(($ac_try" in | |
4634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4635 | *) ac_try_echo=$ac_try;; | |
4636 | esac | |
4637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4638 | $as_echo "$ac_try_echo"; } >&5 | |
4639 | (eval "$ac_try") 2>&5 | |
4640 | ac_status=$? | |
4641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4642 | test $ac_status = 0; }; }; then | |
4643 | cross_compiling=no | |
4644 | else | |
4645 | if test "$cross_compiling" = maybe; then | |
4646 | cross_compiling=yes | |
4647 | else | |
4648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4650 | as_fn_error $? "cannot run C compiled programs. | |
4651 | If you meant to cross compile, use \`--host'. | |
4652 | See \`config.log' for more details" "$LINENO" 5; } | |
4653 | fi | |
4654 | fi | |
4655 | fi | |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4657 | $as_echo "$cross_compiling" >&6; } | |
4658 | ||
4659 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4660 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4662 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4663 | if ${ac_cv_objext+:} false; then : |
5213506e | 4664 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4665 | else |
5213506e | 4666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4667 | /* end confdefs.h. */ |
4668 | ||
4669 | int | |
4670 | main () | |
4671 | { | |
4672 | ||
4673 | ; | |
4674 | return 0; | |
4675 | } | |
4676 | _ACEOF | |
4677 | rm -f conftest.o conftest.obj | |
5213506e RW |
4678 | if { { ac_try="$ac_compile" |
4679 | case "(($ac_try" in | |
4680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4681 | *) ac_try_echo=$ac_try;; | |
4682 | esac | |
4683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4684 | $as_echo "$ac_try_echo"; } >&5 | |
4685 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4686 | ac_status=$? |
5213506e RW |
4687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4688 | test $ac_status = 0; }; then : | |
4689 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4690 | test -f "$ac_file" || continue; | |
1c710c3c | 4691 | case $ac_file in |
5213506e | 4692 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4693 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4694 | break;; | |
4695 | esac | |
4696 | done | |
4697 | else | |
5213506e | 4698 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4699 | sed 's/^/| /' conftest.$ac_ext >&5 |
4700 | ||
5213506e RW |
4701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4703 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4704 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4705 | fi |
1c710c3c DJ |
4706 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4707 | fi | |
5213506e RW |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4709 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4710 | OBJEXT=$ac_cv_objext |
4711 | ac_objext=$OBJEXT | |
5213506e RW |
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4713 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4714 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4715 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4716 | else |
5213506e | 4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4718 | /* end confdefs.h. */ |
4719 | ||
4720 | int | |
4721 | main () | |
4722 | { | |
4723 | #ifndef __GNUC__ | |
4724 | choke me | |
4725 | #endif | |
4726 | ||
4727 | ; | |
4728 | return 0; | |
4729 | } | |
4730 | _ACEOF | |
5213506e | 4731 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4732 | ac_compiler_gnu=yes |
4733 | else | |
5213506e | 4734 | ac_compiler_gnu=no |
1c710c3c | 4735 | fi |
5213506e | 4736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4737 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4738 | ||
4739 | fi | |
5213506e RW |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4741 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4742 | if test $ac_compiler_gnu = yes; then | |
4743 | GCC=yes | |
4744 | else | |
4745 | GCC= | |
4746 | fi | |
1c710c3c DJ |
4747 | ac_test_CFLAGS=${CFLAGS+set} |
4748 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4750 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4751 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4752 | $as_echo_n "(cached) " >&6 |
4753 | else | |
4754 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4755 | ac_c_werror_flag=yes | |
4756 | ac_cv_prog_cc_g=no | |
4757 | CFLAGS="-g" | |
4758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4759 | /* end confdefs.h. */ |
4760 | ||
4761 | int | |
4762 | main () | |
4763 | { | |
4764 | ||
4765 | ; | |
4766 | return 0; | |
4767 | } | |
4768 | _ACEOF | |
5213506e | 4769 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4770 | ac_cv_prog_cc_g=yes |
4771 | else | |
5213506e RW |
4772 | CFLAGS="" |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4774 | /* end confdefs.h. */ | |
4775 | ||
4776 | int | |
4777 | main () | |
4778 | { | |
4779 | ||
4780 | ; | |
4781 | return 0; | |
4782 | } | |
4783 | _ACEOF | |
4784 | if ac_fn_c_try_compile "$LINENO"; then : | |
4785 | ||
4786 | else | |
4787 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4788 | CFLAGS="-g" | |
4789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4790 | /* end confdefs.h. */ | |
af71363e | 4791 | |
5213506e RW |
4792 | int |
4793 | main () | |
4794 | { | |
4795 | ||
4796 | ; | |
4797 | return 0; | |
4798 | } | |
4799 | _ACEOF | |
4800 | if ac_fn_c_try_compile "$LINENO"; then : | |
4801 | ac_cv_prog_cc_g=yes | |
4802 | fi | |
4803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4804 | fi |
5213506e | 4805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4806 | fi |
5213506e RW |
4807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4808 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4809 | fi | |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4811 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4812 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4813 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4814 | elif test $ac_cv_prog_cc_g = yes; then |
4815 | if test "$GCC" = yes; then | |
4816 | CFLAGS="-g -O2" | |
4817 | else | |
4818 | CFLAGS="-g" | |
4819 | fi | |
4820 | else | |
4821 | if test "$GCC" = yes; then | |
4822 | CFLAGS="-O2" | |
4823 | else | |
4824 | CFLAGS= | |
4825 | fi | |
4826 | fi | |
5213506e RW |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4828 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4829 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4830 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4831 | else |
5213506e | 4832 | ac_cv_prog_cc_c89=no |
1c710c3c | 4833 | ac_save_CC=$CC |
5213506e | 4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4835 | /* end confdefs.h. */ |
4836 | #include <stdarg.h> | |
4837 | #include <stdio.h> | |
22e05272 | 4838 | struct stat; |
1c710c3c DJ |
4839 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4840 | struct buf { int x; }; | |
4841 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4842 | static char *e (p, i) | |
4843 | char **p; | |
4844 | int i; | |
4845 | { | |
4846 | return p[i]; | |
4847 | } | |
4848 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4849 | { | |
4850 | char *s; | |
4851 | va_list v; | |
4852 | va_start (v,p); | |
4853 | s = g (p, va_arg (v,int)); | |
4854 | va_end (v); | |
4855 | return s; | |
4856 | } | |
4857 | ||
4858 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4859 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4860 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4861 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4862 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4863 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4864 | that's true only with -std. */ |
1c710c3c DJ |
4865 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4866 | ||
5213506e RW |
4867 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4868 | inside strings and character constants. */ | |
4869 | #define FOO(x) 'x' | |
4870 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4871 | ||
1c710c3c DJ |
4872 | int test (int i, double x); |
4873 | struct s1 {int (*f) (int a);}; | |
4874 | struct s2 {int (*f) (double a);}; | |
4875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4876 | int argc; | |
4877 | char **argv; | |
4878 | int | |
4879 | main () | |
4880 | { | |
4881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4882 | ; | |
4883 | return 0; | |
4884 | } | |
4885 | _ACEOF | |
5213506e RW |
4886 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4887 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4888 | do |
4889 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4890 | if ac_fn_c_try_compile "$LINENO"; then : |
4891 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4892 | fi |
5213506e RW |
4893 | rm -f core conftest.err conftest.$ac_objext |
4894 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4895 | done |
5213506e | 4896 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4897 | CC=$ac_save_CC |
4898 | ||
4899 | fi | |
5213506e RW |
4900 | # AC_CACHE_VAL |
4901 | case "x$ac_cv_prog_cc_c89" in | |
4902 | x) | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4904 | $as_echo "none needed" >&6; } ;; | |
4905 | xno) | |
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4907 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4908 | *) |
5213506e RW |
4909 | CC="$CC $ac_cv_prog_cc_c89" |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4911 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4912 | esac |
5213506e | 4913 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4914 | |
2aeb72e9 DD |
4915 | fi |
4916 | ||
2aeb72e9 DD |
4917 | ac_ext=c |
4918 | ac_cpp='$CPP $CPPFLAGS' | |
4919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4922 | ||
91743432 NC |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4924 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4925 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
4927 | else | |
4928 | ac_cv_prog_cc_c99=no | |
4929 | ac_save_CC=$CC | |
4930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4931 | /* end confdefs.h. */ | |
4932 | #include <stdarg.h> | |
4933 | #include <stdbool.h> | |
4934 | #include <stdlib.h> | |
4935 | #include <wchar.h> | |
4936 | #include <stdio.h> | |
4937 | ||
4938 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4939 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4940 | #define showlist(...) puts (#__VA_ARGS__) | |
4941 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4942 | static void | |
4943 | test_varargs_macros (void) | |
4944 | { | |
4945 | int x = 1234; | |
4946 | int y = 5678; | |
4947 | debug ("Flag"); | |
4948 | debug ("X = %d\n", x); | |
4949 | showlist (The first, second, and third items.); | |
4950 | report (x>y, "x is %d but y is %d", x, y); | |
4951 | } | |
4952 | ||
4953 | // Check long long types. | |
4954 | #define BIG64 18446744073709551615ull | |
4955 | #define BIG32 4294967295ul | |
4956 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4957 | #if !BIG_OK | |
4958 | your preprocessor is broken; | |
4959 | #endif | |
4960 | #if BIG_OK | |
4961 | #else | |
4962 | your preprocessor is broken; | |
4963 | #endif | |
4964 | static long long int bignum = -9223372036854775807LL; | |
4965 | static unsigned long long int ubignum = BIG64; | |
4966 | ||
4967 | struct incomplete_array | |
4968 | { | |
4969 | int datasize; | |
4970 | double data[]; | |
4971 | }; | |
4972 | ||
4973 | struct named_init { | |
4974 | int number; | |
4975 | const wchar_t *name; | |
4976 | double average; | |
4977 | }; | |
4978 | ||
4979 | typedef const char *ccp; | |
4980 | ||
4981 | static inline int | |
4982 | test_restrict (ccp restrict text) | |
4983 | { | |
4984 | // See if C++-style comments work. | |
4985 | // Iterate through items via the restricted pointer. | |
4986 | // Also check for declarations in for loops. | |
4987 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4988 | continue; | |
4989 | return 0; | |
4990 | } | |
4991 | ||
4992 | // Check varargs and va_copy. | |
4993 | static void | |
4994 | test_varargs (const char *format, ...) | |
4995 | { | |
4996 | va_list args; | |
4997 | va_start (args, format); | |
4998 | va_list args_copy; | |
4999 | va_copy (args_copy, args); | |
5000 | ||
5001 | const char *str; | |
5002 | int number; | |
5003 | float fnumber; | |
5004 | ||
5005 | while (*format) | |
5006 | { | |
5007 | switch (*format++) | |
5008 | { | |
5009 | case 's': // string | |
5010 | str = va_arg (args_copy, const char *); | |
5011 | break; | |
5012 | case 'd': // int | |
5013 | number = va_arg (args_copy, int); | |
5014 | break; | |
5015 | case 'f': // float | |
5016 | fnumber = va_arg (args_copy, double); | |
5017 | break; | |
5018 | default: | |
5019 | break; | |
5020 | } | |
5021 | } | |
5022 | va_end (args_copy); | |
5023 | va_end (args); | |
5024 | } | |
5025 | ||
5026 | int | |
5027 | main () | |
5028 | { | |
5029 | ||
5030 | // Check bool. | |
5031 | _Bool success = false; | |
5032 | ||
5033 | // Check restrict. | |
5034 | if (test_restrict ("String literal") == 0) | |
5035 | success = true; | |
5036 | char *restrict newvar = "Another string"; | |
5037 | ||
5038 | // Check varargs. | |
5039 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5040 | test_varargs_macros (); | |
5041 | ||
5042 | // Check flexible array members. | |
5043 | struct incomplete_array *ia = | |
5044 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5045 | ia->datasize = 10; | |
5046 | for (int i = 0; i < ia->datasize; ++i) | |
5047 | ia->data[i] = i * 1.234; | |
5048 | ||
5049 | // Check named initializers. | |
5050 | struct named_init ni = { | |
5051 | .number = 34, | |
5052 | .name = L"Test wide string", | |
5053 | .average = 543.34343, | |
5054 | }; | |
5055 | ||
5056 | ni.number = 58; | |
5057 | ||
5058 | int dynamic_array[ni.number]; | |
5059 | dynamic_array[ni.number - 1] = 543; | |
5060 | ||
5061 | // work around unused variable warnings | |
5062 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5063 | || dynamic_array[ni.number - 1] != 543); | |
5064 | ||
5065 | ; | |
5066 | return 0; | |
5067 | } | |
5068 | _ACEOF | |
5069 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5070 | do | |
5071 | CC="$ac_save_CC $ac_arg" | |
5072 | if ac_fn_c_try_compile "$LINENO"; then : | |
5073 | ac_cv_prog_cc_c99=$ac_arg | |
5074 | fi | |
5075 | rm -f core conftest.err conftest.$ac_objext | |
5076 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5077 | done | |
5078 | rm -f conftest.$ac_ext | |
5079 | CC=$ac_save_CC | |
5080 | ||
5081 | fi | |
5082 | # AC_CACHE_VAL | |
5083 | case "x$ac_cv_prog_cc_c99" in | |
5084 | x) | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5086 | $as_echo "none needed" >&6; } ;; | |
5087 | xno) | |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5089 | $as_echo "unsupported" >&6; } ;; | |
5090 | *) | |
5091 | CC="$CC $ac_cv_prog_cc_c99" | |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5093 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5094 | esac | |
5095 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5096 | ||
5097 | fi | |
5098 | ||
5099 | ||
5213506e | 5100 | ac_ext=cpp |
2aeb72e9 DD |
5101 | ac_cpp='$CXXCPP $CPPFLAGS' |
5102 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5103 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5105 | if test -z "$CXX"; then |
5106 | if test -n "$CCC"; then | |
5107 | CXX=$CCC | |
5108 | else | |
5109 | if test -n "$ac_tool_prefix"; then | |
5110 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5111 | do |
5112 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5113 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5115 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5116 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5117 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5118 | else |
5119 | if test -n "$CXX"; then | |
5120 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5121 | else | |
5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5123 | for as_dir in $PATH | |
5124 | do | |
5125 | IFS=$as_save_IFS | |
5126 | test -z "$as_dir" && as_dir=. | |
5213506e | 5127 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5129 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5131 | break 2 |
5132 | fi | |
5133 | done | |
5213506e RW |
5134 | done |
5135 | IFS=$as_save_IFS | |
55ffb5ed | 5136 | |
c3a86da9 DJ |
5137 | fi |
5138 | fi | |
5139 | CXX=$ac_cv_prog_CXX | |
5140 | if test -n "$CXX"; then | |
5213506e RW |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5142 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5143 | else |
5213506e RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5145 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5146 | fi |
5147 | ||
5213506e | 5148 | |
c3a86da9 DJ |
5149 | test -n "$CXX" && break |
5150 | done | |
5151 | fi | |
5152 | if test -z "$CXX"; then | |
5153 | ac_ct_CXX=$CXX | |
5213506e | 5154 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5155 | do |
5156 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5157 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5159 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5160 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5161 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5162 | else |
5163 | if test -n "$ac_ct_CXX"; then | |
5164 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5165 | else | |
5166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5167 | for as_dir in $PATH | |
5168 | do | |
5169 | IFS=$as_save_IFS | |
5170 | test -z "$as_dir" && as_dir=. | |
5213506e | 5171 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5173 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5175 | break 2 |
5176 | fi | |
5177 | done | |
5213506e RW |
5178 | done |
5179 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5180 | |
5181 | fi | |
5182 | fi | |
5183 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5184 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5186 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5187 | else |
5213506e RW |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5189 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5190 | fi |
5191 | ||
5213506e | 5192 | |
c3a86da9 DJ |
5193 | test -n "$ac_ct_CXX" && break |
5194 | done | |
c3a86da9 | 5195 | |
5213506e RW |
5196 | if test "x$ac_ct_CXX" = x; then |
5197 | CXX="g++" | |
5198 | else | |
5199 | case $cross_compiling:$ac_tool_warned in | |
5200 | yes:) | |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5202 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5203 | ac_tool_warned=yes ;; | |
5204 | esac | |
5205 | CXX=$ac_ct_CXX | |
5206 | fi | |
c3a86da9 DJ |
5207 | fi |
5208 | ||
5213506e RW |
5209 | fi |
5210 | fi | |
c3a86da9 | 5211 | # Provide some information about the compiler. |
5213506e RW |
5212 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5213 | set X $ac_compile | |
5214 | ac_compiler=$2 | |
5215 | for ac_option in --version -v -V -qversion; do | |
5216 | { { ac_try="$ac_compiler $ac_option >&5" | |
5217 | case "(($ac_try" in | |
5218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5219 | *) ac_try_echo=$ac_try;; | |
5220 | esac | |
5221 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5222 | $as_echo "$ac_try_echo"; } >&5 | |
5223 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5224 | ac_status=$? |
5213506e RW |
5225 | if test -s conftest.err; then |
5226 | sed '10a\ | |
5227 | ... rest of stderr output deleted ... | |
5228 | 10q' conftest.err >conftest.er1 | |
5229 | cat conftest.er1 >&5 | |
5213506e | 5230 | fi |
22e05272 | 5231 | rm -f conftest.er1 conftest.err |
5213506e RW |
5232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5233 | test $ac_status = 0; } | |
5234 | done | |
c3a86da9 | 5235 | |
5213506e RW |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5237 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5238 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5239 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5240 | else |
5213506e | 5241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5242 | /* end confdefs.h. */ |
5243 | ||
5244 | int | |
5245 | main () | |
5246 | { | |
5247 | #ifndef __GNUC__ | |
5248 | choke me | |
5249 | #endif | |
5250 | ||
5251 | ; | |
5252 | return 0; | |
5253 | } | |
5254 | _ACEOF | |
5213506e | 5255 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5256 | ac_compiler_gnu=yes |
5257 | else | |
5213506e | 5258 | ac_compiler_gnu=no |
c3a86da9 | 5259 | fi |
5213506e | 5260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5261 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5262 | ||
5263 | fi | |
5213506e RW |
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5265 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5266 | if test $ac_compiler_gnu = yes; then | |
5267 | GXX=yes | |
5268 | else | |
5269 | GXX= | |
5270 | fi | |
c3a86da9 DJ |
5271 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5272 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5274 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5275 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5276 | $as_echo_n "(cached) " >&6 |
5277 | else | |
5278 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5279 | ac_cxx_werror_flag=yes | |
5280 | ac_cv_prog_cxx_g=no | |
5281 | CXXFLAGS="-g" | |
5282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5283 | /* end confdefs.h. */ |
5284 | ||
5285 | int | |
5286 | main () | |
5287 | { | |
5288 | ||
5289 | ; | |
5290 | return 0; | |
5291 | } | |
5292 | _ACEOF | |
5213506e | 5293 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5294 | ac_cv_prog_cxx_g=yes |
5295 | else | |
5213506e RW |
5296 | CXXFLAGS="" |
5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5298 | /* end confdefs.h. */ |
5213506e | 5299 | |
c3a86da9 DJ |
5300 | int |
5301 | main () | |
5302 | { | |
5213506e | 5303 | |
c3a86da9 DJ |
5304 | ; |
5305 | return 0; | |
5306 | } | |
5307 | _ACEOF | |
5213506e | 5308 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5309 | |
5213506e RW |
5310 | else |
5311 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5312 | CXXFLAGS="-g" | |
5313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5314 | /* end confdefs.h. */ |
5213506e | 5315 | |
c3a86da9 DJ |
5316 | int |
5317 | main () | |
5318 | { | |
5213506e | 5319 | |
c3a86da9 DJ |
5320 | ; |
5321 | return 0; | |
5322 | } | |
5323 | _ACEOF | |
5213506e RW |
5324 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5325 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5326 | fi |
5213506e RW |
5327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5328 | fi | |
5329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5330 | fi | |
5331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5332 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5333 | fi | |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5335 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5336 | if test "$ac_test_CXXFLAGS" = set; then | |
5337 | CXXFLAGS=$ac_save_CXXFLAGS | |
5338 | elif test $ac_cv_prog_cxx_g = yes; then | |
5339 | if test "$GXX" = yes; then | |
5340 | CXXFLAGS="-g -O2" | |
5341 | else | |
5342 | CXXFLAGS="-g" | |
5343 | fi | |
5344 | else | |
5345 | if test "$GXX" = yes; then | |
5346 | CXXFLAGS="-O2" | |
5347 | else | |
5348 | CXXFLAGS= | |
5349 | fi | |
c3a86da9 | 5350 | fi |
c3a86da9 DJ |
5351 | ac_ext=c |
5352 | ac_cpp='$CPP $CPPFLAGS' | |
5353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5356 | ||
5357 | ||
5358 | # We must set the default linker to the linker used by gcc for the correct | |
5359 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5360 | # set the LD default to the ld used by gcc. | |
5361 | if test -z "$LD"; then | |
5362 | if test "$GCC" = yes; then | |
5363 | case $build in | |
5364 | *-*-mingw*) | |
5365 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5366 | *) | |
5367 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5368 | esac | |
5369 | case $gcc_prog_ld in | |
5370 | # Accept absolute paths. | |
5371 | [\\/]* | [A-Za-z]:[\\/]*) | |
5372 | LD="$gcc_prog_ld" ;; | |
5373 | esac | |
5374 | fi | |
23f6b2f9 PB |
5375 | fi |
5376 | ||
0b21f5d3 EB |
5377 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5378 | have_static_libs=no | |
5379 | if test "$GCC" = yes; then | |
5380 | saved_LDFLAGS="$LDFLAGS" | |
5381 | ||
5382 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5384 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5385 | ac_ext=cpp | |
5386 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5390 | ||
5391 | ||
5392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5393 | /* end confdefs.h. */ | |
0d6414b2 EB |
5394 | |
5395 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5396 | #error -static-libstdc++ not implemented | |
5397 | #endif | |
0b21f5d3 EB |
5398 | int main() {} |
5399 | _ACEOF | |
5400 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5402 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5403 | else | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5405 | $as_echo "no" >&6; } | |
5406 | fi | |
5407 | rm -f core conftest.err conftest.$ac_objext \ | |
5408 | conftest$ac_exeext conftest.$ac_ext | |
5409 | ac_ext=c | |
5410 | ac_cpp='$CPP $CPPFLAGS' | |
5411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5414 | ||
5415 | ||
5416 | LDFLAGS="$saved_LDFLAGS" | |
5417 | fi | |
5418 | ||
23f6b2f9 PB |
5419 | |
5420 | ||
55ffb5ed | 5421 | |
1c710c3c DJ |
5422 | if test -n "$ac_tool_prefix"; then |
5423 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5424 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5426 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5427 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5428 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5429 | else |
5430 | if test -n "$GNATBIND"; then | |
5431 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5432 | else | |
1c710c3c DJ |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5434 | for as_dir in $PATH | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
5213506e | 5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5440 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5442 | break 2 |
5443 | fi | |
5444 | done | |
5213506e RW |
5445 | done |
5446 | IFS=$as_save_IFS | |
1c710c3c | 5447 | |
55ffb5ed NN |
5448 | fi |
5449 | fi | |
1c710c3c | 5450 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5451 | if test -n "$GNATBIND"; then |
5213506e RW |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5453 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5454 | else |
5213506e RW |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5456 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5457 | fi |
5458 | ||
5213506e | 5459 | |
1c710c3c | 5460 | fi |
55ffb5ed | 5461 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5462 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5463 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5464 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5466 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5467 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5468 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5469 | else |
1c710c3c DJ |
5470 | if test -n "$ac_ct_GNATBIND"; then |
5471 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5472 | else |
1c710c3c DJ |
5473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5474 | for as_dir in $PATH | |
5475 | do | |
5476 | IFS=$as_save_IFS | |
5477 | test -z "$as_dir" && as_dir=. | |
5213506e | 5478 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5480 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5482 | break 2 |
5483 | fi | |
5484 | done | |
5213506e RW |
5485 | done |
5486 | IFS=$as_save_IFS | |
1c710c3c | 5487 | |
55ffb5ed NN |
5488 | fi |
5489 | fi | |
1c710c3c DJ |
5490 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5491 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5493 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5494 | else |
5213506e RW |
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5496 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5497 | fi |
5498 | ||
5213506e RW |
5499 | if test "x$ac_ct_GNATBIND" = x; then |
5500 | GNATBIND="no" | |
5501 | else | |
5502 | case $cross_compiling:$ac_tool_warned in | |
5503 | yes:) | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5505 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5506 | ac_tool_warned=yes ;; | |
5507 | esac | |
5508 | GNATBIND=$ac_ct_GNATBIND | |
5509 | fi | |
55ffb5ed | 5510 | else |
1c710c3c | 5511 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5512 | fi |
5513 | ||
1c710c3c DJ |
5514 | if test -n "$ac_tool_prefix"; then |
5515 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5516 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5518 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5519 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5520 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5521 | else |
5522 | if test -n "$GNATMAKE"; then | |
5523 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5524 | else | |
1c710c3c DJ |
5525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5526 | for as_dir in $PATH | |
5527 | do | |
5528 | IFS=$as_save_IFS | |
5529 | test -z "$as_dir" && as_dir=. | |
5213506e | 5530 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5532 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5534 | break 2 |
5535 | fi | |
5536 | done | |
5213506e RW |
5537 | done |
5538 | IFS=$as_save_IFS | |
1c710c3c | 5539 | |
5305be7e RG |
5540 | fi |
5541 | fi | |
1c710c3c | 5542 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5543 | if test -n "$GNATMAKE"; then |
5213506e RW |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5545 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5546 | else |
5213506e RW |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5548 | $as_echo "no" >&6; } | |
5305be7e RG |
5549 | fi |
5550 | ||
5213506e | 5551 | |
1c710c3c | 5552 | fi |
5305be7e | 5553 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5554 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5555 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5556 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5558 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5559 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5560 | $as_echo_n "(cached) " >&6 |
5305be7e | 5561 | else |
1c710c3c DJ |
5562 | if test -n "$ac_ct_GNATMAKE"; then |
5563 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5564 | else |
1c710c3c DJ |
5565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5566 | for as_dir in $PATH | |
5567 | do | |
5568 | IFS=$as_save_IFS | |
5569 | test -z "$as_dir" && as_dir=. | |
5213506e | 5570 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5572 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5574 | break 2 |
5575 | fi | |
5576 | done | |
5213506e RW |
5577 | done |
5578 | IFS=$as_save_IFS | |
1c710c3c | 5579 | |
5305be7e RG |
5580 | fi |
5581 | fi | |
1c710c3c DJ |
5582 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5583 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5585 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5586 | else |
5213506e RW |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5588 | $as_echo "no" >&6; } | |
5305be7e RG |
5589 | fi |
5590 | ||
5213506e RW |
5591 | if test "x$ac_ct_GNATMAKE" = x; then |
5592 | GNATMAKE="no" | |
5593 | else | |
5594 | case $cross_compiling:$ac_tool_warned in | |
5595 | yes:) | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5597 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5598 | ac_tool_warned=yes ;; | |
5599 | esac | |
5600 | GNATMAKE=$ac_ct_GNATMAKE | |
5601 | fi | |
5305be7e | 5602 | else |
1c710c3c | 5603 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5604 | fi |
5605 | ||
71f068a9 RS |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5607 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
22e05272 | 5608 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5609 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5610 | else |
5611 | cat >conftest.adb <<EOF | |
71f068a9 RS |
5612 | pragma Warnings (Off); |
5613 | with System.CRTL; | |
5614 | pragma Warnings (On); | |
5615 | use type System.CRTL.int64; | |
55ffb5ed NN |
5616 | procedure conftest is begin null; end conftest; |
5617 | EOF | |
5618 | acx_cv_cc_gcc_supports_ada=no | |
5619 | # There is a bug in old released versions of GCC which causes the | |
5620 | # driver to exit successfully when the appropriate language module | |
5621 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5622 | # Therefore we must check for the error message as well as an | |
5623 | # unsuccessful exit. | |
1db673ca RO |
5624 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5625 | # given a .adb file, but produce no object file. So we must check | |
5626 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5627 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5628 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5629 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5630 | fi |
5631 | rm -f conftest.* | |
5632 | fi | |
5213506e RW |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5634 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5635 | |
7cb62ef1 | 5636 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5637 | have_gnat=yes |
5638 | else | |
5639 | have_gnat=no | |
5640 | fi | |
5641 | ||
5fee5ec3 IB |
5642 | |
5643 | ||
5644 | if test -n "$ac_tool_prefix"; then | |
5645 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5646 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5648 | $as_echo_n "checking for $ac_word... " >&6; } | |
5649 | if ${ac_cv_prog_GDC+:} false; then : | |
5650 | $as_echo_n "(cached) " >&6 | |
5651 | else | |
5652 | if test -n "$GDC"; then | |
5653 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5654 | else | |
5655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5656 | for as_dir in $PATH | |
5657 | do | |
5658 | IFS=$as_save_IFS | |
5659 | test -z "$as_dir" && as_dir=. | |
5660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5662 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5664 | break 2 | |
5665 | fi | |
5666 | done | |
5667 | done | |
5668 | IFS=$as_save_IFS | |
5669 | ||
5670 | fi | |
5671 | fi | |
5672 | GDC=$ac_cv_prog_GDC | |
5673 | if test -n "$GDC"; then | |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5675 | $as_echo "$GDC" >&6; } | |
5676 | else | |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5678 | $as_echo "no" >&6; } | |
5679 | fi | |
5680 | ||
5681 | ||
5682 | fi | |
5683 | if test -z "$ac_cv_prog_GDC"; then | |
5684 | ac_ct_GDC=$GDC | |
5685 | # Extract the first word of "gdc", so it can be a program name with args. | |
5686 | set dummy gdc; ac_word=$2 | |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5688 | $as_echo_n "checking for $ac_word... " >&6; } | |
5689 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5690 | $as_echo_n "(cached) " >&6 | |
5691 | else | |
5692 | if test -n "$ac_ct_GDC"; then | |
5693 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5694 | else | |
5695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5696 | for as_dir in $PATH | |
5697 | do | |
5698 | IFS=$as_save_IFS | |
5699 | test -z "$as_dir" && as_dir=. | |
5700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5702 | ac_cv_prog_ac_ct_GDC="gdc" | |
5703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5704 | break 2 | |
5705 | fi | |
5706 | done | |
5707 | done | |
5708 | IFS=$as_save_IFS | |
5709 | ||
5710 | fi | |
5711 | fi | |
5712 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5713 | if test -n "$ac_ct_GDC"; then | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5715 | $as_echo "$ac_ct_GDC" >&6; } | |
5716 | else | |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5718 | $as_echo "no" >&6; } | |
5719 | fi | |
5720 | ||
5721 | if test "x$ac_ct_GDC" = x; then | |
5722 | GDC="no" | |
5723 | else | |
5724 | case $cross_compiling:$ac_tool_warned in | |
5725 | yes:) | |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5727 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5728 | ac_tool_warned=yes ;; | |
5729 | esac | |
5730 | GDC=$ac_ct_GDC | |
5731 | fi | |
5732 | else | |
5733 | GDC="$ac_cv_prog_GDC" | |
5734 | fi | |
5735 | ||
7c6ae994 IB |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5737 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5738 | if ${acx_cv_d_compiler_works+:} false; then : | |
5739 | $as_echo_n "(cached) " >&6 | |
5740 | else | |
5741 | cat >conftest.d <<EOF | |
5742 | module conftest; int main() { return 0; } | |
5743 | EOF | |
5744 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5745 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5746 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5747 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5748 | acx_cv_d_compiler_works=yes | |
5749 | fi | |
5750 | rm -f conftest.* | |
5751 | fi | |
5752 | fi | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5754 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5755 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5756 | have_gdc=yes |
5757 | else | |
5758 | have_gdc=no | |
5759 | fi | |
5760 | ||
5213506e RW |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5762 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5763 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5764 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5765 | else |
5766 | echo abfoo >t1 | |
5767 | echo cdfoo >t2 | |
b55e6680 | 5768 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5769 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5770 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5771 | : | |
5772 | else | |
5773 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5774 | fi | |
5775 | fi | |
a76494aa PB |
5776 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5777 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5778 | : |
a76494aa PB |
5779 | else |
5780 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5781 | fi | |
5782 | fi | |
5783 | rm t1 t2 | |
5784 | ||
5785 | fi | |
5213506e RW |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5787 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5788 | do_compare="$gcc_cv_prog_cmp_skip" |
5789 | ||
5790 | ||
55ffb5ed | 5791 | |
ff3ac0f4 ILT |
5792 | # Check whether --enable-bootstrap was given. |
5793 | if test "${enable_bootstrap+set}" = set; then : | |
5794 | enableval=$enable_bootstrap; | |
5795 | else | |
5796 | enable_bootstrap=default | |
5797 | fi | |
5798 | ||
5799 | ||
5800 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5801 | if test -r $srcdir/gcc/configure; then |
5802 | have_compiler=yes | |
5803 | else | |
5804 | have_compiler=no | |
5805 | fi | |
ff3ac0f4 ILT |
5806 | |
5807 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5808 | *:*:*:no) ;; | |
5809 | ||
5810 | # Default behavior. Enable bootstrap if we have a compiler | |
5811 | # and we are in a native configuration. | |
5812 | yes:$build:$build:default) | |
5813 | enable_bootstrap=yes ;; | |
5814 | ||
5815 | *:*:*:default) | |
5816 | enable_bootstrap=no ;; | |
5817 | ||
5818 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5819 | yes:$build:$build:yes) | |
5820 | ;; | |
5821 | ||
5822 | # Other configurations, but we have a compiler. Assume the user knows | |
5823 | # what he's doing. | |
5824 | yes:*:*:yes) | |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5826 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5827 | ;; | |
5828 | ||
5829 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5830 | no:*:*:yes) | |
22e05272 | 5831 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5832 | |
5833 | # Fail if wrong command line | |
5834 | *) | |
22e05272 | 5835 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5836 | ;; |
5837 | esac | |
5838 | ||
5329b59a | 5839 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5840 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5841 | # require C++11 (or higher). | |
46070488 | 5842 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5843 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5844 | elif test "$have_compiler" = yes; then |
5845 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5846 | ac_ext=cpp | |
5847 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5848 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5849 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5850 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5851 | ac_success=no | |
5852 | ||
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5854 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5855 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5856 | $as_echo_n "(cached) " >&6 | |
5857 | else | |
5858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5859 | /* end confdefs.h. */ | |
5860 | ||
5861 | ||
5862 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5863 | // Hopefully, this will speed up the test. | |
5864 | ||
5865 | #ifndef __cplusplus | |
5866 | ||
5867 | #error "This is not a C++ compiler" | |
5868 | ||
5869 | #elif __cplusplus < 201103L | |
5870 | ||
5871 | #error "This is not a C++11 compiler" | |
5872 | ||
5873 | #else | |
5874 | ||
5875 | namespace cxx11 | |
5876 | { | |
5877 | ||
5878 | namespace test_static_assert | |
5879 | { | |
5880 | ||
5881 | template <typename T> | |
5882 | struct check | |
5883 | { | |
5884 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5885 | }; | |
5886 | ||
5887 | } | |
5888 | ||
5889 | namespace test_final_override | |
5890 | { | |
5891 | ||
5892 | struct Base | |
5893 | { | |
5894 | virtual ~Base() {} | |
5895 | virtual void f() {} | |
5896 | }; | |
5897 | ||
5898 | struct Derived : public Base | |
5899 | { | |
5900 | virtual ~Derived() override {} | |
5901 | virtual void f() override {} | |
5902 | }; | |
5903 | ||
5904 | } | |
5905 | ||
5906 | namespace test_double_right_angle_brackets | |
5907 | { | |
5908 | ||
5909 | template < typename T > | |
5910 | struct check {}; | |
5911 | ||
5912 | typedef check<void> single_type; | |
5913 | typedef check<check<void>> double_type; | |
5914 | typedef check<check<check<void>>> triple_type; | |
5915 | typedef check<check<check<check<void>>>> quadruple_type; | |
5916 | ||
5917 | } | |
5918 | ||
5919 | namespace test_decltype | |
5920 | { | |
5921 | ||
5922 | int | |
5923 | f() | |
5924 | { | |
5925 | int a = 1; | |
5926 | decltype(a) b = 2; | |
5927 | return a + b; | |
5928 | } | |
5929 | ||
5930 | } | |
5931 | ||
5932 | namespace test_type_deduction | |
5933 | { | |
5934 | ||
5935 | template < typename T1, typename T2 > | |
5936 | struct is_same | |
5937 | { | |
5938 | static const bool value = false; | |
5939 | }; | |
5940 | ||
5941 | template < typename T > | |
5942 | struct is_same<T, T> | |
5943 | { | |
5944 | static const bool value = true; | |
5945 | }; | |
5946 | ||
5947 | template < typename T1, typename T2 > | |
5948 | auto | |
5949 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5950 | { | |
5951 | return a1 + a2; | |
5952 | } | |
5953 | ||
5954 | int | |
5955 | test(const int c, volatile int v) | |
5956 | { | |
5957 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5958 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5959 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5960 | auto ac = c; | |
5961 | auto av = v; | |
5962 | auto sumi = ac + av + 'x'; | |
5963 | auto sumf = ac + av + 1.0; | |
5964 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5965 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5966 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5967 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5968 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5969 | return (sumf > 0.0) ? sumi : add(c, v); | |
5970 | } | |
5971 | ||
5972 | } | |
5973 | ||
5974 | namespace test_noexcept | |
5975 | { | |
5976 | ||
5977 | int f() { return 0; } | |
5978 | int g() noexcept { return 0; } | |
5979 | ||
5980 | static_assert(noexcept(f()) == false, ""); | |
5981 | static_assert(noexcept(g()) == true, ""); | |
5982 | ||
5983 | } | |
5984 | ||
5985 | namespace test_constexpr | |
5986 | { | |
5987 | ||
5988 | template < typename CharT > | |
5989 | unsigned long constexpr | |
5990 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5991 | { | |
5992 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5993 | } | |
5994 | ||
5995 | template < typename CharT > | |
5996 | unsigned long constexpr | |
5997 | strlen_c(const CharT *const s) noexcept | |
5998 | { | |
5999 | return strlen_c_r(s, 0UL); | |
6000 | } | |
6001 | ||
6002 | static_assert(strlen_c("") == 0UL, ""); | |
6003 | static_assert(strlen_c("1") == 1UL, ""); | |
6004 | static_assert(strlen_c("example") == 7UL, ""); | |
6005 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6006 | ||
6007 | } | |
6008 | ||
6009 | namespace test_rvalue_references | |
6010 | { | |
6011 | ||
6012 | template < int N > | |
6013 | struct answer | |
6014 | { | |
6015 | static constexpr int value = N; | |
6016 | }; | |
6017 | ||
6018 | answer<1> f(int&) { return answer<1>(); } | |
6019 | answer<2> f(const int&) { return answer<2>(); } | |
6020 | answer<3> f(int&&) { return answer<3>(); } | |
6021 | ||
6022 | void | |
6023 | test() | |
6024 | { | |
6025 | int i = 0; | |
6026 | const int c = 0; | |
6027 | static_assert(decltype(f(i))::value == 1, ""); | |
6028 | static_assert(decltype(f(c))::value == 2, ""); | |
6029 | static_assert(decltype(f(0))::value == 3, ""); | |
6030 | } | |
6031 | ||
6032 | } | |
6033 | ||
6034 | namespace test_uniform_initialization | |
6035 | { | |
6036 | ||
6037 | struct test | |
6038 | { | |
6039 | static const int zero {}; | |
6040 | static const int one {1}; | |
6041 | }; | |
6042 | ||
6043 | static_assert(test::zero == 0, ""); | |
6044 | static_assert(test::one == 1, ""); | |
6045 | ||
6046 | } | |
6047 | ||
6048 | namespace test_lambdas | |
6049 | { | |
6050 | ||
6051 | void | |
6052 | test1() | |
6053 | { | |
6054 | auto lambda1 = [](){}; | |
6055 | auto lambda2 = lambda1; | |
6056 | lambda1(); | |
6057 | lambda2(); | |
6058 | } | |
6059 | ||
6060 | int | |
6061 | test2() | |
6062 | { | |
6063 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6064 | auto b = []() -> int { return '0'; }(); | |
6065 | auto c = [=](){ return a + b; }(); | |
6066 | auto d = [&](){ return c; }(); | |
6067 | auto e = [a, &b](int x) mutable { | |
6068 | const auto identity = [](int y){ return y; }; | |
6069 | for (auto i = 0; i < a; ++i) | |
6070 | a += b--; | |
6071 | return x + identity(a + b); | |
6072 | }(0); | |
6073 | return a + b + c + d + e; | |
6074 | } | |
6075 | ||
6076 | int | |
6077 | test3() | |
6078 | { | |
6079 | const auto nullary = [](){ return 0; }; | |
6080 | const auto unary = [](int x){ return x; }; | |
6081 | using nullary_t = decltype(nullary); | |
6082 | using unary_t = decltype(unary); | |
6083 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6084 | const auto higher2nd = [unary](nullary_t f1){ | |
6085 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6086 | }; | |
6087 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6088 | } | |
6089 | ||
6090 | } | |
6091 | ||
6092 | namespace test_variadic_templates | |
6093 | { | |
6094 | ||
6095 | template <int...> | |
6096 | struct sum; | |
6097 | ||
6098 | template <int N0, int... N1toN> | |
6099 | struct sum<N0, N1toN...> | |
6100 | { | |
6101 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6102 | }; | |
6103 | ||
6104 | template <> | |
6105 | struct sum<> | |
6106 | { | |
6107 | static constexpr auto value = 0; | |
6108 | }; | |
6109 | ||
6110 | static_assert(sum<>::value == 0, ""); | |
6111 | static_assert(sum<1>::value == 1, ""); | |
6112 | static_assert(sum<23>::value == 23, ""); | |
6113 | static_assert(sum<1, 2>::value == 3, ""); | |
6114 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6115 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6116 | ||
6117 | } | |
6118 | ||
6119 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6120 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6121 | // because of this. | |
6122 | namespace test_template_alias_sfinae | |
6123 | { | |
6124 | ||
6125 | struct foo {}; | |
6126 | ||
6127 | template<typename T> | |
6128 | using member = typename T::member_type; | |
6129 | ||
6130 | template<typename T> | |
6131 | void func(...) {} | |
6132 | ||
6133 | template<typename T> | |
6134 | void func(member<T>*) {} | |
6135 | ||
6136 | void test(); | |
6137 | ||
6138 | void test() { func<foo>(0); } | |
6139 | ||
6140 | } | |
6141 | ||
6142 | } // namespace cxx11 | |
6143 | ||
6144 | #endif // __cplusplus >= 201103L | |
6145 | ||
6146 | ||
6147 | ||
6148 | _ACEOF | |
6149 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6150 | ax_cv_cxx_compile_cxx11=yes | |
6151 | else | |
6152 | ax_cv_cxx_compile_cxx11=no | |
6153 | fi | |
6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6155 | fi | |
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6157 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6158 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6159 | ac_success=yes | |
6160 | fi | |
6161 | ||
6162 | if test x$ac_success = xno; then | |
6163 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6164 | switch="-std=gnu++${alternative}" | |
6165 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6167 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6168 | if eval \${$cachevar+:} false; then : | |
6169 | $as_echo_n "(cached) " >&6 | |
6170 | else | |
6171 | ac_save_CXX="$CXX" | |
6172 | CXX="$CXX $switch" | |
6173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6174 | /* end confdefs.h. */ | |
6175 | ||
6176 | ||
6177 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6178 | // Hopefully, this will speed up the test. | |
6179 | ||
6180 | #ifndef __cplusplus | |
6181 | ||
6182 | #error "This is not a C++ compiler" | |
6183 | ||
6184 | #elif __cplusplus < 201103L | |
6185 | ||
6186 | #error "This is not a C++11 compiler" | |
6187 | ||
6188 | #else | |
6189 | ||
6190 | namespace cxx11 | |
6191 | { | |
6192 | ||
6193 | namespace test_static_assert | |
6194 | { | |
6195 | ||
6196 | template <typename T> | |
6197 | struct check | |
6198 | { | |
6199 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6200 | }; | |
6201 | ||
6202 | } | |
6203 | ||
6204 | namespace test_final_override | |
6205 | { | |
6206 | ||
6207 | struct Base | |
6208 | { | |
6209 | virtual ~Base() {} | |
6210 | virtual void f() {} | |
6211 | }; | |
6212 | ||
6213 | struct Derived : public Base | |
6214 | { | |
6215 | virtual ~Derived() override {} | |
6216 | virtual void f() override {} | |
6217 | }; | |
6218 | ||
6219 | } | |
6220 | ||
6221 | namespace test_double_right_angle_brackets | |
6222 | { | |
6223 | ||
6224 | template < typename T > | |
6225 | struct check {}; | |
6226 | ||
6227 | typedef check<void> single_type; | |
6228 | typedef check<check<void>> double_type; | |
6229 | typedef check<check<check<void>>> triple_type; | |
6230 | typedef check<check<check<check<void>>>> quadruple_type; | |
6231 | ||
6232 | } | |
6233 | ||
6234 | namespace test_decltype | |
6235 | { | |
6236 | ||
6237 | int | |
6238 | f() | |
6239 | { | |
6240 | int a = 1; | |
6241 | decltype(a) b = 2; | |
6242 | return a + b; | |
6243 | } | |
6244 | ||
6245 | } | |
6246 | ||
6247 | namespace test_type_deduction | |
6248 | { | |
6249 | ||
6250 | template < typename T1, typename T2 > | |
6251 | struct is_same | |
6252 | { | |
6253 | static const bool value = false; | |
6254 | }; | |
6255 | ||
6256 | template < typename T > | |
6257 | struct is_same<T, T> | |
6258 | { | |
6259 | static const bool value = true; | |
6260 | }; | |
6261 | ||
6262 | template < typename T1, typename T2 > | |
6263 | auto | |
6264 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6265 | { | |
6266 | return a1 + a2; | |
6267 | } | |
6268 | ||
6269 | int | |
6270 | test(const int c, volatile int v) | |
6271 | { | |
6272 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6273 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6274 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6275 | auto ac = c; | |
6276 | auto av = v; | |
6277 | auto sumi = ac + av + 'x'; | |
6278 | auto sumf = ac + av + 1.0; | |
6279 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6280 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6281 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6282 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6283 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6284 | return (sumf > 0.0) ? sumi : add(c, v); | |
6285 | } | |
6286 | ||
6287 | } | |
6288 | ||
6289 | namespace test_noexcept | |
6290 | { | |
6291 | ||
6292 | int f() { return 0; } | |
6293 | int g() noexcept { return 0; } | |
6294 | ||
6295 | static_assert(noexcept(f()) == false, ""); | |
6296 | static_assert(noexcept(g()) == true, ""); | |
6297 | ||
6298 | } | |
6299 | ||
6300 | namespace test_constexpr | |
6301 | { | |
6302 | ||
6303 | template < typename CharT > | |
6304 | unsigned long constexpr | |
6305 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6306 | { | |
6307 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6308 | } | |
6309 | ||
6310 | template < typename CharT > | |
6311 | unsigned long constexpr | |
6312 | strlen_c(const CharT *const s) noexcept | |
6313 | { | |
6314 | return strlen_c_r(s, 0UL); | |
6315 | } | |
6316 | ||
6317 | static_assert(strlen_c("") == 0UL, ""); | |
6318 | static_assert(strlen_c("1") == 1UL, ""); | |
6319 | static_assert(strlen_c("example") == 7UL, ""); | |
6320 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6321 | ||
6322 | } | |
6323 | ||
6324 | namespace test_rvalue_references | |
6325 | { | |
6326 | ||
6327 | template < int N > | |
6328 | struct answer | |
6329 | { | |
6330 | static constexpr int value = N; | |
6331 | }; | |
6332 | ||
6333 | answer<1> f(int&) { return answer<1>(); } | |
6334 | answer<2> f(const int&) { return answer<2>(); } | |
6335 | answer<3> f(int&&) { return answer<3>(); } | |
6336 | ||
6337 | void | |
6338 | test() | |
6339 | { | |
6340 | int i = 0; | |
6341 | const int c = 0; | |
6342 | static_assert(decltype(f(i))::value == 1, ""); | |
6343 | static_assert(decltype(f(c))::value == 2, ""); | |
6344 | static_assert(decltype(f(0))::value == 3, ""); | |
6345 | } | |
6346 | ||
6347 | } | |
6348 | ||
6349 | namespace test_uniform_initialization | |
6350 | { | |
6351 | ||
6352 | struct test | |
6353 | { | |
6354 | static const int zero {}; | |
6355 | static const int one {1}; | |
6356 | }; | |
6357 | ||
6358 | static_assert(test::zero == 0, ""); | |
6359 | static_assert(test::one == 1, ""); | |
6360 | ||
6361 | } | |
6362 | ||
6363 | namespace test_lambdas | |
6364 | { | |
6365 | ||
6366 | void | |
6367 | test1() | |
6368 | { | |
6369 | auto lambda1 = [](){}; | |
6370 | auto lambda2 = lambda1; | |
6371 | lambda1(); | |
6372 | lambda2(); | |
6373 | } | |
6374 | ||
6375 | int | |
6376 | test2() | |
6377 | { | |
6378 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6379 | auto b = []() -> int { return '0'; }(); | |
6380 | auto c = [=](){ return a + b; }(); | |
6381 | auto d = [&](){ return c; }(); | |
6382 | auto e = [a, &b](int x) mutable { | |
6383 | const auto identity = [](int y){ return y; }; | |
6384 | for (auto i = 0; i < a; ++i) | |
6385 | a += b--; | |
6386 | return x + identity(a + b); | |
6387 | }(0); | |
6388 | return a + b + c + d + e; | |
6389 | } | |
6390 | ||
6391 | int | |
6392 | test3() | |
6393 | { | |
6394 | const auto nullary = [](){ return 0; }; | |
6395 | const auto unary = [](int x){ return x; }; | |
6396 | using nullary_t = decltype(nullary); | |
6397 | using unary_t = decltype(unary); | |
6398 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6399 | const auto higher2nd = [unary](nullary_t f1){ | |
6400 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6401 | }; | |
6402 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6403 | } | |
6404 | ||
6405 | } | |
6406 | ||
6407 | namespace test_variadic_templates | |
6408 | { | |
6409 | ||
6410 | template <int...> | |
6411 | struct sum; | |
6412 | ||
6413 | template <int N0, int... N1toN> | |
6414 | struct sum<N0, N1toN...> | |
6415 | { | |
6416 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6417 | }; | |
6418 | ||
6419 | template <> | |
6420 | struct sum<> | |
6421 | { | |
6422 | static constexpr auto value = 0; | |
6423 | }; | |
6424 | ||
6425 | static_assert(sum<>::value == 0, ""); | |
6426 | static_assert(sum<1>::value == 1, ""); | |
6427 | static_assert(sum<23>::value == 23, ""); | |
6428 | static_assert(sum<1, 2>::value == 3, ""); | |
6429 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6430 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6431 | ||
6432 | } | |
6433 | ||
6434 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6435 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6436 | // because of this. | |
6437 | namespace test_template_alias_sfinae | |
6438 | { | |
6439 | ||
6440 | struct foo {}; | |
6441 | ||
6442 | template<typename T> | |
6443 | using member = typename T::member_type; | |
6444 | ||
6445 | template<typename T> | |
6446 | void func(...) {} | |
6447 | ||
6448 | template<typename T> | |
6449 | void func(member<T>*) {} | |
6450 | ||
6451 | void test(); | |
6452 | ||
6453 | void test() { func<foo>(0); } | |
6454 | ||
6455 | } | |
6456 | ||
6457 | } // namespace cxx11 | |
6458 | ||
6459 | #endif // __cplusplus >= 201103L | |
6460 | ||
6461 | ||
6462 | ||
6463 | _ACEOF | |
6464 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6465 | eval $cachevar=yes | |
6466 | else | |
6467 | eval $cachevar=no | |
6468 | fi | |
6469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6470 | CXX="$ac_save_CXX" | |
6471 | fi | |
6472 | eval ac_res=\$$cachevar | |
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6474 | $as_echo "$ac_res" >&6; } | |
6475 | if eval test x\$$cachevar = xyes; then | |
6476 | CXX="$CXX $switch" | |
6477 | if test -n "$CXXCPP" ; then | |
6478 | CXXCPP="$CXXCPP $switch" | |
6479 | fi | |
6480 | ac_success=yes | |
6481 | break | |
6482 | fi | |
6483 | done | |
6484 | fi | |
6485 | ||
6486 | if test x$ac_success = xno; then | |
6487 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6488 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6489 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6491 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6492 | if eval \${$cachevar+:} false; then : | |
6493 | $as_echo_n "(cached) " >&6 | |
6494 | else | |
6495 | ac_save_CXX="$CXX" | |
6496 | CXX="$CXX $switch" | |
6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6498 | /* end confdefs.h. */ | |
6499 | ||
6500 | ||
6501 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6502 | // Hopefully, this will speed up the test. | |
6503 | ||
6504 | #ifndef __cplusplus | |
6505 | ||
6506 | #error "This is not a C++ compiler" | |
6507 | ||
6508 | #elif __cplusplus < 201103L | |
6509 | ||
6510 | #error "This is not a C++11 compiler" | |
6511 | ||
6512 | #else | |
6513 | ||
6514 | namespace cxx11 | |
6515 | { | |
6516 | ||
6517 | namespace test_static_assert | |
6518 | { | |
6519 | ||
6520 | template <typename T> | |
6521 | struct check | |
6522 | { | |
6523 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6524 | }; | |
6525 | ||
6526 | } | |
6527 | ||
6528 | namespace test_final_override | |
6529 | { | |
6530 | ||
6531 | struct Base | |
6532 | { | |
6533 | virtual ~Base() {} | |
6534 | virtual void f() {} | |
6535 | }; | |
6536 | ||
6537 | struct Derived : public Base | |
6538 | { | |
6539 | virtual ~Derived() override {} | |
6540 | virtual void f() override {} | |
6541 | }; | |
6542 | ||
6543 | } | |
6544 | ||
6545 | namespace test_double_right_angle_brackets | |
6546 | { | |
6547 | ||
6548 | template < typename T > | |
6549 | struct check {}; | |
6550 | ||
6551 | typedef check<void> single_type; | |
6552 | typedef check<check<void>> double_type; | |
6553 | typedef check<check<check<void>>> triple_type; | |
6554 | typedef check<check<check<check<void>>>> quadruple_type; | |
6555 | ||
6556 | } | |
6557 | ||
6558 | namespace test_decltype | |
6559 | { | |
6560 | ||
6561 | int | |
6562 | f() | |
6563 | { | |
6564 | int a = 1; | |
6565 | decltype(a) b = 2; | |
6566 | return a + b; | |
6567 | } | |
6568 | ||
6569 | } | |
6570 | ||
6571 | namespace test_type_deduction | |
6572 | { | |
6573 | ||
6574 | template < typename T1, typename T2 > | |
6575 | struct is_same | |
6576 | { | |
6577 | static const bool value = false; | |
6578 | }; | |
6579 | ||
6580 | template < typename T > | |
6581 | struct is_same<T, T> | |
6582 | { | |
6583 | static const bool value = true; | |
6584 | }; | |
6585 | ||
6586 | template < typename T1, typename T2 > | |
6587 | auto | |
6588 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6589 | { | |
6590 | return a1 + a2; | |
6591 | } | |
6592 | ||
6593 | int | |
6594 | test(const int c, volatile int v) | |
6595 | { | |
6596 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6597 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6598 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6599 | auto ac = c; | |
6600 | auto av = v; | |
6601 | auto sumi = ac + av + 'x'; | |
6602 | auto sumf = ac + av + 1.0; | |
6603 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6604 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6605 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6606 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6607 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6608 | return (sumf > 0.0) ? sumi : add(c, v); | |
6609 | } | |
6610 | ||
6611 | } | |
6612 | ||
6613 | namespace test_noexcept | |
6614 | { | |
6615 | ||
6616 | int f() { return 0; } | |
6617 | int g() noexcept { return 0; } | |
6618 | ||
6619 | static_assert(noexcept(f()) == false, ""); | |
6620 | static_assert(noexcept(g()) == true, ""); | |
6621 | ||
6622 | } | |
6623 | ||
6624 | namespace test_constexpr | |
6625 | { | |
6626 | ||
6627 | template < typename CharT > | |
6628 | unsigned long constexpr | |
6629 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6630 | { | |
6631 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6632 | } | |
6633 | ||
6634 | template < typename CharT > | |
6635 | unsigned long constexpr | |
6636 | strlen_c(const CharT *const s) noexcept | |
6637 | { | |
6638 | return strlen_c_r(s, 0UL); | |
6639 | } | |
6640 | ||
6641 | static_assert(strlen_c("") == 0UL, ""); | |
6642 | static_assert(strlen_c("1") == 1UL, ""); | |
6643 | static_assert(strlen_c("example") == 7UL, ""); | |
6644 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6645 | ||
6646 | } | |
6647 | ||
6648 | namespace test_rvalue_references | |
6649 | { | |
6650 | ||
6651 | template < int N > | |
6652 | struct answer | |
6653 | { | |
6654 | static constexpr int value = N; | |
6655 | }; | |
6656 | ||
6657 | answer<1> f(int&) { return answer<1>(); } | |
6658 | answer<2> f(const int&) { return answer<2>(); } | |
6659 | answer<3> f(int&&) { return answer<3>(); } | |
6660 | ||
6661 | void | |
6662 | test() | |
6663 | { | |
6664 | int i = 0; | |
6665 | const int c = 0; | |
6666 | static_assert(decltype(f(i))::value == 1, ""); | |
6667 | static_assert(decltype(f(c))::value == 2, ""); | |
6668 | static_assert(decltype(f(0))::value == 3, ""); | |
6669 | } | |
6670 | ||
6671 | } | |
6672 | ||
6673 | namespace test_uniform_initialization | |
6674 | { | |
6675 | ||
6676 | struct test | |
6677 | { | |
6678 | static const int zero {}; | |
6679 | static const int one {1}; | |
6680 | }; | |
6681 | ||
6682 | static_assert(test::zero == 0, ""); | |
6683 | static_assert(test::one == 1, ""); | |
6684 | ||
6685 | } | |
6686 | ||
6687 | namespace test_lambdas | |
6688 | { | |
6689 | ||
6690 | void | |
6691 | test1() | |
6692 | { | |
6693 | auto lambda1 = [](){}; | |
6694 | auto lambda2 = lambda1; | |
6695 | lambda1(); | |
6696 | lambda2(); | |
6697 | } | |
6698 | ||
6699 | int | |
6700 | test2() | |
6701 | { | |
6702 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6703 | auto b = []() -> int { return '0'; }(); | |
6704 | auto c = [=](){ return a + b; }(); | |
6705 | auto d = [&](){ return c; }(); | |
6706 | auto e = [a, &b](int x) mutable { | |
6707 | const auto identity = [](int y){ return y; }; | |
6708 | for (auto i = 0; i < a; ++i) | |
6709 | a += b--; | |
6710 | return x + identity(a + b); | |
6711 | }(0); | |
6712 | return a + b + c + d + e; | |
6713 | } | |
6714 | ||
6715 | int | |
6716 | test3() | |
6717 | { | |
6718 | const auto nullary = [](){ return 0; }; | |
6719 | const auto unary = [](int x){ return x; }; | |
6720 | using nullary_t = decltype(nullary); | |
6721 | using unary_t = decltype(unary); | |
6722 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6723 | const auto higher2nd = [unary](nullary_t f1){ | |
6724 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6725 | }; | |
6726 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6727 | } | |
6728 | ||
6729 | } | |
6730 | ||
6731 | namespace test_variadic_templates | |
6732 | { | |
6733 | ||
6734 | template <int...> | |
6735 | struct sum; | |
6736 | ||
6737 | template <int N0, int... N1toN> | |
6738 | struct sum<N0, N1toN...> | |
6739 | { | |
6740 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6741 | }; | |
6742 | ||
6743 | template <> | |
6744 | struct sum<> | |
6745 | { | |
6746 | static constexpr auto value = 0; | |
6747 | }; | |
6748 | ||
6749 | static_assert(sum<>::value == 0, ""); | |
6750 | static_assert(sum<1>::value == 1, ""); | |
6751 | static_assert(sum<23>::value == 23, ""); | |
6752 | static_assert(sum<1, 2>::value == 3, ""); | |
6753 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6754 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6755 | ||
6756 | } | |
6757 | ||
6758 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6759 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6760 | // because of this. | |
6761 | namespace test_template_alias_sfinae | |
6762 | { | |
6763 | ||
6764 | struct foo {}; | |
6765 | ||
6766 | template<typename T> | |
6767 | using member = typename T::member_type; | |
6768 | ||
6769 | template<typename T> | |
6770 | void func(...) {} | |
6771 | ||
6772 | template<typename T> | |
6773 | void func(member<T>*) {} | |
6774 | ||
6775 | void test(); | |
6776 | ||
6777 | void test() { func<foo>(0); } | |
6778 | ||
6779 | } | |
6780 | ||
6781 | } // namespace cxx11 | |
6782 | ||
6783 | #endif // __cplusplus >= 201103L | |
6784 | ||
6785 | ||
6786 | ||
6787 | _ACEOF | |
6788 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6789 | eval $cachevar=yes | |
6790 | else | |
6791 | eval $cachevar=no | |
6792 | fi | |
6793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6794 | CXX="$ac_save_CXX" | |
6795 | fi | |
6796 | eval ac_res=\$$cachevar | |
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6798 | $as_echo "$ac_res" >&6; } | |
6799 | if eval test x\$$cachevar = xyes; then | |
6800 | CXX="$CXX $switch" | |
6801 | if test -n "$CXXCPP" ; then | |
6802 | CXXCPP="$CXXCPP $switch" | |
6803 | fi | |
6804 | ac_success=yes | |
6805 | break | |
6806 | fi | |
6807 | done | |
6808 | if test x$ac_success = xyes; then | |
6809 | break | |
6810 | fi | |
6811 | done | |
6812 | fi | |
7ffcf5d6 | 6813 | |
ffac9597 JM |
6814 | ac_ext=c |
6815 | ac_cpp='$CPP $CPPFLAGS' | |
6816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6819 | ||
6820 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6821 | if test x$ac_success = xno; then | |
6822 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6823 | fi | |
6824 | fi | |
6825 | if test x$ac_success = xno; then | |
6826 | HAVE_CXX11=0 | |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6828 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6829 | else | |
6830 | HAVE_CXX11=1 | |
6831 | ||
6832 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6833 | ||
6834 | fi | |
6835 | ||
6836 | ||
7ffcf5d6 TB |
6837 | |
6838 | if test "${build}" != "${host}"; then | |
6839 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6840 | ac_ext=cpp | |
6841 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6842 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6843 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6844 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6845 | ac_success=no | |
6846 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6847 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6848 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6849 | CXX="$CXX_FOR_BUILD" | |
6850 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6851 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6853 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6854 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6855 | $as_echo_n "(cached) " >&6 | |
6856 | else | |
6857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6858 | /* end confdefs.h. */ | |
6859 | ||
6860 | ||
6861 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6862 | // Hopefully, this will speed up the test. | |
6863 | ||
6864 | #ifndef __cplusplus | |
6865 | ||
6866 | #error "This is not a C++ compiler" | |
6867 | ||
6868 | #elif __cplusplus < 201103L | |
6869 | ||
6870 | #error "This is not a C++11 compiler" | |
6871 | ||
6872 | #else | |
6873 | ||
6874 | namespace cxx11 | |
6875 | { | |
6876 | ||
6877 | namespace test_static_assert | |
6878 | { | |
6879 | ||
6880 | template <typename T> | |
6881 | struct check | |
6882 | { | |
6883 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6884 | }; | |
6885 | ||
6886 | } | |
6887 | ||
6888 | namespace test_final_override | |
6889 | { | |
6890 | ||
6891 | struct Base | |
6892 | { | |
6893 | virtual ~Base() {} | |
6894 | virtual void f() {} | |
6895 | }; | |
6896 | ||
6897 | struct Derived : public Base | |
6898 | { | |
6899 | virtual ~Derived() override {} | |
6900 | virtual void f() override {} | |
6901 | }; | |
6902 | ||
6903 | } | |
6904 | ||
6905 | namespace test_double_right_angle_brackets | |
6906 | { | |
6907 | ||
6908 | template < typename T > | |
6909 | struct check {}; | |
6910 | ||
6911 | typedef check<void> single_type; | |
6912 | typedef check<check<void>> double_type; | |
6913 | typedef check<check<check<void>>> triple_type; | |
6914 | typedef check<check<check<check<void>>>> quadruple_type; | |
6915 | ||
6916 | } | |
6917 | ||
6918 | namespace test_decltype | |
6919 | { | |
6920 | ||
6921 | int | |
6922 | f() | |
6923 | { | |
6924 | int a = 1; | |
6925 | decltype(a) b = 2; | |
6926 | return a + b; | |
6927 | } | |
6928 | ||
6929 | } | |
6930 | ||
6931 | namespace test_type_deduction | |
6932 | { | |
6933 | ||
6934 | template < typename T1, typename T2 > | |
6935 | struct is_same | |
6936 | { | |
6937 | static const bool value = false; | |
6938 | }; | |
6939 | ||
6940 | template < typename T > | |
6941 | struct is_same<T, T> | |
6942 | { | |
6943 | static const bool value = true; | |
6944 | }; | |
6945 | ||
6946 | template < typename T1, typename T2 > | |
6947 | auto | |
6948 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6949 | { | |
6950 | return a1 + a2; | |
6951 | } | |
6952 | ||
6953 | int | |
6954 | test(const int c, volatile int v) | |
6955 | { | |
6956 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6957 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6958 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6959 | auto ac = c; | |
6960 | auto av = v; | |
6961 | auto sumi = ac + av + 'x'; | |
6962 | auto sumf = ac + av + 1.0; | |
6963 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6964 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6965 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6966 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6967 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6968 | return (sumf > 0.0) ? sumi : add(c, v); | |
6969 | } | |
6970 | ||
6971 | } | |
6972 | ||
6973 | namespace test_noexcept | |
6974 | { | |
6975 | ||
6976 | int f() { return 0; } | |
6977 | int g() noexcept { return 0; } | |
6978 | ||
6979 | static_assert(noexcept(f()) == false, ""); | |
6980 | static_assert(noexcept(g()) == true, ""); | |
6981 | ||
6982 | } | |
6983 | ||
6984 | namespace test_constexpr | |
6985 | { | |
6986 | ||
6987 | template < typename CharT > | |
6988 | unsigned long constexpr | |
6989 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6990 | { | |
6991 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6992 | } | |
6993 | ||
6994 | template < typename CharT > | |
6995 | unsigned long constexpr | |
6996 | strlen_c(const CharT *const s) noexcept | |
6997 | { | |
6998 | return strlen_c_r(s, 0UL); | |
6999 | } | |
7000 | ||
7001 | static_assert(strlen_c("") == 0UL, ""); | |
7002 | static_assert(strlen_c("1") == 1UL, ""); | |
7003 | static_assert(strlen_c("example") == 7UL, ""); | |
7004 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7005 | ||
7006 | } | |
7007 | ||
7008 | namespace test_rvalue_references | |
7009 | { | |
7010 | ||
7011 | template < int N > | |
7012 | struct answer | |
7013 | { | |
7014 | static constexpr int value = N; | |
7015 | }; | |
7016 | ||
7017 | answer<1> f(int&) { return answer<1>(); } | |
7018 | answer<2> f(const int&) { return answer<2>(); } | |
7019 | answer<3> f(int&&) { return answer<3>(); } | |
7020 | ||
7021 | void | |
7022 | test() | |
7023 | { | |
7024 | int i = 0; | |
7025 | const int c = 0; | |
7026 | static_assert(decltype(f(i))::value == 1, ""); | |
7027 | static_assert(decltype(f(c))::value == 2, ""); | |
7028 | static_assert(decltype(f(0))::value == 3, ""); | |
7029 | } | |
7030 | ||
7031 | } | |
7032 | ||
7033 | namespace test_uniform_initialization | |
7034 | { | |
7035 | ||
7036 | struct test | |
7037 | { | |
7038 | static const int zero {}; | |
7039 | static const int one {1}; | |
7040 | }; | |
7041 | ||
7042 | static_assert(test::zero == 0, ""); | |
7043 | static_assert(test::one == 1, ""); | |
7044 | ||
7045 | } | |
7046 | ||
7047 | namespace test_lambdas | |
7048 | { | |
7049 | ||
7050 | void | |
7051 | test1() | |
7052 | { | |
7053 | auto lambda1 = [](){}; | |
7054 | auto lambda2 = lambda1; | |
7055 | lambda1(); | |
7056 | lambda2(); | |
7057 | } | |
7058 | ||
7059 | int | |
7060 | test2() | |
7061 | { | |
7062 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7063 | auto b = []() -> int { return '0'; }(); | |
7064 | auto c = [=](){ return a + b; }(); | |
7065 | auto d = [&](){ return c; }(); | |
7066 | auto e = [a, &b](int x) mutable { | |
7067 | const auto identity = [](int y){ return y; }; | |
7068 | for (auto i = 0; i < a; ++i) | |
7069 | a += b--; | |
7070 | return x + identity(a + b); | |
7071 | }(0); | |
7072 | return a + b + c + d + e; | |
7073 | } | |
7074 | ||
7075 | int | |
7076 | test3() | |
7077 | { | |
7078 | const auto nullary = [](){ return 0; }; | |
7079 | const auto unary = [](int x){ return x; }; | |
7080 | using nullary_t = decltype(nullary); | |
7081 | using unary_t = decltype(unary); | |
7082 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7083 | const auto higher2nd = [unary](nullary_t f1){ | |
7084 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7085 | }; | |
7086 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7087 | } | |
7088 | ||
7089 | } | |
7090 | ||
7091 | namespace test_variadic_templates | |
7092 | { | |
7093 | ||
7094 | template <int...> | |
7095 | struct sum; | |
7096 | ||
7097 | template <int N0, int... N1toN> | |
7098 | struct sum<N0, N1toN...> | |
7099 | { | |
7100 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7101 | }; | |
7102 | ||
7103 | template <> | |
7104 | struct sum<> | |
7105 | { | |
7106 | static constexpr auto value = 0; | |
7107 | }; | |
7108 | ||
7109 | static_assert(sum<>::value == 0, ""); | |
7110 | static_assert(sum<1>::value == 1, ""); | |
7111 | static_assert(sum<23>::value == 23, ""); | |
7112 | static_assert(sum<1, 2>::value == 3, ""); | |
7113 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7114 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7115 | ||
7116 | } | |
7117 | ||
7118 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7119 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7120 | // because of this. | |
7121 | namespace test_template_alias_sfinae | |
7122 | { | |
7123 | ||
7124 | struct foo {}; | |
7125 | ||
7126 | template<typename T> | |
7127 | using member = typename T::member_type; | |
7128 | ||
7129 | template<typename T> | |
7130 | void func(...) {} | |
7131 | ||
7132 | template<typename T> | |
7133 | void func(member<T>*) {} | |
7134 | ||
7135 | void test(); | |
7136 | ||
7137 | void test() { func<foo>(0); } | |
7138 | ||
7139 | } | |
7140 | ||
7141 | } // namespace cxx11 | |
7142 | ||
7143 | #endif // __cplusplus >= 201103L | |
7144 | ||
7145 | ||
7146 | ||
7147 | _ACEOF | |
7148 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7149 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7150 | else | |
7151 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7152 | fi | |
7153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7154 | fi | |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7156 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7157 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7158 | ac_success=yes | |
7159 | fi | |
7160 | ||
7161 | if test x$ac_success = xno; then | |
7162 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7163 | switch="-std=gnu++${alternative}" | |
7164 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7166 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7167 | if eval \${$cachevar+:} false; then : | |
7168 | $as_echo_n "(cached) " >&6 | |
7169 | else | |
7170 | ac_save_CXX="$CXX" | |
7171 | CXX="$CXX $switch" | |
7172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7173 | /* end confdefs.h. */ | |
7174 | ||
7175 | ||
7176 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7177 | // Hopefully, this will speed up the test. | |
7178 | ||
7179 | #ifndef __cplusplus | |
7180 | ||
7181 | #error "This is not a C++ compiler" | |
7182 | ||
7183 | #elif __cplusplus < 201103L | |
7184 | ||
7185 | #error "This is not a C++11 compiler" | |
7186 | ||
7187 | #else | |
7188 | ||
7189 | namespace cxx11 | |
7190 | { | |
7191 | ||
7192 | namespace test_static_assert | |
7193 | { | |
7194 | ||
7195 | template <typename T> | |
7196 | struct check | |
7197 | { | |
7198 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7199 | }; | |
7200 | ||
7201 | } | |
7202 | ||
7203 | namespace test_final_override | |
7204 | { | |
7205 | ||
7206 | struct Base | |
7207 | { | |
7208 | virtual ~Base() {} | |
7209 | virtual void f() {} | |
7210 | }; | |
7211 | ||
7212 | struct Derived : public Base | |
7213 | { | |
7214 | virtual ~Derived() override {} | |
7215 | virtual void f() override {} | |
7216 | }; | |
7217 | ||
7218 | } | |
7219 | ||
7220 | namespace test_double_right_angle_brackets | |
7221 | { | |
7222 | ||
7223 | template < typename T > | |
7224 | struct check {}; | |
7225 | ||
7226 | typedef check<void> single_type; | |
7227 | typedef check<check<void>> double_type; | |
7228 | typedef check<check<check<void>>> triple_type; | |
7229 | typedef check<check<check<check<void>>>> quadruple_type; | |
7230 | ||
7231 | } | |
7232 | ||
7233 | namespace test_decltype | |
7234 | { | |
7235 | ||
7236 | int | |
7237 | f() | |
7238 | { | |
7239 | int a = 1; | |
7240 | decltype(a) b = 2; | |
7241 | return a + b; | |
7242 | } | |
7243 | ||
7244 | } | |
7245 | ||
7246 | namespace test_type_deduction | |
7247 | { | |
7248 | ||
7249 | template < typename T1, typename T2 > | |
7250 | struct is_same | |
7251 | { | |
7252 | static const bool value = false; | |
7253 | }; | |
7254 | ||
7255 | template < typename T > | |
7256 | struct is_same<T, T> | |
7257 | { | |
7258 | static const bool value = true; | |
7259 | }; | |
7260 | ||
7261 | template < typename T1, typename T2 > | |
7262 | auto | |
7263 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7264 | { | |
7265 | return a1 + a2; | |
7266 | } | |
7267 | ||
7268 | int | |
7269 | test(const int c, volatile int v) | |
7270 | { | |
7271 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7272 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7273 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7274 | auto ac = c; | |
7275 | auto av = v; | |
7276 | auto sumi = ac + av + 'x'; | |
7277 | auto sumf = ac + av + 1.0; | |
7278 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7279 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7280 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7281 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7282 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7283 | return (sumf > 0.0) ? sumi : add(c, v); | |
7284 | } | |
7285 | ||
7286 | } | |
7287 | ||
7288 | namespace test_noexcept | |
7289 | { | |
7290 | ||
7291 | int f() { return 0; } | |
7292 | int g() noexcept { return 0; } | |
7293 | ||
7294 | static_assert(noexcept(f()) == false, ""); | |
7295 | static_assert(noexcept(g()) == true, ""); | |
7296 | ||
7297 | } | |
7298 | ||
7299 | namespace test_constexpr | |
7300 | { | |
7301 | ||
7302 | template < typename CharT > | |
7303 | unsigned long constexpr | |
7304 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7305 | { | |
7306 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7307 | } | |
7308 | ||
7309 | template < typename CharT > | |
7310 | unsigned long constexpr | |
7311 | strlen_c(const CharT *const s) noexcept | |
7312 | { | |
7313 | return strlen_c_r(s, 0UL); | |
7314 | } | |
7315 | ||
7316 | static_assert(strlen_c("") == 0UL, ""); | |
7317 | static_assert(strlen_c("1") == 1UL, ""); | |
7318 | static_assert(strlen_c("example") == 7UL, ""); | |
7319 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7320 | ||
7321 | } | |
7322 | ||
7323 | namespace test_rvalue_references | |
7324 | { | |
7325 | ||
7326 | template < int N > | |
7327 | struct answer | |
7328 | { | |
7329 | static constexpr int value = N; | |
7330 | }; | |
7331 | ||
7332 | answer<1> f(int&) { return answer<1>(); } | |
7333 | answer<2> f(const int&) { return answer<2>(); } | |
7334 | answer<3> f(int&&) { return answer<3>(); } | |
7335 | ||
7336 | void | |
7337 | test() | |
7338 | { | |
7339 | int i = 0; | |
7340 | const int c = 0; | |
7341 | static_assert(decltype(f(i))::value == 1, ""); | |
7342 | static_assert(decltype(f(c))::value == 2, ""); | |
7343 | static_assert(decltype(f(0))::value == 3, ""); | |
7344 | } | |
7345 | ||
7346 | } | |
7347 | ||
7348 | namespace test_uniform_initialization | |
7349 | { | |
7350 | ||
7351 | struct test | |
7352 | { | |
7353 | static const int zero {}; | |
7354 | static const int one {1}; | |
7355 | }; | |
7356 | ||
7357 | static_assert(test::zero == 0, ""); | |
7358 | static_assert(test::one == 1, ""); | |
7359 | ||
7360 | } | |
7361 | ||
7362 | namespace test_lambdas | |
7363 | { | |
7364 | ||
7365 | void | |
7366 | test1() | |
7367 | { | |
7368 | auto lambda1 = [](){}; | |
7369 | auto lambda2 = lambda1; | |
7370 | lambda1(); | |
7371 | lambda2(); | |
7372 | } | |
7373 | ||
7374 | int | |
7375 | test2() | |
7376 | { | |
7377 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7378 | auto b = []() -> int { return '0'; }(); | |
7379 | auto c = [=](){ return a + b; }(); | |
7380 | auto d = [&](){ return c; }(); | |
7381 | auto e = [a, &b](int x) mutable { | |
7382 | const auto identity = [](int y){ return y; }; | |
7383 | for (auto i = 0; i < a; ++i) | |
7384 | a += b--; | |
7385 | return x + identity(a + b); | |
7386 | }(0); | |
7387 | return a + b + c + d + e; | |
7388 | } | |
7389 | ||
7390 | int | |
7391 | test3() | |
7392 | { | |
7393 | const auto nullary = [](){ return 0; }; | |
7394 | const auto unary = [](int x){ return x; }; | |
7395 | using nullary_t = decltype(nullary); | |
7396 | using unary_t = decltype(unary); | |
7397 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7398 | const auto higher2nd = [unary](nullary_t f1){ | |
7399 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7400 | }; | |
7401 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7402 | } | |
7403 | ||
7404 | } | |
7405 | ||
7406 | namespace test_variadic_templates | |
7407 | { | |
7408 | ||
7409 | template <int...> | |
7410 | struct sum; | |
7411 | ||
7412 | template <int N0, int... N1toN> | |
7413 | struct sum<N0, N1toN...> | |
7414 | { | |
7415 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7416 | }; | |
7417 | ||
7418 | template <> | |
7419 | struct sum<> | |
7420 | { | |
7421 | static constexpr auto value = 0; | |
7422 | }; | |
7423 | ||
7424 | static_assert(sum<>::value == 0, ""); | |
7425 | static_assert(sum<1>::value == 1, ""); | |
7426 | static_assert(sum<23>::value == 23, ""); | |
7427 | static_assert(sum<1, 2>::value == 3, ""); | |
7428 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7429 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7430 | ||
7431 | } | |
7432 | ||
7433 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7434 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7435 | // because of this. | |
7436 | namespace test_template_alias_sfinae | |
7437 | { | |
7438 | ||
7439 | struct foo {}; | |
7440 | ||
7441 | template<typename T> | |
7442 | using member = typename T::member_type; | |
7443 | ||
7444 | template<typename T> | |
7445 | void func(...) {} | |
7446 | ||
7447 | template<typename T> | |
7448 | void func(member<T>*) {} | |
7449 | ||
7450 | void test(); | |
7451 | ||
7452 | void test() { func<foo>(0); } | |
7453 | ||
7454 | } | |
7455 | ||
7456 | } // namespace cxx11 | |
7457 | ||
7458 | #endif // __cplusplus >= 201103L | |
7459 | ||
7460 | ||
7461 | ||
7462 | _ACEOF | |
7463 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7464 | eval $cachevar=yes | |
7465 | else | |
7466 | eval $cachevar=no | |
7467 | fi | |
7468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7469 | CXX="$ac_save_CXX" | |
7470 | fi | |
7471 | eval ac_res=\$$cachevar | |
7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7473 | $as_echo "$ac_res" >&6; } | |
7474 | if eval test x\$$cachevar = xyes; then | |
7475 | CXX="$CXX $switch" | |
7476 | if test -n "$CXXCPP" ; then | |
7477 | CXXCPP="$CXXCPP $switch" | |
7478 | fi | |
7479 | ac_success=yes | |
7480 | break | |
7481 | fi | |
7482 | done | |
7483 | fi | |
7484 | ||
7485 | if test x$ac_success = xno; then | |
7486 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7487 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7488 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7490 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7491 | if eval \${$cachevar+:} false; then : | |
7492 | $as_echo_n "(cached) " >&6 | |
7493 | else | |
7494 | ac_save_CXX="$CXX" | |
7495 | CXX="$CXX $switch" | |
7496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7497 | /* end confdefs.h. */ | |
7498 | ||
7499 | ||
7500 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7501 | // Hopefully, this will speed up the test. | |
7502 | ||
7503 | #ifndef __cplusplus | |
7504 | ||
7505 | #error "This is not a C++ compiler" | |
7506 | ||
7507 | #elif __cplusplus < 201103L | |
7508 | ||
7509 | #error "This is not a C++11 compiler" | |
7510 | ||
7511 | #else | |
7512 | ||
7513 | namespace cxx11 | |
7514 | { | |
7515 | ||
7516 | namespace test_static_assert | |
7517 | { | |
7518 | ||
7519 | template <typename T> | |
7520 | struct check | |
7521 | { | |
7522 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7523 | }; | |
7524 | ||
7525 | } | |
7526 | ||
7527 | namespace test_final_override | |
7528 | { | |
7529 | ||
7530 | struct Base | |
7531 | { | |
7532 | virtual ~Base() {} | |
7533 | virtual void f() {} | |
7534 | }; | |
7535 | ||
7536 | struct Derived : public Base | |
7537 | { | |
7538 | virtual ~Derived() override {} | |
7539 | virtual void f() override {} | |
7540 | }; | |
7541 | ||
7542 | } | |
7543 | ||
7544 | namespace test_double_right_angle_brackets | |
7545 | { | |
7546 | ||
7547 | template < typename T > | |
7548 | struct check {}; | |
7549 | ||
7550 | typedef check<void> single_type; | |
7551 | typedef check<check<void>> double_type; | |
7552 | typedef check<check<check<void>>> triple_type; | |
7553 | typedef check<check<check<check<void>>>> quadruple_type; | |
7554 | ||
7555 | } | |
7556 | ||
7557 | namespace test_decltype | |
7558 | { | |
7559 | ||
7560 | int | |
7561 | f() | |
7562 | { | |
7563 | int a = 1; | |
7564 | decltype(a) b = 2; | |
7565 | return a + b; | |
7566 | } | |
7567 | ||
7568 | } | |
7569 | ||
7570 | namespace test_type_deduction | |
7571 | { | |
7572 | ||
7573 | template < typename T1, typename T2 > | |
7574 | struct is_same | |
7575 | { | |
7576 | static const bool value = false; | |
7577 | }; | |
7578 | ||
7579 | template < typename T > | |
7580 | struct is_same<T, T> | |
7581 | { | |
7582 | static const bool value = true; | |
7583 | }; | |
7584 | ||
7585 | template < typename T1, typename T2 > | |
7586 | auto | |
7587 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7588 | { | |
7589 | return a1 + a2; | |
7590 | } | |
7591 | ||
7592 | int | |
7593 | test(const int c, volatile int v) | |
7594 | { | |
7595 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7596 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7597 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7598 | auto ac = c; | |
7599 | auto av = v; | |
7600 | auto sumi = ac + av + 'x'; | |
7601 | auto sumf = ac + av + 1.0; | |
7602 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7603 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7604 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7605 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7606 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7607 | return (sumf > 0.0) ? sumi : add(c, v); | |
7608 | } | |
7609 | ||
7610 | } | |
7611 | ||
7612 | namespace test_noexcept | |
7613 | { | |
7614 | ||
7615 | int f() { return 0; } | |
7616 | int g() noexcept { return 0; } | |
7617 | ||
7618 | static_assert(noexcept(f()) == false, ""); | |
7619 | static_assert(noexcept(g()) == true, ""); | |
7620 | ||
7621 | } | |
7622 | ||
7623 | namespace test_constexpr | |
7624 | { | |
7625 | ||
7626 | template < typename CharT > | |
7627 | unsigned long constexpr | |
7628 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7629 | { | |
7630 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7631 | } | |
7632 | ||
7633 | template < typename CharT > | |
7634 | unsigned long constexpr | |
7635 | strlen_c(const CharT *const s) noexcept | |
7636 | { | |
7637 | return strlen_c_r(s, 0UL); | |
7638 | } | |
7639 | ||
7640 | static_assert(strlen_c("") == 0UL, ""); | |
7641 | static_assert(strlen_c("1") == 1UL, ""); | |
7642 | static_assert(strlen_c("example") == 7UL, ""); | |
7643 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7644 | ||
7645 | } | |
7646 | ||
7647 | namespace test_rvalue_references | |
7648 | { | |
7649 | ||
7650 | template < int N > | |
7651 | struct answer | |
7652 | { | |
7653 | static constexpr int value = N; | |
7654 | }; | |
7655 | ||
7656 | answer<1> f(int&) { return answer<1>(); } | |
7657 | answer<2> f(const int&) { return answer<2>(); } | |
7658 | answer<3> f(int&&) { return answer<3>(); } | |
7659 | ||
7660 | void | |
7661 | test() | |
7662 | { | |
7663 | int i = 0; | |
7664 | const int c = 0; | |
7665 | static_assert(decltype(f(i))::value == 1, ""); | |
7666 | static_assert(decltype(f(c))::value == 2, ""); | |
7667 | static_assert(decltype(f(0))::value == 3, ""); | |
7668 | } | |
7669 | ||
7670 | } | |
7671 | ||
7672 | namespace test_uniform_initialization | |
7673 | { | |
7674 | ||
7675 | struct test | |
7676 | { | |
7677 | static const int zero {}; | |
7678 | static const int one {1}; | |
7679 | }; | |
7680 | ||
7681 | static_assert(test::zero == 0, ""); | |
7682 | static_assert(test::one == 1, ""); | |
7683 | ||
7684 | } | |
7685 | ||
7686 | namespace test_lambdas | |
7687 | { | |
7688 | ||
7689 | void | |
7690 | test1() | |
7691 | { | |
7692 | auto lambda1 = [](){}; | |
7693 | auto lambda2 = lambda1; | |
7694 | lambda1(); | |
7695 | lambda2(); | |
7696 | } | |
7697 | ||
7698 | int | |
7699 | test2() | |
7700 | { | |
7701 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7702 | auto b = []() -> int { return '0'; }(); | |
7703 | auto c = [=](){ return a + b; }(); | |
7704 | auto d = [&](){ return c; }(); | |
7705 | auto e = [a, &b](int x) mutable { | |
7706 | const auto identity = [](int y){ return y; }; | |
7707 | for (auto i = 0; i < a; ++i) | |
7708 | a += b--; | |
7709 | return x + identity(a + b); | |
7710 | }(0); | |
7711 | return a + b + c + d + e; | |
7712 | } | |
7713 | ||
7714 | int | |
7715 | test3() | |
7716 | { | |
7717 | const auto nullary = [](){ return 0; }; | |
7718 | const auto unary = [](int x){ return x; }; | |
7719 | using nullary_t = decltype(nullary); | |
7720 | using unary_t = decltype(unary); | |
7721 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7722 | const auto higher2nd = [unary](nullary_t f1){ | |
7723 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7724 | }; | |
7725 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7726 | } | |
7727 | ||
7728 | } | |
7729 | ||
7730 | namespace test_variadic_templates | |
7731 | { | |
7732 | ||
7733 | template <int...> | |
7734 | struct sum; | |
7735 | ||
7736 | template <int N0, int... N1toN> | |
7737 | struct sum<N0, N1toN...> | |
7738 | { | |
7739 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7740 | }; | |
7741 | ||
7742 | template <> | |
7743 | struct sum<> | |
7744 | { | |
7745 | static constexpr auto value = 0; | |
7746 | }; | |
7747 | ||
7748 | static_assert(sum<>::value == 0, ""); | |
7749 | static_assert(sum<1>::value == 1, ""); | |
7750 | static_assert(sum<23>::value == 23, ""); | |
7751 | static_assert(sum<1, 2>::value == 3, ""); | |
7752 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7753 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7754 | ||
7755 | } | |
7756 | ||
7757 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7758 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7759 | // because of this. | |
7760 | namespace test_template_alias_sfinae | |
7761 | { | |
7762 | ||
7763 | struct foo {}; | |
7764 | ||
7765 | template<typename T> | |
7766 | using member = typename T::member_type; | |
7767 | ||
7768 | template<typename T> | |
7769 | void func(...) {} | |
7770 | ||
7771 | template<typename T> | |
7772 | void func(member<T>*) {} | |
7773 | ||
7774 | void test(); | |
7775 | ||
7776 | void test() { func<foo>(0); } | |
7777 | ||
7778 | } | |
7779 | ||
7780 | } // namespace cxx11 | |
7781 | ||
7782 | #endif // __cplusplus >= 201103L | |
7783 | ||
7784 | ||
7785 | ||
7786 | _ACEOF | |
7787 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7788 | eval $cachevar=yes | |
7789 | else | |
7790 | eval $cachevar=no | |
7791 | fi | |
7792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7793 | CXX="$ac_save_CXX" | |
7794 | fi | |
7795 | eval ac_res=\$$cachevar | |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7797 | $as_echo "$ac_res" >&6; } | |
7798 | if eval test x\$$cachevar = xyes; then | |
7799 | CXX="$CXX $switch" | |
7800 | if test -n "$CXXCPP" ; then | |
7801 | CXXCPP="$CXXCPP $switch" | |
7802 | fi | |
7803 | ac_success=yes | |
7804 | break | |
7805 | fi | |
7806 | done | |
7807 | if test x$ac_success = xyes; then | |
7808 | break | |
7809 | fi | |
7810 | done | |
7811 | fi | |
7812 | CXX_FOR_BUILD="$CXX" | |
7813 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7814 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7815 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7816 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7817 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7818 | ac_ext=c | |
7819 | ac_cpp='$CPP $CPPFLAGS' | |
7820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7823 | ||
7824 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7825 | if test x$ac_success = xno; then | |
7826 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7827 | fi | |
7828 | fi | |
7829 | if test x$ac_success = xno; then | |
7830 | HAVE_CXX11_FOR_BUILD=0 | |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7832 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7833 | else | |
7834 | HAVE_CXX11_FOR_BUILD=1 | |
7835 | ||
7836 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7837 | ||
7838 | fi | |
7839 | ||
7840 | ||
7841 | fi | |
46070488 JM |
7842 | fi |
7843 | ||
4a5e71f2 L |
7844 | # Check whether --enable-pgo-build was given. |
7845 | if test "${enable_pgo_build+set}" = set; then : | |
7846 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7847 | else | |
7848 | enable_pgo_build=no | |
7849 | fi | |
7850 | ||
7851 | ||
7852 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7853 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7854 | *:*:*:no) ;; | |
7855 | ||
7856 | # Allow the PGO build only if we aren't building a compiler and | |
7857 | # we are in a native configuration. | |
7858 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7859 | ||
7860 | # Disallow the PGO bootstrap if we are building a compiler. | |
7861 | yes:*:*:yes | yes:*:*:lto) | |
7862 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7863 | ||
7864 | *) | |
7865 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7866 | ;; | |
7867 | esac | |
7868 | ||
7869 | if test "$enable_pgo_build" != "no"; then | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7871 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7872 | old_CFLAGS="$CFLAGS" | |
7873 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7874 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7875 | ||
7876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7877 | /* end confdefs.h. */ | |
7878 | int foo; | |
7879 | _ACEOF | |
7880 | if ac_fn_c_try_compile "$LINENO"; then : | |
7881 | ||
7882 | else | |
7883 | PGO_BUILD_GEN_CFLAGS= | |
7884 | fi | |
7885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7886 | CFLAGS="$old_CFLAGS" | |
7887 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7889 | $as_echo "yes" >&6; } | |
7890 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7891 | else | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7893 | $as_echo "no" >&6; } | |
7894 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7895 | fi | |
7896 | ||
7897 | if test "$enable_pgo_build" = "lto"; then | |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7899 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7900 | old_CFLAGS="$CFLAGS" | |
7901 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7902 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7904 | /* end confdefs.h. */ | |
7905 | int foo; | |
7906 | _ACEOF | |
7907 | if ac_fn_c_try_compile "$LINENO"; then : | |
7908 | ||
7909 | else | |
7910 | PGO_BUILD_LTO_CFLAGS= | |
7911 | fi | |
7912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7913 | CFLAGS="$old_CFLAGS" | |
7914 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7916 | $as_echo "yes" >&6; } | |
7917 | else | |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7919 | $as_echo "no" >&6; } | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7921 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7922 | fi | |
7923 | fi | |
7924 | fi | |
7925 | ||
7926 | ||
7927 | ||
7928 | ||
592c90ff KG |
7929 | # Used for setting $lt_cv_objdir |
7930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7931 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7932 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7933 | $as_echo_n "(cached) " >&6 |
7934 | else | |
7935 | rm -f .libs 2>/dev/null | |
7936 | mkdir .libs 2>/dev/null | |
7937 | if test -d .libs; then | |
7938 | lt_cv_objdir=.libs | |
7939 | else | |
7940 | # MS-DOS does not allow filenames that begin with a dot. | |
7941 | lt_cv_objdir=_libs | |
7942 | fi | |
7943 | rmdir .libs 2>/dev/null | |
7944 | fi | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7946 | $as_echo "$lt_cv_objdir" >&6; } | |
7947 | objdir=$lt_cv_objdir | |
7948 | ||
7949 | ||
7950 | ||
7951 | ||
7952 | ||
7953 | cat >>confdefs.h <<_ACEOF | |
7954 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7955 | _ACEOF | |
7956 | ||
7957 | ||
7958 | ||
acd26225 | 7959 | # Check for GMP, MPFR and MPC |
91e0d220 AP |
7960 | require_gmp=no |
7961 | require_mpc=no | |
7962 | if test -d ${srcdir}/gcc ; then | |
7963 | require_gmp=yes | |
7964 | require_mpc=yes | |
7965 | fi | |
7966 | if test -d ${srcdir}/gdb ; then | |
5977d14a CC |
7967 | if test "x$enable_gdb" != xno; then |
7968 | require_gmp=yes | |
7969 | fi | |
91e0d220 AP |
7970 | fi |
7971 | ||
7972 | gmplibs="-lmpfr -lgmp" | |
7973 | if test x"$require_mpc" = "xyes" ; then | |
7974 | gmplibs="-lmpc $gmplibs" | |
7975 | fi | |
6de9cd9a | 7976 | gmpinc= |
e69bf64b | 7977 | have_gmp=no |
acd26225 KG |
7978 | |
7979 | # Specify a location for mpc | |
7980 | # check for this first so it ends up on the link line before mpfr. | |
7981 | ||
5213506e RW |
7982 | # Check whether --with-mpc was given. |
7983 | if test "${with_mpc+set}" = set; then : | |
7984 | withval=$with_mpc; | |
7985 | fi | |
acd26225 | 7986 | |
acd26225 | 7987 | |
9965e3cd | 7988 | # Check whether --with-mpc-include was given. |
5213506e RW |
7989 | if test "${with_mpc_include+set}" = set; then : |
7990 | withval=$with_mpc_include; | |
7991 | fi | |
acd26225 | 7992 | |
acd26225 | 7993 | |
9965e3cd | 7994 | # Check whether --with-mpc-lib was given. |
5213506e RW |
7995 | if test "${with_mpc_lib+set}" = set; then : |
7996 | withval=$with_mpc_lib; | |
7997 | fi | |
acd26225 | 7998 | |
acd26225 KG |
7999 | |
8000 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
8001 | gmplibs="-L$with_mpc/lib $gmplibs" |
8002 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
8003 | fi |
8004 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 8005 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
8006 | fi |
8007 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 8008 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
8009 | fi |
8010 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 8011 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 8012 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
8013 | # Do not test the mpc version. Assume that it is sufficient, since |
8014 | # it is in the source tree, and the library has not been built yet | |
8015 | # but it would be included on the link line in the version check below | |
8016 | # hence making the test fail. | |
3a5729ea | 8017 | have_gmp=yes |
acd26225 | 8018 | fi |
e69bf64b | 8019 | |
bebf829d PB |
8020 | # Specify a location for mpfr |
8021 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 8022 | |
5213506e RW |
8023 | # Check whether --with-mpfr was given. |
8024 | if test "${with_mpfr+set}" = set; then : | |
8025 | withval=$with_mpfr; | |
8026 | fi | |
1c710c3c | 8027 | |
bebf829d | 8028 | |
9965e3cd | 8029 | # Check whether --with-mpfr-include was given. |
5213506e RW |
8030 | if test "${with_mpfr_include+set}" = set; then : |
8031 | withval=$with_mpfr_include; | |
8032 | fi | |
1c710c3c | 8033 | |
8a877c9c | 8034 | |
9965e3cd | 8035 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
8036 | if test "${with_mpfr_lib+set}" = set; then : |
8037 | withval=$with_mpfr_lib; | |
8038 | fi | |
8a877c9c | 8039 | |
bebf829d PB |
8040 | |
8041 | if test "x$with_mpfr" != x; then | |
8042 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 8043 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 8044 | fi |
8a877c9c | 8045 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 8046 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
8047 | fi |
8048 | if test "x$with_mpfr_lib" != x; then | |
8049 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8050 | fi | |
e69bf64b | 8051 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
8052 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
8053 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 8054 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 8055 | fi |
00f35794 BE |
8056 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8057 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8058 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
8059 | # Do not test the mpfr version. Assume that it is sufficient, since |
8060 | # it is in the source tree, and the library has not been built yet | |
8061 | # but it would be included on the link line in the version check below | |
8062 | # hence making the test fail. | |
8063 | have_gmp=yes | |
8064 | fi | |
bebf829d | 8065 | |
6de9cd9a | 8066 | # Specify a location for gmp |
1c710c3c | 8067 | |
5213506e RW |
8068 | # Check whether --with-gmp was given. |
8069 | if test "${with_gmp+set}" = set; then : | |
8070 | withval=$with_gmp; | |
8071 | fi | |
1c710c3c | 8072 | |
6de9cd9a | 8073 | |
9965e3cd | 8074 | # Check whether --with-gmp-include was given. |
5213506e RW |
8075 | if test "${with_gmp_include+set}" = set; then : |
8076 | withval=$with_gmp_include; | |
8077 | fi | |
1c710c3c | 8078 | |
8a877c9c | 8079 | |
9965e3cd | 8080 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8081 | if test "${with_gmp_lib+set}" = set; then : |
8082 | withval=$with_gmp_lib; | |
8083 | fi | |
8a877c9c KG |
8084 | |
8085 | ||
6de9cd9a | 8086 | |
bebf829d PB |
8087 | if test "x$with_gmp" != x; then |
8088 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8089 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8090 | fi |
8a877c9c KG |
8091 | if test "x$with_gmp_include" != x; then |
8092 | gmpinc="-I$with_gmp_include $gmpinc" | |
8093 | fi | |
8094 | if test "x$with_gmp_lib" != x; then | |
8095 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8096 | fi | |
e69bf64b | 8097 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8098 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8099 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8100 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8101 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8102 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8103 | # Do not test the gmp version. Assume that it is sufficient, since |
8104 | # it is in the source tree, and the library has not been built yet | |
8105 | # but it would be included on the link line in the version check below | |
8106 | # hence making the test fail. | |
8107 | have_gmp=yes | |
8108 | fi | |
6de9cd9a | 8109 | |
91e0d220 | 8110 | if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then |
e69bf64b PB |
8111 | have_gmp=yes |
8112 | saved_CFLAGS="$CFLAGS" | |
8113 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8114 | # Check for the recommended and required versions of GMP. |
8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8116 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8118 | /* end confdefs.h. */ |
8119 | #include "gmp.h" | |
8120 | int | |
8121 | main () | |
8122 | { | |
8123 | ||
8124 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8125 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8126 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8127 | choke me |
8128 | #endif | |
8129 | ||
8130 | ; | |
8131 | return 0; | |
8132 | } | |
8133 | _ACEOF | |
8134 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8136 | /* end confdefs.h. */ |
362c6d2f | 8137 | #include <gmp.h> |
1c710c3c DJ |
8138 | int |
8139 | main () | |
8140 | { | |
6de9cd9a | 8141 | |
362c6d2f KG |
8142 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8143 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8144 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8145 | choke me |
8146 | #endif | |
1c710c3c DJ |
8147 | |
8148 | ; | |
8149 | return 0; | |
8150 | } | |
8151 | _ACEOF | |
5213506e RW |
8152 | if ac_fn_c_try_compile "$LINENO"; then : |
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8154 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8155 | else |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8157 | $as_echo "buggy but acceptable" >&6; } | |
8158 | fi | |
8159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8160 | else |
5213506e RW |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8162 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8163 | fi |
5213506e | 8164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8165 | |
acd26225 | 8166 | # If we have GMP, check the MPFR version. |
e69bf64b | 8167 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8168 | # Check for the recommended and required versions of MPFR. |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8170 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8172 | /* end confdefs.h. */ |
70ec446f | 8173 | #include <gmp.h> |
e69bf64b | 8174 | #include <mpfr.h> |
1c710c3c DJ |
8175 | int |
8176 | main () | |
8177 | { | |
e48d66a9 | 8178 | |
8be34204 | 8179 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8180 | choke me |
8181 | #endif | |
1c710c3c DJ |
8182 | |
8183 | ; | |
8184 | return 0; | |
8185 | } | |
8186 | _ACEOF | |
5213506e RW |
8187 | if ac_fn_c_try_compile "$LINENO"; then : |
8188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8189 | /* end confdefs.h. */ |
a3993f33 | 8190 | #include <gmp.h> |
e69bf64b | 8191 | #include <mpfr.h> |
1c710c3c DJ |
8192 | int |
8193 | main () | |
8194 | { | |
a3993f33 | 8195 | |
8be34204 | 8196 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8197 | choke me |
8198 | #endif | |
acd26225 KG |
8199 | |
8200 | ; | |
8201 | return 0; | |
8202 | } | |
8203 | _ACEOF | |
5213506e RW |
8204 | if ac_fn_c_try_compile "$LINENO"; then : |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8206 | $as_echo "yes" >&6; } | |
acd26225 | 8207 | else |
5213506e RW |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8209 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8210 | fi |
5213506e | 8211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8212 | else |
5213506e RW |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8214 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8215 | fi |
5213506e | 8216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8217 | fi |
8218 | ||
8219 | # Check for the MPC header version. | |
91e0d220 | 8220 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then |
362c6d2f | 8221 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8223 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8225 | /* end confdefs.h. */ |
8226 | #include <mpc.h> | |
8227 | int | |
8228 | main () | |
8229 | { | |
8230 | ||
362c6d2f KG |
8231 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8232 | choke me | |
8233 | #endif | |
8234 | ||
8235 | ; | |
8236 | return 0; | |
8237 | } | |
8238 | _ACEOF | |
8239 | if ac_fn_c_try_compile "$LINENO"; then : | |
8240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8241 | /* end confdefs.h. */ | |
8242 | #include <mpc.h> | |
8243 | int | |
8244 | main () | |
8245 | { | |
8246 | ||
8247 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8248 | choke me |
8249 | #endif | |
8250 | ||
8251 | ; | |
8252 | return 0; | |
8253 | } | |
8254 | _ACEOF | |
5213506e RW |
8255 | if ac_fn_c_try_compile "$LINENO"; then : |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8257 | $as_echo "yes" >&6; } |
362c6d2f KG |
8258 | else |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8260 | $as_echo "buggy but acceptable" >&6; } | |
8261 | fi | |
8262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8263 | else |
5213506e | 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8265 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8266 | fi |
5213506e | 8267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8268 | fi |
8269 | ||
8270 | # Now check the MPFR library. | |
8271 | if test x"$have_gmp" = xyes; then | |
8272 | saved_LIBS="$LIBS" | |
8273 | LIBS="$LIBS $gmplibs" | |
91e0d220 AP |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5 |
8275 | $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; } | |
5213506e | 8276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8277 | /* end confdefs.h. */ |
91e0d220 | 8278 | #include <mpfr.h> |
acd26225 KG |
8279 | int |
8280 | main () | |
8281 | { | |
8282 | ||
8283 | mpfr_t n; | |
8284 | mpfr_t x; | |
8285 | int t; | |
8286 | mpfr_init (n); | |
8287 | mpfr_init (x); | |
90ca6847 TB |
8288 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8289 | mpfr_erfc (n, x, MPFR_RNDN); | |
8290 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8291 | mpfr_clear(n); |
8292 | mpfr_clear(x); | |
91e0d220 AP |
8293 | |
8294 | ; | |
8295 | return 0; | |
8296 | } | |
8297 | _ACEOF | |
8298 | if ac_fn_c_try_link "$LINENO"; then : | |
8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8300 | $as_echo "yes" >&6; } | |
8301 | else | |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8303 | $as_echo "no" >&6; }; have_gmp=no | |
8304 | fi | |
8305 | rm -f core conftest.err conftest.$ac_objext \ | |
8306 | conftest$ac_exeext conftest.$ac_ext | |
8307 | LIBS="$saved_LIBS" | |
8308 | fi | |
8309 | ||
8310 | # Now check the MPC library | |
8311 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then | |
8312 | saved_LIBS="$LIBS" | |
8313 | LIBS="$LIBS $gmplibs" | |
8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5 | |
8315 | $as_echo_n "checking for the correct version of the mpc libraries... " >&6; } | |
8316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8317 | /* end confdefs.h. */ | |
8318 | #include <mpc.h> | |
8319 | int | |
8320 | main () | |
8321 | { | |
8322 | ||
8323 | mpc_t c; | |
3a5729ea KG |
8324 | mpc_init2 (c, 53); |
8325 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8326 | mpc_cosh (c, c, MPC_RNDNN); | |
8327 | mpc_pow (c, c, c, MPC_RNDNN); | |
8328 | mpc_acosh (c, c, MPC_RNDNN); | |
8329 | mpc_clear (c); | |
1c710c3c DJ |
8330 | |
8331 | ; | |
8332 | return 0; | |
8333 | } | |
8334 | _ACEOF | |
5213506e RW |
8335 | if ac_fn_c_try_link "$LINENO"; then : |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8337 | $as_echo "yes" >&6; } | |
1c710c3c | 8338 | else |
5213506e RW |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8340 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8341 | fi |
5213506e RW |
8342 | rm -f core conftest.err conftest.$ac_objext \ |
8343 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8344 | LIBS="$saved_LIBS" |
8345 | fi | |
8346 | ||
e69bf64b | 8347 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8348 | |
362c6d2f KG |
8349 | # The library versions listed in the error message below should match |
8350 | # the HARD-minimums enforced above. | |
e69bf64b | 8351 | if test x$have_gmp != xyes; then |
91e0d220 AP |
8352 | if test -d ${srcdir}/gcc ; then |
8353 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. | |
3a5729ea KG |
8354 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8355 | their locations. Source code for these libraries can be found at | |
8356 | their respective hosting sites as well as at | |
aeebd94c | 8357 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
45ab87d4 | 8358 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
3a5729ea KG |
8359 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, |
8360 | make sure that you have installed both the libraries and the header | |
8361 | files. They may be located in separate packages." "$LINENO" 5 | |
91e0d220 AP |
8362 | else |
8363 | as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. | |
8364 | Try the --with-gmp and/or --with-mpfr options to specify | |
8365 | their locations. If you obtained GMP and/or MPFR from a vendor | |
8366 | distribution package, make sure that you have installed both the libraries | |
8367 | and the header files. They may be located in separate packages." "$LINENO" 5 | |
8368 | fi | |
e69bf64b | 8369 | fi |
70ec446f KG |
8370 | fi |
8371 | ||
acd26225 KG |
8372 | # Flags needed for both GMP, MPFR and/or MPC. |
8373 | ||
8374 | ||
6de9cd9a DN |
8375 | |
8376 | ||
8377 | ||
9e3eba15 | 8378 | |
0ff2d841 | 8379 | |
0b21f5d3 | 8380 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8381 | |
0b21f5d3 EB |
8382 | # Check whether --with-stage1-libs was given. |
8383 | if test "${with_stage1_libs+set}" = set; then : | |
8384 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8385 | stage1_libs= | |
00020c16 | 8386 | else |
0b21f5d3 | 8387 | stage1_libs=$withval |
00020c16 ILT |
8388 | fi |
8389 | else | |
5dc85f7e | 8390 | stage1_libs= |
5213506e RW |
8391 | fi |
8392 | ||
00020c16 ILT |
8393 | |
8394 | ||
aac9103b TT |
8395 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8396 | # default is yes if gcc is being built; no otherwise. The reason for | |
8397 | # this default is that gdb is sometimes linked against GNU Source | |
8398 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8399 | # this case, -static-libstdc++ will cause crashes. | |
8400 | ||
8401 | # Check whether --with-static-standard-libraries was given. | |
8402 | if test "${with_static_standard_libraries+set}" = set; then : | |
8403 | withval=$with_static_standard_libraries; | |
8404 | else | |
8405 | with_static_standard_libraries=auto | |
8406 | fi | |
8407 | ||
8408 | if test "$with_static_standard_libraries" = auto; then | |
8409 | with_static_standard_libraries=$have_compiler | |
8410 | fi | |
8411 | ||
0b21f5d3 | 8412 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8413 | |
0b21f5d3 EB |
8414 | # Check whether --with-stage1-ldflags was given. |
8415 | if test "${with_stage1_ldflags+set}" = set; then : | |
8416 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8417 | stage1_ldflags= | |
00020c16 | 8418 | else |
0b21f5d3 | 8419 | stage1_ldflags=$withval |
00020c16 ILT |
8420 | fi |
8421 | else | |
0b21f5d3 EB |
8422 | stage1_ldflags= |
8423 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8424 | # if supported. But if the user explicitly specified the libraries to use, | |
8425 | # trust that they are doing what they want. | |
aac9103b TT |
8426 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8427 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8428 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8429 | fi | |
5213506e RW |
8430 | fi |
8431 | ||
00020c16 ILT |
8432 | |
8433 | ||
5dc85f7e | 8434 | # Libraries to use for stage2 and later builds. |
00020c16 | 8435 | |
5213506e RW |
8436 | # Check whether --with-boot-libs was given. |
8437 | if test "${with_boot_libs+set}" = set; then : | |
8438 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8439 | poststage1_libs= |
8440 | else | |
8441 | poststage1_libs=$withval | |
8442 | fi | |
8443 | else | |
5dc85f7e | 8444 | poststage1_libs= |
5213506e RW |
8445 | fi |
8446 | ||
00020c16 ILT |
8447 | |
8448 | ||
ed2eaa9f ILT |
8449 | # Linker flags to use for stage2 and later builds. |
8450 | ||
8451 | # Check whether --with-boot-ldflags was given. | |
8452 | if test "${with_boot_ldflags+set}" = set; then : | |
8453 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8454 | poststage1_ldflags= | |
8455 | else | |
8456 | poststage1_ldflags=$withval | |
8457 | fi | |
8458 | else | |
8459 | poststage1_ldflags= | |
bec93d73 ILT |
8460 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8461 | # statically. But if the user explicitly specified the libraries to | |
8462 | # use, trust that they are doing what they want. | |
8463 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8464 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8465 | fi | |
8466 | fi | |
8467 | ||
8468 | ||
8469 | ||
e357a5e0 | 8470 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8471 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8472 | |
8473 | ||
33ad93b9 RG |
8474 | # Check whether --with-isl was given. |
8475 | if test "${with_isl+set}" = set; then : | |
8476 | withval=$with_isl; | |
5213506e | 8477 | fi |
f8bf9252 | 8478 | |
f8bf9252 | 8479 | |
eae1a5d4 | 8480 | # Treat --without-isl as a request to disable |
625afa23 | 8481 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8482 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8483 | # Check for isl |
625afa23 RG |
8484 | |
8485 | ||
33ad93b9 RG |
8486 | # Check whether --with-isl-include was given. |
8487 | if test "${with_isl_include+set}" = set; then : | |
8488 | withval=$with_isl_include; | |
5213506e RW |
8489 | fi |
8490 | ||
f8bf9252 | 8491 | |
33ad93b9 RG |
8492 | # Check whether --with-isl-lib was given. |
8493 | if test "${with_isl_lib+set}" = set; then : | |
8494 | withval=$with_isl_lib; | |
5213506e | 8495 | fi |
f8bf9252 | 8496 | |
f8bf9252 | 8497 | |
33ad93b9 RG |
8498 | # Check whether --enable-isl-version-check was given. |
8499 | if test "${enable_isl_version_check+set}" = set; then : | |
8500 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8501 | else | |
8502 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8503 | fi |
8504 | ||
8505 | ||
33ad93b9 RG |
8506 | # Initialize isllibs and islinc. |
8507 | case $with_isl in | |
8508 | no) | |
8509 | isllibs= | |
8510 | islinc= | |
8511 | ;; | |
8512 | "" | yes) | |
8513 | ;; | |
8514 | *) | |
8515 | isllibs="-L$with_isl/lib" | |
8516 | islinc="-I$with_isl/include" | |
8517 | ;; | |
8518 | esac | |
8519 | if test "x${with_isl_include}" != x ; then | |
8520 | islinc="-I$with_isl_include" | |
8521 | fi | |
8522 | if test "x${with_isl_lib}" != x; then | |
8523 | isllibs="-L$with_isl_lib" | |
8524 | fi | |
8525 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8526 | && test -d ${srcdir}/isl; then | |
8527 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8528 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8529 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8531 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8532 | fi |
7d32a440 | 8533 | |
eae1a5d4 RG |
8534 | isllibs="${isllibs} -lisl" |
8535 | ||
7d32a440 | 8536 | |
7d32a440 | 8537 | |
9847828b RB |
8538 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8539 | _isl_saved_CFLAGS=$CFLAGS | |
8540 | _isl_saved_LDFLAGS=$LDFLAGS | |
8541 | _isl_saved_LIBS=$LIBS | |
8542 | ||
8543 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8544 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8545 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8546 | |
f877b3ad RB |
8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8548 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8550 | /* end confdefs.h. */ |
f877b3ad | 8551 | #include <isl/schedule.h> |
622dbadf BC |
8552 | int |
8553 | main () | |
8554 | { | |
f877b3ad | 8555 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8556 | ; |
8557 | return 0; | |
8558 | } | |
8559 | _ACEOF | |
8560 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8561 | gcc_cv_isl=yes |
622dbadf BC |
8562 | else |
8563 | gcc_cv_isl=no | |
8564 | fi | |
8565 | rm -f core conftest.err conftest.$ac_objext \ | |
8566 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8568 | $as_echo "$gcc_cv_isl" >&6; } | |
8569 | ||
560d18d3 | 8570 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8572 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8573 | fi |
8574 | ||
9847828b RB |
8575 | CFLAGS=$_isl_saved_CFLAGS |
8576 | LDFLAGS=$_isl_saved_LDFLAGS | |
8577 | LIBS=$_isl_saved_LIBS | |
8578 | fi | |
8579 | ||
8580 | ||
f8bf9252 | 8581 | |
f8bf9252 | 8582 | |
33ad93b9 RG |
8583 | |
8584 | ||
33ad93b9 RG |
8585 | if test "x${with_isl}" = xno; then |
8586 | graphite_requested=no | |
8587 | elif test "x${with_isl}" != x \ | |
8588 | || test "x${with_isl_include}" != x \ | |
8589 | || test "x${with_isl_lib}" != x ; then | |
8590 | graphite_requested=yes | |
8591 | else | |
8592 | graphite_requested=no | |
7d32a440 | 8593 | fi |
d789184e | 8594 | |
d789184e SP |
8595 | |
8596 | ||
33ad93b9 RG |
8597 | if test "${gcc_cv_isl}" = no ; then |
8598 | isllibs= | |
8599 | islinc= | |
8600 | fi | |
8601 | ||
8602 | if test "${graphite_requested}" = yes \ | |
8603 | && test "x${isllibs}" = x \ | |
8604 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8605 | |
22e05272 | 8606 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8607 | fi |
f8bf9252 | 8608 | |
d32ef397 | 8609 | |
d32ef397 AS |
8610 | fi |
8611 | ||
e357a5e0 | 8612 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8613 | if test "x$with_isl" = xno || |
625afa23 | 8614 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8615 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8616 | islinc= |
32d024bf RG |
8617 | fi |
8618 | ||
625afa23 RG |
8619 | |
8620 | ||
8621 | ||
d7f09764 DN |
8622 | # Check for LTO support. |
8623 | # Check whether --enable-lto was given. | |
8624 | if test "${enable_lto+set}" = set; then : | |
8625 | enableval=$enable_lto; enable_lto=$enableval | |
8626 | else | |
8627 | enable_lto=yes; default_enable_lto=yes | |
8628 | fi | |
8629 | ||
8630 | ||
7413962d | 8631 | |
9a02962b DK |
8632 | |
8633 | ||
8634 | target_elf=no | |
8635 | case $target in | |
8636 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8637 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8638 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8639 | nvptx-*-none) |
9a02962b DK |
8640 | target_elf=no |
8641 | ;; | |
8642 | *) | |
8643 | target_elf=yes | |
8644 | ;; | |
8645 | esac | |
8646 | ||
8647 | if test $target_elf = yes; then : | |
48215350 DK |
8648 | # ELF platforms build the lto-plugin always. |
8649 | build_lto_plugin=yes | |
9a02962b | 8650 | |
9a02962b DK |
8651 | else |
8652 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8653 | case $target in |
deeba76a | 8654 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8655 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8656 | *) enable_lto=no ;; |
8657 | esac | |
9a02962b | 8658 | else |
db50fe7d IS |
8659 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8660 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8661 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8662 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8663 | # -flto it won't be needed until after installation anyway. | |
8664 | case $target in | |
9e530bcd | 8665 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8666 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8667 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8668 | fi |
8669 | ;; | |
8670 | esac | |
8671 | fi | |
1cd0b716 | 8672 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8673 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8674 | case $target in |
48215350 | 8675 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8676 | *) ;; |
8677 | esac | |
48215350 | 8678 | |
9a02962b DK |
8679 | fi |
8680 | ||
d7f09764 | 8681 | |
45b3824d TS |
8682 | # Check whether --enable-linker-plugin-configure-flags was given. |
8683 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8684 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8685 | else | |
8686 | extra_linker_plugin_configure_flags= | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | # Check whether --enable-linker-plugin-flags was given. | |
8691 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8692 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8693 | else | |
8694 | extra_linker_plugin_flags= | |
8695 | fi | |
8696 | ||
8697 | ||
8698 | ||
c1fecabe IS |
8699 | # Handle --enable-host-pie |
8700 | # If host PIE executables are the default (or must be forced on) for some host, | |
8701 | # we must pass that configuration to the gcc directory. | |
8702 | gcc_host_pie= | |
b6cb10af MP |
8703 | # Check whether --enable-host-pie was given. |
8704 | if test "${enable_host_pie+set}" = set; then : | |
8705 | enableval=$enable_host_pie; host_pie=$enableval | |
8706 | case $host in | |
c1fecabe | 8707 | *-*-darwin2*) |
b6cb10af | 8708 | if test x$host_pie != xyes ; then |
c1fecabe IS |
8709 | # for Darwin20+ this is required. |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5 | |
8711 | $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;} | |
b6cb10af | 8712 | host_pie=yes |
c1fecabe | 8713 | gcc_host_pie=--enable-host-pie |
b6cb10af MP |
8714 | fi ;; |
8715 | *) ;; | |
8716 | esac | |
8717 | else | |
8718 | case $host in | |
c1fecabe IS |
8719 | *-*-darwin2*) |
8720 | # Default to PIE (mandatory for aarch64). | |
8721 | host_pie=yes | |
8722 | gcc_host_pie=--enable-host-pie | |
8723 | ;; | |
b6cb10af MP |
8724 | *) host_pie=no ;; |
8725 | esac | |
8726 | fi | |
8727 | ||
8728 | ||
8729 | ||
8730 | ||
c1fecabe | 8731 | |
cdfee50a NS |
8732 | # Enable --enable-host-shared. |
8733 | # Checked early to determine whether jit is an 'all' language | |
8734 | # Check whether --enable-host-shared was given. | |
8735 | if test "${enable_host_shared+set}" = set; then : | |
8736 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8737 | case $host in |
a1d2b162 IS |
8738 | x86_64-*-darwin* | aarch64-*-darwin*) |
8739 | if test x$host_shared != xyes ; then | |
8740 | # PIC is the default, and actually cannot be switched off. | |
c1fecabe IS |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5 |
8742 | $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;} | |
a1d2b162 IS |
8743 | host_shared=yes |
8744 | fi ;; | |
b6cb10af | 8745 | *-*-darwin*) |
c1fecabe IS |
8746 | if test x$host_pie = xyes -a x$host_shared != xyes ; then |
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5 | |
8748 | $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;} | |
b6cb10af MP |
8749 | host_shared=yes |
8750 | fi ;; | |
a1d2b162 IS |
8751 | *) ;; |
8752 | esac | |
cdfee50a | 8753 | else |
1edfc8f2 | 8754 | case $host in |
c1fecabe | 8755 | # 64B x86_64 and Aarch64 Darwin default to PIC. |
a1d2b162 | 8756 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
c1fecabe IS |
8757 | # 32B and powerpc64 Darwin must use PIC to link PIE exes. |
8758 | *-*-darwin*) host_shared=$host_pie ;; | |
b6cb10af | 8759 | *) host_shared=no;; |
a1d2b162 | 8760 | esac |
cdfee50a NS |
8761 | fi |
8762 | ||
8763 | ||
f8bf9252 | 8764 | |
05048fc2 | 8765 | |
b6cb10af | 8766 | if test x$host_shared = xyes; then |
c1fecabe IS |
8767 | case $host in |
8768 | *-*-darwin*) | |
8769 | # Since host shared is the default for 64b Darwin, and also enabled for | |
8770 | # host_pie, ensure that we present the PIE flag when host_pie is active. | |
8771 | if test x$host_pie = xyes; then | |
8772 | PICFLAG=-fPIE | |
8773 | fi | |
8774 | ;; | |
8775 | *) | |
8776 | PICFLAG=-fPIC | |
8777 | ;; | |
8778 | esac | |
b6cb10af MP |
8779 | elif test x$host_pie = xyes; then |
8780 | PICFLAG=-fPIE | |
8781 | else | |
8782 | PICFLAG= | |
8783 | fi | |
8784 | ||
8785 | ||
8786 | ||
05048fc2 IS |
8787 | # If we are building PIC/PIE host executables, and we are building dependent |
8788 | # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC | |
8789 | # code. | |
8790 | host_libs_picflag= | |
b6cb10af | 8791 | if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then |
05048fc2 IS |
8792 | host_libs_picflag='--with-pic' |
8793 | fi | |
8794 | ||
8795 | ||
0823efed | 8796 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8797 | stage1_languages=,c, |
2805b53a | 8798 | |
00020c16 | 8799 | # Target libraries that we bootstrap. |
ad1e5170 | 8800 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8801 | |
55ffb5ed NN |
8802 | # Figure out what language subdirectories are present. |
8803 | # Look if the user specified --enable-languages="..."; if not, use | |
8804 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8805 | # go away some day. | |
8806 | # NB: embedded tabs in this IF block -- do not untabify | |
8807 | if test -d ${srcdir}/gcc; then | |
8808 | if test x"${enable_languages+set}" != xset; then | |
8809 | if test x"${LANGUAGES+set}" = xset; then | |
8810 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8811 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8812 | else |
cdfee50a | 8813 | enable_languages=default |
55ffb5ed NN |
8814 | fi |
8815 | else | |
8816 | if test x"${enable_languages}" = x || | |
8817 | test x"${enable_languages}" = xyes; | |
8818 | then | |
6b1786aa | 8819 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8820 | exit 1 |
8821 | fi | |
8822 | fi | |
8823 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8824 | ||
7f26dfa3 FXC |
8825 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8826 | # and make the substitution. | |
8827 | case ,${enable_languages}, in | |
8828 | *,f95,*) | |
6b1786aa | 8829 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8830 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8831 | ;; | |
8832 | esac | |
8833 | ||
0823efed DN |
8834 | # If bootstrapping, C++ must be enabled. |
8835 | case ",$enable_languages,:$enable_bootstrap" in | |
8836 | *,c++,*:*) ;; | |
8837 | *:yes) | |
ff3ac0f4 ILT |
8838 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8839 | enable_languages="${enable_languages},c++" | |
8840 | else | |
22e05272 | 8841 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8842 | fi |
8843 | ;; | |
8844 | esac | |
8845 | ||
55ffb5ed NN |
8846 | # First scan to see if an enabled language requires some other language. |
8847 | # We assume that a given config-lang.in will list all the language | |
8848 | # front ends it requires, even if some are required indirectly. | |
8849 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8850 | case ${lang_frag} in | |
8851 | ..) ;; | |
8852 | # The odd quoting in the next line works around | |
8853 | # an apparent bug in bash 1.12 on linux. | |
8854 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8855 | *) | |
69ecd18f ILT |
8856 | # From the config-lang.in, get $language, $lang_requires, and |
8857 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8858 | language= |
8859 | lang_requires= | |
69ecd18f | 8860 | lang_requires_boot_languages= |
d4360477 NS |
8861 | # set srcdir during sourcing lang_frag to the gcc dir. |
8862 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8863 | # polutes this shell | |
8864 | saved_srcdir=${srcdir} | |
8865 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8866 | srcdir=${saved_srcdir} | |
69ecd18f | 8867 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8868 | case ,${enable_languages}, in |
8869 | *,$other,*) ;; | |
cdfee50a | 8870 | *,default,*) ;; |
55ffb5ed NN |
8871 | *,all,*) ;; |
8872 | *,$language,*) | |
8873 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8874 | enable_languages="${enable_languages},${other}" | |
8875 | ;; | |
8876 | esac | |
8877 | done | |
69ecd18f ILT |
8878 | for other in ${lang_requires_boot_languages} ; do |
8879 | if test "$other" != "c"; then | |
8880 | case ,${enable_stage1_languages}, in | |
8881 | *,$other,*) ;; | |
cdfee50a | 8882 | *,default,*) ;; |
69ecd18f ILT |
8883 | *,all,*) ;; |
8884 | *) | |
8885 | case ,${enable_languages}, in | |
8886 | *,$language,*) | |
8887 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8888 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8889 | ;; | |
8890 | esac | |
8891 | ;; | |
8892 | esac | |
8893 | fi | |
8894 | done | |
55ffb5ed NN |
8895 | ;; |
8896 | esac | |
8897 | done | |
8898 | ||
e1888513 | 8899 | new_enable_languages=,c, |
d7f09764 DN |
8900 | |
8901 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8902 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8903 | case ,${enable_languages}, in |
8904 | *,lto,*) ;; | |
8905 | *) enable_languages="${enable_languages},lto" ;; | |
8906 | esac | |
1cd0b716 | 8907 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8908 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8909 | fi |
8910 | fi | |
8911 | ||
426c1eb0 TS |
8912 | # If we're building an offloading compiler, add the LTO front end. |
8913 | if test x"$enable_as_accelerator_for" != x ; then | |
8914 | case ,${enable_languages}, in | |
8915 | *,lto,*) ;; | |
8916 | *) enable_languages="${enable_languages},lto" ;; | |
8917 | esac | |
8918 | fi | |
8919 | ||
cdfee50a | 8920 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8921 | potential_languages=,c, |
55ffb5ed | 8922 | |
4da3b0f8 ILT |
8923 | enabled_target_libs= |
8924 | disabled_target_libs= | |
8925 | ||
55ffb5ed NN |
8926 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8927 | case ${lang_frag} in | |
8928 | ..) ;; | |
8929 | # The odd quoting in the next line works around | |
8930 | # an apparent bug in bash 1.12 on linux. | |
8931 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8932 | *) | |
1c710c3c | 8933 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8934 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8935 | language= |
8936 | target_libs= | |
8937 | lang_dirs= | |
1546bb64 | 8938 | subdir_requires= |
e1888513 PB |
8939 | boot_language=no |
8940 | build_by_default=yes | |
d4360477 NS |
8941 | # set srcdir during sourcing. See above about save & restore |
8942 | saved_srcdir=${srcdir} | |
8943 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8944 | srcdir=${saved_srcdir} | |
e1888513 PB |
8945 | if test x${language} = x; then |
8946 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8947 | exit 1 | |
8948 | fi | |
8949 | ||
78767fd9 | 8950 | if test "$language" = "c++"; then |
0823efed | 8951 | boot_language=yes |
00020c16 ILT |
8952 | fi |
8953 | ||
178f875a | 8954 | add_this_lang=no |
cdfee50a NS |
8955 | # C is always enabled, so no need to add it again |
8956 | if test "$language" != "c"; then | |
8957 | case ,${enable_languages}, in | |
8958 | *,${language},*) | |
8959 | # Language was explicitly selected; include it | |
d4a10d0a | 8960 | add_this_lang=yes |
cdfee50a NS |
8961 | ;; |
8962 | *,all,*) | |
8963 | # All languages are enabled | |
8964 | add_this_lang=all | |
8965 | ;; | |
8966 | *,default,*) | |
8967 | # 'default' was selected, select it if it is a default language | |
178f875a | 8968 | add_this_lang=${build_by_default} |
cdfee50a NS |
8969 | ;; |
8970 | esac | |
8971 | fi | |
6de9cd9a | 8972 | |
1546bb64 | 8973 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 8974 | for i in $subdir_requires; do |
b6348cb3 | 8975 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
8976 | case ${add_this_lang} in |
8977 | yes) | |
1546bb64 | 8978 | # Specifically requested language; tell them. |
22e05272 | 8979 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 8980 | ;; |
cdfee50a NS |
8981 | all) |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8983 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8984 | add_this_lang=unsupported | |
8985 | ;; | |
1546bb64 PB |
8986 | *) |
8987 | # Silently disable. | |
e1888513 | 8988 | add_this_lang=unsupported |
1546bb64 PB |
8989 | ;; |
8990 | esac | |
8991 | done | |
8992 | ||
e1888513 | 8993 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
8994 | case ${add_this_lang}:${language}:${have_gnat} in |
8995 | yes:ada:no) | |
e1888513 | 8996 | # Specifically requested language; tell them. |
22e05272 | 8997 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 8998 | ;; |
cdfee50a NS |
8999 | all:ada:no) |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
9001 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
9002 | add_this_lang=unsupported | |
9003 | ;; | |
e1888513 PB |
9004 | *:ada:no) |
9005 | # Silently disable. | |
9006 | add_this_lang=unsupported | |
9007 | ;; | |
9008 | esac | |
9009 | ||
5fee5ec3 IB |
9010 | # Disable D if no preexisting GDC is available. |
9011 | case ${add_this_lang}:${language}:${have_gdc} in | |
9012 | yes:d:no) | |
9013 | # Specifically requested language; tell them. | |
9014 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
9015 | ;; | |
9016 | all:d:no) | |
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
9018 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
9019 | add_this_lang=unsupported | |
9020 | ;; | |
9021 | *:d:no) | |
9022 | # Silently disable. | |
9023 | add_this_lang=unsupported | |
9024 | ;; | |
9025 | esac | |
9026 | ||
cdfee50a | 9027 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
9028 | # but not if building for Mingw. All code in Windows |
9029 | # is position independent code (PIC). | |
c83027f3 NB |
9030 | case $target in |
9031 | *mingw*) ;; | |
9032 | *) | |
9033 | case ${add_this_lang}:${language}:${host_shared} in | |
9034 | yes:jit:no) | |
9035 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 9036 | as_fn_error $? " |
cdfee50a NS |
9037 | Enabling language \"jit\" requires --enable-host-shared. |
9038 | ||
9039 | --enable-host-shared typically slows the rest of the compiler down by | |
9040 | a few %, so you must explicitly enable it. | |
9041 | ||
9042 | If you want to build both the jit and the regular compiler, it is often | |
9043 | best to do this via two separate configure/builds, in separate | |
9044 | directories, to avoid imposing the performance cost of | |
9045 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
9046 | ;; |
9047 | all:jit:no) | |
9048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 9049 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
9050 | add_this_lang=unsupported |
9051 | ;; | |
9052 | *:jit:no) | |
9053 | # Silently disable. | |
9054 | add_this_lang=unsupported | |
9055 | ;; | |
9056 | esac | |
9057 | ;; | |
9058 | esac | |
cdfee50a NS |
9059 | |
9060 | # Disable a language that is unsupported by the target. | |
9061 | case "${add_this_lang}: $unsupported_languages " in | |
9062 | no:*) ;; | |
9063 | unsupported:*) ;; | |
9064 | *:*" $language "*) | |
9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9066 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 9067 | add_this_lang=unsupported |
4fab7234 HPN |
9068 | ;; |
9069 | esac | |
9070 | ||
6de9cd9a | 9071 | case $add_this_lang in |
e1888513 | 9072 | unsupported) |
55ffb5ed | 9073 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
9074 | disabled_target_libs="$disabled_target_libs $target_libs" |
9075 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 9076 | ;; |
e1888513 PB |
9077 | no) |
9078 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
9079 | disabled_target_libs="$disabled_target_libs $target_libs" |
9080 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
9081 | potential_languages="${potential_languages}${language}," |
9082 | ;; | |
cdfee50a | 9083 | all|yes) |
e1888513 PB |
9084 | new_enable_languages="${new_enable_languages}${language}," |
9085 | potential_languages="${potential_languages}${language}," | |
2805b53a | 9086 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 9087 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
9088 | case "${boot_language}:,$enable_stage1_languages," in |
9089 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 9090 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
9091 | case ",$stage1_languages," in |
9092 | *,$language,* | ,yes, | ,all,) ;; | |
9093 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9094 | esac | |
00020c16 | 9095 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 9096 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
9097 | ;; |
9098 | esac | |
9099 | ;; | |
55ffb5ed NN |
9100 | esac |
9101 | ;; | |
9102 | esac | |
9103 | done | |
9104 | ||
4da3b0f8 ILT |
9105 | # Add target libraries which are only needed for disabled languages |
9106 | # to noconfigdirs. | |
9107 | if test -n "$disabled_target_libs"; then | |
9108 | for dir in $disabled_target_libs; do | |
9109 | case " $enabled_target_libs " in | |
9110 | *" ${dir} "*) ;; | |
9111 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9112 | esac | |
9113 | done | |
9114 | fi | |
9115 | ||
5213506e RW |
9116 | # Check whether --enable-stage1-languages was given. |
9117 | if test "${enable_stage1_languages+set}" = set; then : | |
9118 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
9119 | ,no,|,,) |
9120 | # Set it to something that will have no effect in the loop below | |
9121 | enable_stage1_languages=c ;; | |
9122 | ,yes,) | |
9123 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9124 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9125 | *,all,*) | |
9126 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9127 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9128 | esac | |
9129 | ||
9130 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9131 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9132 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9133 | case $potential_languages in | |
9134 | *,$i,*) | |
9135 | case $stage1_languages in | |
9136 | *,$i,*) ;; | |
9137 | *) stage1_languages="$stage1_languages$i," ;; | |
9138 | esac ;; | |
9139 | *) | |
9140 | case $missing_languages in | |
9141 | *,$i,*) ;; | |
9142 | *) missing_languages="$missing_languages$i," ;; | |
9143 | esac ;; | |
9144 | esac | |
9145 | done | |
5213506e RW |
9146 | fi |
9147 | ||
e1888513 PB |
9148 | |
9149 | # Remove leading/trailing commas that were added for simplicity | |
9150 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 9151 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
9152 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9153 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9154 | ||
55ffb5ed | 9155 | if test "x$missing_languages" != x; then |
22e05272 | 9156 | as_fn_error $? " |
0cf085e4 | 9157 | The following requested languages could not be built: ${missing_languages} |
5213506e | 9158 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 9159 | fi |
55ffb5ed NN |
9160 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9161 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 9162 | enable_languages="$new_enable_languages" |
55ffb5ed | 9163 | fi |
e1888513 | 9164 | |
1c710c3c | 9165 | |
b2eaac4a | 9166 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
9167 | fi |
9168 | ||
27079765 AH |
9169 | # Handle --disable-<component> generically. |
9170 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9171 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
9172 | varname=`echo $dirname | sed -e s/+/_/g` |
9173 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
9174 | noconfigdirs="$noconfigdirs $dir" |
9175 | fi | |
9176 | done | |
9177 | ||
43c40f3e RO |
9178 | # Check for Boehm's garbage collector |
9179 | # Check whether --enable-objc-gc was given. | |
9180 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9181 | enableval=$enable_objc_gc; |
9182 | fi | |
9183 | ||
9184 | ||
9185 | # Check whether --with-target-bdw-gc was given. | |
9186 | if test "${with_target_bdw_gc+set}" = set; then : | |
9187 | withval=$with_target_bdw_gc; | |
9188 | fi | |
9189 | ||
9190 | ||
9191 | # Check whether --with-target-bdw-gc-include was given. | |
9192 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9193 | withval=$with_target_bdw_gc_include; | |
9194 | fi | |
9195 | ||
9196 | ||
9197 | # Check whether --with-target-bdw-gc-lib was given. | |
9198 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9199 | withval=$with_target_bdw_gc_lib; | |
9200 | fi | |
9201 | ||
9202 | ||
9203 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9205 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9206 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9208 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9209 | else |
9210 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9211 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9212 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9213 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9214 | else |
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9216 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9217 | fi | |
9218 | fi | |
43c40f3e RO |
9219 | esac |
9220 | ||
e4cba494 | 9221 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
99776ebd | 9222 | case ,${enable_languages}, in |
1007a55c | 9223 | *,c++,*) |
5e9d6aa4 | 9224 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9225 | case "${noconfigdirs}" in |
9226 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9227 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9228 | ;; |
9229 | *) ;; | |
9230 | esac | |
9231 | ;; | |
99776ebd | 9232 | *) |
e4cba494 | 9233 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9234 | ;; |
9235 | esac | |
9236 | ||
dc614a83 AB |
9237 | # If gcc/ is not in the source tree then we'll not be building a |
9238 | # target compiler, assume in that case we don't want to build any | |
9239 | # target libraries or tools. | |
9240 | # | |
9241 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9242 | # this configure script, but don't always have target tools available. | |
9243 | if test ! -d ${srcdir}/gcc; then | |
9244 | skipdirs="${skipdirs} ${target_configdirs}" | |
9245 | fi | |
9246 | ||
ee6a22df L |
9247 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9248 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9249 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9250 | ||
9251 | notsupp="" | |
9252 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9253 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9254 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9255 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9256 | if test -r $srcdir/$dirname/configure ; then | |
9257 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9258 | true | |
9259 | else | |
9260 | notsupp="$notsupp $dir" | |
9261 | fi | |
9262 | fi | |
9263 | fi | |
ee6a22df L |
9264 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9265 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9266 | if test -r $srcdir/$dirname/configure ; then | |
9267 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9268 | true | |
9269 | else | |
9270 | notsupp="$notsupp $dir" | |
9271 | fi | |
9272 | fi | |
9273 | fi | |
55ffb5ed NN |
9274 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9275 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9276 | if test -r $srcdir/$dirname/configure ; then | |
9277 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9278 | true | |
9279 | else | |
9280 | notsupp="$notsupp $dir" | |
9281 | fi | |
9282 | fi | |
9283 | fi | |
9284 | done | |
9285 | ||
55ffb5ed NN |
9286 | # Quietly strip out all directories which aren't configurable in this tree. |
9287 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9288 | # is now the case. | |
23f6b2f9 PB |
9289 | build_configdirs_all="$build_configdirs" |
9290 | build_configdirs= | |
9291 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9292 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9293 | if test -f ${srcdir}/$j/configure ; then |
9294 | build_configdirs="${build_configdirs} $i" | |
9295 | fi | |
9296 | done | |
9297 | ||
55ffb5ed NN |
9298 | configdirs_all="$configdirs" |
9299 | configdirs= | |
9300 | for i in ${configdirs_all} ; do | |
9301 | if test -f ${srcdir}/$i/configure ; then | |
9302 | configdirs="${configdirs} $i" | |
9303 | fi | |
9304 | done | |
23f6b2f9 | 9305 | |
55ffb5ed NN |
9306 | target_configdirs_all="$target_configdirs" |
9307 | target_configdirs= | |
9308 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9309 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9310 | if test -f ${srcdir}/$j/configure ; then |
9311 | target_configdirs="${target_configdirs} $i" | |
9312 | fi | |
9313 | done | |
9314 | ||
45b3824d TS |
9315 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9316 | # so we have to add it after the preceding checks. | |
9317 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9318 | then | |
9319 | case " $configdirs " in | |
9320 | *" libiberty "*) | |
9321 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9322 | configdirs="$configdirs libiberty-linker-plugin" | |
9323 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9324 | --with-libiberty=../libiberty-linker-plugin";; | |
9325 | *) | |
22e05272 | 9326 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9327 | esac |
9328 | fi | |
9329 | ||
fca38047 TS |
9330 | # Sometimes we have special requirements for the host libiberty. |
9331 | extra_host_libiberty_configure_flags= | |
9332 | case " $configdirs " in | |
15368960 | 9333 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9334 | # When these are to be built as shared libraries, the same applies to |
9335 | # libiberty. | |
9336 | extra_host_libiberty_configure_flags=--enable-shared | |
9337 | ;; | |
04bb15e4 TV |
9338 | esac |
9339 | ||
9340 | ||
9341 | # Sometimes we have special requirements for the host zlib. | |
9342 | extra_host_zlib_configure_flags= | |
9343 | case " $configdirs " in | |
1c01ebf6 L |
9344 | *" bfd "*) |
9345 | # When bfd is to be built as a shared library, the same applies to | |
9346 | # zlib. | |
9347 | if test "$enable_shared" = "yes"; then | |
9348 | extra_host_zlib_configure_flags=--enable-host-shared | |
9349 | fi | |
9350 | ;; | |
fca38047 TS |
9351 | esac |
9352 | ||
9353 | ||
55ffb5ed NN |
9354 | # Produce a warning message for the subdirs we can't configure. |
9355 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9356 | # FSF releases, it's important to let people know when their machine isn't | |
9357 | # supported by the one or two programs in a package. | |
9358 | ||
9359 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9360 | # If $appdirs is non-empty, at least one of those directories must still | |
9361 | # be configured, or we error out. (E.g., if the gas release supports a | |
9362 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9363 | # pretend that all is well.) | |
9364 | if test -n "$appdirs" ; then | |
9365 | for dir in $appdirs ; do | |
9366 | if test -r $dir/Makefile.in ; then | |
9367 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9368 | appdirs="" | |
9369 | break | |
9370 | fi | |
23f6b2f9 | 9371 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9372 | appdirs="" |
9373 | break | |
9374 | fi | |
9375 | fi | |
9376 | done | |
9377 | if test -n "$appdirs" ; then | |
9378 | echo "*** This configuration is not supported by this package." 1>&2 | |
9379 | exit 1 | |
9380 | fi | |
9381 | fi | |
9382 | # Okay, some application will build, or we don't care to check. Still | |
9383 | # notify of subdirs not getting built. | |
9384 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9385 | echo " ${notsupp}" 1>&2 | |
9386 | echo " (Any other directories should still work fine.)" 1>&2 | |
9387 | fi | |
9388 | ||
9389 | case "$host" in | |
9390 | *msdosdjgpp*) | |
9391 | enable_gdbtk=no ;; | |
9392 | esac | |
9393 | ||
c3a86da9 DJ |
9394 | # To find our prefix, in gcc_cv_tool_prefix. |
9395 | ||
9396 | # The user is always right. | |
9397 | if test "${PATH_SEPARATOR+set}" != set; then | |
9398 | echo "#! /bin/sh" >conf$$.sh | |
9399 | echo "exit 0" >>conf$$.sh | |
9400 | chmod +x conf$$.sh | |
9401 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9402 | PATH_SEPARATOR=';' | |
9403 | else | |
9404 | PATH_SEPARATOR=: | |
9405 | fi | |
9406 | rm -f conf$$.sh | |
9407 | fi | |
9408 | ||
9409 | ||
3c36aa6b JJ |
9410 | get_gcc_base_ver="cat" |
9411 | ||
9412 | # Check whether --with-gcc-major-version-only was given. | |
9413 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9414 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9415 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9416 | fi |
9417 | ||
9418 | fi | |
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
c3a86da9 DJ |
9424 | |
9425 | if test "x$exec_prefix" = xNONE; then | |
9426 | if test "x$prefix" = xNONE; then | |
9427 | gcc_cv_tool_prefix=$ac_default_prefix | |
9428 | else | |
9429 | gcc_cv_tool_prefix=$prefix | |
9430 | fi | |
9431 | else | |
9432 | gcc_cv_tool_prefix=$exec_prefix | |
9433 | fi | |
9434 | ||
9435 | # If there is no compiler in the tree, use the PATH only. In any | |
9436 | # case, if there is no compiler in the tree nobody should use | |
9437 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9438 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9439 | if test x$with_gcc_major_version_only = xyes ; then |
9440 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9441 | else | |
9442 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9443 | fi | |
c3a86da9 DJ |
9444 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9445 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9446 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9447 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9448 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9449 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9450 | else | |
9451 | gcc_cv_tool_dirs= | |
9452 | fi | |
9453 | ||
9454 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9455 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9456 | fi | |
9457 | ||
9458 | ||
9459 | ||
55ffb5ed NN |
9460 | copy_dirs= |
9461 | ||
1c710c3c | 9462 | |
5213506e RW |
9463 | # Check whether --with-build-sysroot was given. |
9464 | if test "${with_build_sysroot+set}" = set; then : | |
9465 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9466 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9467 | fi | |
9468 | else | |
9469 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9470 | fi |
526635cb MM |
9471 | |
9472 | ||
c8aea42c | 9473 | |
5213506e RW |
9474 | |
9475 | # Check whether --with-debug-prefix-map was given. | |
9476 | if test "${with_debug_prefix_map+set}" = set; then : | |
9477 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9478 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9479 | for debug_map in $withval; do | |
9480 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9481 | done | |
9482 | fi | |
9483 | else | |
9484 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9485 | fi |
9486 | ||
c8aea42c PB |
9487 | |
9488 | ||
1c8bd6a3 PB |
9489 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9490 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9491 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9492 | # We want to ensure that TARGET libraries (which we know are built with | |
9493 | # gcc) are built with "-O2 -g", so include those options when setting | |
9494 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9495 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9496 | if test "x${is_cross_compiler}" = xyes; then |
9497 | CFLAGS_FOR_TARGET="-g -O2" | |
9498 | else | |
9499 | CFLAGS_FOR_TARGET=$CFLAGS | |
9500 | case " $CFLAGS " in | |
9501 | *" -O2 "*) ;; | |
9502 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9503 | esac | |
9504 | case " $CFLAGS " in | |
9505 | *" -g "* | *" -g3 "*) ;; | |
9506 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9507 | esac | |
9508 | fi | |
1c8bd6a3 PB |
9509 | fi |
9510 | ||
9511 | ||
9512 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9513 | if test "x${is_cross_compiler}" = xyes; then |
9514 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9515 | else | |
9516 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9517 | case " $CXXFLAGS " in | |
9518 | *" -O2 "*) ;; | |
9519 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9520 | esac | |
9521 | case " $CXXFLAGS " in | |
9522 | *" -g "* | *" -g3 "*) ;; | |
9523 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9524 | esac | |
9525 | fi | |
1c8bd6a3 PB |
9526 | fi |
9527 | ||
9528 | ||
6f57bdf6 DK |
9529 | |
9530 | ||
55ffb5ed NN |
9531 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9532 | # the named directory are copied to $(tooldir)/sys-include. | |
9533 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9534 | if test x${is_cross_compiler} = xno ; then | |
9535 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9536 | exit 1 | |
9537 | fi | |
9538 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9539 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9540 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9541 | fi |
9542 | fi | |
9543 | ||
9544 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9545 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9546 | # are permitted. | |
9547 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9548 | if test x${is_cross_compiler} = xno ; then | |
9549 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9550 | exit 1 | |
9551 | fi | |
9552 | if test x"${with_libs}" != xyes ; then | |
9553 | # Copy the libraries in reverse order, so that files in the first named | |
9554 | # library override files in subsequent libraries. | |
c3a86da9 | 9555 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9556 | for l in ${with_libs}; do |
1c710c3c | 9557 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9558 | done |
9559 | fi | |
9560 | fi | |
9561 | ||
d7f09764 | 9562 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9563 | # |
9564 | # This is done by determining whether or not the appropriate directory | |
9565 | # is available, and by checking whether or not specific configurations | |
9566 | # have requested that this magic not happen. | |
1c710c3c DJ |
9567 | # |
9568 | # The command line options always override the explicit settings in | |
6b1786aa | 9569 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9570 | # |
1c710c3c | 9571 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9572 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9573 | # --without-gnu-ld options for the configure script. Similarly, if |
9574 | # the default is to use the included zlib and you don't want to do that, | |
9575 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9576 | |
9577 | if test x${use_gnu_as} = x && | |
9578 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9579 | with_gnu_as=yes | |
9580 | extra_host_args="$extra_host_args --with-gnu-as" | |
9581 | fi | |
9582 | ||
9583 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9584 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9585 | with_gnu_ld=yes |
9586 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9587 | fi | |
9588 | ||
d7f09764 DN |
9589 | if test x${use_included_zlib} = x && |
9590 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9591 | : | |
9592 | else | |
9593 | with_system_zlib=yes | |
9594 | extra_host_args="$extra_host_args --with-system-zlib" | |
9595 | fi | |
9596 | ||
e8b05380 PB |
9597 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9598 | # can detect this case. | |
9599 | ||
9600 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9601 | with_newlib=yes | |
9602 | extra_host_args="$extra_host_args --with-newlib" | |
9603 | fi | |
9604 | ||
55ffb5ed NN |
9605 | # Handle ${copy_dirs} |
9606 | set fnord ${copy_dirs} | |
9607 | shift | |
9608 | while test $# != 0 ; do | |
9609 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9610 | : | |
9611 | else | |
9612 | echo Copying $1 to $2 | |
9613 | ||
9614 | # Use the install script to create the directory and all required | |
9615 | # parent directories. | |
9616 | if test -d $2 ; then | |
9617 | : | |
9618 | else | |
9619 | echo >config.temp | |
9620 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9621 | fi | |
9622 | ||
9623 | # Copy the directory, assuming we have tar. | |
9624 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9625 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9626 | ||
9627 | # It is the responsibility of the user to correctly adjust all | |
9628 | # symlinks. If somebody can figure out how to handle them correctly | |
9629 | # here, feel free to add the code. | |
9630 | ||
9631 | echo $1 > $2/COPIED | |
9632 | fi | |
9633 | shift; shift | |
9634 | done | |
9635 | ||
e8b05380 PB |
9636 | # Determine a target-dependent exec_prefix that the installed |
9637 | # gcc will search in. Keep this list sorted by triplet, with | |
9638 | # the *-*-osname triplets last. | |
9639 | md_exec_prefix= | |
9640 | case "${target}" in | |
30b74385 | 9641 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9642 | md_exec_prefix=/dev/env/DJDIR/bin |
9643 | ;; | |
e8b05380 | 9644 | *-*-hpux* | \ |
e8b05380 | 9645 | *-*-nto-qnx* | \ |
6de66370 | 9646 | *-*-solaris2*) |
e8b05380 PB |
9647 | md_exec_prefix=/usr/ccs/bin |
9648 | ;; | |
9649 | esac | |
9650 | ||
671aa708 NN |
9651 | extra_arflags_for_target= |
9652 | extra_nmflags_for_target= | |
9653 | extra_ranlibflags_for_target= | |
9654 | target_makefile_frag=/dev/null | |
9655 | case "${target}" in | |
58e24147 AM |
9656 | spu-*-*) |
9657 | target_makefile_frag="config/mt-spu" | |
9658 | ;; | |
d896cc4d | 9659 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9660 | target_makefile_frag="config/mt-sde" |
9661 | ;; | |
1ec3b87b RS |
9662 | mipsisa*-*-elfoabi*) |
9663 | target_makefile_frag="config/mt-mips-elfoabi" | |
9664 | ;; | |
08d0963a RS |
9665 | mips*-*-*linux* | mips*-*-gnu*) |
9666 | target_makefile_frag="config/mt-mips-gnu" | |
9667 | ;; | |
707f1839 SL |
9668 | nios2-*-elf*) |
9669 | target_makefile_frag="config/mt-nios2-elf" | |
9670 | ;; | |
76052545 EB |
9671 | *-*-linux-android*) |
9672 | target_makefile_frag="config/mt-android" | |
9673 | ;; | |
416ac4d4 | 9674 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9675 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9676 | ;; |
9677 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9678 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9679 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9680 | # harmless if we're using GNU nm or ar. | |
9681 | extra_arflags_for_target=" -X32_64" | |
9682 | extra_nmflags_for_target=" -B -X32_64" | |
9683 | ;; | |
671aa708 NN |
9684 | esac |
9685 | ||
9686 | alphaieee_frag=/dev/null | |
9687 | case $target in | |
9688 | alpha*-*-*) | |
9689 | # This just makes sure to use the -mieee option to build target libs. | |
9690 | # This should probably be set individually by each library. | |
9691 | alphaieee_frag="config/mt-alphaieee" | |
9692 | ;; | |
9693 | esac | |
9694 | ||
9695 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9696 | # the target libraries, similarly if it is not specified, use -Os | |
9697 | # on selected platforms. | |
9698 | ospace_frag=/dev/null | |
9699 | case "${enable_target_optspace}:${target}" in | |
9700 | yes:*) | |
9701 | ospace_frag="config/mt-ospace" | |
9702 | ;; | |
9703 | :d30v-*) | |
9704 | ospace_frag="config/mt-d30v" | |
9705 | ;; | |
d9063947 | 9706 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9707 | ospace_frag="config/mt-ospace" |
9708 | ;; | |
9709 | no:* | :*) | |
9710 | ;; | |
9711 | *) | |
9712 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9713 | ;; | |
9714 | esac | |
9715 | ||
671aa708 NN |
9716 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9717 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9718 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9719 | build_tooldir=${tooldir} |
9720 | ||
671aa708 NN |
9721 | # Create a .gdbinit file which runs the one in srcdir |
9722 | # and tells GDB to look there for source files. | |
9723 | ||
9724 | if test -r ${srcdir}/.gdbinit ; then | |
9725 | case ${srcdir} in | |
9726 | .) ;; | |
9727 | *) cat > ./.gdbinit <<EOF | |
9728 | # ${NO_EDIT} | |
9729 | dir ${srcdir} | |
9730 | dir . | |
9731 | source ${srcdir}/.gdbinit | |
9732 | EOF | |
9733 | ;; | |
9734 | esac | |
9735 | fi | |
9736 | ||
671aa708 NN |
9737 | # Make sure that the compiler is able to generate an executable. If it |
9738 | # can't, we are probably in trouble. We don't care whether we can run the | |
9739 | # executable--we might be using a cross compiler--we only care whether it | |
9740 | # can be created. At this point the main configure script has set CC. | |
9741 | we_are_ok=no | |
9742 | echo "int main () { return 0; }" > conftest.c | |
9743 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9744 | if test $? = 0 ; then | |
9745 | if test -s conftest || test -s conftest.exe ; then | |
9746 | we_are_ok=yes | |
9747 | fi | |
1c710c3c | 9748 | fi |
671aa708 NN |
9749 | case $we_are_ok in |
9750 | no) | |
9751 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9752 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9753 | rm -f conftest* | |
9754 | exit 1 | |
9755 | ;; | |
9756 | esac | |
9757 | rm -f conftest* | |
9758 | ||
d89f0ad6 | 9759 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9760 | case "${host}" in |
9761 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9762 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9763 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9764 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9765 | esac | |
9766 | ||
d89f0ad6 AL |
9767 | # On systems where the dynamic library environment variable is PATH, |
9768 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9769 | # built executables to PATH. | |
9770 | if test "$RPATH_ENVVAR" = PATH; then | |
9771 | GCC_SHLIB_SUBDIR=/shlib | |
9772 | else | |
9773 | GCC_SHLIB_SUBDIR= | |
9774 | fi | |
9775 | ||
beeda1d9 JJ |
9776 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9777 | case $enable_bootstrap in | |
9778 | yes) | |
9779 | bootstrap_suffix=bootstrap | |
9780 | BUILD_CONFIG=bootstrap-debug | |
9781 | ;; | |
9782 | no) | |
9783 | bootstrap_suffix=no-bootstrap | |
9784 | BUILD_CONFIG= | |
9785 | ;; | |
9786 | esac | |
9787 | ||
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9789 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9790 | ||
9791 | ||
9792 | # Check whether --with-build-config was given. | |
9793 | if test "${with_build_config+set}" = set; then : | |
9794 | withval=$with_build_config; case $with_build_config in | |
9795 | yes) with_build_config= ;; | |
9796 | no) with_build_config= BUILD_CONFIG= ;; | |
9797 | esac | |
9798 | fi | |
9799 | ||
9800 | ||
9801 | if test "x${with_build_config}" != x; then | |
9802 | BUILD_CONFIG=$with_build_config | |
9803 | else | |
9804 | case $BUILD_CONFIG in | |
9805 | bootstrap-debug) | |
9806 | if echo "int f (void) { return 0; }" > conftest.c && | |
9807 | ${CC} -c conftest.c && | |
9808 | mv conftest.o conftest.o.g0 && | |
9809 | ${CC} -c -g conftest.c && | |
9810 | mv conftest.o conftest.o.g && | |
9811 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9812 | : | |
9813 | else | |
9814 | BUILD_CONFIG= | |
9815 | fi | |
9816 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9817 | ;; | |
9818 | esac | |
9819 | fi | |
9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9821 | $as_echo "$BUILD_CONFIG" >&6; } | |
9822 | ||
9823 | ||
9824 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9826 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9827 | # Check whether --enable-vtable-verify was given. | |
9828 | if test "${enable_vtable_verify+set}" = set; then : | |
9829 | enableval=$enable_vtable_verify; case "$enableval" in | |
9830 | yes) enable_vtable_verify=yes ;; | |
9831 | no) enable_vtable_verify=no ;; | |
9832 | *) enable_vtable_verify=no;; | |
9833 | esac | |
9834 | else | |
9835 | enable_vtable_verify=no | |
9836 | fi | |
9837 | ||
9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9839 | $as_echo "$enable_vtable_verify" >&6; } | |
9840 | ||
671aa708 NN |
9841 | # Record target_configdirs and the configure arguments for target and |
9842 | # build configuration in Makefile. | |
9843 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9844 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9845 | bootstrap_fixincludes=no |
671aa708 | 9846 | |
ad1e5170 JR |
9847 | # If we are building libgomp, bootstrap it. |
9848 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9849 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9850 | fi | |
9851 | ||
beeda1d9 JJ |
9852 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9853 | # or bootstrap-ubsan, bootstrap it. | |
9854 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9855 | case "$BUILD_CONFIG" in | |
170e618e | 9856 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9857 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9858 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9859 | ;; |
9860 | esac | |
ac8701fe L |
9861 | fi |
9862 | ||
beeda1d9 JJ |
9863 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9864 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9865 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9866 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9867 | fi | |
9868 | ||
5fee5ec3 IB |
9869 | # If we are building libatomic and the list of enabled languages includes the |
9870 | # D frontend, bootstrap it. | |
9871 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9872 | case ,${enable_languages}, in | |
9873 | *,d,*) | |
9874 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9875 | ;; | |
9876 | esac | |
9877 | fi | |
9878 | ||
671aa708 NN |
9879 | # Determine whether gdb needs tk/tcl or not. |
9880 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9881 | # and in that case we want gdb to be built without tk. Ugh! | |
9882 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9883 | # so we should be able to put the 'maybe's in unconditionally and | |
9884 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9885 | # 100% sure that that's safe though. | |
e914a571 | 9886 | |
b4f96efe | 9887 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9888 | case "$enable_gdbtk" in |
9889 | no) | |
9890 | GDB_TK="" ;; | |
e914a571 AC |
9891 | yes) |
9892 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9893 | *) |
e914a571 AC |
9894 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9895 | # distro. Eventually someone will fix this and move Insight, nee | |
9896 | # gdbtk to a separate directory. | |
9897 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9898 | GDB_TK="${gdb_tk}" | |
9899 | else | |
9900 | GDB_TK="" | |
9901 | fi | |
9902 | ;; | |
671aa708 | 9903 | esac |
ef9db8d5 DJ |
9904 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9905 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9906 | |
f9d09df0 TT |
9907 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9908 | # else does, only include them if one of these is built. The Makefile | |
9909 | # provides the ordering, so it's enough here to add to the list. | |
9910 | case " ${configdirs} " in | |
9911 | *\ gdb\ *) | |
9912 | configdirs="${configdirs} gnulib gdbsupport" | |
9913 | ;; | |
9914 | *\ gdbserver\ *) | |
9915 | configdirs="${configdirs} gnulib gdbsupport" | |
9916 | ;; | |
f14c9bd4 MF |
9917 | *\ sim\ *) |
9918 | configdirs="${configdirs} gnulib" | |
9919 | ;; | |
f9d09df0 | 9920 | esac |
98e5be21 | 9921 | |
60975492 | 9922 | # Strip out unwanted targets. |
8b87bb96 NN |
9923 | |
9924 | # While at that, we remove Makefiles if we were started for recursive | |
9925 | # configuration, so that the top-level Makefile reconfigures them, | |
9926 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9927 | |
3e54529c RW |
9928 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9929 | # but now we're fixing up the Makefile ourselves with the additional | |
9930 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9931 | # extrasub-{build,host,target} not because there is any reason to split | |
9932 | # the substitutions up that way, but only to remain below the limit of | |
9933 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9934 | |
9935 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9936 | # configure will not warn you at all. | |
8b87bb96 | 9937 | |
79cd2b23 RW |
9938 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9939 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9940 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9941 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9942 | ;; |
9943 | esac | |
9944 | ||
3e54529c | 9945 | extrasub_build= |
23f6b2f9 | 9946 | for module in ${build_configdirs} ; do |
5607edfd PB |
9947 | if test -z "${no_recursion}" \ |
9948 | && test -f ${build_subdir}/${module}/Makefile; then | |
9949 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9950 | rm -f ${build_subdir}/${module}/Makefile | |
9951 | fi | |
3e54529c | 9952 | extrasub_build="$extrasub_build |
5607edfd PB |
9953 | /^@if build-$module\$/d |
9954 | /^@endif build-$module\$/d | |
da34ca3f | 9955 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9956 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9957 | /^@endif build-$module-$bootstrap_suffix\$/d |
9958 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9959 | done |
3e54529c | 9960 | extrasub_host= |
5607edfd | 9961 | for module in ${configdirs} ; do |
a6fbc1e2 | 9962 | if test -z "${no_recursion}"; then |
f063a9ed | 9963 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9964 | if test -f ${file}; then |
9965 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9966 | rm -f ${file} | |
9967 | fi | |
9968 | done | |
5607edfd | 9969 | fi |
9e1c8fc1 JJ |
9970 | case ${module},${bootstrap_fixincludes} in |
9971 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9972 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9973 | esac | |
3e54529c | 9974 | extrasub_host="$extrasub_host |
5607edfd PB |
9975 | /^@if $module\$/d |
9976 | /^@endif $module\$/d | |
da34ca3f | 9977 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 9978 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
9979 | /^@endif $module-$host_bootstrap_suffix\$/d |
9980 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 9981 | done |
3e54529c | 9982 | extrasub_target= |
5607edfd PB |
9983 | for module in ${target_configdirs} ; do |
9984 | if test -z "${no_recursion}" \ | |
9985 | && test -f ${target_subdir}/${module}/Makefile; then | |
9986 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9987 | rm -f ${target_subdir}/${module}/Makefile | |
9988 | fi | |
00020c16 ILT |
9989 | |
9990 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9991 | case $bootstrap_target_libs in | |
9992 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9993 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9994 | esac | |
9995 | ||
3e54529c | 9996 | extrasub_target="$extrasub_target |
5607edfd PB |
9997 | /^@if target-$module\$/d |
9998 | /^@endif target-$module\$/d | |
da34ca3f | 9999 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 10000 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
10001 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
10002 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
10003 | done |
10004 | ||
3e54529c RW |
10005 | # Do the final fixup along with target modules. |
10006 | extrasub_target="$extrasub_target | |
da34ca3f AO |
10007 | /^@if /,/^@endif /d |
10008 | /^@unless /d | |
10009 | /^@endunless /d" | |
671aa708 | 10010 | |
4a5e71f2 L |
10011 | if test "$enable_pgo_build" != "no"; then |
10012 | extrasub_build="$extrasub_build | |
10013 | /^@if pgo-build\$/d | |
10014 | /^@endif pgo-build\$/d" | |
10015 | fi | |
10016 | ||
671aa708 NN |
10017 | # Create the serialization dependencies. This uses a temporary file. |
10018 | ||
5213506e RW |
10019 | # Check whether --enable-serial-configure was given. |
10020 | if test "${enable_serial_configure+set}" = set; then : | |
10021 | enableval=$enable_serial_configure; | |
10022 | fi | |
ade82b16 AO |
10023 | |
10024 | ||
bf1d3e81 NN |
10025 | case ${enable_serial_configure} in |
10026 | yes) | |
10027 | enable_serial_build_configure=yes | |
10028 | enable_serial_host_configure=yes | |
10029 | enable_serial_target_configure=yes | |
10030 | ;; | |
10031 | esac | |
10032 | ||
671aa708 NN |
10033 | # These force 'configure's to be done one at a time, to avoid problems |
10034 | # with contention over a shared config.cache. | |
10035 | rm -f serdep.tmp | |
7d115e01 | 10036 | if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then |
ade82b16 | 10037 | echo '# serdep.tmp' > serdep.tmp |
7d115e01 | 10038 | fi |
671aa708 | 10039 | olditem= |
bf1d3e81 | 10040 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
10041 | for item in ${build_configdirs} ; do |
10042 | case ${olditem} in | |
10043 | "") ;; | |
ade82b16 | 10044 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10045 | esac |
10046 | olditem=${item} | |
10047 | done | |
10048 | olditem= | |
bf1d3e81 | 10049 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
10050 | for item in ${configdirs} ; do |
10051 | case ${olditem} in | |
10052 | "") ;; | |
ade82b16 | 10053 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10054 | esac |
10055 | olditem=${item} | |
10056 | done | |
10057 | olditem= | |
bf1d3e81 | 10058 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
10059 | for item in ${target_configdirs} ; do |
10060 | case ${olditem} in | |
10061 | "") ;; | |
ade82b16 | 10062 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10063 | esac |
10064 | olditem=${item} | |
10065 | done | |
10066 | serialization_dependencies=serdep.tmp | |
10067 | ||
10068 | ||
ade82b16 | 10069 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 10070 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
10071 | # might not want to pass down to subconfigures. The exception being |
10072 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10073 | # files altogether, and which should be passed on to subconfigures. | |
10074 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10075 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 10076 | baseargs= |
29a63921 | 10077 | tbaseargs= |
1c710c3c DJ |
10078 | keep_next=no |
10079 | skip_next=no | |
10080 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
10081 | for ac_arg |
10082 | do | |
1c710c3c DJ |
10083 | if test X"$skip_next" = X"yes"; then |
10084 | skip_next=no | |
10085 | continue | |
10086 | fi | |
10087 | if test X"$keep_next" = X"yes"; then | |
10088 | case $ac_arg in | |
10089 | *\'*) | |
10090 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10091 | esac | |
10092 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10093 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
10094 | keep_next=no |
10095 | continue | |
10096 | fi | |
10097 | ||
10098 | # Handle separated arguments. Based on the logic generated by | |
10099 | # autoconf 2.59. | |
10100 | case $ac_arg in | |
10101 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10102 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10103 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10104 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10105 | separate_arg=no | |
10106 | ;; | |
10107 | -*) | |
10108 | separate_arg=yes | |
10109 | ;; | |
10110 | *) | |
10111 | separate_arg=no | |
10112 | ;; | |
10113 | esac | |
10114 | ||
29a63921 AO |
10115 | skip_targ=no |
10116 | case $ac_arg in | |
10117 | ||
10118 | --with-* | --without-*) | |
10119 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10120 | ||
10121 | case $libopt in | |
10122 | *[-_]include) | |
10123 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10124 | ;; | |
10125 | *[-_]lib) | |
10126 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10127 | ;; | |
10128 | *) | |
10129 | lib=$libopt | |
10130 | ;; | |
10131 | esac | |
10132 | ||
10133 | ||
10134 | case $lib in | |
4a9bb2aa | 10135 | mpc | mpfr | gmp | isl) |
29a63921 AO |
10136 | # If we're processing --with-$lib, --with-$lib-include or |
10137 | # --with-$lib-lib, for one of the libs above, and target is | |
10138 | # different from host, don't pass the current argument to any | |
10139 | # target library's configure. | |
10140 | if test x$is_cross_compiler = xyes; then | |
10141 | skip_targ=yes | |
10142 | fi | |
10143 | ;; | |
10144 | esac | |
10145 | ;; | |
10146 | esac | |
10147 | ||
1c710c3c | 10148 | case "$ac_arg" in |
f1a036e4 NC |
10149 | --cache-file=/dev/null | \ |
10150 | -cache-file=/dev/null ) | |
10151 | # Handled here to avoid the test to skip args below. | |
10152 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10153 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
10154 | # Assert: $separate_arg should always be no. |
10155 | keep_next=$separate_arg | |
10156 | ;; | |
1c710c3c DJ |
10157 | --no*) |
10158 | continue | |
10159 | ;; | |
10160 | --c* | \ | |
10161 | --sr* | \ | |
10162 | --ho* | \ | |
10163 | --bu* | \ | |
10164 | --t* | \ | |
10165 | --program-* | \ | |
10166 | -cache_file* | \ | |
10167 | -srcdir* | \ | |
10168 | -host* | \ | |
10169 | -build* | \ | |
10170 | -target* | \ | |
10171 | -program-prefix* | \ | |
10172 | -program-suffix* | \ | |
10173 | -program-transform-name* ) | |
10174 | skip_next=$separate_arg | |
10175 | continue | |
10176 | ;; | |
10177 | -*) | |
10178 | # An option. Add it. | |
10179 | case $ac_arg in | |
10180 | *\'*) | |
10181 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10182 | esac | |
10183 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
10184 | if test X"$skip_targ" = Xno; then |
10185 | tbaseargs="$tbaseargs '$ac_arg'" | |
10186 | fi | |
1c710c3c DJ |
10187 | keep_next=$separate_arg |
10188 | ;; | |
10189 | *) | |
10190 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10191 | # pass it down; let the Makefile handle this. | |
10192 | continue | |
10193 | ;; | |
10194 | esac | |
10195 | done | |
10196 | # Remove the initial space we just introduced and, as these will be | |
10197 | # expanded by make, quote '$'. | |
10198 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10199 | |
43bb47c2 DJ |
10200 | # Add in --program-transform-name, after --program-prefix and |
10201 | # --program-suffix have been applied to it. Autoconf has already | |
10202 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10203 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10204 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10205 | # Also, because we want to override the logic in subdir configure scripts to |
10206 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10207 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10208 | ${program_transform_name} | |
10209 | EOF_SED | |
10210 | gcc_transform_name=`cat conftestsed.out` | |
10211 | rm -f conftestsed.out | |
10212 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10213 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
10214 | if test "$silent" = yes; then |
10215 | baseargs="$baseargs --silent" | |
29a63921 | 10216 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10217 | fi |
0115d4a3 | 10218 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 10219 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10220 | |
ffedf511 RW |
10221 | # Record and document user additions to sub configure arguments. |
10222 | ||
10223 | ||
10224 | ||
10225 | ||
671aa708 NN |
10226 | # For the build-side libraries, we just need to pretend we're native, |
10227 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10228 | # desired. We can't even use the same cache file for all build-side |
10229 | # libraries, as they're compiled differently; some with C, some with | |
10230 | # C++ or with different feature-enabling options. | |
10231 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
10232 | |
10233 | # For host modules, accept cache file option, or specification as blank. | |
10234 | case "${cache_file}" in | |
10235 | "") # empty | |
10236 | cache_file_option="" ;; | |
10237 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10238 | cache_file_option="--cache-file=${cache_file}" ;; | |
10239 | *) # relative path | |
10240 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10241 | esac | |
10242 | ||
09438bde NN |
10243 | # Host dirs don't like to share a cache file either, horribly enough. |
10244 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10245 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10246 | |
29a63921 | 10247 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10248 | |
10249 | # Passing a --with-cross-host argument lets the target libraries know | |
10250 | # whether they are being built with a cross-compiler or being built | |
10251 | # native. However, it would be better to use other mechanisms to make the | |
10252 | # sorts of decisions they want to make on this basis. Please consider | |
10253 | # this option to be deprecated. FIXME. | |
10254 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10255 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10256 | fi |
10257 | ||
79e0604d FXC |
10258 | # Special user-friendly check for native x86_64-linux build, if |
10259 | # multilib is not explicitly enabled. | |
10260 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10261 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10262 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10263 | dev64=no |
10264 | echo "int main () { return 0; }" > conftest.c | |
10265 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10266 | if test $? = 0 ; then | |
10267 | if test -s conftest || test -s conftest.exe ; then | |
10268 | dev64=yes | |
10269 | fi | |
10270 | fi | |
10271 | rm -f conftest* | |
10272 | if test x${dev64} != xyes ; then | |
22e05272 | 10273 | 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 |
10274 | fi |
10275 | ;; | |
10276 | esac | |
10277 | ||
dc683a3f RW |
10278 | # Default to --enable-multilib. |
10279 | if test x${enable_multilib} = x ; then | |
671aa708 | 10280 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10281 | fi |
671aa708 NN |
10282 | |
10283 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10284 | # changed from the earlier setting of with_newlib. | |
10285 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10286 | target_configargs="--with-newlib ${target_configargs}" | |
10287 | fi | |
10288 | ||
6b9eb62c NN |
10289 | # Different target subdirs use different values of certain variables |
10290 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10291 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10292 | # it doesn't automatically accept command-line overrides of them. | |
10293 | # This means it's not safe for target subdirs to share a cache file, | |
10294 | # which is disgusting, but there you have it. Hopefully this can be | |
10295 | # fixed in future. It's still worthwhile to use a cache file for each | |
10296 | # directory. I think. | |
10297 | ||
bebcd931 MS |
10298 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10299 | # We need to pass --target, as newer autoconf's requires consistency | |
10300 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10301 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10302 | |
671aa708 NN |
10303 | FLAGS_FOR_TARGET= |
10304 | case " $target_configdirs " in | |
10305 | *" newlib "*) | |
10306 | case " $target_configargs " in | |
10307 | *" --with-newlib "*) | |
10308 | case "$target" in | |
5d571eaa | 10309 | *-cygwin*) |
443e6238 | 10310 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10311 | ;; |
671aa708 NN |
10312 | esac |
10313 | ||
10314 | # If we're not building GCC, don't discard standard headers. | |
10315 | if test -d ${srcdir}/gcc; then | |
10316 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10317 | ||
10318 | if test "${build}" != "${host}"; then | |
10319 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10320 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10321 | # to it. This is right: we don't want to search that directory | |
10322 | # for binaries, but we want the header files in there, so add | |
10323 | # them explicitly. | |
0463992b | 10324 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10325 | |
10326 | # Someone might think of using the pre-installed headers on | |
10327 | # Canadian crosses, in case the installed compiler is not fully | |
10328 | # compatible with the compiler being built. In this case, it | |
10329 | # would be better to flag an error than risking having | |
10330 | # incompatible object files being constructed. We can't | |
10331 | # guarantee that an error will be flagged, but let's hope the | |
10332 | # compiler will do it, when presented with incompatible header | |
10333 | # files. | |
10334 | fi | |
10335 | fi | |
10336 | ||
10337 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10338 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10339 | # Here host == target, so we don't need to build gcc, |
10340 | # so we don't want to discard standard headers. | |
10341 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10342 | ;; | |
10343 | *) | |
10344 | # If we're building newlib, use its generic headers last, but search | |
10345 | # for any libc-related directories first (so make it the last -B | |
10346 | # switch). | |
10347 | 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 |
10348 | |
10349 | # If we're building libgloss, find the startup file, simulator library | |
10350 | # and linker script. | |
10351 | case " $target_configdirs " in | |
10352 | *" libgloss "*) | |
10353 | # Look for startup file, simulator library and maybe linker script. | |
10354 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10355 | # Look for libnosys.a in case the target needs it. | |
10356 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10357 | # Most targets have the linker script in the source directory. | |
10358 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10359 | ;; | |
10360 | esac | |
671aa708 NN |
10361 | ;; |
10362 | esac | |
10363 | ;; | |
10364 | esac | |
10365 | ;; | |
10366 | esac | |
5d571eaa | 10367 | |
b91f0a41 | 10368 | case "$target" in |
5d571eaa OS |
10369 | x86_64-*mingw* | *-w64-mingw*) |
10370 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10371 | # however, use a symlink named 'mingw' in ${prefix} . | |
10372 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10373 | ;; | |
10374 | *-mingw*) | |
10375 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10376 | 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' | |
10377 | ;; | |
b91f0a41 | 10378 | esac |
671aa708 | 10379 | |
6691a79e ME |
10380 | # Allow the user to override the flags for |
10381 | # our build compiler if desired. | |
f019adc1 MF |
10382 | if test x"${build}" = x"${host}" ; then |
10383 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10384 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10385 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10386 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10387 | fi | |
6691a79e | 10388 | |
671aa708 NN |
10389 | # On Canadian crosses, we'll be searching the right directories for |
10390 | # the previously-installed cross compiler, so don't bother to add | |
10391 | # flags for directories within the install tree of the compiler | |
10392 | # being built; programs in there won't even run. | |
10393 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10394 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10395 | 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 |
10396 | fi |
10397 | ||
10398 | if test "x${use_gnu_ld}" = x && | |
10399 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10400 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10401 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10402 | fi |
10403 | ||
e88a2c09 DD |
10404 | # Search for other target-specific linker scripts and such. |
10405 | case "${target}" in | |
3e19841a PB |
10406 | mep*) |
10407 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10408 | ;; | |
9b8ffbb8 OH |
10409 | # The VxWorks support for shared libraries is getting in |
10410 | # incrementally. Make sure it doesn't get activated implicitly: | |
10411 | *vxworks*) | |
10412 | if test "${enable_shared-unset}" = unset ; then | |
10413 | enable_shared=no | |
10414 | # So the build of libraries knows ... | |
10415 | target_configargs="${target_configargs} --disable-shared" | |
10416 | # So gcc knows ... | |
10417 | host_configargs="${host_configargs} --disable-shared" | |
10418 | fi | |
10419 | ;; | |
e88a2c09 DD |
10420 | esac |
10421 | ||
671aa708 | 10422 | # Makefile fragments. |
7b61653a PE |
10423 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10424 | do | |
10425 | eval fragval=\$$frag | |
10426 | if test $fragval != /dev/null; then | |
10427 | eval $frag=${srcdir}/$fragval | |
10428 | fi | |
10429 | done | |
671aa708 NN |
10430 | |
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | # Miscellanea: directories, flags, etc. | |
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
d89f0ad6 | 10443 | |
23f6b2f9 | 10444 | # Build module lists & subconfigure args. |
671aa708 NN |
10445 | |
10446 | ||
10447 | ||
2abefe3d PB |
10448 | # Host module lists & subconfigure args. |
10449 | ||
10450 | ||
10451 | ||
aae29963 | 10452 | |
2abefe3d PB |
10453 | # Target module lists & subconfigure args. |
10454 | ||
10455 | ||
10456 | ||
10457 | # Build tools. | |
10458 | ||
10459 | ||
10460 | ||
0999159b PB |
10461 | |
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
b4c522fa | 10474 | |
3b5e8ee4 | 10475 | |
a1d2b162 IS |
10476 | |
10477 | ||
2abefe3d PB |
10478 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10479 | # on the build machine. These are used if the Makefile can't locate these | |
10480 | # programs in objdir. | |
10481 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10482 | ||
10483 | for ac_prog in 'bison -y' byacc yacc | |
10484 | do | |
1c710c3c | 10485 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10486 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10488 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10489 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10490 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10491 | else |
10492 | if test -n "$YACC"; then | |
10493 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10494 | else | |
1c710c3c DJ |
10495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10496 | for as_dir in $PATH | |
10497 | do | |
10498 | IFS=$as_save_IFS | |
10499 | test -z "$as_dir" && as_dir=. | |
5213506e | 10500 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10502 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10504 | break 2 |
10505 | fi | |
10506 | done | |
5213506e RW |
10507 | done |
10508 | IFS=$as_save_IFS | |
1c710c3c | 10509 | |
2abefe3d PB |
10510 | fi |
10511 | fi | |
1c710c3c | 10512 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10513 | if test -n "$YACC"; then |
5213506e RW |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10515 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10516 | else |
5213506e RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10518 | $as_echo "no" >&6; } | |
2abefe3d PB |
10519 | fi |
10520 | ||
5213506e | 10521 | |
1c710c3c | 10522 | test -n "$YACC" && break |
2abefe3d PB |
10523 | done |
10524 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10525 | ||
10526 | case " $build_configdirs " in | |
10527 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10528 | esac |
10529 | ||
10530 | for ac_prog in bison | |
10531 | do | |
1c710c3c | 10532 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10533 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10535 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10536 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10537 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10538 | else |
10539 | if test -n "$BISON"; then | |
10540 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10541 | else | |
1c710c3c DJ |
10542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10543 | for as_dir in $PATH | |
10544 | do | |
10545 | IFS=$as_save_IFS | |
10546 | test -z "$as_dir" && as_dir=. | |
5213506e | 10547 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10549 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10551 | break 2 |
10552 | fi | |
10553 | done | |
5213506e RW |
10554 | done |
10555 | IFS=$as_save_IFS | |
1c710c3c | 10556 | |
2abefe3d PB |
10557 | fi |
10558 | fi | |
1c710c3c | 10559 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10560 | if test -n "$BISON"; then |
5213506e RW |
10561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10562 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10563 | else |
5213506e RW |
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10565 | $as_echo "no" >&6; } | |
2abefe3d PB |
10566 | fi |
10567 | ||
5213506e | 10568 | |
1c710c3c | 10569 | test -n "$BISON" && break |
2abefe3d PB |
10570 | done |
10571 | test -n "$BISON" || BISON="$MISSING bison" | |
10572 | ||
10573 | case " $build_configdirs " in | |
10574 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10575 | esac | |
10576 | ||
10577 | for ac_prog in gm4 gnum4 m4 | |
10578 | do | |
1c710c3c | 10579 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10580 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10582 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10583 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10584 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10585 | else |
10586 | if test -n "$M4"; then | |
10587 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10588 | else | |
1c710c3c DJ |
10589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10590 | for as_dir in $PATH | |
10591 | do | |
10592 | IFS=$as_save_IFS | |
10593 | test -z "$as_dir" && as_dir=. | |
5213506e | 10594 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10596 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10598 | break 2 |
10599 | fi | |
10600 | done | |
5213506e RW |
10601 | done |
10602 | IFS=$as_save_IFS | |
1c710c3c | 10603 | |
2abefe3d PB |
10604 | fi |
10605 | fi | |
1c710c3c | 10606 | M4=$ac_cv_prog_M4 |
2abefe3d | 10607 | if test -n "$M4"; then |
5213506e RW |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10609 | $as_echo "$M4" >&6; } | |
2abefe3d | 10610 | else |
5213506e RW |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10612 | $as_echo "no" >&6; } | |
2abefe3d PB |
10613 | fi |
10614 | ||
5213506e | 10615 | |
1c710c3c | 10616 | test -n "$M4" && break |
2abefe3d PB |
10617 | done |
10618 | test -n "$M4" || M4="$MISSING m4" | |
10619 | ||
10620 | case " $build_configdirs " in | |
10621 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10622 | esac | |
10623 | ||
10624 | for ac_prog in flex lex | |
10625 | do | |
1c710c3c | 10626 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10627 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10629 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10630 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10631 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10632 | else |
10633 | if test -n "$LEX"; then | |
10634 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10635 | else | |
1c710c3c DJ |
10636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10637 | for as_dir in $PATH | |
10638 | do | |
10639 | IFS=$as_save_IFS | |
10640 | test -z "$as_dir" && as_dir=. | |
5213506e | 10641 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10643 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10645 | break 2 |
10646 | fi | |
10647 | done | |
5213506e RW |
10648 | done |
10649 | IFS=$as_save_IFS | |
1c710c3c | 10650 | |
2abefe3d PB |
10651 | fi |
10652 | fi | |
1c710c3c | 10653 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10654 | if test -n "$LEX"; then |
5213506e RW |
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10656 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10657 | else |
5213506e RW |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10659 | $as_echo "no" >&6; } | |
2abefe3d PB |
10660 | fi |
10661 | ||
5213506e | 10662 | |
1c710c3c | 10663 | test -n "$LEX" && break |
2abefe3d PB |
10664 | done |
10665 | test -n "$LEX" || LEX="$MISSING flex" | |
10666 | ||
10667 | case " $build_configdirs " in | |
10668 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10669 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10670 | esac | |
10671 | ||
10672 | for ac_prog in flex | |
10673 | do | |
1c710c3c | 10674 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10675 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10677 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10678 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10679 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10680 | else |
10681 | if test -n "$FLEX"; then | |
10682 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10683 | else | |
1c710c3c DJ |
10684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10685 | for as_dir in $PATH | |
10686 | do | |
10687 | IFS=$as_save_IFS | |
10688 | test -z "$as_dir" && as_dir=. | |
5213506e | 10689 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10691 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10693 | break 2 |
10694 | fi | |
10695 | done | |
5213506e RW |
10696 | done |
10697 | IFS=$as_save_IFS | |
1c710c3c | 10698 | |
2abefe3d PB |
10699 | fi |
10700 | fi | |
1c710c3c | 10701 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10702 | if test -n "$FLEX"; then |
5213506e RW |
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10704 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10705 | else |
5213506e RW |
10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10707 | $as_echo "no" >&6; } | |
2abefe3d PB |
10708 | fi |
10709 | ||
5213506e | 10710 | |
1c710c3c | 10711 | test -n "$FLEX" && break |
2abefe3d PB |
10712 | done |
10713 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10714 | ||
10715 | case " $build_configdirs " in | |
10716 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10717 | esac | |
10718 | ||
10719 | for ac_prog in makeinfo | |
10720 | do | |
1c710c3c | 10721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10722 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10724 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10725 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10726 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10727 | else |
10728 | if test -n "$MAKEINFO"; then | |
10729 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10730 | else | |
1c710c3c DJ |
10731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10732 | for as_dir in $PATH | |
10733 | do | |
10734 | IFS=$as_save_IFS | |
10735 | test -z "$as_dir" && as_dir=. | |
5213506e | 10736 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10738 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10740 | break 2 |
10741 | fi | |
10742 | done | |
5213506e RW |
10743 | done |
10744 | IFS=$as_save_IFS | |
1c710c3c | 10745 | |
2abefe3d PB |
10746 | fi |
10747 | fi | |
1c710c3c | 10748 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10749 | if test -n "$MAKEINFO"; then |
5213506e RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10751 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10752 | else |
5213506e RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10754 | $as_echo "no" >&6; } | |
2abefe3d PB |
10755 | fi |
10756 | ||
5213506e | 10757 | |
1c710c3c | 10758 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10759 | done |
10760 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10761 | ||
10762 | case " $build_configdirs " in | |
10763 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10764 | *) | |
10765 | ||
d18ff35a | 10766 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10767 | # higher, else we use the "missing" dummy. |
10768 | if ${MAKEINFO} --version \ | |
d18ff35a | 10769 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10770 | : |
10771 | else | |
10772 | MAKEINFO="$MISSING makeinfo" | |
10773 | fi | |
10774 | ;; | |
10775 | ||
10776 | esac | |
671aa708 | 10777 | |
2abefe3d | 10778 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10779 | |
2abefe3d PB |
10780 | for ac_prog in expect |
10781 | do | |
1c710c3c | 10782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10783 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10785 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10786 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10787 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10788 | else |
10789 | if test -n "$EXPECT"; then | |
10790 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10791 | else | |
1c710c3c DJ |
10792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10793 | for as_dir in $PATH | |
10794 | do | |
10795 | IFS=$as_save_IFS | |
10796 | test -z "$as_dir" && as_dir=. | |
5213506e | 10797 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10799 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10801 | break 2 |
10802 | fi | |
10803 | done | |
5213506e RW |
10804 | done |
10805 | IFS=$as_save_IFS | |
1c710c3c | 10806 | |
2abefe3d PB |
10807 | fi |
10808 | fi | |
1c710c3c | 10809 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10810 | if test -n "$EXPECT"; then |
5213506e RW |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10812 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10813 | else |
5213506e RW |
10814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10815 | $as_echo "no" >&6; } | |
2abefe3d | 10816 | fi |
671aa708 | 10817 | |
5213506e | 10818 | |
1c710c3c | 10819 | test -n "$EXPECT" && break |
2abefe3d PB |
10820 | done |
10821 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10822 | |
2abefe3d PB |
10823 | case " $configdirs " in |
10824 | *" expect "*) | |
10825 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10826 | ;; | |
10827 | esac | |
671aa708 | 10828 | |
2abefe3d PB |
10829 | for ac_prog in runtest |
10830 | do | |
1c710c3c | 10831 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10832 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10834 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10835 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10836 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10837 | else |
10838 | if test -n "$RUNTEST"; then | |
10839 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10840 | else |
1c710c3c DJ |
10841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10842 | for as_dir in $PATH | |
10843 | do | |
10844 | IFS=$as_save_IFS | |
10845 | test -z "$as_dir" && as_dir=. | |
5213506e | 10846 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10848 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10850 | break 2 |
10851 | fi | |
10852 | done | |
5213506e RW |
10853 | done |
10854 | IFS=$as_save_IFS | |
1c710c3c | 10855 | |
2abefe3d PB |
10856 | fi |
10857 | fi | |
1c710c3c | 10858 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10859 | if test -n "$RUNTEST"; then |
5213506e RW |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10861 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10862 | else |
5213506e RW |
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10864 | $as_echo "no" >&6; } | |
2abefe3d | 10865 | fi |
671aa708 | 10866 | |
5213506e | 10867 | |
1c710c3c | 10868 | test -n "$RUNTEST" && break |
2abefe3d PB |
10869 | done |
10870 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10871 | |
2abefe3d PB |
10872 | case " $configdirs " in |
10873 | *" dejagnu "*) | |
c394e891 | 10874 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10875 | ;; |
10876 | esac | |
671aa708 | 10877 | |
4e3dcf20 | 10878 | |
671aa708 | 10879 | # Host tools. |
ca9f4b81 AO |
10880 | ncn_tool_prefix= |
10881 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10882 | ncn_target_tool_prefix= | |
10883 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10884 | ||
278a7a38 AO |
10885 | |
10886 | ||
10887 | if test -n "$AR"; then | |
10888 | ac_cv_prog_AR=$AR | |
10889 | elif test -n "$ac_cv_prog_AR"; then | |
10890 | AR=$ac_cv_prog_AR | |
10891 | fi | |
10892 | ||
10893 | if test -n "$ac_cv_prog_AR"; then | |
10894 | for ncn_progname in ar; do | |
10895 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10896 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10898 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10899 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10900 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10901 | else |
10902 | if test -n "$AR"; then | |
10903 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10904 | else | |
10905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10906 | for as_dir in $PATH | |
10907 | do | |
10908 | IFS=$as_save_IFS | |
10909 | test -z "$as_dir" && as_dir=. | |
5213506e | 10910 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10912 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10914 | break 2 |
10915 | fi | |
10916 | done | |
5213506e RW |
10917 | done |
10918 | IFS=$as_save_IFS | |
278a7a38 AO |
10919 | |
10920 | fi | |
10921 | fi | |
10922 | AR=$ac_cv_prog_AR | |
10923 | if test -n "$AR"; then | |
5213506e RW |
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10925 | $as_echo "$AR" >&6; } | |
278a7a38 | 10926 | else |
5213506e RW |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10928 | $as_echo "no" >&6; } | |
278a7a38 AO |
10929 | fi |
10930 | ||
5213506e | 10931 | |
278a7a38 AO |
10932 | done |
10933 | fi | |
10934 | ||
10935 | for ncn_progname in ar; do | |
2693c0b0 PB |
10936 | if test -n "$ncn_tool_prefix"; then |
10937 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10938 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10940 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10941 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10942 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10943 | else |
10944 | if test -n "$AR"; then | |
10945 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10946 | else | |
1c710c3c DJ |
10947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10948 | for as_dir in $PATH | |
10949 | do | |
10950 | IFS=$as_save_IFS | |
10951 | test -z "$as_dir" && as_dir=. | |
5213506e | 10952 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10954 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10956 | break 2 |
10957 | fi | |
10958 | done | |
5213506e RW |
10959 | done |
10960 | IFS=$as_save_IFS | |
1c710c3c | 10961 | |
ca9f4b81 AO |
10962 | fi |
10963 | fi | |
1c710c3c | 10964 | AR=$ac_cv_prog_AR |
ca9f4b81 | 10965 | if test -n "$AR"; then |
5213506e RW |
10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10967 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 10968 | else |
5213506e RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10970 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10971 | fi |
10972 | ||
5213506e | 10973 | |
2693c0b0 PB |
10974 | fi |
10975 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10976 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10977 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10979 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10980 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10981 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10982 | else |
2693c0b0 | 10983 | if test -n "$AR"; then |
af71363e AS |
10984 | ac_cv_prog_AR="$AR" # Let the user override the test. |
10985 | else | |
1c710c3c DJ |
10986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10987 | for as_dir in $PATH | |
10988 | do | |
10989 | IFS=$as_save_IFS | |
10990 | test -z "$as_dir" && as_dir=. | |
5213506e | 10991 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10993 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10995 | break 2 |
10996 | fi | |
10997 | done | |
5213506e RW |
10998 | done |
10999 | IFS=$as_save_IFS | |
1c710c3c | 11000 | |
ca9f4b81 AO |
11001 | fi |
11002 | fi | |
1c710c3c | 11003 | AR=$ac_cv_prog_AR |
2693c0b0 | 11004 | if test -n "$AR"; then |
5213506e RW |
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11006 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 11007 | else |
5213506e RW |
11008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11009 | $as_echo "no" >&6; } | |
ca9f4b81 | 11010 | fi |
1c710c3c | 11011 | |
5213506e | 11012 | |
2693c0b0 PB |
11013 | fi |
11014 | test -n "$ac_cv_prog_AR" && break | |
11015 | done | |
11016 | ||
11017 | if test -z "$ac_cv_prog_AR" ; then | |
11018 | set dummy ar | |
11019 | if test $build = $host ; then | |
11020 | AR="$2" | |
ca9f4b81 | 11021 | else |
2693c0b0 | 11022 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 11023 | fi |
ca9f4b81 AO |
11024 | fi |
11025 | ||
278a7a38 AO |
11026 | |
11027 | ||
11028 | if test -n "$AS"; then | |
11029 | ac_cv_prog_AS=$AS | |
11030 | elif test -n "$ac_cv_prog_AS"; then | |
11031 | AS=$ac_cv_prog_AS | |
11032 | fi | |
11033 | ||
11034 | if test -n "$ac_cv_prog_AS"; then | |
11035 | for ncn_progname in as; do | |
11036 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11037 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11039 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11040 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11041 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11042 | else |
11043 | if test -n "$AS"; then | |
11044 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
11045 | else | |
11046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11047 | for as_dir in $PATH | |
11048 | do | |
11049 | IFS=$as_save_IFS | |
11050 | test -z "$as_dir" && as_dir=. | |
5213506e | 11051 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11053 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11055 | break 2 |
11056 | fi | |
11057 | done | |
5213506e RW |
11058 | done |
11059 | IFS=$as_save_IFS | |
278a7a38 AO |
11060 | |
11061 | fi | |
11062 | fi | |
11063 | AS=$ac_cv_prog_AS | |
11064 | if test -n "$AS"; then | |
5213506e RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11066 | $as_echo "$AS" >&6; } | |
278a7a38 | 11067 | else |
5213506e RW |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11069 | $as_echo "no" >&6; } | |
278a7a38 AO |
11070 | fi |
11071 | ||
5213506e | 11072 | |
278a7a38 AO |
11073 | done |
11074 | fi | |
11075 | ||
11076 | for ncn_progname in as; do | |
2693c0b0 PB |
11077 | if test -n "$ncn_tool_prefix"; then |
11078 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11079 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11081 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11082 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11083 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11084 | else |
11085 | if test -n "$AS"; then | |
11086 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 11087 | else |
1c710c3c DJ |
11088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11089 | for as_dir in $PATH | |
11090 | do | |
11091 | IFS=$as_save_IFS | |
11092 | test -z "$as_dir" && as_dir=. | |
5213506e | 11093 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11095 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11097 | break 2 |
11098 | fi | |
11099 | done | |
5213506e RW |
11100 | done |
11101 | IFS=$as_save_IFS | |
1c710c3c | 11102 | |
ca9f4b81 AO |
11103 | fi |
11104 | fi | |
1c710c3c | 11105 | AS=$ac_cv_prog_AS |
ca9f4b81 | 11106 | if test -n "$AS"; then |
5213506e RW |
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11108 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 11109 | else |
5213506e RW |
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11111 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11112 | fi |
11113 | ||
5213506e | 11114 | |
2693c0b0 PB |
11115 | fi |
11116 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11117 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11118 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11120 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11121 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11122 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11123 | else |
2693c0b0 PB |
11124 | if test -n "$AS"; then |
11125 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 11126 | else |
1c710c3c DJ |
11127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11128 | for as_dir in $PATH | |
11129 | do | |
11130 | IFS=$as_save_IFS | |
11131 | test -z "$as_dir" && as_dir=. | |
5213506e | 11132 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11134 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11136 | break 2 |
11137 | fi | |
11138 | done | |
5213506e RW |
11139 | done |
11140 | IFS=$as_save_IFS | |
1c710c3c | 11141 | |
ca9f4b81 AO |
11142 | fi |
11143 | fi | |
1c710c3c | 11144 | AS=$ac_cv_prog_AS |
2693c0b0 | 11145 | if test -n "$AS"; then |
5213506e RW |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11147 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 11148 | else |
5213506e RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11150 | $as_echo "no" >&6; } | |
ca9f4b81 | 11151 | fi |
1c710c3c | 11152 | |
5213506e | 11153 | |
2693c0b0 PB |
11154 | fi |
11155 | test -n "$ac_cv_prog_AS" && break | |
11156 | done | |
11157 | ||
11158 | if test -z "$ac_cv_prog_AS" ; then | |
11159 | set dummy as | |
11160 | if test $build = $host ; then | |
11161 | AS="$2" | |
ca9f4b81 | 11162 | else |
2693c0b0 | 11163 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 11164 | fi |
ca9f4b81 AO |
11165 | fi |
11166 | ||
278a7a38 AO |
11167 | |
11168 | ||
11169 | if test -n "$DLLTOOL"; then | |
11170 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11171 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11172 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11173 | fi | |
11174 | ||
11175 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11176 | for ncn_progname in dlltool; do | |
11177 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11178 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11180 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11181 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11182 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11183 | else |
11184 | if test -n "$DLLTOOL"; then | |
11185 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11186 | else | |
11187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11188 | for as_dir in $PATH | |
11189 | do | |
11190 | IFS=$as_save_IFS | |
11191 | test -z "$as_dir" && as_dir=. | |
5213506e | 11192 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11193 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11194 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11196 | break 2 |
11197 | fi | |
11198 | done | |
5213506e RW |
11199 | done |
11200 | IFS=$as_save_IFS | |
278a7a38 AO |
11201 | |
11202 | fi | |
11203 | fi | |
11204 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11205 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11207 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11208 | else |
5213506e RW |
11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11210 | $as_echo "no" >&6; } | |
278a7a38 AO |
11211 | fi |
11212 | ||
5213506e | 11213 | |
278a7a38 AO |
11214 | done |
11215 | fi | |
11216 | ||
11217 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11218 | if test -n "$ncn_tool_prefix"; then |
11219 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11220 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11222 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11223 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11224 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11225 | else |
11226 | if test -n "$DLLTOOL"; then | |
11227 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11228 | else | |
1c710c3c DJ |
11229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11230 | for as_dir in $PATH | |
11231 | do | |
11232 | IFS=$as_save_IFS | |
11233 | test -z "$as_dir" && as_dir=. | |
5213506e | 11234 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11236 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11238 | break 2 |
11239 | fi | |
11240 | done | |
5213506e RW |
11241 | done |
11242 | IFS=$as_save_IFS | |
1c710c3c | 11243 | |
ca9f4b81 AO |
11244 | fi |
11245 | fi | |
1c710c3c | 11246 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 11247 | if test -n "$DLLTOOL"; then |
5213506e RW |
11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11249 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11250 | else |
5213506e RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11252 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11253 | fi |
11254 | ||
5213506e | 11255 | |
2693c0b0 PB |
11256 | fi |
11257 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11258 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11259 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11261 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11262 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11263 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11264 | else |
2693c0b0 PB |
11265 | if test -n "$DLLTOOL"; then |
11266 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11267 | else |
1c710c3c DJ |
11268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11269 | for as_dir in $PATH | |
11270 | do | |
11271 | IFS=$as_save_IFS | |
11272 | test -z "$as_dir" && as_dir=. | |
5213506e | 11273 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11275 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11277 | break 2 |
11278 | fi | |
11279 | done | |
5213506e RW |
11280 | done |
11281 | IFS=$as_save_IFS | |
1c710c3c | 11282 | |
ca9f4b81 AO |
11283 | fi |
11284 | fi | |
1c710c3c | 11285 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11286 | if test -n "$DLLTOOL"; then |
5213506e RW |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11288 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11289 | else |
5213506e RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11291 | $as_echo "no" >&6; } | |
ca9f4b81 | 11292 | fi |
1c710c3c | 11293 | |
5213506e | 11294 | |
2693c0b0 PB |
11295 | fi |
11296 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11297 | done | |
11298 | ||
11299 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11300 | set dummy dlltool | |
11301 | if test $build = $host ; then | |
11302 | DLLTOOL="$2" | |
ca9f4b81 | 11303 | else |
2693c0b0 | 11304 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11305 | fi |
ca9f4b81 AO |
11306 | fi |
11307 | ||
278a7a38 AO |
11308 | |
11309 | ||
3b5e8ee4 IS |
11310 | if test -n "$DSYMUTIL"; then |
11311 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11312 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11313 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11314 | fi | |
11315 | ||
11316 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11317 | for ncn_progname in dsymutil; do | |
11318 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11319 | set dummy ${ncn_progname}; ac_word=$2 | |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11321 | $as_echo_n "checking for $ac_word... " >&6; } | |
11322 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11323 | $as_echo_n "(cached) " >&6 | |
11324 | else | |
11325 | if test -n "$DSYMUTIL"; then | |
11326 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11327 | else | |
11328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11329 | for as_dir in $PATH | |
11330 | do | |
11331 | IFS=$as_save_IFS | |
11332 | test -z "$as_dir" && as_dir=. | |
11333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11335 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11337 | break 2 | |
11338 | fi | |
11339 | done | |
11340 | done | |
11341 | IFS=$as_save_IFS | |
11342 | ||
11343 | fi | |
11344 | fi | |
11345 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11346 | if test -n "$DSYMUTIL"; then | |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11348 | $as_echo "$DSYMUTIL" >&6; } | |
11349 | else | |
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11351 | $as_echo "no" >&6; } | |
11352 | fi | |
11353 | ||
11354 | ||
11355 | done | |
11356 | fi | |
11357 | ||
11358 | for ncn_progname in dsymutil; do | |
11359 | if test -n "$ncn_tool_prefix"; then | |
11360 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11361 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11363 | $as_echo_n "checking for $ac_word... " >&6; } | |
11364 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11365 | $as_echo_n "(cached) " >&6 | |
11366 | else | |
11367 | if test -n "$DSYMUTIL"; then | |
11368 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11369 | else | |
11370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11371 | for as_dir in $PATH | |
11372 | do | |
11373 | IFS=$as_save_IFS | |
11374 | test -z "$as_dir" && as_dir=. | |
11375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11377 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11379 | break 2 | |
11380 | fi | |
11381 | done | |
11382 | done | |
11383 | IFS=$as_save_IFS | |
11384 | ||
11385 | fi | |
11386 | fi | |
11387 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11388 | if test -n "$DSYMUTIL"; then | |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11390 | $as_echo "$DSYMUTIL" >&6; } | |
11391 | else | |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11393 | $as_echo "no" >&6; } | |
11394 | fi | |
11395 | ||
11396 | ||
11397 | fi | |
11398 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11400 | set dummy ${ncn_progname}; ac_word=$2 | |
11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11402 | $as_echo_n "checking for $ac_word... " >&6; } | |
11403 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11404 | $as_echo_n "(cached) " >&6 | |
11405 | else | |
11406 | if test -n "$DSYMUTIL"; then | |
11407 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11408 | else | |
11409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11410 | for as_dir in $PATH | |
11411 | do | |
11412 | IFS=$as_save_IFS | |
11413 | test -z "$as_dir" && as_dir=. | |
11414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11416 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11418 | break 2 | |
11419 | fi | |
11420 | done | |
11421 | done | |
11422 | IFS=$as_save_IFS | |
11423 | ||
11424 | fi | |
11425 | fi | |
11426 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11427 | if test -n "$DSYMUTIL"; then | |
11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11429 | $as_echo "$DSYMUTIL" >&6; } | |
11430 | else | |
11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11432 | $as_echo "no" >&6; } | |
11433 | fi | |
11434 | ||
11435 | ||
11436 | fi | |
11437 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11438 | done | |
11439 | ||
11440 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11441 | set dummy dsymutil | |
11442 | if test $build = $host ; then | |
11443 | DSYMUTIL="$2" | |
11444 | else | |
11445 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11446 | fi | |
11447 | fi | |
11448 | ||
11449 | ||
11450 | ||
278a7a38 AO |
11451 | if test -n "$LD"; then |
11452 | ac_cv_prog_LD=$LD | |
11453 | elif test -n "$ac_cv_prog_LD"; then | |
11454 | LD=$ac_cv_prog_LD | |
11455 | fi | |
11456 | ||
11457 | if test -n "$ac_cv_prog_LD"; then | |
11458 | for ncn_progname in ld; do | |
11459 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11460 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11462 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11463 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11464 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11465 | else |
11466 | if test -n "$LD"; then | |
11467 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11468 | else | |
11469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11470 | for as_dir in $PATH | |
11471 | do | |
11472 | IFS=$as_save_IFS | |
11473 | test -z "$as_dir" && as_dir=. | |
5213506e | 11474 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11476 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11478 | break 2 |
11479 | fi | |
11480 | done | |
5213506e RW |
11481 | done |
11482 | IFS=$as_save_IFS | |
278a7a38 AO |
11483 | |
11484 | fi | |
11485 | fi | |
11486 | LD=$ac_cv_prog_LD | |
11487 | if test -n "$LD"; then | |
5213506e RW |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11489 | $as_echo "$LD" >&6; } | |
278a7a38 | 11490 | else |
5213506e RW |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11492 | $as_echo "no" >&6; } | |
278a7a38 AO |
11493 | fi |
11494 | ||
5213506e | 11495 | |
278a7a38 AO |
11496 | done |
11497 | fi | |
11498 | ||
11499 | for ncn_progname in ld; do | |
2693c0b0 PB |
11500 | if test -n "$ncn_tool_prefix"; then |
11501 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11502 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11504 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11505 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11506 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11507 | else |
11508 | if test -n "$LD"; then | |
11509 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11510 | else | |
1c710c3c DJ |
11511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11512 | for as_dir in $PATH | |
11513 | do | |
11514 | IFS=$as_save_IFS | |
11515 | test -z "$as_dir" && as_dir=. | |
5213506e | 11516 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11518 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11520 | break 2 |
11521 | fi | |
11522 | done | |
5213506e RW |
11523 | done |
11524 | IFS=$as_save_IFS | |
1c710c3c | 11525 | |
ca9f4b81 AO |
11526 | fi |
11527 | fi | |
1c710c3c | 11528 | LD=$ac_cv_prog_LD |
ca9f4b81 | 11529 | if test -n "$LD"; then |
5213506e RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11531 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11532 | else |
5213506e RW |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11534 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11535 | fi |
11536 | ||
5213506e | 11537 | |
2693c0b0 PB |
11538 | fi |
11539 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11540 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11541 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11543 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11544 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11545 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11546 | else |
2693c0b0 PB |
11547 | if test -n "$LD"; then |
11548 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11549 | else |
1c710c3c DJ |
11550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11551 | for as_dir in $PATH | |
11552 | do | |
11553 | IFS=$as_save_IFS | |
11554 | test -z "$as_dir" && as_dir=. | |
5213506e | 11555 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11556 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11557 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11559 | break 2 |
11560 | fi | |
11561 | done | |
5213506e RW |
11562 | done |
11563 | IFS=$as_save_IFS | |
1c710c3c | 11564 | |
ca9f4b81 AO |
11565 | fi |
11566 | fi | |
1c710c3c | 11567 | LD=$ac_cv_prog_LD |
2693c0b0 | 11568 | if test -n "$LD"; then |
5213506e RW |
11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11570 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11571 | else |
5213506e RW |
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11573 | $as_echo "no" >&6; } | |
ca9f4b81 | 11574 | fi |
1c710c3c | 11575 | |
5213506e | 11576 | |
2693c0b0 PB |
11577 | fi |
11578 | test -n "$ac_cv_prog_LD" && break | |
11579 | done | |
11580 | ||
11581 | if test -z "$ac_cv_prog_LD" ; then | |
11582 | set dummy ld | |
11583 | if test $build = $host ; then | |
11584 | LD="$2" | |
ca9f4b81 | 11585 | else |
2693c0b0 | 11586 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11587 | fi |
ca9f4b81 AO |
11588 | fi |
11589 | ||
278a7a38 AO |
11590 | |
11591 | ||
11592 | if test -n "$LIPO"; then | |
11593 | ac_cv_prog_LIPO=$LIPO | |
11594 | elif test -n "$ac_cv_prog_LIPO"; then | |
11595 | LIPO=$ac_cv_prog_LIPO | |
11596 | fi | |
11597 | ||
11598 | if test -n "$ac_cv_prog_LIPO"; then | |
11599 | for ncn_progname in lipo; do | |
11600 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11601 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11603 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11604 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11605 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11606 | else |
11607 | if test -n "$LIPO"; then | |
11608 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11609 | else | |
11610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11611 | for as_dir in $PATH | |
11612 | do | |
11613 | IFS=$as_save_IFS | |
11614 | test -z "$as_dir" && as_dir=. | |
5213506e | 11615 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11617 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11619 | break 2 |
11620 | fi | |
11621 | done | |
5213506e RW |
11622 | done |
11623 | IFS=$as_save_IFS | |
278a7a38 AO |
11624 | |
11625 | fi | |
11626 | fi | |
11627 | LIPO=$ac_cv_prog_LIPO | |
11628 | if test -n "$LIPO"; then | |
5213506e RW |
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11630 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11631 | else |
5213506e RW |
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11633 | $as_echo "no" >&6; } | |
278a7a38 AO |
11634 | fi |
11635 | ||
5213506e | 11636 | |
278a7a38 AO |
11637 | done |
11638 | fi | |
11639 | ||
11640 | for ncn_progname in lipo; do | |
2abefe3d PB |
11641 | if test -n "$ncn_tool_prefix"; then |
11642 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11643 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11645 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11646 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11647 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11648 | else |
11649 | if test -n "$LIPO"; then | |
11650 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11651 | else | |
1c710c3c DJ |
11652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11653 | for as_dir in $PATH | |
11654 | do | |
11655 | IFS=$as_save_IFS | |
11656 | test -z "$as_dir" && as_dir=. | |
5213506e | 11657 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11659 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11661 | break 2 |
11662 | fi | |
11663 | done | |
5213506e RW |
11664 | done |
11665 | IFS=$as_save_IFS | |
1c710c3c | 11666 | |
2abefe3d PB |
11667 | fi |
11668 | fi | |
1c710c3c | 11669 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11670 | if test -n "$LIPO"; then |
5213506e RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11672 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11673 | else |
5213506e RW |
11674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11675 | $as_echo "no" >&6; } | |
2abefe3d PB |
11676 | fi |
11677 | ||
5213506e | 11678 | |
2abefe3d PB |
11679 | fi |
11680 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11681 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11682 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11684 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11685 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11686 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11687 | else |
11688 | if test -n "$LIPO"; then | |
11689 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11690 | else | |
1c710c3c DJ |
11691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11692 | for as_dir in $PATH | |
11693 | do | |
11694 | IFS=$as_save_IFS | |
11695 | test -z "$as_dir" && as_dir=. | |
5213506e | 11696 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11698 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11700 | break 2 |
11701 | fi | |
11702 | done | |
5213506e RW |
11703 | done |
11704 | IFS=$as_save_IFS | |
1c710c3c | 11705 | |
2abefe3d PB |
11706 | fi |
11707 | fi | |
1c710c3c | 11708 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11709 | if test -n "$LIPO"; then |
5213506e RW |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11711 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11712 | else |
5213506e RW |
11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11714 | $as_echo "no" >&6; } | |
2abefe3d | 11715 | fi |
1c710c3c | 11716 | |
5213506e | 11717 | |
2abefe3d PB |
11718 | fi |
11719 | test -n "$ac_cv_prog_LIPO" && break | |
11720 | done | |
11721 | ||
11722 | if test -z "$ac_cv_prog_LIPO" ; then | |
11723 | set dummy lipo | |
11724 | if test $build = $host ; then | |
11725 | LIPO="$2" | |
11726 | else | |
11727 | LIPO="${ncn_tool_prefix}$2" | |
11728 | fi | |
11729 | fi | |
11730 | ||
278a7a38 AO |
11731 | |
11732 | ||
11733 | if test -n "$NM"; then | |
11734 | ac_cv_prog_NM=$NM | |
11735 | elif test -n "$ac_cv_prog_NM"; then | |
11736 | NM=$ac_cv_prog_NM | |
11737 | fi | |
11738 | ||
11739 | if test -n "$ac_cv_prog_NM"; then | |
11740 | for ncn_progname in nm; do | |
11741 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11742 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11744 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11745 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11746 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11747 | else |
11748 | if test -n "$NM"; then | |
11749 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11750 | else | |
1c710c3c DJ |
11751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11752 | for as_dir in $PATH | |
11753 | do | |
11754 | IFS=$as_save_IFS | |
11755 | test -z "$as_dir" && as_dir=. | |
5213506e | 11756 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11758 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11760 | break 2 |
11761 | fi | |
11762 | done | |
5213506e RW |
11763 | done |
11764 | IFS=$as_save_IFS | |
1c710c3c | 11765 | |
ca9f4b81 AO |
11766 | fi |
11767 | fi | |
1c710c3c | 11768 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11769 | if test -n "$NM"; then |
5213506e RW |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11771 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11772 | else |
5213506e RW |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11774 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11775 | fi |
11776 | ||
5213506e | 11777 | |
278a7a38 AO |
11778 | done |
11779 | fi | |
11780 | ||
11781 | for ncn_progname in nm; do | |
11782 | if test -n "$ncn_tool_prefix"; then | |
11783 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11784 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11786 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11787 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11788 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11789 | else |
2693c0b0 PB |
11790 | if test -n "$NM"; then |
11791 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11792 | else |
1c710c3c DJ |
11793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11794 | for as_dir in $PATH | |
11795 | do | |
11796 | IFS=$as_save_IFS | |
11797 | test -z "$as_dir" && as_dir=. | |
5213506e | 11798 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11800 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11802 | break 2 |
11803 | fi | |
11804 | done | |
5213506e RW |
11805 | done |
11806 | IFS=$as_save_IFS | |
1c710c3c | 11807 | |
ca9f4b81 AO |
11808 | fi |
11809 | fi | |
1c710c3c | 11810 | NM=$ac_cv_prog_NM |
2693c0b0 | 11811 | if test -n "$NM"; then |
5213506e RW |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11813 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11814 | else |
5213506e RW |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11816 | $as_echo "no" >&6; } | |
ca9f4b81 | 11817 | fi |
1c710c3c | 11818 | |
5213506e | 11819 | |
2693c0b0 | 11820 | fi |
278a7a38 AO |
11821 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11822 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11823 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11825 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11826 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11827 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11828 | else |
11829 | if test -n "$NM"; then | |
11830 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11831 | else | |
11832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11833 | for as_dir in $PATH | |
11834 | do | |
11835 | IFS=$as_save_IFS | |
11836 | test -z "$as_dir" && as_dir=. | |
5213506e | 11837 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11839 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11841 | break 2 |
11842 | fi | |
11843 | done | |
5213506e RW |
11844 | done |
11845 | IFS=$as_save_IFS | |
278a7a38 AO |
11846 | |
11847 | fi | |
11848 | fi | |
11849 | NM=$ac_cv_prog_NM | |
11850 | if test -n "$NM"; then | |
5213506e RW |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11852 | $as_echo "$NM" >&6; } | |
278a7a38 | 11853 | else |
5213506e RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11855 | $as_echo "no" >&6; } | |
278a7a38 AO |
11856 | fi |
11857 | ||
5213506e | 11858 | |
278a7a38 AO |
11859 | fi |
11860 | test -n "$ac_cv_prog_NM" && break | |
11861 | done | |
11862 | ||
11863 | if test -z "$ac_cv_prog_NM" ; then | |
11864 | set dummy nm | |
11865 | if test $build = $host ; then | |
11866 | NM="$2" | |
11867 | else | |
11868 | NM="${ncn_tool_prefix}$2" | |
11869 | fi | |
11870 | fi | |
11871 | ||
11872 | ||
11873 | ||
11874 | if test -n "$RANLIB"; then | |
11875 | ac_cv_prog_RANLIB=$RANLIB | |
11876 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11877 | RANLIB=$ac_cv_prog_RANLIB | |
11878 | fi | |
11879 | ||
11880 | if test -n "$ac_cv_prog_RANLIB"; then | |
11881 | for ncn_progname in ranlib; do | |
11882 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11883 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11885 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11886 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11887 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11888 | else |
11889 | if test -n "$RANLIB"; then | |
11890 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11891 | else | |
11892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11893 | for as_dir in $PATH | |
11894 | do | |
11895 | IFS=$as_save_IFS | |
11896 | test -z "$as_dir" && as_dir=. | |
5213506e | 11897 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11899 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11901 | break 2 |
11902 | fi | |
11903 | done | |
5213506e RW |
11904 | done |
11905 | IFS=$as_save_IFS | |
278a7a38 AO |
11906 | |
11907 | fi | |
11908 | fi | |
11909 | RANLIB=$ac_cv_prog_RANLIB | |
11910 | if test -n "$RANLIB"; then | |
5213506e RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11912 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11913 | else |
5213506e RW |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11915 | $as_echo "no" >&6; } | |
278a7a38 AO |
11916 | fi |
11917 | ||
5213506e | 11918 | |
278a7a38 AO |
11919 | done |
11920 | fi | |
ca9f4b81 | 11921 | |
278a7a38 | 11922 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11923 | if test -n "$ncn_tool_prefix"; then |
11924 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11925 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11927 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11928 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11929 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11930 | else |
11931 | if test -n "$RANLIB"; then | |
11932 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11933 | else | |
1c710c3c DJ |
11934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11935 | for as_dir in $PATH | |
11936 | do | |
11937 | IFS=$as_save_IFS | |
11938 | test -z "$as_dir" && as_dir=. | |
5213506e | 11939 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11941 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 11942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11943 | break 2 |
11944 | fi | |
11945 | done | |
5213506e RW |
11946 | done |
11947 | IFS=$as_save_IFS | |
1c710c3c | 11948 | |
ca9f4b81 AO |
11949 | fi |
11950 | fi | |
1c710c3c | 11951 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 11952 | if test -n "$RANLIB"; then |
5213506e RW |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11954 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11955 | else |
5213506e RW |
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11957 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11958 | fi |
11959 | ||
5213506e | 11960 | |
2693c0b0 PB |
11961 | fi |
11962 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11963 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11964 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11966 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11967 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11968 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11969 | else |
2693c0b0 PB |
11970 | if test -n "$RANLIB"; then |
11971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 11972 | else |
1c710c3c DJ |
11973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11974 | for as_dir in $PATH | |
11975 | do | |
11976 | IFS=$as_save_IFS | |
11977 | test -z "$as_dir" && as_dir=. | |
5213506e | 11978 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11980 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11982 | break 2 |
11983 | fi | |
11984 | done | |
5213506e RW |
11985 | done |
11986 | IFS=$as_save_IFS | |
1c710c3c | 11987 | |
ca9f4b81 AO |
11988 | fi |
11989 | fi | |
1c710c3c | 11990 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 11991 | if test -n "$RANLIB"; then |
5213506e RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11993 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 11994 | else |
5213506e RW |
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11996 | $as_echo "no" >&6; } | |
ca9f4b81 | 11997 | fi |
1c710c3c | 11998 | |
5213506e | 11999 | |
ca9f4b81 | 12000 | fi |
2693c0b0 PB |
12001 | test -n "$ac_cv_prog_RANLIB" && break |
12002 | done | |
12003 | ||
12004 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 12005 | RANLIB="true" |
ca9f4b81 AO |
12006 | fi |
12007 | ||
278a7a38 AO |
12008 | |
12009 | ||
12010 | if test -n "$STRIP"; then | |
12011 | ac_cv_prog_STRIP=$STRIP | |
12012 | elif test -n "$ac_cv_prog_STRIP"; then | |
12013 | STRIP=$ac_cv_prog_STRIP | |
12014 | fi | |
12015 | ||
12016 | if test -n "$ac_cv_prog_STRIP"; then | |
12017 | for ncn_progname in strip; do | |
12018 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12019 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12021 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12022 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12023 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12024 | else |
12025 | if test -n "$STRIP"; then | |
12026 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12027 | else | |
12028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12029 | for as_dir in $PATH | |
12030 | do | |
12031 | IFS=$as_save_IFS | |
12032 | test -z "$as_dir" && as_dir=. | |
5213506e | 12033 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12034 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12035 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12037 | break 2 |
12038 | fi | |
12039 | done | |
5213506e RW |
12040 | done |
12041 | IFS=$as_save_IFS | |
278a7a38 AO |
12042 | |
12043 | fi | |
12044 | fi | |
12045 | STRIP=$ac_cv_prog_STRIP | |
12046 | if test -n "$STRIP"; then | |
5213506e RW |
12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12048 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 12049 | else |
5213506e RW |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12051 | $as_echo "no" >&6; } | |
278a7a38 AO |
12052 | fi |
12053 | ||
5213506e | 12054 | |
278a7a38 AO |
12055 | done |
12056 | fi | |
12057 | ||
12058 | for ncn_progname in strip; do | |
2abefe3d PB |
12059 | if test -n "$ncn_tool_prefix"; then |
12060 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12061 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12063 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12064 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12065 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
12066 | else |
12067 | if test -n "$STRIP"; then | |
12068 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12069 | else | |
1c710c3c DJ |
12070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12071 | for as_dir in $PATH | |
12072 | do | |
12073 | IFS=$as_save_IFS | |
12074 | test -z "$as_dir" && as_dir=. | |
5213506e | 12075 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12076 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12077 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12079 | break 2 |
12080 | fi | |
12081 | done | |
5213506e RW |
12082 | done |
12083 | IFS=$as_save_IFS | |
1c710c3c | 12084 | |
2abefe3d PB |
12085 | fi |
12086 | fi | |
1c710c3c | 12087 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 12088 | if test -n "$STRIP"; then |
5213506e RW |
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12090 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 12091 | else |
5213506e RW |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12093 | $as_echo "no" >&6; } | |
2abefe3d PB |
12094 | fi |
12095 | ||
5213506e | 12096 | |
2abefe3d PB |
12097 | fi |
12098 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12100 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12102 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12103 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12104 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
12105 | else |
12106 | if test -n "$STRIP"; then | |
12107 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12108 | else | |
1c710c3c DJ |
12109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12110 | for as_dir in $PATH | |
12111 | do | |
12112 | IFS=$as_save_IFS | |
12113 | test -z "$as_dir" && as_dir=. | |
5213506e | 12114 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12116 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12118 | break 2 |
12119 | fi | |
12120 | done | |
5213506e RW |
12121 | done |
12122 | IFS=$as_save_IFS | |
1c710c3c | 12123 | |
2abefe3d PB |
12124 | fi |
12125 | fi | |
1c710c3c | 12126 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 12127 | if test -n "$STRIP"; then |
5213506e RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12129 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 12130 | else |
5213506e RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12132 | $as_echo "no" >&6; } | |
2abefe3d | 12133 | fi |
1c710c3c | 12134 | |
5213506e | 12135 | |
2abefe3d PB |
12136 | fi |
12137 | test -n "$ac_cv_prog_STRIP" && break | |
12138 | done | |
12139 | ||
12140 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 12141 | STRIP="true" |
2abefe3d PB |
12142 | fi |
12143 | ||
278a7a38 AO |
12144 | |
12145 | ||
12146 | if test -n "$WINDRES"; then | |
12147 | ac_cv_prog_WINDRES=$WINDRES | |
12148 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12149 | WINDRES=$ac_cv_prog_WINDRES | |
12150 | fi | |
12151 | ||
12152 | if test -n "$ac_cv_prog_WINDRES"; then | |
12153 | for ncn_progname in windres; do | |
12154 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12155 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12157 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12158 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12159 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12160 | else |
12161 | if test -n "$WINDRES"; then | |
12162 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12163 | else | |
12164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12165 | for as_dir in $PATH | |
12166 | do | |
12167 | IFS=$as_save_IFS | |
12168 | test -z "$as_dir" && as_dir=. | |
5213506e | 12169 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12171 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12173 | break 2 |
12174 | fi | |
12175 | done | |
5213506e RW |
12176 | done |
12177 | IFS=$as_save_IFS | |
278a7a38 AO |
12178 | |
12179 | fi | |
12180 | fi | |
12181 | WINDRES=$ac_cv_prog_WINDRES | |
12182 | if test -n "$WINDRES"; then | |
5213506e RW |
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12184 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12185 | else |
5213506e RW |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12187 | $as_echo "no" >&6; } | |
278a7a38 AO |
12188 | fi |
12189 | ||
5213506e | 12190 | |
278a7a38 AO |
12191 | done |
12192 | fi | |
12193 | ||
12194 | for ncn_progname in windres; do | |
2693c0b0 PB |
12195 | if test -n "$ncn_tool_prefix"; then |
12196 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12197 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12199 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12200 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12201 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12202 | else |
12203 | if test -n "$WINDRES"; then | |
12204 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12205 | else | |
1c710c3c DJ |
12206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12207 | for as_dir in $PATH | |
12208 | do | |
12209 | IFS=$as_save_IFS | |
12210 | test -z "$as_dir" && as_dir=. | |
5213506e | 12211 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12213 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12215 | break 2 |
12216 | fi | |
12217 | done | |
5213506e RW |
12218 | done |
12219 | IFS=$as_save_IFS | |
1c710c3c | 12220 | |
ca9f4b81 AO |
12221 | fi |
12222 | fi | |
1c710c3c | 12223 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 12224 | if test -n "$WINDRES"; then |
5213506e RW |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12226 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12227 | else |
5213506e RW |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12229 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12230 | fi |
12231 | ||
5213506e | 12232 | |
2693c0b0 PB |
12233 | fi |
12234 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12235 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12236 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12238 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12239 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12240 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12241 | else |
2693c0b0 PB |
12242 | if test -n "$WINDRES"; then |
12243 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12244 | else |
1c710c3c DJ |
12245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12246 | for as_dir in $PATH | |
12247 | do | |
12248 | IFS=$as_save_IFS | |
12249 | test -z "$as_dir" && as_dir=. | |
5213506e | 12250 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12252 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12254 | break 2 |
12255 | fi | |
12256 | done | |
5213506e RW |
12257 | done |
12258 | IFS=$as_save_IFS | |
1c710c3c | 12259 | |
ca9f4b81 AO |
12260 | fi |
12261 | fi | |
1c710c3c | 12262 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12263 | if test -n "$WINDRES"; then |
5213506e RW |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12265 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12266 | else |
5213506e RW |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12268 | $as_echo "no" >&6; } | |
ca9f4b81 | 12269 | fi |
1c710c3c | 12270 | |
5213506e | 12271 | |
2693c0b0 PB |
12272 | fi |
12273 | test -n "$ac_cv_prog_WINDRES" && break | |
12274 | done | |
12275 | ||
12276 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12277 | set dummy windres | |
12278 | if test $build = $host ; then | |
12279 | WINDRES="$2" | |
ca9f4b81 | 12280 | else |
2693c0b0 | 12281 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12282 | fi |
ca9f4b81 AO |
12283 | fi |
12284 | ||
278a7a38 AO |
12285 | |
12286 | ||
901119ae KT |
12287 | if test -n "$WINDMC"; then |
12288 | ac_cv_prog_WINDMC=$WINDMC | |
12289 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12290 | WINDMC=$ac_cv_prog_WINDMC | |
12291 | fi | |
12292 | ||
12293 | if test -n "$ac_cv_prog_WINDMC"; then | |
12294 | for ncn_progname in windmc; do | |
12295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12296 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12298 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12299 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12300 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12301 | else |
12302 | if test -n "$WINDMC"; then | |
12303 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12304 | else | |
12305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12306 | for as_dir in $PATH | |
12307 | do | |
12308 | IFS=$as_save_IFS | |
12309 | test -z "$as_dir" && as_dir=. | |
5213506e | 12310 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12312 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12314 | break 2 |
12315 | fi | |
12316 | done | |
5213506e RW |
12317 | done |
12318 | IFS=$as_save_IFS | |
901119ae KT |
12319 | |
12320 | fi | |
12321 | fi | |
12322 | WINDMC=$ac_cv_prog_WINDMC | |
12323 | if test -n "$WINDMC"; then | |
5213506e RW |
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12325 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12326 | else |
5213506e RW |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12328 | $as_echo "no" >&6; } | |
901119ae KT |
12329 | fi |
12330 | ||
5213506e | 12331 | |
901119ae KT |
12332 | done |
12333 | fi | |
12334 | ||
12335 | for ncn_progname in windmc; do | |
12336 | if test -n "$ncn_tool_prefix"; then | |
12337 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12338 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12340 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12341 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12342 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12343 | else |
12344 | if test -n "$WINDMC"; then | |
12345 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12346 | else | |
12347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12348 | for as_dir in $PATH | |
12349 | do | |
12350 | IFS=$as_save_IFS | |
12351 | test -z "$as_dir" && as_dir=. | |
5213506e | 12352 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12354 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12356 | break 2 |
12357 | fi | |
12358 | done | |
5213506e RW |
12359 | done |
12360 | IFS=$as_save_IFS | |
901119ae KT |
12361 | |
12362 | fi | |
12363 | fi | |
12364 | WINDMC=$ac_cv_prog_WINDMC | |
12365 | if test -n "$WINDMC"; then | |
5213506e RW |
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12367 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12368 | else |
5213506e RW |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12370 | $as_echo "no" >&6; } | |
901119ae KT |
12371 | fi |
12372 | ||
5213506e | 12373 | |
901119ae KT |
12374 | fi |
12375 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12376 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12377 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12379 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12380 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12381 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12382 | else |
12383 | if test -n "$WINDMC"; then | |
12384 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12385 | else | |
12386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12387 | for as_dir in $PATH | |
12388 | do | |
12389 | IFS=$as_save_IFS | |
12390 | test -z "$as_dir" && as_dir=. | |
5213506e | 12391 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12393 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12395 | break 2 |
12396 | fi | |
12397 | done | |
5213506e RW |
12398 | done |
12399 | IFS=$as_save_IFS | |
901119ae KT |
12400 | |
12401 | fi | |
12402 | fi | |
12403 | WINDMC=$ac_cv_prog_WINDMC | |
12404 | if test -n "$WINDMC"; then | |
5213506e RW |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12406 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12407 | else |
5213506e RW |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12409 | $as_echo "no" >&6; } | |
901119ae KT |
12410 | fi |
12411 | ||
5213506e | 12412 | |
901119ae KT |
12413 | fi |
12414 | test -n "$ac_cv_prog_WINDMC" && break | |
12415 | done | |
12416 | ||
12417 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12418 | set dummy windmc | |
12419 | if test $build = $host ; then | |
12420 | WINDMC="$2" | |
12421 | else | |
12422 | WINDMC="${ncn_tool_prefix}$2" | |
12423 | fi | |
12424 | fi | |
12425 | ||
12426 | ||
12427 | ||
278a7a38 AO |
12428 | if test -n "$OBJCOPY"; then |
12429 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12430 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12431 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12432 | fi | |
12433 | ||
12434 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12435 | for ncn_progname in objcopy; do | |
12436 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12437 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12439 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12440 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12441 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12442 | else |
12443 | if test -n "$OBJCOPY"; then | |
12444 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12445 | else | |
12446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12447 | for as_dir in $PATH | |
12448 | do | |
12449 | IFS=$as_save_IFS | |
12450 | test -z "$as_dir" && as_dir=. | |
5213506e | 12451 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12453 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12455 | break 2 |
12456 | fi | |
12457 | done | |
5213506e RW |
12458 | done |
12459 | IFS=$as_save_IFS | |
278a7a38 AO |
12460 | |
12461 | fi | |
12462 | fi | |
12463 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12464 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12466 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12467 | else |
5213506e RW |
12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12469 | $as_echo "no" >&6; } | |
278a7a38 AO |
12470 | fi |
12471 | ||
5213506e | 12472 | |
278a7a38 AO |
12473 | done |
12474 | fi | |
12475 | ||
12476 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12477 | if test -n "$ncn_tool_prefix"; then |
12478 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12479 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12481 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12482 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12483 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12484 | else |
12485 | if test -n "$OBJCOPY"; then | |
12486 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12487 | else | |
1c710c3c DJ |
12488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12489 | for as_dir in $PATH | |
12490 | do | |
12491 | IFS=$as_save_IFS | |
12492 | test -z "$as_dir" && as_dir=. | |
5213506e | 12493 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12495 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12497 | break 2 |
12498 | fi | |
12499 | done | |
5213506e RW |
12500 | done |
12501 | IFS=$as_save_IFS | |
1c710c3c | 12502 | |
ca9f4b81 AO |
12503 | fi |
12504 | fi | |
1c710c3c | 12505 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 12506 | if test -n "$OBJCOPY"; then |
5213506e RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12508 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12509 | else |
5213506e RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12511 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12512 | fi |
12513 | ||
5213506e | 12514 | |
2693c0b0 PB |
12515 | fi |
12516 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12517 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12518 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12520 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12521 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12522 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12523 | else |
2693c0b0 PB |
12524 | if test -n "$OBJCOPY"; then |
12525 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12526 | else |
1c710c3c DJ |
12527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12528 | for as_dir in $PATH | |
12529 | do | |
12530 | IFS=$as_save_IFS | |
12531 | test -z "$as_dir" && as_dir=. | |
5213506e | 12532 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12534 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12536 | break 2 |
12537 | fi | |
12538 | done | |
5213506e RW |
12539 | done |
12540 | IFS=$as_save_IFS | |
1c710c3c | 12541 | |
ca9f4b81 AO |
12542 | fi |
12543 | fi | |
1c710c3c | 12544 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12545 | if test -n "$OBJCOPY"; then |
5213506e RW |
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12547 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12548 | else |
5213506e RW |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12550 | $as_echo "no" >&6; } | |
ca9f4b81 | 12551 | fi |
1c710c3c | 12552 | |
5213506e | 12553 | |
2693c0b0 PB |
12554 | fi |
12555 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12556 | done | |
12557 | ||
12558 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12559 | set dummy objcopy | |
12560 | if test $build = $host ; then | |
12561 | OBJCOPY="$2" | |
ca9f4b81 | 12562 | else |
2693c0b0 | 12563 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12564 | fi |
ca9f4b81 AO |
12565 | fi |
12566 | ||
278a7a38 AO |
12567 | |
12568 | ||
12569 | if test -n "$OBJDUMP"; then | |
12570 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12571 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12572 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12573 | fi | |
12574 | ||
12575 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12576 | for ncn_progname in objdump; do | |
12577 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12578 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12580 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12581 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12582 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12583 | else |
12584 | if test -n "$OBJDUMP"; then | |
12585 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12586 | else | |
12587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12588 | for as_dir in $PATH | |
12589 | do | |
12590 | IFS=$as_save_IFS | |
12591 | test -z "$as_dir" && as_dir=. | |
5213506e | 12592 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12594 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12596 | break 2 |
12597 | fi | |
12598 | done | |
5213506e RW |
12599 | done |
12600 | IFS=$as_save_IFS | |
278a7a38 AO |
12601 | |
12602 | fi | |
12603 | fi | |
12604 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12605 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12607 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12608 | else |
5213506e RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12610 | $as_echo "no" >&6; } | |
278a7a38 AO |
12611 | fi |
12612 | ||
5213506e | 12613 | |
278a7a38 AO |
12614 | done |
12615 | fi | |
12616 | ||
12617 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12618 | if test -n "$ncn_tool_prefix"; then |
12619 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12620 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12622 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12623 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12624 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
12625 | else |
12626 | if test -n "$OBJDUMP"; then | |
12627 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12628 | else | |
1c710c3c DJ |
12629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12630 | for as_dir in $PATH | |
12631 | do | |
12632 | IFS=$as_save_IFS | |
12633 | test -z "$as_dir" && as_dir=. | |
5213506e | 12634 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12636 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 12637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12638 | break 2 |
12639 | fi | |
12640 | done | |
5213506e RW |
12641 | done |
12642 | IFS=$as_save_IFS | |
1c710c3c | 12643 | |
ca9f4b81 AO |
12644 | fi |
12645 | fi | |
1c710c3c | 12646 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 12647 | if test -n "$OBJDUMP"; then |
5213506e RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12649 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12650 | else |
5213506e RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12652 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12653 | fi |
12654 | ||
5213506e | 12655 | |
2693c0b0 PB |
12656 | fi |
12657 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12658 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12659 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12661 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12662 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12663 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12664 | else |
2693c0b0 PB |
12665 | if test -n "$OBJDUMP"; then |
12666 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12667 | else |
1c710c3c DJ |
12668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12669 | for as_dir in $PATH | |
12670 | do | |
12671 | IFS=$as_save_IFS | |
12672 | test -z "$as_dir" && as_dir=. | |
5213506e | 12673 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12674 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12675 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12677 | break 2 |
12678 | fi | |
12679 | done | |
5213506e RW |
12680 | done |
12681 | IFS=$as_save_IFS | |
1c710c3c | 12682 | |
ca9f4b81 AO |
12683 | fi |
12684 | fi | |
1c710c3c | 12685 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12686 | if test -n "$OBJDUMP"; then |
5213506e RW |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12688 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12689 | else |
5213506e RW |
12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12691 | $as_echo "no" >&6; } | |
ca9f4b81 | 12692 | fi |
1c710c3c | 12693 | |
5213506e | 12694 | |
2693c0b0 PB |
12695 | fi |
12696 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12697 | done | |
12698 | ||
12699 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12700 | set dummy objdump | |
12701 | if test $build = $host ; then | |
12702 | OBJDUMP="$2" | |
ca9f4b81 | 12703 | else |
2693c0b0 | 12704 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12705 | fi |
ca9f4b81 AO |
12706 | fi |
12707 | ||
671aa708 NN |
12708 | |
12709 | ||
e4a9a572 IS |
12710 | if test -n "$OTOOL"; then |
12711 | ac_cv_prog_OTOOL=$OTOOL | |
12712 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12713 | OTOOL=$ac_cv_prog_OTOOL | |
12714 | fi | |
12715 | ||
12716 | if test -n "$ac_cv_prog_OTOOL"; then | |
12717 | for ncn_progname in otool; do | |
12718 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12719 | set dummy ${ncn_progname}; ac_word=$2 | |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12721 | $as_echo_n "checking for $ac_word... " >&6; } | |
12722 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12723 | $as_echo_n "(cached) " >&6 | |
12724 | else | |
12725 | if test -n "$OTOOL"; then | |
12726 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12727 | else | |
12728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12729 | for as_dir in $PATH | |
12730 | do | |
12731 | IFS=$as_save_IFS | |
12732 | test -z "$as_dir" && as_dir=. | |
12733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12735 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12737 | break 2 | |
12738 | fi | |
12739 | done | |
12740 | done | |
12741 | IFS=$as_save_IFS | |
12742 | ||
12743 | fi | |
12744 | fi | |
12745 | OTOOL=$ac_cv_prog_OTOOL | |
12746 | if test -n "$OTOOL"; then | |
12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12748 | $as_echo "$OTOOL" >&6; } | |
12749 | else | |
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12751 | $as_echo "no" >&6; } | |
12752 | fi | |
12753 | ||
12754 | ||
12755 | done | |
12756 | fi | |
12757 | ||
12758 | for ncn_progname in otool; do | |
12759 | if test -n "$ncn_tool_prefix"; then | |
12760 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12761 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12763 | $as_echo_n "checking for $ac_word... " >&6; } | |
12764 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12765 | $as_echo_n "(cached) " >&6 | |
12766 | else | |
12767 | if test -n "$OTOOL"; then | |
12768 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12769 | else | |
12770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12771 | for as_dir in $PATH | |
12772 | do | |
12773 | IFS=$as_save_IFS | |
12774 | test -z "$as_dir" && as_dir=. | |
12775 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12777 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
12778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12779 | break 2 | |
12780 | fi | |
12781 | done | |
12782 | done | |
12783 | IFS=$as_save_IFS | |
12784 | ||
12785 | fi | |
12786 | fi | |
12787 | OTOOL=$ac_cv_prog_OTOOL | |
12788 | if test -n "$OTOOL"; then | |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12790 | $as_echo "$OTOOL" >&6; } | |
12791 | else | |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12793 | $as_echo "no" >&6; } | |
12794 | fi | |
12795 | ||
12796 | ||
12797 | fi | |
12798 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12799 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12800 | set dummy ${ncn_progname}; ac_word=$2 | |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12802 | $as_echo_n "checking for $ac_word... " >&6; } | |
12803 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12804 | $as_echo_n "(cached) " >&6 | |
12805 | else | |
12806 | if test -n "$OTOOL"; then | |
12807 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12808 | else | |
12809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12810 | for as_dir in $PATH | |
12811 | do | |
12812 | IFS=$as_save_IFS | |
12813 | test -z "$as_dir" && as_dir=. | |
12814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12815 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12816 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12818 | break 2 | |
12819 | fi | |
12820 | done | |
12821 | done | |
12822 | IFS=$as_save_IFS | |
12823 | ||
12824 | fi | |
12825 | fi | |
12826 | OTOOL=$ac_cv_prog_OTOOL | |
12827 | if test -n "$OTOOL"; then | |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12829 | $as_echo "$OTOOL" >&6; } | |
12830 | else | |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12832 | $as_echo "no" >&6; } | |
12833 | fi | |
12834 | ||
12835 | ||
12836 | fi | |
12837 | test -n "$ac_cv_prog_OTOOL" && break | |
12838 | done | |
12839 | ||
12840 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12841 | set dummy otool | |
12842 | if test $build = $host ; then | |
12843 | OTOOL="$2" | |
12844 | else | |
12845 | OTOOL="${ncn_tool_prefix}$2" | |
12846 | fi | |
12847 | fi | |
12848 | ||
12849 | ||
12850 | ||
e7a82751 RM |
12851 | if test -n "$READELF"; then |
12852 | ac_cv_prog_READELF=$READELF | |
12853 | elif test -n "$ac_cv_prog_READELF"; then | |
12854 | READELF=$ac_cv_prog_READELF | |
12855 | fi | |
12856 | ||
12857 | if test -n "$ac_cv_prog_READELF"; then | |
12858 | for ncn_progname in readelf; do | |
12859 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12860 | set dummy ${ncn_progname}; ac_word=$2 | |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12862 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12863 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12864 | $as_echo_n "(cached) " >&6 |
12865 | else | |
12866 | if test -n "$READELF"; then | |
12867 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12868 | else | |
12869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12870 | for as_dir in $PATH | |
12871 | do | |
12872 | IFS=$as_save_IFS | |
12873 | test -z "$as_dir" && as_dir=. | |
12874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12876 | ac_cv_prog_READELF="${ncn_progname}" |
12877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12878 | break 2 | |
12879 | fi | |
12880 | done | |
12881 | done | |
12882 | IFS=$as_save_IFS | |
12883 | ||
12884 | fi | |
12885 | fi | |
12886 | READELF=$ac_cv_prog_READELF | |
12887 | if test -n "$READELF"; then | |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12889 | $as_echo "$READELF" >&6; } | |
12890 | else | |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12892 | $as_echo "no" >&6; } | |
12893 | fi | |
12894 | ||
12895 | ||
12896 | done | |
12897 | fi | |
12898 | ||
12899 | for ncn_progname in readelf; do | |
12900 | if test -n "$ncn_tool_prefix"; then | |
12901 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12902 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12904 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12905 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12906 | $as_echo_n "(cached) " >&6 |
12907 | else | |
12908 | if test -n "$READELF"; then | |
12909 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12910 | else | |
12911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12912 | for as_dir in $PATH | |
12913 | do | |
12914 | IFS=$as_save_IFS | |
12915 | test -z "$as_dir" && as_dir=. | |
12916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12918 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12920 | break 2 | |
12921 | fi | |
12922 | done | |
12923 | done | |
12924 | IFS=$as_save_IFS | |
12925 | ||
12926 | fi | |
12927 | fi | |
12928 | READELF=$ac_cv_prog_READELF | |
12929 | if test -n "$READELF"; then | |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12931 | $as_echo "$READELF" >&6; } | |
12932 | else | |
12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12934 | $as_echo "no" >&6; } | |
12935 | fi | |
12936 | ||
12937 | ||
12938 | fi | |
12939 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12940 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12941 | set dummy ${ncn_progname}; ac_word=$2 | |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12944 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12945 | $as_echo_n "(cached) " >&6 |
12946 | else | |
12947 | if test -n "$READELF"; then | |
12948 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12949 | else | |
12950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12951 | for as_dir in $PATH | |
12952 | do | |
12953 | IFS=$as_save_IFS | |
12954 | test -z "$as_dir" && as_dir=. | |
12955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12957 | ac_cv_prog_READELF="${ncn_progname}" |
12958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12959 | break 2 | |
12960 | fi | |
12961 | done | |
12962 | done | |
12963 | IFS=$as_save_IFS | |
12964 | ||
12965 | fi | |
12966 | fi | |
12967 | READELF=$ac_cv_prog_READELF | |
12968 | if test -n "$READELF"; then | |
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12970 | $as_echo "$READELF" >&6; } | |
12971 | else | |
12972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12973 | $as_echo "no" >&6; } | |
12974 | fi | |
12975 | ||
12976 | ||
12977 | fi | |
12978 | test -n "$ac_cv_prog_READELF" && break | |
12979 | done | |
12980 | ||
12981 | if test -z "$ac_cv_prog_READELF" ; then | |
12982 | set dummy readelf | |
12983 | if test $build = $host ; then | |
12984 | READELF="$2" | |
12985 | else | |
12986 | READELF="${ncn_tool_prefix}$2" | |
12987 | fi | |
12988 | fi | |
12989 | ||
12990 | ||
12991 | ||
671aa708 NN |
12992 | |
12993 | ||
12994 | ||
5fee5ec3 | 12995 | |
1ed21e23 | 12996 | GDCFLAGS=${GDCFLAGS-${CFLAGS}} |
5fee5ec3 | 12997 | |
126f707e L |
12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12999 | $as_echo_n "checking for -plugin option... " >&6; } | |
13000 | ||
13001 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
13002 | plugin_option= | |
13003 | for plugin in $plugin_names; do | |
13004 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
13005 | if test x$plugin_so = x$plugin; then | |
13006 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
13007 | fi | |
13008 | if test x$plugin_so != x$plugin; then | |
13009 | plugin_option="--plugin $plugin_so" | |
13010 | break | |
13011 | fi | |
13012 | done | |
9c7797a8 L |
13013 | if test -n "$ac_tool_prefix"; then |
13014 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13015 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13017 | $as_echo_n "checking for $ac_word... " >&6; } | |
13018 | if ${ac_cv_prog_AR+:} false; then : | |
13019 | $as_echo_n "(cached) " >&6 | |
13020 | else | |
13021 | if test -n "$AR"; then | |
13022 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13023 | else | |
13024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13025 | for as_dir in $PATH | |
13026 | do | |
13027 | IFS=$as_save_IFS | |
13028 | test -z "$as_dir" && as_dir=. | |
13029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13030 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13031 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
13032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13033 | break 2 | |
13034 | fi | |
13035 | done | |
13036 | done | |
13037 | IFS=$as_save_IFS | |
13038 | ||
13039 | fi | |
13040 | fi | |
13041 | AR=$ac_cv_prog_AR | |
13042 | if test -n "$AR"; then | |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13044 | $as_echo "$AR" >&6; } | |
13045 | else | |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13047 | $as_echo "no" >&6; } | |
13048 | fi | |
13049 | ||
13050 | ||
13051 | fi | |
13052 | if test -z "$ac_cv_prog_AR"; then | |
13053 | ac_ct_AR=$AR | |
13054 | # Extract the first word of "ar", so it can be a program name with args. | |
13055 | set dummy ar; ac_word=$2 | |
13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13057 | $as_echo_n "checking for $ac_word... " >&6; } | |
13058 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
13059 | $as_echo_n "(cached) " >&6 | |
13060 | else | |
13061 | if test -n "$ac_ct_AR"; then | |
13062 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13063 | else | |
13064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13065 | for as_dir in $PATH | |
13066 | do | |
13067 | IFS=$as_save_IFS | |
13068 | test -z "$as_dir" && as_dir=. | |
13069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13070 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13071 | ac_cv_prog_ac_ct_AR="ar" | |
13072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13073 | break 2 | |
13074 | fi | |
13075 | done | |
13076 | done | |
13077 | IFS=$as_save_IFS | |
13078 | ||
13079 | fi | |
13080 | fi | |
13081 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13082 | if test -n "$ac_ct_AR"; then | |
13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13084 | $as_echo "$ac_ct_AR" >&6; } | |
13085 | else | |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13087 | $as_echo "no" >&6; } | |
13088 | fi | |
13089 | ||
13090 | if test "x$ac_ct_AR" = x; then | |
13091 | AR="" | |
13092 | else | |
13093 | case $cross_compiling:$ac_tool_warned in | |
13094 | yes:) | |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13096 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13097 | ac_tool_warned=yes ;; | |
13098 | esac | |
13099 | AR=$ac_ct_AR | |
13100 | fi | |
13101 | else | |
13102 | AR="$ac_cv_prog_AR" | |
13103 | fi | |
13104 | ||
13105 | if test "${AR}" = "" ; then | |
13106 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13107 | fi | |
13108 | touch conftest.c | |
13109 | ${AR} $plugin_option rc conftest.a conftest.c | |
13110 | if test "$?" != 0; then | |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13112 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13113 | plugin_option= | |
13114 | fi | |
13115 | rm -f conftest.* | |
126f707e L |
13116 | if test -n "$plugin_option"; then |
13117 | PLUGIN_OPTION="$plugin_option" | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13119 | $as_echo "$plugin_option" >&6; } | |
13120 | else | |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13122 | $as_echo "no" >&6; } | |
13123 | fi | |
13124 | ||
13125 | AR_PLUGIN_OPTION= | |
13126 | RANLIB_PLUGIN_OPTION= | |
13127 | if test -n "$PLUGIN_OPTION"; then | |
13128 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13129 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13130 | fi | |
13131 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13132 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13133 | fi | |
13134 | fi | |
13135 | ||
13136 | ||
13137 | ||
2abefe3d | 13138 | # Target tools. |
1c710c3c | 13139 | |
5213506e RW |
13140 | # Check whether --with-build-time-tools was given. |
13141 | if test "${with_build_time_tools+set}" = set; then : | |
13142 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
13143 | x/*) ;; |
13144 | *) | |
13145 | with_build_time_tools= | |
5213506e RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13147 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
13148 | ;; |
13149 | esac | |
ca9f4b81 | 13150 | else |
e8b05380 | 13151 | with_build_time_tools= |
5213506e RW |
13152 | fi |
13153 | ||
ca9f4b81 | 13154 | |
278a7a38 AO |
13155 | |
13156 | ||
13157 | if test -n "$CC_FOR_TARGET"; then | |
13158 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13159 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13160 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13161 | fi | |
13162 | ||
13163 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13164 | for ncn_progname in cc gcc; do | |
13165 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13166 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13168 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13169 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13170 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13171 | else |
13172 | if test -n "$CC_FOR_TARGET"; then | |
13173 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13174 | else | |
13175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13176 | for as_dir in $PATH | |
13177 | do | |
13178 | IFS=$as_save_IFS | |
13179 | test -z "$as_dir" && as_dir=. | |
5213506e | 13180 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13182 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 13183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13184 | break 2 |
13185 | fi | |
13186 | done | |
5213506e RW |
13187 | done |
13188 | IFS=$as_save_IFS | |
278a7a38 AO |
13189 | |
13190 | fi | |
13191 | fi | |
13192 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13193 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
13194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13195 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 13196 | else |
5213506e RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13198 | $as_echo "no" >&6; } | |
278a7a38 AO |
13199 | fi |
13200 | ||
5213506e | 13201 | |
278a7a38 AO |
13202 | done |
13203 | fi | |
13204 | ||
13205 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13206 | for ncn_progname in cc gcc; do |
5213506e RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13208 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13209 | if test -x $with_build_time_tools/${ncn_progname}; then |
13210 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13212 | $as_echo "yes" >&6; } | |
72a7ab82 | 13213 | break |
e8b05380 | 13214 | else |
5213506e RW |
13215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13216 | $as_echo "no" >&6; } | |
72a7ab82 AP |
13217 | fi |
13218 | done | |
4de997d1 PB |
13219 | fi |
13220 | ||
e8b05380 PB |
13221 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13222 | for ncn_progname in cc gcc; do | |
13223 | if test -n "$ncn_target_tool_prefix"; then | |
13224 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13225 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13227 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13228 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13229 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13230 | else |
13231 | if test -n "$CC_FOR_TARGET"; then | |
13232 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13233 | else | |
1c710c3c DJ |
13234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13235 | for as_dir in $PATH | |
13236 | do | |
13237 | IFS=$as_save_IFS | |
13238 | test -z "$as_dir" && as_dir=. | |
5213506e | 13239 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13241 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13243 | break 2 |
13244 | fi | |
13245 | done | |
5213506e RW |
13246 | done |
13247 | IFS=$as_save_IFS | |
1c710c3c | 13248 | |
4de997d1 PB |
13249 | fi |
13250 | fi | |
1c710c3c | 13251 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 13252 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13254 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13255 | else |
5213506e RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13257 | $as_echo "no" >&6; } | |
4de997d1 PB |
13258 | fi |
13259 | ||
5213506e | 13260 | |
e8b05380 PB |
13261 | fi |
13262 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13264 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13266 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13267 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13268 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13269 | else |
2693c0b0 PB |
13270 | if test -n "$CC_FOR_TARGET"; then |
13271 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13272 | else |
1c710c3c DJ |
13273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13274 | for as_dir in $PATH | |
13275 | do | |
13276 | IFS=$as_save_IFS | |
13277 | test -z "$as_dir" && as_dir=. | |
5213506e | 13278 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13280 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 13281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13282 | break 2 |
13283 | fi | |
13284 | done | |
5213506e RW |
13285 | done |
13286 | IFS=$as_save_IFS | |
1c710c3c | 13287 | |
4de997d1 PB |
13288 | fi |
13289 | fi | |
1c710c3c | 13290 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 13291 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13293 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13294 | else |
5213506e RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13296 | $as_echo "no" >&6; } | |
4de997d1 | 13297 | fi |
1c710c3c | 13298 | |
5213506e | 13299 | |
e8b05380 PB |
13300 | fi |
13301 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13302 | done | |
13303 | fi | |
1c710c3c | 13304 | |
2693c0b0 PB |
13305 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13306 | set dummy cc gcc | |
13307 | if test $build = $target ; then | |
13308 | CC_FOR_TARGET="$2" | |
4de997d1 | 13309 | else |
2693c0b0 | 13310 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13311 | fi |
1c00b503 PB |
13312 | else |
13313 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
13314 | fi |
13315 | ||
278a7a38 AO |
13316 | |
13317 | ||
13318 | if test -n "$CXX_FOR_TARGET"; then | |
13319 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13320 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13321 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13322 | fi | |
13323 | ||
13324 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13325 | for ncn_progname in c++ g++ cxx gxx; do | |
13326 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13327 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13329 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13330 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13331 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13332 | else |
13333 | if test -n "$CXX_FOR_TARGET"; then | |
13334 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13335 | else | |
13336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13337 | for as_dir in $PATH | |
13338 | do | |
13339 | IFS=$as_save_IFS | |
13340 | test -z "$as_dir" && as_dir=. | |
5213506e | 13341 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13343 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13345 | break 2 |
13346 | fi | |
13347 | done | |
5213506e RW |
13348 | done |
13349 | IFS=$as_save_IFS | |
278a7a38 AO |
13350 | |
13351 | fi | |
13352 | fi | |
13353 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13354 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13356 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13357 | else |
5213506e RW |
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13359 | $as_echo "no" >&6; } | |
278a7a38 AO |
13360 | fi |
13361 | ||
5213506e | 13362 | |
278a7a38 AO |
13363 | done |
13364 | fi | |
13365 | ||
13366 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13367 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13369 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13370 | if test -x $with_build_time_tools/${ncn_progname}; then |
13371 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13373 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13374 | break |
13375 | else | |
5213506e RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13377 | $as_echo "no" >&6; } | |
e8b05380 PB |
13378 | fi |
13379 | done | |
13380 | fi | |
13381 | ||
13382 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13383 | for ncn_progname in c++ g++ cxx gxx; do | |
13384 | if test -n "$ncn_target_tool_prefix"; then | |
13385 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13386 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13388 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13389 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13390 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13391 | else |
13392 | if test -n "$CXX_FOR_TARGET"; then | |
13393 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13394 | else | |
1c710c3c DJ |
13395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13396 | for as_dir in $PATH | |
13397 | do | |
13398 | IFS=$as_save_IFS | |
13399 | test -z "$as_dir" && as_dir=. | |
5213506e | 13400 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13402 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13404 | break 2 |
13405 | fi | |
13406 | done | |
5213506e RW |
13407 | done |
13408 | IFS=$as_save_IFS | |
1c710c3c | 13409 | |
4de997d1 PB |
13410 | fi |
13411 | fi | |
1c710c3c | 13412 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13413 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13415 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13416 | else |
5213506e RW |
13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13418 | $as_echo "no" >&6; } | |
4de997d1 PB |
13419 | fi |
13420 | ||
5213506e | 13421 | |
e8b05380 PB |
13422 | fi |
13423 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13424 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13425 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13427 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13428 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13429 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13430 | else |
2693c0b0 PB |
13431 | if test -n "$CXX_FOR_TARGET"; then |
13432 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13433 | else |
1c710c3c DJ |
13434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13435 | for as_dir in $PATH | |
13436 | do | |
13437 | IFS=$as_save_IFS | |
13438 | test -z "$as_dir" && as_dir=. | |
5213506e | 13439 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13441 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13443 | break 2 |
13444 | fi | |
13445 | done | |
5213506e RW |
13446 | done |
13447 | IFS=$as_save_IFS | |
1c710c3c | 13448 | |
4de997d1 PB |
13449 | fi |
13450 | fi | |
1c710c3c | 13451 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13452 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13454 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13455 | else |
5213506e RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13457 | $as_echo "no" >&6; } | |
4de997d1 | 13458 | fi |
1c710c3c | 13459 | |
5213506e | 13460 | |
e8b05380 PB |
13461 | fi |
13462 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13463 | done | |
13464 | fi | |
1c710c3c | 13465 | |
2693c0b0 PB |
13466 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13467 | set dummy c++ g++ cxx gxx | |
13468 | if test $build = $target ; then | |
13469 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13470 | else |
2693c0b0 | 13471 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13472 | fi |
1c00b503 PB |
13473 | else |
13474 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13475 | fi |
13476 | ||
278a7a38 AO |
13477 | |
13478 | ||
13479 | if test -n "$GCC_FOR_TARGET"; then | |
13480 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13481 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13482 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13483 | fi | |
13484 | ||
13485 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13486 | for ncn_progname in gcc; do | |
13487 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13488 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13490 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13491 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13492 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13493 | else |
13494 | if test -n "$GCC_FOR_TARGET"; then | |
13495 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13496 | else | |
13497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13498 | for as_dir in $PATH | |
13499 | do | |
13500 | IFS=$as_save_IFS | |
13501 | test -z "$as_dir" && as_dir=. | |
5213506e | 13502 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13503 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13504 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13506 | break 2 |
13507 | fi | |
13508 | done | |
5213506e RW |
13509 | done |
13510 | IFS=$as_save_IFS | |
278a7a38 AO |
13511 | |
13512 | fi | |
13513 | fi | |
13514 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13515 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13517 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13518 | else |
5213506e RW |
13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13520 | $as_echo "no" >&6; } | |
278a7a38 AO |
13521 | fi |
13522 | ||
5213506e | 13523 | |
278a7a38 AO |
13524 | done |
13525 | fi | |
13526 | ||
13527 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13528 | for ncn_progname in gcc; do |
5213506e RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13530 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13531 | if test -x $with_build_time_tools/${ncn_progname}; then |
13532 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13534 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13535 | break |
13536 | else | |
5213506e RW |
13537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13538 | $as_echo "no" >&6; } | |
e8b05380 PB |
13539 | fi |
13540 | done | |
13541 | fi | |
13542 | ||
13543 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13544 | for ncn_progname in gcc; do | |
13545 | if test -n "$ncn_target_tool_prefix"; then | |
13546 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13547 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13549 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13550 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13551 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13552 | else |
e8b05380 PB |
13553 | if test -n "$GCC_FOR_TARGET"; then |
13554 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13555 | else |
1c710c3c DJ |
13556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13557 | for as_dir in $PATH | |
13558 | do | |
13559 | IFS=$as_save_IFS | |
13560 | test -z "$as_dir" && as_dir=. | |
5213506e | 13561 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13563 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13565 | break 2 |
13566 | fi | |
13567 | done | |
5213506e RW |
13568 | done |
13569 | IFS=$as_save_IFS | |
1c710c3c | 13570 | |
ca9f4b81 AO |
13571 | fi |
13572 | fi | |
1c710c3c | 13573 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13574 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13576 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13577 | else |
5213506e RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13579 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13580 | fi |
13581 | ||
5213506e | 13582 | |
e8b05380 PB |
13583 | fi |
13584 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13586 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13588 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13589 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13590 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13591 | else |
e8b05380 PB |
13592 | if test -n "$GCC_FOR_TARGET"; then |
13593 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13594 | else |
1c710c3c DJ |
13595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13596 | for as_dir in $PATH | |
13597 | do | |
13598 | IFS=$as_save_IFS | |
13599 | test -z "$as_dir" && as_dir=. | |
5213506e | 13600 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13602 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13604 | break 2 |
13605 | fi | |
13606 | done | |
5213506e RW |
13607 | done |
13608 | IFS=$as_save_IFS | |
1c710c3c | 13609 | |
ca9f4b81 AO |
13610 | fi |
13611 | fi | |
1c710c3c | 13612 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13613 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13615 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13616 | else |
5213506e RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13618 | $as_echo "no" >&6; } | |
ca9f4b81 | 13619 | fi |
1c710c3c | 13620 | |
5213506e | 13621 | |
e8b05380 PB |
13622 | fi |
13623 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13624 | done | |
13625 | fi | |
1c710c3c | 13626 | |
e8b05380 PB |
13627 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13628 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13629 | else |
13630 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13631 | fi |
13632 | ||
278a7a38 AO |
13633 | |
13634 | ||
278a7a38 AO |
13635 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13636 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13637 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13638 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13639 | fi |
13640 | ||
278a7a38 AO |
13641 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13642 | for ncn_progname in gfortran; do | |
13643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13644 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13646 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13647 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13648 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13649 | else |
278a7a38 AO |
13650 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13651 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13652 | else |
1c710c3c DJ |
13653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13654 | for as_dir in $PATH | |
13655 | do | |
13656 | IFS=$as_save_IFS | |
13657 | test -z "$as_dir" && as_dir=. | |
5213506e | 13658 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13660 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13662 | break 2 |
13663 | fi | |
13664 | done | |
5213506e RW |
13665 | done |
13666 | IFS=$as_save_IFS | |
1c710c3c | 13667 | |
e8b05380 PB |
13668 | fi |
13669 | fi | |
278a7a38 AO |
13670 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13671 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13673 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13674 | else |
5213506e RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13676 | $as_echo "no" >&6; } | |
e8b05380 | 13677 | fi |
1c710c3c | 13678 | |
5213506e | 13679 | |
e8b05380 PB |
13680 | done |
13681 | fi | |
1c710c3c | 13682 | |
278a7a38 | 13683 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13684 | for ncn_progname in gfortran; do |
5213506e RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13686 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13687 | if test -x $with_build_time_tools/${ncn_progname}; then |
13688 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13690 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13691 | break |
13692 | else | |
5213506e RW |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13694 | $as_echo "no" >&6; } | |
e8b05380 PB |
13695 | fi |
13696 | done | |
13697 | fi | |
13698 | ||
13699 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13700 | for ncn_progname in gfortran; do | |
13701 | if test -n "$ncn_target_tool_prefix"; then | |
13702 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13703 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13705 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13706 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13707 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13708 | else |
13709 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13710 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13711 | else | |
13712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13713 | for as_dir in $PATH | |
13714 | do | |
13715 | IFS=$as_save_IFS | |
13716 | test -z "$as_dir" && as_dir=. | |
5213506e | 13717 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13719 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13721 | break 2 |
13722 | fi | |
13723 | done | |
5213506e RW |
13724 | done |
13725 | IFS=$as_save_IFS | |
1c710c3c | 13726 | |
e8b05380 PB |
13727 | fi |
13728 | fi | |
1c710c3c | 13729 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13730 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13732 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13733 | else |
5213506e RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13735 | $as_echo "no" >&6; } | |
e8b05380 PB |
13736 | fi |
13737 | ||
5213506e | 13738 | |
e8b05380 PB |
13739 | fi |
13740 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13741 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13742 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13744 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13745 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13746 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13747 | else |
13748 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13749 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13750 | else | |
1c710c3c DJ |
13751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13752 | for as_dir in $PATH | |
13753 | do | |
13754 | IFS=$as_save_IFS | |
13755 | test -z "$as_dir" && as_dir=. | |
5213506e | 13756 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13758 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13760 | break 2 |
13761 | fi | |
13762 | done | |
5213506e RW |
13763 | done |
13764 | IFS=$as_save_IFS | |
1c710c3c | 13765 | |
e8b05380 PB |
13766 | fi |
13767 | fi | |
1c710c3c | 13768 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13769 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13771 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13772 | else |
5213506e RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13774 | $as_echo "no" >&6; } | |
e8b05380 | 13775 | fi |
1c710c3c | 13776 | |
5213506e | 13777 | |
e8b05380 PB |
13778 | fi |
13779 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13780 | done | |
13781 | fi | |
1c710c3c | 13782 | |
e8b05380 PB |
13783 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13784 | set dummy gfortran | |
2693c0b0 | 13785 | if test $build = $target ; then |
e8b05380 | 13786 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13787 | else |
e8b05380 PB |
13788 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13789 | fi | |
1c00b503 PB |
13790 | else |
13791 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13792 | fi |
13793 | ||
13794 | ||
13795 | ||
632e2a07 ILT |
13796 | if test -n "$GOC_FOR_TARGET"; then |
13797 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13798 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13799 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13800 | fi | |
13801 | ||
13802 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13803 | for ncn_progname in gccgo; do | |
13804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13805 | set dummy ${ncn_progname}; ac_word=$2 | |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13807 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13808 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13809 | $as_echo_n "(cached) " >&6 |
13810 | else | |
13811 | if test -n "$GOC_FOR_TARGET"; then | |
13812 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13813 | else | |
13814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13815 | for as_dir in $PATH | |
13816 | do | |
13817 | IFS=$as_save_IFS | |
13818 | test -z "$as_dir" && as_dir=. | |
13819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13821 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13823 | break 2 | |
13824 | fi | |
13825 | done | |
13826 | done | |
13827 | IFS=$as_save_IFS | |
13828 | ||
13829 | fi | |
13830 | fi | |
13831 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13832 | if test -n "$GOC_FOR_TARGET"; then | |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13834 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13835 | else | |
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13837 | $as_echo "no" >&6; } | |
13838 | fi | |
13839 | ||
13840 | ||
13841 | done | |
13842 | fi | |
13843 | ||
13844 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13845 | for ncn_progname in gccgo; do | |
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13847 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13848 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13849 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13851 | $as_echo "yes" >&6; } | |
13852 | break | |
13853 | else | |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13855 | $as_echo "no" >&6; } | |
13856 | fi | |
13857 | done | |
13858 | fi | |
13859 | ||
13860 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13861 | for ncn_progname in gccgo; do | |
13862 | if test -n "$ncn_target_tool_prefix"; then | |
13863 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13864 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13866 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13867 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13868 | $as_echo_n "(cached) " >&6 |
13869 | else | |
13870 | if test -n "$GOC_FOR_TARGET"; then | |
13871 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13872 | else | |
13873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13874 | for as_dir in $PATH | |
13875 | do | |
13876 | IFS=$as_save_IFS | |
13877 | test -z "$as_dir" && as_dir=. | |
13878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13880 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13882 | break 2 | |
13883 | fi | |
13884 | done | |
13885 | done | |
13886 | IFS=$as_save_IFS | |
13887 | ||
13888 | fi | |
13889 | fi | |
13890 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13891 | if test -n "$GOC_FOR_TARGET"; then | |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13893 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13894 | else | |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13896 | $as_echo "no" >&6; } | |
13897 | fi | |
13898 | ||
13899 | ||
13900 | fi | |
13901 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13902 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13903 | set dummy ${ncn_progname}; ac_word=$2 | |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13905 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13906 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13907 | $as_echo_n "(cached) " >&6 |
13908 | else | |
13909 | if test -n "$GOC_FOR_TARGET"; then | |
13910 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13911 | else | |
13912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13913 | for as_dir in $PATH | |
13914 | do | |
13915 | IFS=$as_save_IFS | |
13916 | test -z "$as_dir" && as_dir=. | |
13917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13919 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13921 | break 2 | |
13922 | fi | |
13923 | done | |
13924 | done | |
13925 | IFS=$as_save_IFS | |
13926 | ||
13927 | fi | |
13928 | fi | |
13929 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13930 | if test -n "$GOC_FOR_TARGET"; then | |
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13932 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13933 | else | |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13935 | $as_echo "no" >&6; } | |
13936 | fi | |
13937 | ||
13938 | ||
13939 | fi | |
13940 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13941 | done | |
13942 | fi | |
13943 | ||
13944 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13945 | set dummy gccgo | |
13946 | if test $build = $target ; then | |
13947 | GOC_FOR_TARGET="$2" | |
13948 | else | |
13949 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13950 | fi | |
13951 | else | |
13952 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13953 | fi | |
13954 | ||
13955 | ||
13956 | ||
b4c522fa IB |
13957 | if test -n "$GDC_FOR_TARGET"; then |
13958 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13959 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13960 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13961 | fi | |
13962 | ||
13963 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13964 | for ncn_progname in gdc; do | |
13965 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13966 | set dummy ${ncn_progname}; ac_word=$2 | |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13968 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13969 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
13970 | $as_echo_n "(cached) " >&6 |
13971 | else | |
13972 | if test -n "$GDC_FOR_TARGET"; then | |
13973 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
13974 | else | |
13975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13976 | for as_dir in $PATH | |
13977 | do | |
13978 | IFS=$as_save_IFS | |
13979 | test -z "$as_dir" && as_dir=. | |
13980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
13982 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
13983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13984 | break 2 | |
13985 | fi | |
13986 | done | |
13987 | done | |
13988 | IFS=$as_save_IFS | |
13989 | ||
13990 | fi | |
13991 | fi | |
13992 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
13993 | if test -n "$GDC_FOR_TARGET"; then | |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13995 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
13996 | else | |
13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13998 | $as_echo "no" >&6; } | |
13999 | fi | |
14000 | ||
14001 | ||
14002 | done | |
14003 | fi | |
14004 | ||
14005 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14006 | for ncn_progname in gdc; do | |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14008 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14009 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14010 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14012 | $as_echo "yes" >&6; } | |
14013 | break | |
14014 | else | |
14015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14016 | $as_echo "no" >&6; } | |
14017 | fi | |
14018 | done | |
14019 | fi | |
14020 | ||
14021 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14022 | for ncn_progname in gdc; do | |
14023 | if test -n "$ncn_target_tool_prefix"; then | |
14024 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14025 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14027 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14028 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14029 | $as_echo_n "(cached) " >&6 |
14030 | else | |
14031 | if test -n "$GDC_FOR_TARGET"; then | |
14032 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14033 | else | |
14034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14035 | for as_dir in $PATH | |
14036 | do | |
14037 | IFS=$as_save_IFS | |
14038 | test -z "$as_dir" && as_dir=. | |
14039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14041 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14043 | break 2 | |
14044 | fi | |
14045 | done | |
14046 | done | |
14047 | IFS=$as_save_IFS | |
14048 | ||
14049 | fi | |
14050 | fi | |
14051 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14052 | if test -n "$GDC_FOR_TARGET"; then | |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14054 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14055 | else | |
14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14057 | $as_echo "no" >&6; } | |
14058 | fi | |
14059 | ||
14060 | ||
14061 | fi | |
14062 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
14063 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14064 | set dummy ${ncn_progname}; ac_word=$2 | |
14065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14066 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14067 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14068 | $as_echo_n "(cached) " >&6 |
14069 | else | |
14070 | if test -n "$GDC_FOR_TARGET"; then | |
14071 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14072 | else | |
14073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14074 | for as_dir in $PATH | |
14075 | do | |
14076 | IFS=$as_save_IFS | |
14077 | test -z "$as_dir" && as_dir=. | |
14078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14080 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
14081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14082 | break 2 | |
14083 | fi | |
14084 | done | |
14085 | done | |
14086 | IFS=$as_save_IFS | |
14087 | ||
14088 | fi | |
14089 | fi | |
14090 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14091 | if test -n "$GDC_FOR_TARGET"; then | |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14093 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14094 | else | |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14096 | $as_echo "no" >&6; } | |
14097 | fi | |
14098 | ||
14099 | ||
14100 | fi | |
14101 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
14102 | done | |
14103 | fi | |
14104 | ||
14105 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
14106 | set dummy gdc | |
14107 | if test $build = $target ; then | |
14108 | GDC_FOR_TARGET="$2" | |
14109 | else | |
14110 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14111 | fi | |
14112 | else | |
14113 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
14114 | fi | |
14115 | ||
14116 | ||
14117 | ||
1eee94d3 GM |
14118 | if test -n "$GM2_FOR_TARGET"; then |
14119 | ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET | |
14120 | elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14121 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14122 | fi | |
14123 | ||
14124 | if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14125 | for ncn_progname in gm2; do | |
14126 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14127 | set dummy ${ncn_progname}; ac_word=$2 | |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14129 | $as_echo_n "checking for $ac_word... " >&6; } | |
14130 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14131 | $as_echo_n "(cached) " >&6 | |
14132 | else | |
14133 | if test -n "$GM2_FOR_TARGET"; then | |
14134 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14135 | else | |
14136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14137 | for as_dir in $PATH | |
14138 | do | |
14139 | IFS=$as_save_IFS | |
14140 | test -z "$as_dir" && as_dir=. | |
14141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14143 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14145 | break 2 | |
14146 | fi | |
14147 | done | |
14148 | done | |
14149 | IFS=$as_save_IFS | |
14150 | ||
14151 | fi | |
14152 | fi | |
14153 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14154 | if test -n "$GM2_FOR_TARGET"; then | |
14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14156 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14157 | else | |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14159 | $as_echo "no" >&6; } | |
14160 | fi | |
14161 | ||
14162 | ||
14163 | done | |
14164 | fi | |
14165 | ||
14166 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14167 | for ncn_progname in gm2; do | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14169 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14170 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14171 | ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14173 | $as_echo "yes" >&6; } | |
14174 | break | |
14175 | else | |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14177 | $as_echo "no" >&6; } | |
14178 | fi | |
14179 | done | |
14180 | fi | |
14181 | ||
14182 | if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14183 | for ncn_progname in gm2; do | |
14184 | if test -n "$ncn_target_tool_prefix"; then | |
14185 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14186 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14188 | $as_echo_n "checking for $ac_word... " >&6; } | |
14189 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14190 | $as_echo_n "(cached) " >&6 | |
14191 | else | |
14192 | if test -n "$GM2_FOR_TARGET"; then | |
14193 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14194 | else | |
14195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14196 | for as_dir in $PATH | |
14197 | do | |
14198 | IFS=$as_save_IFS | |
14199 | test -z "$as_dir" && as_dir=. | |
14200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14202 | ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14204 | break 2 | |
14205 | fi | |
14206 | done | |
14207 | done | |
14208 | IFS=$as_save_IFS | |
14209 | ||
14210 | fi | |
14211 | fi | |
14212 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14213 | if test -n "$GM2_FOR_TARGET"; then | |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14215 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14216 | else | |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14218 | $as_echo "no" >&6; } | |
14219 | fi | |
14220 | ||
14221 | ||
14222 | fi | |
14223 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then | |
14224 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14225 | set dummy ${ncn_progname}; ac_word=$2 | |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14227 | $as_echo_n "checking for $ac_word... " >&6; } | |
14228 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14229 | $as_echo_n "(cached) " >&6 | |
14230 | else | |
14231 | if test -n "$GM2_FOR_TARGET"; then | |
14232 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14233 | else | |
14234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14235 | for as_dir in $PATH | |
14236 | do | |
14237 | IFS=$as_save_IFS | |
14238 | test -z "$as_dir" && as_dir=. | |
14239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14241 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14243 | break 2 | |
14244 | fi | |
14245 | done | |
14246 | done | |
14247 | IFS=$as_save_IFS | |
14248 | ||
14249 | fi | |
14250 | fi | |
14251 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14252 | if test -n "$GM2_FOR_TARGET"; then | |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14254 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14255 | else | |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14257 | $as_echo "no" >&6; } | |
14258 | fi | |
14259 | ||
14260 | ||
14261 | fi | |
14262 | test -n "$ac_cv_prog_GM2_FOR_TARGET" && break | |
14263 | done | |
14264 | fi | |
14265 | ||
14266 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then | |
14267 | set dummy gm2 | |
14268 | if test $build = $target ; then | |
14269 | GM2_FOR_TARGET="$2" | |
14270 | else | |
14271 | GM2_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14272 | fi | |
14273 | else | |
14274 | GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET" | |
14275 | fi | |
14276 | ||
14277 | ||
14278 | ||
e8b05380 PB |
14279 | cat > conftest.c << \EOF |
14280 | #ifdef __GNUC__ | |
14281 | gcc_yay; | |
14282 | #endif | |
14283 | EOF | |
14284 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14285 | have_gcc_for_target=yes | |
14286 | else | |
14287 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
14288 | have_gcc_for_target=no | |
14289 | fi | |
14290 | rm conftest.c | |
14291 | ||
14292 | ||
14293 | ||
14294 | ||
14295 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
14296 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14298 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14299 | if test -x $with_build_time_tools/ar; then |
14300 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14301 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14303 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 14304 | else |
5213506e RW |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14306 | $as_echo "no" >&6; } | |
d1f8db0c | 14307 | fi |
e8b05380 PB |
14308 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14309 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
14310 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14311 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
14312 | fi |
14313 | fi | |
3e19841a | 14314 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14315 | # Extract the first word of "ar", so it can be a program name with args. |
14316 | set dummy ar; ac_word=$2 | |
5213506e RW |
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14318 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14319 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 14320 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14321 | else |
1c710c3c DJ |
14322 | case $AR_FOR_TARGET in |
14323 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14324 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14325 | ;; | |
e8b05380 | 14326 | *) |
1c710c3c DJ |
14327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14328 | for as_dir in $gcc_cv_tool_dirs | |
14329 | do | |
14330 | IFS=$as_save_IFS | |
14331 | test -z "$as_dir" && as_dir=. | |
5213506e | 14332 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14333 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14334 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14335 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14336 | break 2 |
14337 | fi | |
14338 | done | |
5213506e RW |
14339 | done |
14340 | IFS=$as_save_IFS | |
1c710c3c | 14341 | |
e8b05380 PB |
14342 | ;; |
14343 | esac | |
14344 | fi | |
1c710c3c | 14345 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 14346 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14348 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14349 | else |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14351 | $as_echo "no" >&6; } | |
4de997d1 PB |
14352 | fi |
14353 | ||
5213506e | 14354 | |
e8b05380 PB |
14355 | fi |
14356 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
14357 | |
14358 | ||
14359 | if test -n "$AR_FOR_TARGET"; then | |
14360 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14361 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14362 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14363 | fi | |
14364 | ||
14365 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14366 | for ncn_progname in ar; do | |
14367 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14368 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14370 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14371 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14372 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14373 | else |
14374 | if test -n "$AR_FOR_TARGET"; then | |
14375 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14376 | else | |
14377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14378 | for as_dir in $PATH | |
14379 | do | |
14380 | IFS=$as_save_IFS | |
14381 | test -z "$as_dir" && as_dir=. | |
5213506e | 14382 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14384 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14386 | break 2 |
14387 | fi | |
14388 | done | |
5213506e RW |
14389 | done |
14390 | IFS=$as_save_IFS | |
278a7a38 AO |
14391 | |
14392 | fi | |
14393 | fi | |
14394 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14395 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14397 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 14398 | else |
5213506e RW |
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14400 | $as_echo "no" >&6; } | |
278a7a38 AO |
14401 | fi |
14402 | ||
5213506e | 14403 | |
278a7a38 AO |
14404 | done |
14405 | fi | |
14406 | ||
14407 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14408 | for ncn_progname in ar; do |
5213506e RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14410 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14411 | if test -x $with_build_time_tools/${ncn_progname}; then |
14412 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14414 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14415 | break |
14416 | else | |
5213506e RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14418 | $as_echo "no" >&6; } | |
e8b05380 PB |
14419 | fi |
14420 | done | |
14421 | fi | |
14422 | ||
14423 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
14424 | for ncn_progname in ar; do | |
14425 | if test -n "$ncn_target_tool_prefix"; then | |
14426 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14427 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14429 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14430 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14431 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14432 | else |
e8b05380 PB |
14433 | if test -n "$AR_FOR_TARGET"; then |
14434 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14435 | else |
1c710c3c DJ |
14436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14437 | for as_dir in $PATH | |
14438 | do | |
14439 | IFS=$as_save_IFS | |
14440 | test -z "$as_dir" && as_dir=. | |
5213506e | 14441 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14443 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14445 | break 2 |
14446 | fi | |
14447 | done | |
5213506e RW |
14448 | done |
14449 | IFS=$as_save_IFS | |
1c710c3c | 14450 | |
4de997d1 PB |
14451 | fi |
14452 | fi | |
1c710c3c | 14453 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14454 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14456 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 14457 | else |
5213506e RW |
14458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14459 | $as_echo "no" >&6; } | |
4de997d1 PB |
14460 | fi |
14461 | ||
5213506e | 14462 | |
e8b05380 PB |
14463 | fi |
14464 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14466 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14469 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14470 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14471 | else |
14472 | if test -n "$AR_FOR_TARGET"; then | |
14473 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14474 | else | |
1c710c3c DJ |
14475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14476 | for as_dir in $PATH | |
14477 | do | |
14478 | IFS=$as_save_IFS | |
14479 | test -z "$as_dir" && as_dir=. | |
5213506e | 14480 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14482 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14484 | break 2 |
14485 | fi | |
14486 | done | |
5213506e RW |
14487 | done |
14488 | IFS=$as_save_IFS | |
1c710c3c | 14489 | |
e8b05380 PB |
14490 | fi |
14491 | fi | |
1c710c3c | 14492 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14493 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14495 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14496 | else |
5213506e RW |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14498 | $as_echo "no" >&6; } | |
e8b05380 | 14499 | fi |
1c710c3c | 14500 | |
5213506e | 14501 | |
e8b05380 PB |
14502 | fi |
14503 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14504 | done | |
14505 | fi | |
1c710c3c | 14506 | |
e8b05380 PB |
14507 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14508 | set dummy ar | |
14509 | if test $build = $target ; then | |
14510 | AR_FOR_TARGET="$2" | |
14511 | else | |
14512 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14513 | fi |
1c00b503 PB |
14514 | else |
14515 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14516 | fi |
14517 | ||
d1f8db0c PB |
14518 | else |
14519 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14520 | fi |
14521 | ||
14522 | ||
14523 | ||
14524 | ||
14525 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14526 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14528 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14529 | if test -x $with_build_time_tools/as; then |
14530 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14531 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14533 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14534 | else |
5213506e RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14536 | $as_echo "no" >&6; } | |
d1f8db0c | 14537 | fi |
e8b05380 PB |
14538 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14539 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14540 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14541 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14542 | fi |
14543 | fi | |
3e19841a | 14544 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14545 | # Extract the first word of "as", so it can be a program name with args. |
14546 | set dummy as; ac_word=$2 | |
5213506e RW |
14547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14548 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14549 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14550 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14551 | else |
1c710c3c DJ |
14552 | case $AS_FOR_TARGET in |
14553 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14554 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14555 | ;; | |
e8b05380 | 14556 | *) |
1c710c3c DJ |
14557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14558 | for as_dir in $gcc_cv_tool_dirs | |
14559 | do | |
14560 | IFS=$as_save_IFS | |
14561 | test -z "$as_dir" && as_dir=. | |
5213506e | 14562 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14563 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14564 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14566 | break 2 |
14567 | fi | |
14568 | done | |
5213506e RW |
14569 | done |
14570 | IFS=$as_save_IFS | |
1c710c3c | 14571 | |
e8b05380 PB |
14572 | ;; |
14573 | esac | |
14574 | fi | |
1c710c3c | 14575 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14576 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14578 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14579 | else |
5213506e RW |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14581 | $as_echo "no" >&6; } | |
e8b05380 PB |
14582 | fi |
14583 | ||
5213506e | 14584 | |
e8b05380 PB |
14585 | fi |
14586 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14587 | |
14588 | ||
14589 | if test -n "$AS_FOR_TARGET"; then | |
14590 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14591 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14592 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14593 | fi | |
14594 | ||
14595 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14596 | for ncn_progname in as; do | |
14597 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14598 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14600 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14601 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14602 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14603 | else |
14604 | if test -n "$AS_FOR_TARGET"; then | |
14605 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14606 | else | |
14607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14608 | for as_dir in $PATH | |
14609 | do | |
14610 | IFS=$as_save_IFS | |
14611 | test -z "$as_dir" && as_dir=. | |
5213506e | 14612 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14614 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14616 | break 2 |
14617 | fi | |
14618 | done | |
5213506e RW |
14619 | done |
14620 | IFS=$as_save_IFS | |
278a7a38 AO |
14621 | |
14622 | fi | |
14623 | fi | |
14624 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14625 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14627 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14628 | else |
5213506e RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14630 | $as_echo "no" >&6; } | |
278a7a38 AO |
14631 | fi |
14632 | ||
5213506e | 14633 | |
278a7a38 AO |
14634 | done |
14635 | fi | |
14636 | ||
14637 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14638 | for ncn_progname in as; do |
5213506e RW |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14640 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14641 | if test -x $with_build_time_tools/${ncn_progname}; then |
14642 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14644 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14645 | break |
14646 | else | |
5213506e RW |
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14648 | $as_echo "no" >&6; } | |
e8b05380 PB |
14649 | fi |
14650 | done | |
14651 | fi | |
14652 | ||
14653 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14654 | for ncn_progname in as; do | |
14655 | if test -n "$ncn_target_tool_prefix"; then | |
14656 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14657 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14659 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14660 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14661 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14662 | else |
14663 | if test -n "$AS_FOR_TARGET"; then | |
14664 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14665 | else | |
1c710c3c DJ |
14666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14667 | for as_dir in $PATH | |
14668 | do | |
14669 | IFS=$as_save_IFS | |
14670 | test -z "$as_dir" && as_dir=. | |
5213506e | 14671 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14673 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14675 | break 2 |
14676 | fi | |
14677 | done | |
5213506e RW |
14678 | done |
14679 | IFS=$as_save_IFS | |
1c710c3c | 14680 | |
e8b05380 PB |
14681 | fi |
14682 | fi | |
1c710c3c | 14683 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14684 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14686 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14687 | else |
5213506e RW |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14689 | $as_echo "no" >&6; } | |
e8b05380 PB |
14690 | fi |
14691 | ||
5213506e | 14692 | |
e8b05380 PB |
14693 | fi |
14694 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14695 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14696 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14698 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14699 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14700 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14701 | else |
e8b05380 PB |
14702 | if test -n "$AS_FOR_TARGET"; then |
14703 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14704 | else |
1c710c3c DJ |
14705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14706 | for as_dir in $PATH | |
14707 | do | |
14708 | IFS=$as_save_IFS | |
14709 | test -z "$as_dir" && as_dir=. | |
5213506e | 14710 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14712 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14714 | break 2 |
14715 | fi | |
14716 | done | |
5213506e RW |
14717 | done |
14718 | IFS=$as_save_IFS | |
1c710c3c | 14719 | |
4de997d1 PB |
14720 | fi |
14721 | fi | |
1c710c3c | 14722 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14723 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14725 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14726 | else |
5213506e RW |
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14728 | $as_echo "no" >&6; } | |
4de997d1 | 14729 | fi |
1c710c3c | 14730 | |
5213506e | 14731 | |
e8b05380 PB |
14732 | fi |
14733 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14734 | done | |
14735 | fi | |
1c710c3c | 14736 | |
e8b05380 PB |
14737 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14738 | set dummy as | |
14739 | if test $build = $target ; then | |
14740 | AS_FOR_TARGET="$2" | |
14741 | else | |
14742 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14743 | fi |
1c00b503 PB |
14744 | else |
14745 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14746 | fi |
2693c0b0 | 14747 | |
d1f8db0c PB |
14748 | else |
14749 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14750 | fi |
14751 | ||
e8b05380 PB |
14752 | |
14753 | ||
14754 | ||
14755 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14756 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14758 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14759 | if test -x $with_build_time_tools/dlltool; then |
14760 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14761 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14763 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14764 | else |
5213506e RW |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14766 | $as_echo "no" >&6; } | |
d1f8db0c | 14767 | fi |
e8b05380 PB |
14768 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14769 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14770 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14771 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14772 | fi |
14773 | fi | |
3e19841a | 14774 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14775 | # Extract the first word of "dlltool", so it can be a program name with args. |
14776 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14778 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14779 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14780 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14781 | else |
1c710c3c DJ |
14782 | case $DLLTOOL_FOR_TARGET in |
14783 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14784 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14785 | ;; | |
e8b05380 | 14786 | *) |
1c710c3c DJ |
14787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14788 | for as_dir in $gcc_cv_tool_dirs | |
14789 | do | |
14790 | IFS=$as_save_IFS | |
14791 | test -z "$as_dir" && as_dir=. | |
5213506e | 14792 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14794 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14796 | break 2 |
14797 | fi | |
14798 | done | |
5213506e RW |
14799 | done |
14800 | IFS=$as_save_IFS | |
1c710c3c | 14801 | |
e8b05380 PB |
14802 | ;; |
14803 | esac | |
4de997d1 | 14804 | fi |
1c710c3c | 14805 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14806 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14808 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14809 | else |
5213506e RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14811 | $as_echo "no" >&6; } | |
4de997d1 PB |
14812 | fi |
14813 | ||
5213506e | 14814 | |
e8b05380 PB |
14815 | fi |
14816 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14817 | |
14818 | ||
14819 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14820 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14821 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14822 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14823 | fi | |
14824 | ||
14825 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14826 | for ncn_progname in dlltool; do | |
14827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14828 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14830 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14831 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14832 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14833 | else |
14834 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14835 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14836 | else | |
14837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14838 | for as_dir in $PATH | |
14839 | do | |
14840 | IFS=$as_save_IFS | |
14841 | test -z "$as_dir" && as_dir=. | |
5213506e | 14842 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14844 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14846 | break 2 |
14847 | fi | |
14848 | done | |
5213506e RW |
14849 | done |
14850 | IFS=$as_save_IFS | |
278a7a38 AO |
14851 | |
14852 | fi | |
14853 | fi | |
14854 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14855 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14857 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14858 | else |
5213506e RW |
14859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14860 | $as_echo "no" >&6; } | |
278a7a38 AO |
14861 | fi |
14862 | ||
5213506e | 14863 | |
278a7a38 AO |
14864 | done |
14865 | fi | |
14866 | ||
14867 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14868 | for ncn_progname in dlltool; do |
5213506e RW |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14870 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14871 | if test -x $with_build_time_tools/${ncn_progname}; then |
14872 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14874 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14875 | break |
14876 | else | |
5213506e RW |
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14878 | $as_echo "no" >&6; } | |
e8b05380 PB |
14879 | fi |
14880 | done | |
14881 | fi | |
14882 | ||
14883 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14884 | for ncn_progname in dlltool; do | |
14885 | if test -n "$ncn_target_tool_prefix"; then | |
14886 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14887 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14889 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14890 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14891 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14892 | else |
e8b05380 PB |
14893 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14894 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14895 | else |
1c710c3c DJ |
14896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14897 | for as_dir in $PATH | |
14898 | do | |
14899 | IFS=$as_save_IFS | |
14900 | test -z "$as_dir" && as_dir=. | |
5213506e | 14901 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14903 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14905 | break 2 |
14906 | fi | |
14907 | done | |
5213506e RW |
14908 | done |
14909 | IFS=$as_save_IFS | |
1c710c3c | 14910 | |
4de997d1 PB |
14911 | fi |
14912 | fi | |
1c710c3c | 14913 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14914 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14916 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14917 | else |
5213506e RW |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14919 | $as_echo "no" >&6; } | |
4de997d1 | 14920 | fi |
4de997d1 | 14921 | |
5213506e | 14922 | |
e8b05380 PB |
14923 | fi |
14924 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14926 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14928 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14929 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14930 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14931 | else |
e8b05380 PB |
14932 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14933 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14934 | else |
1c710c3c DJ |
14935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14936 | for as_dir in $PATH | |
14937 | do | |
14938 | IFS=$as_save_IFS | |
14939 | test -z "$as_dir" && as_dir=. | |
5213506e | 14940 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14942 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14944 | break 2 |
14945 | fi | |
14946 | done | |
5213506e RW |
14947 | done |
14948 | IFS=$as_save_IFS | |
1c710c3c | 14949 | |
4de997d1 PB |
14950 | fi |
14951 | fi | |
1c710c3c | 14952 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14953 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14955 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14956 | else |
5213506e RW |
14957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14958 | $as_echo "no" >&6; } | |
4de997d1 | 14959 | fi |
1c710c3c | 14960 | |
5213506e | 14961 | |
e8b05380 PB |
14962 | fi |
14963 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
14964 | done | |
14965 | fi | |
1c710c3c | 14966 | |
e8b05380 PB |
14967 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
14968 | set dummy dlltool | |
14969 | if test $build = $target ; then | |
14970 | DLLTOOL_FOR_TARGET="$2" | |
14971 | else | |
14972 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14973 | fi | |
1c00b503 PB |
14974 | else |
14975 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
14976 | fi |
14977 | ||
d1f8db0c PB |
14978 | else |
14979 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14980 | fi |
14981 | ||
4de997d1 | 14982 | |
e8b05380 PB |
14983 | |
14984 | ||
3b5e8ee4 IS |
14985 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
14986 | if test -n "$with_build_time_tools"; then | |
14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14988 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14989 | if test -x $with_build_time_tools/dsymutil; then | |
14990 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14991 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14993 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14994 | else | |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14996 | $as_echo "no" >&6; } | |
14997 | fi | |
14998 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14999 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
15000 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
15001 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15002 | fi | |
15003 | fi | |
15004 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15005 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
15006 | set dummy dsymutil; ac_word=$2 | |
15007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15008 | $as_echo_n "checking for $ac_word... " >&6; } | |
15009 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
15010 | $as_echo_n "(cached) " >&6 | |
15011 | else | |
15012 | case $DSYMUTIL_FOR_TARGET in | |
15013 | [\\/]* | ?:[\\/]*) | |
15014 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
15015 | ;; | |
15016 | *) | |
15017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15018 | for as_dir in $gcc_cv_tool_dirs | |
15019 | do | |
15020 | IFS=$as_save_IFS | |
15021 | test -z "$as_dir" && as_dir=. | |
15022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15024 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15026 | break 2 | |
15027 | fi | |
15028 | done | |
15029 | done | |
15030 | IFS=$as_save_IFS | |
15031 | ||
15032 | ;; | |
15033 | esac | |
15034 | fi | |
15035 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15036 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15038 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15039 | else | |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15041 | $as_echo "no" >&6; } | |
15042 | fi | |
15043 | ||
15044 | ||
15045 | fi | |
15046 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
15047 | ||
15048 | ||
15049 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15050 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15051 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15052 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15053 | fi | |
15054 | ||
15055 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15056 | for ncn_progname in dsymutil; do | |
15057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15058 | set dummy ${ncn_progname}; ac_word=$2 | |
15059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15060 | $as_echo_n "checking for $ac_word... " >&6; } | |
15061 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15062 | $as_echo_n "(cached) " >&6 | |
15063 | else | |
15064 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15065 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15066 | else | |
15067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15068 | for as_dir in $PATH | |
15069 | do | |
15070 | IFS=$as_save_IFS | |
15071 | test -z "$as_dir" && as_dir=. | |
15072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15074 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15076 | break 2 | |
15077 | fi | |
15078 | done | |
15079 | done | |
15080 | IFS=$as_save_IFS | |
15081 | ||
15082 | fi | |
15083 | fi | |
15084 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15085 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15087 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15088 | else | |
15089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15090 | $as_echo "no" >&6; } | |
15091 | fi | |
15092 | ||
15093 | ||
15094 | done | |
15095 | fi | |
15096 | ||
15097 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15098 | for ncn_progname in dsymutil; do | |
15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15100 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15101 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15102 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15104 | $as_echo "yes" >&6; } | |
15105 | break | |
15106 | else | |
15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15108 | $as_echo "no" >&6; } | |
15109 | fi | |
15110 | done | |
15111 | fi | |
15112 | ||
15113 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15114 | for ncn_progname in dsymutil; do | |
15115 | if test -n "$ncn_target_tool_prefix"; then | |
15116 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15117 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15119 | $as_echo_n "checking for $ac_word... " >&6; } | |
15120 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15121 | $as_echo_n "(cached) " >&6 | |
15122 | else | |
15123 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15124 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15125 | else | |
15126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15127 | for as_dir in $PATH | |
15128 | do | |
15129 | IFS=$as_save_IFS | |
15130 | test -z "$as_dir" && as_dir=. | |
15131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15133 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15135 | break 2 | |
15136 | fi | |
15137 | done | |
15138 | done | |
15139 | IFS=$as_save_IFS | |
15140 | ||
15141 | fi | |
15142 | fi | |
15143 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15144 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15146 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15147 | else | |
15148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15149 | $as_echo "no" >&6; } | |
15150 | fi | |
15151 | ||
15152 | ||
15153 | fi | |
15154 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
15155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15156 | set dummy ${ncn_progname}; ac_word=$2 | |
15157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15158 | $as_echo_n "checking for $ac_word... " >&6; } | |
15159 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15160 | $as_echo_n "(cached) " >&6 | |
15161 | else | |
15162 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15163 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15164 | else | |
15165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15166 | for as_dir in $PATH | |
15167 | do | |
15168 | IFS=$as_save_IFS | |
15169 | test -z "$as_dir" && as_dir=. | |
15170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15172 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15174 | break 2 | |
15175 | fi | |
15176 | done | |
15177 | done | |
15178 | IFS=$as_save_IFS | |
15179 | ||
15180 | fi | |
15181 | fi | |
15182 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15183 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15185 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15186 | else | |
15187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15188 | $as_echo "no" >&6; } | |
15189 | fi | |
15190 | ||
15191 | ||
15192 | fi | |
15193 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
15194 | done | |
15195 | fi | |
15196 | ||
15197 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
15198 | set dummy dsymutil | |
15199 | if test $build = $target ; then | |
15200 | DSYMUTIL_FOR_TARGET="$2" | |
15201 | else | |
15202 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15203 | fi | |
15204 | else | |
15205 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
15206 | fi | |
15207 | ||
15208 | else | |
15209 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15210 | fi | |
15211 | ||
15212 | ||
15213 | ||
15214 | ||
e8b05380 PB |
15215 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
15216 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
15218 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15219 | if test -x $with_build_time_tools/ld; then |
15220 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
15221 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15223 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 15224 | else |
5213506e RW |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15226 | $as_echo "no" >&6; } | |
d1f8db0c | 15227 | fi |
e8b05380 PB |
15228 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15229 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
15230 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15231 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 15232 | fi |
e8b05380 | 15233 | fi |
3e19841a | 15234 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15235 | # Extract the first word of "ld", so it can be a program name with args. |
15236 | set dummy ld; ac_word=$2 | |
5213506e RW |
15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15238 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15239 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 15240 | $as_echo_n "(cached) " >&6 |
4de997d1 | 15241 | else |
1c710c3c DJ |
15242 | case $LD_FOR_TARGET in |
15243 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15244 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15245 | ;; | |
e8b05380 | 15246 | *) |
1c710c3c DJ |
15247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15248 | for as_dir in $gcc_cv_tool_dirs | |
15249 | do | |
15250 | IFS=$as_save_IFS | |
15251 | test -z "$as_dir" && as_dir=. | |
5213506e | 15252 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15254 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15256 | break 2 |
15257 | fi | |
15258 | done | |
5213506e RW |
15259 | done |
15260 | IFS=$as_save_IFS | |
1c710c3c | 15261 | |
e8b05380 PB |
15262 | ;; |
15263 | esac | |
4de997d1 | 15264 | fi |
1c710c3c | 15265 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 15266 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15268 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 15269 | else |
5213506e RW |
15270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15271 | $as_echo "no" >&6; } | |
4de997d1 | 15272 | fi |
2693c0b0 | 15273 | |
5213506e | 15274 | |
e8b05380 PB |
15275 | fi |
15276 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
15277 | |
15278 | ||
15279 | if test -n "$LD_FOR_TARGET"; then | |
15280 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15281 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15282 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15283 | fi | |
15284 | ||
15285 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15286 | for ncn_progname in ld; do | |
15287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15288 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15290 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15291 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15292 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15293 | else |
15294 | if test -n "$LD_FOR_TARGET"; then | |
15295 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15296 | else | |
15297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15298 | for as_dir in $PATH | |
15299 | do | |
15300 | IFS=$as_save_IFS | |
15301 | test -z "$as_dir" && as_dir=. | |
5213506e | 15302 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15304 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15306 | break 2 |
15307 | fi | |
15308 | done | |
5213506e RW |
15309 | done |
15310 | IFS=$as_save_IFS | |
278a7a38 AO |
15311 | |
15312 | fi | |
15313 | fi | |
15314 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15315 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15317 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 15318 | else |
5213506e RW |
15319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15320 | $as_echo "no" >&6; } | |
278a7a38 AO |
15321 | fi |
15322 | ||
5213506e | 15323 | |
278a7a38 AO |
15324 | done |
15325 | fi | |
15326 | ||
15327 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15328 | for ncn_progname in ld; do |
5213506e RW |
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15330 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15331 | if test -x $with_build_time_tools/${ncn_progname}; then |
15332 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15334 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15335 | break |
15336 | else | |
5213506e RW |
15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15338 | $as_echo "no" >&6; } | |
e8b05380 PB |
15339 | fi |
15340 | done | |
ca9f4b81 AO |
15341 | fi |
15342 | ||
e8b05380 PB |
15343 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
15344 | for ncn_progname in ld; do | |
15345 | if test -n "$ncn_target_tool_prefix"; then | |
15346 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15347 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15349 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15350 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15351 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15352 | else |
4de997d1 PB |
15353 | if test -n "$LD_FOR_TARGET"; then |
15354 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15355 | else |
1c710c3c DJ |
15356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15357 | for as_dir in $PATH | |
15358 | do | |
15359 | IFS=$as_save_IFS | |
15360 | test -z "$as_dir" && as_dir=. | |
5213506e | 15361 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15363 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15365 | break 2 |
15366 | fi | |
15367 | done | |
5213506e RW |
15368 | done |
15369 | IFS=$as_save_IFS | |
1c710c3c | 15370 | |
ca9f4b81 AO |
15371 | fi |
15372 | fi | |
1c710c3c | 15373 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 15374 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15376 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15377 | else |
5213506e RW |
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15379 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15380 | fi |
15381 | ||
5213506e | 15382 | |
e8b05380 PB |
15383 | fi |
15384 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15385 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15386 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15388 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15389 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15390 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15391 | else |
2693c0b0 PB |
15392 | if test -n "$LD_FOR_TARGET"; then |
15393 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15394 | else |
1c710c3c DJ |
15395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15396 | for as_dir in $PATH | |
15397 | do | |
15398 | IFS=$as_save_IFS | |
15399 | test -z "$as_dir" && as_dir=. | |
5213506e | 15400 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15402 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15404 | break 2 |
15405 | fi | |
15406 | done | |
5213506e RW |
15407 | done |
15408 | IFS=$as_save_IFS | |
1c710c3c | 15409 | |
ca9f4b81 AO |
15410 | fi |
15411 | fi | |
1c710c3c | 15412 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 15413 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15415 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15416 | else |
5213506e RW |
15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15418 | $as_echo "no" >&6; } | |
ca9f4b81 | 15419 | fi |
1c710c3c | 15420 | |
5213506e | 15421 | |
e8b05380 PB |
15422 | fi |
15423 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15424 | done | |
15425 | fi | |
1c710c3c | 15426 | |
2693c0b0 PB |
15427 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15428 | set dummy ld | |
15429 | if test $build = $target ; then | |
15430 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 15431 | else |
2693c0b0 | 15432 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15433 | fi |
1c00b503 PB |
15434 | else |
15435 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
15436 | fi |
15437 | ||
d1f8db0c PB |
15438 | else |
15439 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
15440 | fi |
15441 | ||
15442 | ||
15443 | ||
15444 | ||
15445 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15446 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15448 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15449 | if test -x $with_build_time_tools/lipo; then |
15450 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15451 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15453 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 15454 | else |
5213506e RW |
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15456 | $as_echo "no" >&6; } | |
d1f8db0c | 15457 | fi |
e8b05380 PB |
15458 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15459 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
15460 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15461 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
15462 | fi |
15463 | fi | |
278a7a38 AO |
15464 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15465 | # Extract the first word of "lipo", so it can be a program name with args. | |
15466 | set dummy lipo; ac_word=$2 | |
5213506e RW |
15467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15468 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15469 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15470 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15471 | else |
15472 | case $LIPO_FOR_TARGET in | |
15473 | [\\/]* | ?:[\\/]*) | |
15474 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15475 | ;; | |
15476 | *) | |
15477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15478 | for as_dir in $gcc_cv_tool_dirs | |
15479 | do | |
15480 | IFS=$as_save_IFS | |
15481 | test -z "$as_dir" && as_dir=. | |
5213506e | 15482 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15484 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15486 | break 2 |
15487 | fi | |
15488 | done | |
5213506e RW |
15489 | done |
15490 | IFS=$as_save_IFS | |
278a7a38 AO |
15491 | |
15492 | ;; | |
15493 | esac | |
15494 | fi | |
15495 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15496 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15498 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15499 | else |
5213506e RW |
15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15501 | $as_echo "no" >&6; } | |
278a7a38 AO |
15502 | fi |
15503 | ||
5213506e | 15504 | |
278a7a38 AO |
15505 | fi |
15506 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15507 | ||
15508 | ||
15509 | if test -n "$LIPO_FOR_TARGET"; then | |
15510 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15511 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15512 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15513 | fi | |
15514 | ||
15515 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15516 | for ncn_progname in lipo; do | |
15517 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15518 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15520 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15521 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15522 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15523 | else |
278a7a38 AO |
15524 | if test -n "$LIPO_FOR_TARGET"; then |
15525 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15526 | else | |
15527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15528 | for as_dir in $PATH | |
1c710c3c DJ |
15529 | do |
15530 | IFS=$as_save_IFS | |
15531 | test -z "$as_dir" && as_dir=. | |
5213506e | 15532 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15534 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15536 | break 2 |
15537 | fi | |
15538 | done | |
5213506e RW |
15539 | done |
15540 | IFS=$as_save_IFS | |
1c710c3c | 15541 | |
e8b05380 | 15542 | fi |
278a7a38 AO |
15543 | fi |
15544 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15545 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15547 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15548 | else |
5213506e RW |
15549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15550 | $as_echo "no" >&6; } | |
e8b05380 PB |
15551 | fi |
15552 | ||
5213506e | 15553 | |
278a7a38 | 15554 | done |
e8b05380 | 15555 | fi |
278a7a38 AO |
15556 | |
15557 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15558 | for ncn_progname in lipo; do |
5213506e RW |
15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15560 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15561 | if test -x $with_build_time_tools/${ncn_progname}; then |
15562 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15564 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15565 | break |
15566 | else | |
5213506e RW |
15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15568 | $as_echo "no" >&6; } | |
e8b05380 PB |
15569 | fi |
15570 | done | |
15571 | fi | |
15572 | ||
15573 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15574 | for ncn_progname in lipo; do | |
15575 | if test -n "$ncn_target_tool_prefix"; then | |
15576 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15577 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15579 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15580 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15581 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15582 | else |
15583 | if test -n "$LIPO_FOR_TARGET"; then | |
15584 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15585 | else | |
1c710c3c DJ |
15586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15587 | for as_dir in $PATH | |
15588 | do | |
15589 | IFS=$as_save_IFS | |
15590 | test -z "$as_dir" && as_dir=. | |
5213506e | 15591 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15593 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15595 | break 2 |
15596 | fi | |
15597 | done | |
5213506e RW |
15598 | done |
15599 | IFS=$as_save_IFS | |
1c710c3c | 15600 | |
040b1c5a GK |
15601 | fi |
15602 | fi | |
1c710c3c | 15603 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15604 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15606 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15607 | else |
5213506e RW |
15608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15609 | $as_echo "no" >&6; } | |
040b1c5a GK |
15610 | fi |
15611 | ||
5213506e | 15612 | |
e8b05380 PB |
15613 | fi |
15614 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15616 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15619 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15620 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15621 | else |
15622 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15623 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15624 | else | |
1c710c3c DJ |
15625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15626 | for as_dir in $PATH | |
15627 | do | |
15628 | IFS=$as_save_IFS | |
15629 | test -z "$as_dir" && as_dir=. | |
5213506e | 15630 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15631 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15632 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15634 | break 2 |
15635 | fi | |
15636 | done | |
5213506e RW |
15637 | done |
15638 | IFS=$as_save_IFS | |
1c710c3c | 15639 | |
040b1c5a GK |
15640 | fi |
15641 | fi | |
1c710c3c | 15642 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15643 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15645 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15646 | else |
5213506e RW |
15647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15648 | $as_echo "no" >&6; } | |
040b1c5a | 15649 | fi |
1c710c3c | 15650 | |
5213506e | 15651 | |
e8b05380 PB |
15652 | fi |
15653 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15654 | done | |
15655 | fi | |
1c710c3c | 15656 | |
040b1c5a GK |
15657 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15658 | set dummy lipo | |
15659 | if test $build = $target ; then | |
15660 | LIPO_FOR_TARGET="$2" | |
15661 | else | |
15662 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15663 | fi | |
1c00b503 PB |
15664 | else |
15665 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15666 | fi |
15667 | ||
d1f8db0c PB |
15668 | else |
15669 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15670 | fi |
15671 | ||
15672 | ||
15673 | ||
15674 | ||
15675 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15676 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15678 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15679 | if test -x $with_build_time_tools/nm; then |
15680 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15681 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15683 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15684 | else |
5213506e RW |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15686 | $as_echo "no" >&6; } | |
d1f8db0c | 15687 | fi |
e8b05380 PB |
15688 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15689 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15690 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15691 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15692 | fi |
15693 | fi | |
3e19841a | 15694 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15695 | # Extract the first word of "nm", so it can be a program name with args. |
15696 | set dummy nm; ac_word=$2 | |
5213506e RW |
15697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15698 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15699 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15700 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15701 | else |
1c710c3c DJ |
15702 | case $NM_FOR_TARGET in |
15703 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15704 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15705 | ;; | |
e8b05380 | 15706 | *) |
1c710c3c DJ |
15707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15708 | for as_dir in $gcc_cv_tool_dirs | |
15709 | do | |
15710 | IFS=$as_save_IFS | |
15711 | test -z "$as_dir" && as_dir=. | |
5213506e | 15712 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15714 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15716 | break 2 |
15717 | fi | |
15718 | done | |
5213506e RW |
15719 | done |
15720 | IFS=$as_save_IFS | |
1c710c3c | 15721 | |
e8b05380 PB |
15722 | ;; |
15723 | esac | |
15724 | fi | |
1c710c3c | 15725 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15726 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15728 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15729 | else |
5213506e RW |
15730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15731 | $as_echo "no" >&6; } | |
e8b05380 PB |
15732 | fi |
15733 | ||
5213506e | 15734 | |
e8b05380 PB |
15735 | fi |
15736 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15737 | |
15738 | ||
15739 | if test -n "$NM_FOR_TARGET"; then | |
15740 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15741 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15742 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15743 | fi | |
15744 | ||
15745 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15746 | for ncn_progname in nm; do | |
15747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15748 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15750 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15751 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15752 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15753 | else |
15754 | if test -n "$NM_FOR_TARGET"; then | |
15755 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15756 | else | |
15757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15758 | for as_dir in $PATH | |
15759 | do | |
15760 | IFS=$as_save_IFS | |
15761 | test -z "$as_dir" && as_dir=. | |
5213506e | 15762 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15764 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15766 | break 2 |
15767 | fi | |
15768 | done | |
5213506e RW |
15769 | done |
15770 | IFS=$as_save_IFS | |
278a7a38 AO |
15771 | |
15772 | fi | |
15773 | fi | |
15774 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15775 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15777 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15778 | else |
5213506e RW |
15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15780 | $as_echo "no" >&6; } | |
278a7a38 AO |
15781 | fi |
15782 | ||
5213506e | 15783 | |
278a7a38 AO |
15784 | done |
15785 | fi | |
15786 | ||
15787 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15788 | for ncn_progname in nm; do |
5213506e RW |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15790 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15791 | if test -x $with_build_time_tools/${ncn_progname}; then |
15792 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15794 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15795 | break |
15796 | else | |
5213506e RW |
15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15798 | $as_echo "no" >&6; } | |
e8b05380 PB |
15799 | fi |
15800 | done | |
15801 | fi | |
15802 | ||
15803 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15804 | for ncn_progname in nm; do | |
15805 | if test -n "$ncn_target_tool_prefix"; then | |
15806 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15807 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15809 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15810 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15811 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15812 | else |
4de997d1 PB |
15813 | if test -n "$NM_FOR_TARGET"; then |
15814 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15815 | else |
1c710c3c DJ |
15816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15817 | for as_dir in $PATH | |
15818 | do | |
15819 | IFS=$as_save_IFS | |
15820 | test -z "$as_dir" && as_dir=. | |
5213506e | 15821 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15823 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15825 | break 2 |
15826 | fi | |
15827 | done | |
5213506e RW |
15828 | done |
15829 | IFS=$as_save_IFS | |
1c710c3c | 15830 | |
ca9f4b81 AO |
15831 | fi |
15832 | fi | |
1c710c3c | 15833 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15834 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15836 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15837 | else |
5213506e RW |
15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15839 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15840 | fi |
15841 | ||
5213506e | 15842 | |
e8b05380 PB |
15843 | fi |
15844 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15846 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15848 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15849 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15850 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15851 | else |
2693c0b0 PB |
15852 | if test -n "$NM_FOR_TARGET"; then |
15853 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15854 | else |
1c710c3c DJ |
15855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15856 | for as_dir in $PATH | |
15857 | do | |
15858 | IFS=$as_save_IFS | |
15859 | test -z "$as_dir" && as_dir=. | |
5213506e | 15860 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15861 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15862 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15864 | break 2 |
15865 | fi | |
15866 | done | |
5213506e RW |
15867 | done |
15868 | IFS=$as_save_IFS | |
1c710c3c | 15869 | |
ca9f4b81 AO |
15870 | fi |
15871 | fi | |
1c710c3c | 15872 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15873 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15875 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15876 | else |
5213506e RW |
15877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15878 | $as_echo "no" >&6; } | |
ca9f4b81 | 15879 | fi |
1c710c3c | 15880 | |
5213506e | 15881 | |
e8b05380 PB |
15882 | fi |
15883 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15884 | done | |
15885 | fi | |
1c710c3c | 15886 | |
2693c0b0 PB |
15887 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15888 | set dummy nm | |
15889 | if test $build = $target ; then | |
15890 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15891 | else |
2693c0b0 | 15892 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15893 | fi |
1c00b503 PB |
15894 | else |
15895 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15896 | fi |
15897 | ||
d1f8db0c PB |
15898 | else |
15899 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15900 | fi |
15901 | ||
15902 | ||
15903 | ||
15904 | ||
9bccfdf5 AP |
15905 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15906 | if test -n "$with_build_time_tools"; then | |
15907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15908 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15909 | if test -x $with_build_time_tools/objcopy; then | |
15910 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15911 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15913 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15914 | else | |
15915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15916 | $as_echo "no" >&6; } | |
15917 | fi | |
15918 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15919 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15920 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15921 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15922 | fi | |
15923 | fi | |
15924 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15925 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15926 | set dummy objcopy; ac_word=$2 | |
15927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15928 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15929 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15930 | $as_echo_n "(cached) " >&6 |
15931 | else | |
15932 | case $OBJCOPY_FOR_TARGET in | |
15933 | [\\/]* | ?:[\\/]*) | |
15934 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15935 | ;; | |
15936 | *) | |
15937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15938 | for as_dir in $gcc_cv_tool_dirs | |
15939 | do | |
15940 | IFS=$as_save_IFS | |
15941 | test -z "$as_dir" && as_dir=. | |
15942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15944 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15946 | break 2 | |
15947 | fi | |
15948 | done | |
15949 | done | |
15950 | IFS=$as_save_IFS | |
15951 | ||
15952 | ;; | |
15953 | esac | |
15954 | fi | |
15955 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15956 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15958 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15959 | else | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15961 | $as_echo "no" >&6; } | |
15962 | fi | |
15963 | ||
15964 | ||
15965 | fi | |
15966 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15967 | ||
15968 | ||
15969 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15970 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15971 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15972 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15973 | fi | |
15974 | ||
15975 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15976 | for ncn_progname in objcopy; do | |
15977 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15978 | set dummy ${ncn_progname}; ac_word=$2 | |
15979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15980 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15981 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15982 | $as_echo_n "(cached) " >&6 |
15983 | else | |
15984 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15985 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15986 | else | |
15987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15988 | for as_dir in $PATH | |
15989 | do | |
15990 | IFS=$as_save_IFS | |
15991 | test -z "$as_dir" && as_dir=. | |
15992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15994 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15996 | break 2 | |
15997 | fi | |
15998 | done | |
15999 | done | |
16000 | IFS=$as_save_IFS | |
16001 | ||
16002 | fi | |
16003 | fi | |
16004 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16005 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16007 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16008 | else | |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16010 | $as_echo "no" >&6; } | |
16011 | fi | |
16012 | ||
16013 | ||
16014 | done | |
16015 | fi | |
16016 | ||
16017 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16018 | for ncn_progname in objcopy; do | |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16020 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16021 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16022 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16024 | $as_echo "yes" >&6; } | |
16025 | break | |
16026 | else | |
16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16028 | $as_echo "no" >&6; } | |
16029 | fi | |
16030 | done | |
16031 | fi | |
16032 | ||
16033 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16034 | for ncn_progname in objcopy; do | |
16035 | if test -n "$ncn_target_tool_prefix"; then | |
16036 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16037 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16039 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16040 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16041 | $as_echo_n "(cached) " >&6 |
16042 | else | |
16043 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16044 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16045 | else | |
16046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16047 | for as_dir in $PATH | |
16048 | do | |
16049 | IFS=$as_save_IFS | |
16050 | test -z "$as_dir" && as_dir=. | |
16051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16053 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16055 | break 2 | |
16056 | fi | |
16057 | done | |
16058 | done | |
16059 | IFS=$as_save_IFS | |
16060 | ||
16061 | fi | |
16062 | fi | |
16063 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16064 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16066 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16067 | else | |
16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16069 | $as_echo "no" >&6; } | |
16070 | fi | |
16071 | ||
16072 | ||
16073 | fi | |
16074 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
16075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16076 | set dummy ${ncn_progname}; ac_word=$2 | |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16078 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16079 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16080 | $as_echo_n "(cached) " >&6 |
16081 | else | |
16082 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16083 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16084 | else | |
16085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16086 | for as_dir in $PATH | |
16087 | do | |
16088 | IFS=$as_save_IFS | |
16089 | test -z "$as_dir" && as_dir=. | |
16090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16092 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
16093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16094 | break 2 | |
16095 | fi | |
16096 | done | |
16097 | done | |
16098 | IFS=$as_save_IFS | |
16099 | ||
16100 | fi | |
16101 | fi | |
16102 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16103 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16105 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16106 | else | |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16108 | $as_echo "no" >&6; } | |
16109 | fi | |
16110 | ||
16111 | ||
16112 | fi | |
16113 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
16114 | done | |
16115 | fi | |
16116 | ||
16117 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
16118 | set dummy objcopy | |
16119 | if test $build = $target ; then | |
16120 | OBJCOPY_FOR_TARGET="$2" | |
16121 | else | |
16122 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16123 | fi | |
16124 | else | |
16125 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
16126 | fi | |
16127 | ||
16128 | else | |
16129 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
16130 | fi | |
16131 | ||
16132 | ||
16133 | ||
16134 | ||
e8b05380 PB |
16135 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
16136 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
16138 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16139 | if test -x $with_build_time_tools/objdump; then |
16140 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
16141 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
16143 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 16144 | else |
5213506e RW |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16146 | $as_echo "no" >&6; } | |
d1f8db0c | 16147 | fi |
e8b05380 PB |
16148 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16149 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
16150 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
16151 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16152 | fi |
16153 | fi | |
3e19841a | 16154 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16155 | # Extract the first word of "objdump", so it can be a program name with args. |
16156 | set dummy objdump; ac_word=$2 | |
5213506e RW |
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16158 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16159 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16160 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16161 | else |
1c710c3c DJ |
16162 | case $OBJDUMP_FOR_TARGET in |
16163 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16164 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
16165 | ;; | |
e8b05380 | 16166 | *) |
1c710c3c DJ |
16167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16168 | for as_dir in $gcc_cv_tool_dirs | |
16169 | do | |
16170 | IFS=$as_save_IFS | |
16171 | test -z "$as_dir" && as_dir=. | |
5213506e | 16172 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16174 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16176 | break 2 |
16177 | fi | |
16178 | done | |
5213506e RW |
16179 | done |
16180 | IFS=$as_save_IFS | |
1c710c3c | 16181 | |
e8b05380 PB |
16182 | ;; |
16183 | esac | |
16184 | fi | |
1c710c3c | 16185 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 16186 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16188 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 16189 | else |
5213506e RW |
16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16191 | $as_echo "no" >&6; } | |
e8b05380 PB |
16192 | fi |
16193 | ||
5213506e | 16194 | |
e8b05380 PB |
16195 | fi |
16196 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
16197 | |
16198 | ||
16199 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16200 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
16201 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16202 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16203 | fi | |
16204 | ||
16205 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16206 | for ncn_progname in objdump; do | |
16207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16208 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16210 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16211 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16212 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16213 | else |
16214 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16215 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16216 | else | |
16217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16218 | for as_dir in $PATH | |
16219 | do | |
16220 | IFS=$as_save_IFS | |
16221 | test -z "$as_dir" && as_dir=. | |
5213506e | 16222 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16224 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16226 | break 2 |
16227 | fi | |
16228 | done | |
5213506e RW |
16229 | done |
16230 | IFS=$as_save_IFS | |
278a7a38 AO |
16231 | |
16232 | fi | |
16233 | fi | |
16234 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16235 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
16236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16237 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 16238 | else |
5213506e RW |
16239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16240 | $as_echo "no" >&6; } | |
278a7a38 AO |
16241 | fi |
16242 | ||
5213506e | 16243 | |
278a7a38 AO |
16244 | done |
16245 | fi | |
16246 | ||
16247 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16248 | for ncn_progname in objdump; do |
5213506e RW |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16250 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16251 | if test -x $with_build_time_tools/${ncn_progname}; then |
16252 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16254 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16255 | break |
16256 | else | |
5213506e RW |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16258 | $as_echo "no" >&6; } | |
e8b05380 PB |
16259 | fi |
16260 | done | |
16261 | fi | |
16262 | ||
16263 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16264 | for ncn_progname in objdump; do | |
16265 | if test -n "$ncn_target_tool_prefix"; then | |
16266 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16267 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16269 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16270 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16271 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16272 | else |
16273 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16274 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16275 | else | |
1c710c3c DJ |
16276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16277 | for as_dir in $PATH | |
16278 | do | |
16279 | IFS=$as_save_IFS | |
16280 | test -z "$as_dir" && as_dir=. | |
5213506e | 16281 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16283 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16285 | break 2 |
16286 | fi | |
16287 | done | |
5213506e RW |
16288 | done |
16289 | IFS=$as_save_IFS | |
1c710c3c | 16290 | |
d739199a DJ |
16291 | fi |
16292 | fi | |
1c710c3c | 16293 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16294 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16296 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16297 | else |
5213506e RW |
16298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16299 | $as_echo "no" >&6; } | |
d739199a DJ |
16300 | fi |
16301 | ||
5213506e | 16302 | |
e8b05380 PB |
16303 | fi |
16304 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16305 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 16306 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16308 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16309 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16310 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16311 | else |
16312 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16313 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16314 | else | |
1c710c3c DJ |
16315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16316 | for as_dir in $PATH | |
16317 | do | |
16318 | IFS=$as_save_IFS | |
16319 | test -z "$as_dir" && as_dir=. | |
5213506e | 16320 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16322 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16324 | break 2 |
16325 | fi | |
16326 | done | |
5213506e RW |
16327 | done |
16328 | IFS=$as_save_IFS | |
1c710c3c | 16329 | |
d739199a DJ |
16330 | fi |
16331 | fi | |
1c710c3c | 16332 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16333 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16335 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16336 | else |
5213506e RW |
16337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16338 | $as_echo "no" >&6; } | |
d739199a | 16339 | fi |
1c710c3c | 16340 | |
5213506e | 16341 | |
e8b05380 PB |
16342 | fi |
16343 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16344 | done | |
16345 | fi | |
1c710c3c | 16346 | |
d739199a DJ |
16347 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16348 | set dummy objdump | |
16349 | if test $build = $target ; then | |
16350 | OBJDUMP_FOR_TARGET="$2" | |
16351 | else | |
16352 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16353 | fi | |
1c00b503 PB |
16354 | else |
16355 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
16356 | fi |
16357 | ||
d1f8db0c PB |
16358 | else |
16359 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16360 | fi |
16361 | ||
16362 | ||
16363 | ||
16364 | ||
e4a9a572 IS |
16365 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16366 | if test -n "$with_build_time_tools"; then | |
16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16368 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16369 | if test -x $with_build_time_tools/otool; then | |
16370 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16371 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16373 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16374 | else | |
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16376 | $as_echo "no" >&6; } | |
16377 | fi | |
16378 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16379 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16380 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16381 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16382 | fi | |
16383 | fi | |
16384 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16385 | # Extract the first word of "otool", so it can be a program name with args. | |
16386 | set dummy otool; ac_word=$2 | |
16387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16388 | $as_echo_n "checking for $ac_word... " >&6; } | |
16389 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16390 | $as_echo_n "(cached) " >&6 | |
16391 | else | |
16392 | case $OTOOL_FOR_TARGET in | |
16393 | [\\/]* | ?:[\\/]*) | |
16394 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16395 | ;; | |
16396 | *) | |
16397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16398 | for as_dir in $gcc_cv_tool_dirs | |
16399 | do | |
16400 | IFS=$as_save_IFS | |
16401 | test -z "$as_dir" && as_dir=. | |
16402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16404 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16406 | break 2 | |
16407 | fi | |
16408 | done | |
16409 | done | |
16410 | IFS=$as_save_IFS | |
16411 | ||
16412 | ;; | |
16413 | esac | |
16414 | fi | |
16415 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16416 | if test -n "$OTOOL_FOR_TARGET"; then | |
16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16418 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16419 | else | |
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16421 | $as_echo "no" >&6; } | |
16422 | fi | |
16423 | ||
16424 | ||
16425 | fi | |
16426 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16427 | ||
16428 | ||
16429 | if test -n "$OTOOL_FOR_TARGET"; then | |
16430 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16431 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16432 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16433 | fi | |
16434 | ||
16435 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16436 | for ncn_progname in otool; do | |
16437 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16438 | set dummy ${ncn_progname}; ac_word=$2 | |
16439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16440 | $as_echo_n "checking for $ac_word... " >&6; } | |
16441 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16442 | $as_echo_n "(cached) " >&6 | |
16443 | else | |
16444 | if test -n "$OTOOL_FOR_TARGET"; then | |
16445 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16446 | else | |
16447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16448 | for as_dir in $PATH | |
16449 | do | |
16450 | IFS=$as_save_IFS | |
16451 | test -z "$as_dir" && as_dir=. | |
16452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16454 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16456 | break 2 | |
16457 | fi | |
16458 | done | |
16459 | done | |
16460 | IFS=$as_save_IFS | |
16461 | ||
16462 | fi | |
16463 | fi | |
16464 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16465 | if test -n "$OTOOL_FOR_TARGET"; then | |
16466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16467 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16468 | else | |
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16470 | $as_echo "no" >&6; } | |
16471 | fi | |
16472 | ||
16473 | ||
16474 | done | |
16475 | fi | |
16476 | ||
16477 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16478 | for ncn_progname in otool; do | |
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16480 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16481 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16482 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16484 | $as_echo "yes" >&6; } | |
16485 | break | |
16486 | else | |
16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16488 | $as_echo "no" >&6; } | |
16489 | fi | |
16490 | done | |
16491 | fi | |
16492 | ||
16493 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16494 | for ncn_progname in otool; do | |
16495 | if test -n "$ncn_target_tool_prefix"; then | |
16496 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16497 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16499 | $as_echo_n "checking for $ac_word... " >&6; } | |
16500 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16501 | $as_echo_n "(cached) " >&6 | |
16502 | else | |
16503 | if test -n "$OTOOL_FOR_TARGET"; then | |
16504 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16505 | else | |
16506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16507 | for as_dir in $PATH | |
16508 | do | |
16509 | IFS=$as_save_IFS | |
16510 | test -z "$as_dir" && as_dir=. | |
16511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16513 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16515 | break 2 | |
16516 | fi | |
16517 | done | |
16518 | done | |
16519 | IFS=$as_save_IFS | |
16520 | ||
16521 | fi | |
16522 | fi | |
16523 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16524 | if test -n "$OTOOL_FOR_TARGET"; then | |
16525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16526 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16527 | else | |
16528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16529 | $as_echo "no" >&6; } | |
16530 | fi | |
16531 | ||
16532 | ||
16533 | fi | |
16534 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16535 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16536 | set dummy ${ncn_progname}; ac_word=$2 | |
16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16538 | $as_echo_n "checking for $ac_word... " >&6; } | |
16539 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16540 | $as_echo_n "(cached) " >&6 | |
16541 | else | |
16542 | if test -n "$OTOOL_FOR_TARGET"; then | |
16543 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16544 | else | |
16545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16546 | for as_dir in $PATH | |
16547 | do | |
16548 | IFS=$as_save_IFS | |
16549 | test -z "$as_dir" && as_dir=. | |
16550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16552 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16554 | break 2 | |
16555 | fi | |
16556 | done | |
16557 | done | |
16558 | IFS=$as_save_IFS | |
16559 | ||
16560 | fi | |
16561 | fi | |
16562 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16563 | if test -n "$OTOOL_FOR_TARGET"; then | |
16564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16565 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16566 | else | |
16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16568 | $as_echo "no" >&6; } | |
16569 | fi | |
16570 | ||
16571 | ||
16572 | fi | |
16573 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16574 | done | |
16575 | fi | |
16576 | ||
16577 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16578 | set dummy otool | |
16579 | if test $build = $target ; then | |
16580 | OTOOL_FOR_TARGET="$2" | |
16581 | else | |
16582 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16583 | fi | |
16584 | else | |
16585 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16586 | fi | |
16587 | ||
16588 | else | |
16589 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16590 | fi | |
16591 | ||
16592 | ||
16593 | ||
16594 | ||
e8b05380 PB |
16595 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16596 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16598 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16599 | if test -x $with_build_time_tools/ranlib; then |
16600 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16601 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16603 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16604 | else |
5213506e RW |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16606 | $as_echo "no" >&6; } | |
d1f8db0c | 16607 | fi |
e8b05380 PB |
16608 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16609 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16610 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16611 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16612 | fi |
16613 | fi | |
3e19841a | 16614 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16615 | # Extract the first word of "ranlib", so it can be a program name with args. |
16616 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16618 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16619 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16620 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16621 | else |
1c710c3c DJ |
16622 | case $RANLIB_FOR_TARGET in |
16623 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16624 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16625 | ;; | |
e8b05380 | 16626 | *) |
1c710c3c DJ |
16627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16628 | for as_dir in $gcc_cv_tool_dirs | |
16629 | do | |
16630 | IFS=$as_save_IFS | |
16631 | test -z "$as_dir" && as_dir=. | |
5213506e | 16632 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16634 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16636 | break 2 |
16637 | fi | |
16638 | done | |
5213506e RW |
16639 | done |
16640 | IFS=$as_save_IFS | |
1c710c3c | 16641 | |
e8b05380 PB |
16642 | ;; |
16643 | esac | |
16644 | fi | |
1c710c3c | 16645 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16646 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16648 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16649 | else |
5213506e RW |
16650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16651 | $as_echo "no" >&6; } | |
e8b05380 PB |
16652 | fi |
16653 | ||
5213506e | 16654 | |
e8b05380 PB |
16655 | fi |
16656 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16657 | |
16658 | ||
16659 | if test -n "$RANLIB_FOR_TARGET"; then | |
16660 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16661 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16662 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16663 | fi | |
16664 | ||
16665 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16666 | for ncn_progname in ranlib; do | |
16667 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16668 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16670 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16671 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16672 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16673 | else |
16674 | if test -n "$RANLIB_FOR_TARGET"; then | |
16675 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16676 | else | |
16677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16678 | for as_dir in $PATH | |
16679 | do | |
16680 | IFS=$as_save_IFS | |
16681 | test -z "$as_dir" && as_dir=. | |
5213506e | 16682 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16683 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16684 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16686 | break 2 |
16687 | fi | |
16688 | done | |
5213506e RW |
16689 | done |
16690 | IFS=$as_save_IFS | |
278a7a38 AO |
16691 | |
16692 | fi | |
16693 | fi | |
16694 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16695 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16697 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16698 | else |
5213506e RW |
16699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16700 | $as_echo "no" >&6; } | |
278a7a38 AO |
16701 | fi |
16702 | ||
5213506e | 16703 | |
278a7a38 AO |
16704 | done |
16705 | fi | |
16706 | ||
16707 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16708 | for ncn_progname in ranlib; do |
5213506e RW |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16710 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16711 | if test -x $with_build_time_tools/${ncn_progname}; then |
16712 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16714 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16715 | break |
16716 | else | |
5213506e RW |
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16718 | $as_echo "no" >&6; } | |
e8b05380 PB |
16719 | fi |
16720 | done | |
16721 | fi | |
16722 | ||
16723 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16724 | for ncn_progname in ranlib; do | |
16725 | if test -n "$ncn_target_tool_prefix"; then | |
16726 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16727 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16730 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16731 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16732 | else |
4de997d1 PB |
16733 | if test -n "$RANLIB_FOR_TARGET"; then |
16734 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16735 | else |
1c710c3c DJ |
16736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16737 | for as_dir in $PATH | |
16738 | do | |
16739 | IFS=$as_save_IFS | |
16740 | test -z "$as_dir" && as_dir=. | |
5213506e | 16741 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16743 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16745 | break 2 |
16746 | fi | |
16747 | done | |
5213506e RW |
16748 | done |
16749 | IFS=$as_save_IFS | |
1c710c3c | 16750 | |
ca9f4b81 AO |
16751 | fi |
16752 | fi | |
1c710c3c | 16753 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16754 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16756 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16757 | else |
5213506e RW |
16758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16759 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16760 | fi |
16761 | ||
5213506e | 16762 | |
e8b05380 PB |
16763 | fi |
16764 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16765 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16766 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16768 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16769 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16770 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16771 | else |
2693c0b0 PB |
16772 | if test -n "$RANLIB_FOR_TARGET"; then |
16773 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16774 | else |
1c710c3c DJ |
16775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16776 | for as_dir in $PATH | |
16777 | do | |
16778 | IFS=$as_save_IFS | |
16779 | test -z "$as_dir" && as_dir=. | |
5213506e | 16780 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16782 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16784 | break 2 |
16785 | fi | |
16786 | done | |
5213506e RW |
16787 | done |
16788 | IFS=$as_save_IFS | |
1c710c3c | 16789 | |
ca9f4b81 AO |
16790 | fi |
16791 | fi | |
1c710c3c | 16792 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16793 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16795 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16796 | else |
5213506e RW |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16798 | $as_echo "no" >&6; } | |
ca9f4b81 | 16799 | fi |
1c710c3c | 16800 | |
5213506e | 16801 | |
e8b05380 PB |
16802 | fi |
16803 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16804 | done | |
16805 | fi | |
1c710c3c | 16806 | |
e8b05380 PB |
16807 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16808 | set dummy ranlib | |
16809 | if test $build = $target ; then | |
16810 | RANLIB_FOR_TARGET="$2" | |
16811 | else | |
16812 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16813 | fi |
1c00b503 PB |
16814 | else |
16815 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16816 | fi |
2693c0b0 | 16817 | |
d1f8db0c PB |
16818 | else |
16819 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16820 | fi |
16821 | ||
e8b05380 PB |
16822 | |
16823 | ||
16824 | ||
e7a82751 RM |
16825 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16826 | if test -n "$with_build_time_tools"; then | |
16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16828 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16829 | if test -x $with_build_time_tools/readelf; then | |
16830 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16831 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16833 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16834 | else | |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16836 | $as_echo "no" >&6; } | |
16837 | fi | |
16838 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16839 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16840 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16841 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16842 | fi | |
16843 | fi | |
16844 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16845 | # Extract the first word of "readelf", so it can be a program name with args. | |
16846 | set dummy readelf; ac_word=$2 | |
16847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16848 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16849 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16850 | $as_echo_n "(cached) " >&6 |
16851 | else | |
16852 | case $READELF_FOR_TARGET in | |
16853 | [\\/]* | ?:[\\/]*) | |
16854 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16855 | ;; | |
16856 | *) | |
16857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16858 | for as_dir in $gcc_cv_tool_dirs | |
16859 | do | |
16860 | IFS=$as_save_IFS | |
16861 | test -z "$as_dir" && as_dir=. | |
16862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16864 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16866 | break 2 | |
16867 | fi | |
16868 | done | |
16869 | done | |
16870 | IFS=$as_save_IFS | |
16871 | ||
16872 | ;; | |
16873 | esac | |
16874 | fi | |
16875 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16876 | if test -n "$READELF_FOR_TARGET"; then | |
16877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16878 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16879 | else | |
16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16881 | $as_echo "no" >&6; } | |
16882 | fi | |
16883 | ||
16884 | ||
16885 | fi | |
16886 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16887 | ||
16888 | ||
16889 | if test -n "$READELF_FOR_TARGET"; then | |
16890 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16891 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16892 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16893 | fi | |
16894 | ||
16895 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16896 | for ncn_progname in readelf; do | |
16897 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16898 | set dummy ${ncn_progname}; ac_word=$2 | |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16900 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16901 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16902 | $as_echo_n "(cached) " >&6 |
16903 | else | |
16904 | if test -n "$READELF_FOR_TARGET"; then | |
16905 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16906 | else | |
16907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16908 | for as_dir in $PATH | |
16909 | do | |
16910 | IFS=$as_save_IFS | |
16911 | test -z "$as_dir" && as_dir=. | |
16912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16913 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16914 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16916 | break 2 | |
16917 | fi | |
16918 | done | |
16919 | done | |
16920 | IFS=$as_save_IFS | |
16921 | ||
16922 | fi | |
16923 | fi | |
16924 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16925 | if test -n "$READELF_FOR_TARGET"; then | |
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16927 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16928 | else | |
16929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16930 | $as_echo "no" >&6; } | |
16931 | fi | |
16932 | ||
16933 | ||
16934 | done | |
16935 | fi | |
16936 | ||
16937 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16938 | for ncn_progname in readelf; do | |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16940 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16941 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16942 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16944 | $as_echo "yes" >&6; } | |
16945 | break | |
16946 | else | |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16948 | $as_echo "no" >&6; } | |
16949 | fi | |
16950 | done | |
16951 | fi | |
16952 | ||
16953 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16954 | for ncn_progname in readelf; do | |
16955 | if test -n "$ncn_target_tool_prefix"; then | |
16956 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16957 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16959 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16960 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16961 | $as_echo_n "(cached) " >&6 |
16962 | else | |
16963 | if test -n "$READELF_FOR_TARGET"; then | |
16964 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16965 | else | |
16966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16967 | for as_dir in $PATH | |
16968 | do | |
16969 | IFS=$as_save_IFS | |
16970 | test -z "$as_dir" && as_dir=. | |
16971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16973 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16975 | break 2 | |
16976 | fi | |
16977 | done | |
16978 | done | |
16979 | IFS=$as_save_IFS | |
16980 | ||
16981 | fi | |
16982 | fi | |
16983 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16984 | if test -n "$READELF_FOR_TARGET"; then | |
16985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16986 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16987 | else | |
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16989 | $as_echo "no" >&6; } | |
16990 | fi | |
16991 | ||
16992 | ||
16993 | fi | |
16994 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16995 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16996 | set dummy ${ncn_progname}; ac_word=$2 | |
16997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16998 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16999 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
17000 | $as_echo_n "(cached) " >&6 |
17001 | else | |
17002 | if test -n "$READELF_FOR_TARGET"; then | |
17003 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
17004 | else | |
17005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17006 | for as_dir in $PATH | |
17007 | do | |
17008 | IFS=$as_save_IFS | |
17009 | test -z "$as_dir" && as_dir=. | |
17010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17012 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
17013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17014 | break 2 | |
17015 | fi | |
17016 | done | |
17017 | done | |
17018 | IFS=$as_save_IFS | |
17019 | ||
17020 | fi | |
17021 | fi | |
17022 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17023 | if test -n "$READELF_FOR_TARGET"; then | |
17024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17025 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17026 | else | |
17027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17028 | $as_echo "no" >&6; } | |
17029 | fi | |
17030 | ||
17031 | ||
17032 | fi | |
17033 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
17034 | done | |
17035 | fi | |
17036 | ||
17037 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
17038 | set dummy readelf | |
17039 | if test $build = $target ; then | |
17040 | READELF_FOR_TARGET="$2" | |
17041 | else | |
17042 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17043 | fi | |
17044 | else | |
17045 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
17046 | fi | |
17047 | ||
17048 | else | |
17049 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
17050 | fi | |
17051 | ||
17052 | ||
17053 | ||
17054 | ||
e8b05380 PB |
17055 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
17056 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
17058 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17059 | if test -x $with_build_time_tools/strip; then |
17060 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
17061 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
17062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
17063 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 17064 | else |
5213506e RW |
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17066 | $as_echo "no" >&6; } | |
d1f8db0c | 17067 | fi |
e8b05380 PB |
17068 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17069 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
17070 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
17071 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
17072 | fi |
17073 | fi | |
3e19841a | 17074 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17075 | # Extract the first word of "strip", so it can be a program name with args. |
17076 | set dummy strip; ac_word=$2 | |
5213506e RW |
17077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17078 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17079 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17080 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17081 | else |
1c710c3c DJ |
17082 | case $STRIP_FOR_TARGET in |
17083 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17084 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
17085 | ;; | |
e8b05380 | 17086 | *) |
1c710c3c DJ |
17087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17088 | for as_dir in $gcc_cv_tool_dirs | |
17089 | do | |
17090 | IFS=$as_save_IFS | |
17091 | test -z "$as_dir" && as_dir=. | |
5213506e | 17092 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17094 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17096 | break 2 |
17097 | fi | |
17098 | done | |
5213506e RW |
17099 | done |
17100 | IFS=$as_save_IFS | |
1c710c3c | 17101 | |
e8b05380 PB |
17102 | ;; |
17103 | esac | |
17104 | fi | |
1c710c3c | 17105 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 17106 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17108 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 17109 | else |
5213506e RW |
17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17111 | $as_echo "no" >&6; } | |
e8b05380 PB |
17112 | fi |
17113 | ||
5213506e | 17114 | |
e8b05380 PB |
17115 | fi |
17116 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
17117 | |
17118 | ||
17119 | if test -n "$STRIP_FOR_TARGET"; then | |
17120 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
17121 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17122 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17123 | fi | |
17124 | ||
17125 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17126 | for ncn_progname in strip; do | |
17127 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17128 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17130 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17131 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17132 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17133 | else |
17134 | if test -n "$STRIP_FOR_TARGET"; then | |
17135 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17136 | else | |
17137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17138 | for as_dir in $PATH | |
17139 | do | |
17140 | IFS=$as_save_IFS | |
17141 | test -z "$as_dir" && as_dir=. | |
5213506e | 17142 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17144 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17146 | break 2 |
17147 | fi | |
17148 | done | |
5213506e RW |
17149 | done |
17150 | IFS=$as_save_IFS | |
278a7a38 AO |
17151 | |
17152 | fi | |
17153 | fi | |
17154 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17155 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
17156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17157 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 17158 | else |
5213506e RW |
17159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17160 | $as_echo "no" >&6; } | |
278a7a38 AO |
17161 | fi |
17162 | ||
5213506e | 17163 | |
278a7a38 AO |
17164 | done |
17165 | fi | |
17166 | ||
17167 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17168 | for ncn_progname in strip; do |
5213506e RW |
17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17170 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17171 | if test -x $with_build_time_tools/${ncn_progname}; then |
17172 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17174 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17175 | break |
17176 | else | |
5213506e RW |
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17178 | $as_echo "no" >&6; } | |
e8b05380 PB |
17179 | fi |
17180 | done | |
17181 | fi | |
17182 | ||
17183 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17184 | for ncn_progname in strip; do | |
17185 | if test -n "$ncn_target_tool_prefix"; then | |
17186 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17187 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17189 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17190 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17191 | $as_echo_n "(cached) " >&6 |
af71363e AS |
17192 | else |
17193 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
17194 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
17195 | else | |
17196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17197 | for as_dir in $PATH | |
17198 | do | |
17199 | IFS=$as_save_IFS | |
17200 | test -z "$as_dir" && as_dir=. | |
5213506e | 17201 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17203 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17205 | break 2 |
17206 | fi | |
17207 | done | |
5213506e RW |
17208 | done |
17209 | IFS=$as_save_IFS | |
1c710c3c | 17210 | |
040b1c5a GK |
17211 | fi |
17212 | fi | |
1c710c3c | 17213 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17214 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17216 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17217 | else |
5213506e RW |
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17219 | $as_echo "no" >&6; } | |
040b1c5a GK |
17220 | fi |
17221 | ||
5213506e | 17222 | |
e8b05380 PB |
17223 | fi |
17224 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17225 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17226 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17228 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17229 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17230 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
17231 | else |
17232 | if test -n "$STRIP_FOR_TARGET"; then | |
17233 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17234 | else | |
1c710c3c DJ |
17235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17236 | for as_dir in $PATH | |
17237 | do | |
17238 | IFS=$as_save_IFS | |
17239 | test -z "$as_dir" && as_dir=. | |
5213506e | 17240 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17242 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17244 | break 2 |
17245 | fi | |
17246 | done | |
5213506e RW |
17247 | done |
17248 | IFS=$as_save_IFS | |
1c710c3c | 17249 | |
040b1c5a GK |
17250 | fi |
17251 | fi | |
1c710c3c | 17252 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17253 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17255 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17256 | else |
5213506e RW |
17257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17258 | $as_echo "no" >&6; } | |
040b1c5a | 17259 | fi |
1c710c3c | 17260 | |
5213506e | 17261 | |
e8b05380 PB |
17262 | fi |
17263 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17264 | done | |
17265 | fi | |
1c710c3c | 17266 | |
040b1c5a GK |
17267 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17268 | set dummy strip | |
17269 | if test $build = $target ; then | |
17270 | STRIP_FOR_TARGET="$2" | |
17271 | else | |
17272 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17273 | fi | |
1c00b503 PB |
17274 | else |
17275 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
17276 | fi |
17277 | ||
d1f8db0c PB |
17278 | else |
17279 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
17280 | fi |
17281 | ||
17282 | ||
17283 | ||
17284 | ||
17285 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17286 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17288 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17289 | if test -x $with_build_time_tools/windres; then |
17290 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17291 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
17292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17293 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 17294 | else |
5213506e RW |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17296 | $as_echo "no" >&6; } | |
d1f8db0c | 17297 | fi |
e8b05380 PB |
17298 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17299 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
17300 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17301 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
17302 | fi |
17303 | fi | |
3e19841a | 17304 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17305 | # Extract the first word of "windres", so it can be a program name with args. |
17306 | set dummy windres; ac_word=$2 | |
5213506e RW |
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17308 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17309 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17310 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17311 | else |
1c710c3c DJ |
17312 | case $WINDRES_FOR_TARGET in |
17313 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17314 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17315 | ;; | |
e8b05380 | 17316 | *) |
1c710c3c DJ |
17317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17318 | for as_dir in $gcc_cv_tool_dirs | |
17319 | do | |
17320 | IFS=$as_save_IFS | |
17321 | test -z "$as_dir" && as_dir=. | |
5213506e | 17322 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17324 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17326 | break 2 |
17327 | fi | |
17328 | done | |
5213506e RW |
17329 | done |
17330 | IFS=$as_save_IFS | |
1c710c3c | 17331 | |
e8b05380 PB |
17332 | ;; |
17333 | esac | |
17334 | fi | |
1c710c3c | 17335 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 17336 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17338 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 17339 | else |
5213506e RW |
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17341 | $as_echo "no" >&6; } | |
e8b05380 PB |
17342 | fi |
17343 | ||
5213506e | 17344 | |
e8b05380 PB |
17345 | fi |
17346 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
17347 | |
17348 | ||
17349 | if test -n "$WINDRES_FOR_TARGET"; then | |
17350 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17351 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17352 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17353 | fi | |
17354 | ||
17355 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17356 | for ncn_progname in windres; do | |
17357 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17358 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17360 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17361 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17362 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17363 | else |
17364 | if test -n "$WINDRES_FOR_TARGET"; then | |
17365 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17366 | else | |
17367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17368 | for as_dir in $PATH | |
17369 | do | |
17370 | IFS=$as_save_IFS | |
17371 | test -z "$as_dir" && as_dir=. | |
5213506e | 17372 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17374 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17376 | break 2 |
17377 | fi | |
17378 | done | |
5213506e RW |
17379 | done |
17380 | IFS=$as_save_IFS | |
278a7a38 AO |
17381 | |
17382 | fi | |
17383 | fi | |
17384 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17385 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
17386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17387 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 17388 | else |
5213506e RW |
17389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17390 | $as_echo "no" >&6; } | |
278a7a38 AO |
17391 | fi |
17392 | ||
5213506e | 17393 | |
278a7a38 AO |
17394 | done |
17395 | fi | |
17396 | ||
17397 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17398 | for ncn_progname in windres; do |
5213506e RW |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17400 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17401 | if test -x $with_build_time_tools/${ncn_progname}; then |
17402 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17404 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17405 | break |
17406 | else | |
5213506e RW |
17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17408 | $as_echo "no" >&6; } | |
e8b05380 PB |
17409 | fi |
17410 | done | |
17411 | fi | |
17412 | ||
17413 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17414 | for ncn_progname in windres; do | |
17415 | if test -n "$ncn_target_tool_prefix"; then | |
17416 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17417 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17419 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17420 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17421 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17422 | else |
4de997d1 PB |
17423 | if test -n "$WINDRES_FOR_TARGET"; then |
17424 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17425 | else |
1c710c3c DJ |
17426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17427 | for as_dir in $PATH | |
17428 | do | |
17429 | IFS=$as_save_IFS | |
17430 | test -z "$as_dir" && as_dir=. | |
5213506e | 17431 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17433 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17435 | break 2 |
17436 | fi | |
17437 | done | |
5213506e RW |
17438 | done |
17439 | IFS=$as_save_IFS | |
1c710c3c | 17440 | |
ca9f4b81 AO |
17441 | fi |
17442 | fi | |
1c710c3c | 17443 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 17444 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17446 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17447 | else |
5213506e RW |
17448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17449 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
17450 | fi |
17451 | ||
5213506e | 17452 | |
e8b05380 PB |
17453 | fi |
17454 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17456 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17458 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17459 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17460 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17461 | else |
2693c0b0 PB |
17462 | if test -n "$WINDRES_FOR_TARGET"; then |
17463 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17464 | else |
1c710c3c DJ |
17465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17466 | for as_dir in $PATH | |
17467 | do | |
17468 | IFS=$as_save_IFS | |
17469 | test -z "$as_dir" && as_dir=. | |
5213506e | 17470 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17472 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17474 | break 2 |
17475 | fi | |
17476 | done | |
5213506e RW |
17477 | done |
17478 | IFS=$as_save_IFS | |
1c710c3c | 17479 | |
ca9f4b81 AO |
17480 | fi |
17481 | fi | |
1c710c3c | 17482 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17483 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17485 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17486 | else |
5213506e RW |
17487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17488 | $as_echo "no" >&6; } | |
ca9f4b81 | 17489 | fi |
1c710c3c | 17490 | |
5213506e | 17491 | |
e8b05380 PB |
17492 | fi |
17493 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17494 | done | |
17495 | fi | |
1c710c3c | 17496 | |
2693c0b0 PB |
17497 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17498 | set dummy windres | |
17499 | if test $build = $target ; then | |
17500 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17501 | else |
2693c0b0 | 17502 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17503 | fi |
1c00b503 PB |
17504 | else |
17505 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17506 | fi |
17507 | ||
d1f8db0c PB |
17508 | else |
17509 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17510 | fi |
17511 | ||
4977bab6 | 17512 | |
901119ae KT |
17513 | |
17514 | ||
17515 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17516 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17518 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17519 | if test -x $with_build_time_tools/windmc; then |
17520 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17521 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17523 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17524 | else |
5213506e RW |
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17526 | $as_echo "no" >&6; } | |
901119ae KT |
17527 | fi |
17528 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17529 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17530 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17531 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17532 | fi |
17533 | fi | |
17534 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17535 | # Extract the first word of "windmc", so it can be a program name with args. | |
17536 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17538 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17539 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17540 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17541 | else |
17542 | case $WINDMC_FOR_TARGET in | |
17543 | [\\/]* | ?:[\\/]*) | |
17544 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17545 | ;; | |
17546 | *) | |
17547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17548 | for as_dir in $gcc_cv_tool_dirs | |
17549 | do | |
17550 | IFS=$as_save_IFS | |
17551 | test -z "$as_dir" && as_dir=. | |
5213506e | 17552 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17554 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17556 | break 2 |
17557 | fi | |
17558 | done | |
5213506e RW |
17559 | done |
17560 | IFS=$as_save_IFS | |
901119ae KT |
17561 | |
17562 | ;; | |
17563 | esac | |
17564 | fi | |
17565 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17566 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17568 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17569 | else |
5213506e RW |
17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17571 | $as_echo "no" >&6; } | |
901119ae KT |
17572 | fi |
17573 | ||
5213506e | 17574 | |
901119ae KT |
17575 | fi |
17576 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17577 | ||
17578 | ||
17579 | if test -n "$WINDMC_FOR_TARGET"; then | |
17580 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17581 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17582 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17583 | fi | |
17584 | ||
17585 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17586 | for ncn_progname in windmc; do | |
17587 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17588 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17590 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17591 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17592 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17593 | else |
17594 | if test -n "$WINDMC_FOR_TARGET"; then | |
17595 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17596 | else | |
17597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17598 | for as_dir in $PATH | |
17599 | do | |
17600 | IFS=$as_save_IFS | |
17601 | test -z "$as_dir" && as_dir=. | |
5213506e | 17602 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17604 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17606 | break 2 |
17607 | fi | |
17608 | done | |
5213506e RW |
17609 | done |
17610 | IFS=$as_save_IFS | |
901119ae KT |
17611 | |
17612 | fi | |
17613 | fi | |
17614 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17615 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17617 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17618 | else |
5213506e RW |
17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17620 | $as_echo "no" >&6; } | |
901119ae KT |
17621 | fi |
17622 | ||
5213506e | 17623 | |
901119ae KT |
17624 | done |
17625 | fi | |
17626 | ||
17627 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17628 | for ncn_progname in windmc; do | |
5213506e RW |
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17630 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17631 | if test -x $with_build_time_tools/${ncn_progname}; then |
17632 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17634 | $as_echo "yes" >&6; } | |
901119ae KT |
17635 | break |
17636 | else | |
5213506e RW |
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17638 | $as_echo "no" >&6; } | |
901119ae KT |
17639 | fi |
17640 | done | |
17641 | fi | |
17642 | ||
17643 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17644 | for ncn_progname in windmc; do | |
17645 | if test -n "$ncn_target_tool_prefix"; then | |
17646 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17647 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17649 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17650 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17651 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17652 | else |
17653 | if test -n "$WINDMC_FOR_TARGET"; then | |
17654 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17655 | else | |
17656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17657 | for as_dir in $PATH | |
17658 | do | |
17659 | IFS=$as_save_IFS | |
17660 | test -z "$as_dir" && as_dir=. | |
5213506e | 17661 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17663 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17665 | break 2 |
17666 | fi | |
17667 | done | |
5213506e RW |
17668 | done |
17669 | IFS=$as_save_IFS | |
901119ae KT |
17670 | |
17671 | fi | |
17672 | fi | |
17673 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17674 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17676 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17677 | else |
5213506e RW |
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17679 | $as_echo "no" >&6; } | |
901119ae KT |
17680 | fi |
17681 | ||
5213506e | 17682 | |
901119ae KT |
17683 | fi |
17684 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17685 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17686 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17688 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17689 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17690 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17691 | else |
17692 | if test -n "$WINDMC_FOR_TARGET"; then | |
17693 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17694 | else | |
17695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17696 | for as_dir in $PATH | |
17697 | do | |
17698 | IFS=$as_save_IFS | |
17699 | test -z "$as_dir" && as_dir=. | |
5213506e | 17700 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17702 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17704 | break 2 |
17705 | fi | |
17706 | done | |
5213506e RW |
17707 | done |
17708 | IFS=$as_save_IFS | |
901119ae KT |
17709 | |
17710 | fi | |
17711 | fi | |
17712 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17713 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17715 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17716 | else |
5213506e RW |
17717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17718 | $as_echo "no" >&6; } | |
901119ae KT |
17719 | fi |
17720 | ||
5213506e | 17721 | |
901119ae KT |
17722 | fi |
17723 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17724 | done | |
17725 | fi | |
17726 | ||
17727 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17728 | set dummy windmc | |
17729 | if test $build = $target ; then | |
17730 | WINDMC_FOR_TARGET="$2" | |
17731 | else | |
17732 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17733 | fi | |
1c00b503 PB |
17734 | else |
17735 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17736 | fi |
17737 | ||
17738 | else | |
17739 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17740 | fi | |
17741 | ||
17742 | ||
2abefe3d PB |
17743 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17744 | ||
5213506e RW |
17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17746 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17747 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17748 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17749 | # We already found the complete path | |
172e41aa | 17750 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17752 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17753 | else |
17754 | # Canadian cross, just use what we found | |
5213506e RW |
17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17756 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17757 | fi |
2abefe3d PB |
17758 | else |
17759 | ok=yes | |
17760 | case " ${configdirs} " in | |
17761 | *" binutils "*) ;; | |
17762 | *) ok=no ;; | |
17763 | esac | |
1c710c3c | 17764 | |
2abefe3d PB |
17765 | if test $ok = yes; then |
17766 | # An in-tree tool is available and we can use it | |
17767 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17769 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17770 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17771 | # We already found the complete path | |
172e41aa | 17772 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17774 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17775 | elif test "x$target" = "x$host"; then |
17776 | # We can use an host tool | |
17777 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17779 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17780 | else |
17781 | # We need a cross tool | |
5213506e RW |
17782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17783 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17784 | fi |
17785 | fi | |
0b0dc272 | 17786 | |
5213506e RW |
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17788 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17789 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17790 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17791 | # We already found the complete path | |
172e41aa | 17792 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17794 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17795 | else |
17796 | # Canadian cross, just use what we found | |
5213506e RW |
17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17798 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17799 | fi |
2abefe3d PB |
17800 | else |
17801 | ok=yes | |
17802 | case " ${configdirs} " in | |
17803 | *" gas "*) ;; | |
17804 | *) ok=no ;; | |
17805 | esac | |
1c710c3c | 17806 | |
2abefe3d PB |
17807 | if test $ok = yes; then |
17808 | # An in-tree tool is available and we can use it | |
17809 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17811 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17812 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17813 | # We already found the complete path | |
172e41aa | 17814 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17816 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17817 | elif test "x$target" = "x$host"; then |
17818 | # We can use an host tool | |
17819 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17821 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17822 | else |
17823 | # We need a cross tool | |
5213506e RW |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17825 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17826 | fi |
17827 | fi | |
0b0dc272 | 17828 | |
5213506e RW |
17829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17830 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17831 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17832 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17833 | # We already found the complete path | |
172e41aa | 17834 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17836 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17837 | else |
17838 | # Canadian cross, just use what we found | |
5213506e RW |
17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17840 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17841 | fi |
2abefe3d PB |
17842 | else |
17843 | ok=yes | |
17844 | case " ${configdirs} " in | |
17845 | *" gcc "*) ;; | |
17846 | *) ok=no ;; | |
17847 | esac | |
1c710c3c | 17848 | |
2abefe3d PB |
17849 | if test $ok = yes; then |
17850 | # An in-tree tool is available and we can use it | |
17851 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17853 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17854 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17855 | # We already found the complete path | |
172e41aa | 17856 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17858 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17859 | elif test "x$target" = "x$host"; then |
17860 | # We can use an host tool | |
17861 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17863 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17864 | else |
17865 | # We need a cross tool | |
5213506e RW |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17867 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17868 | fi |
17869 | fi | |
0b0dc272 | 17870 | |
5213506e RW |
17871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17872 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17873 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17874 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17875 | # We already found the complete path | |
172e41aa | 17876 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17878 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17879 | else |
17880 | # Canadian cross, just use what we found | |
5213506e RW |
17881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17882 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17883 | fi |
2abefe3d PB |
17884 | else |
17885 | ok=yes | |
17886 | case " ${configdirs} " in | |
17887 | *" gcc "*) ;; | |
17888 | *) ok=no ;; | |
17889 | esac | |
17890 | case ,${enable_languages}, in | |
17891 | *,c++,*) ;; | |
17892 | *) ok=no ;; | |
17893 | esac | |
17894 | if test $ok = yes; then | |
17895 | # An in-tree tool is available and we can use it | |
2077db1b | 17896 | 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 |
17897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17898 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17899 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17900 | # We already found the complete path | |
172e41aa | 17901 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17903 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17904 | elif test "x$target" = "x$host"; then |
17905 | # We can use an host tool | |
17906 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17908 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17909 | else |
17910 | # We need a cross tool | |
5213506e RW |
17911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17912 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17913 | fi |
17914 | fi | |
0b0dc272 | 17915 | |
5213506e RW |
17916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17917 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17918 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17919 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17920 | # We already found the complete path | |
172e41aa | 17921 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17923 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17924 | else |
17925 | # Canadian cross, just use what we found | |
5213506e RW |
17926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17927 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17928 | fi |
2abefe3d PB |
17929 | else |
17930 | ok=yes | |
17931 | case " ${configdirs} " in | |
17932 | *" gcc "*) ;; | |
17933 | *) ok=no ;; | |
17934 | esac | |
17935 | case ,${enable_languages}, in | |
17936 | *,c++,*) ;; | |
17937 | *) ok=no ;; | |
17938 | esac | |
17939 | if test $ok = yes; then | |
17940 | # An in-tree tool is available and we can use it | |
2077db1b | 17941 | 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 |
17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17943 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17944 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17945 | # We already found the complete path | |
172e41aa | 17946 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17948 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17949 | elif test "x$target" = "x$host"; then |
17950 | # We can use an host tool | |
17951 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17953 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17954 | else |
17955 | # We need a cross tool | |
5213506e RW |
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17957 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17958 | fi |
17959 | fi | |
0b0dc272 | 17960 | |
5213506e RW |
17961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17962 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 17963 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17964 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17965 | # We already found the complete path | |
172e41aa | 17966 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17968 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17969 | else |
17970 | # Canadian cross, just use what we found | |
5213506e RW |
17971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17972 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17973 | fi |
2abefe3d PB |
17974 | else |
17975 | ok=yes | |
17976 | case " ${configdirs} " in | |
17977 | *" binutils "*) ;; | |
17978 | *) ok=no ;; | |
17979 | esac | |
1c710c3c | 17980 | |
2abefe3d PB |
17981 | if test $ok = yes; then |
17982 | # An in-tree tool is available and we can use it | |
17983 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
17984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17985 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17986 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17987 | # We already found the complete path | |
172e41aa | 17988 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
17989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17990 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17991 | elif test "x$target" = "x$host"; then |
17992 | # We can use an host tool | |
17993 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17995 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17996 | else |
17997 | # We need a cross tool | |
5213506e RW |
17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17999 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18000 | fi |
18001 | fi | |
0b0dc272 | 18002 | |
3b5e8ee4 IS |
18003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
18004 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
18005 | if test "x${build}" != "x${host}" ; then | |
18006 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18007 | # We already found the complete path | |
18008 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18010 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18011 | else | |
18012 | # Canadian cross, just use what we found | |
18013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18014 | $as_echo "pre-installed" >&6; } | |
18015 | fi | |
18016 | else | |
18017 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18018 | # We already found the complete path | |
18019 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18021 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18022 | elif test "x$target" = "x$host"; then | |
18023 | # We can use an host tool | |
18024 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
18025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18026 | $as_echo "host tool" >&6; } | |
18027 | else | |
18028 | # We need a cross tool | |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18030 | $as_echo "pre-installed" >&6; } | |
18031 | fi | |
18032 | fi | |
18033 | ||
5213506e RW |
18034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
18035 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 18036 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18037 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18038 | # We already found the complete path | |
172e41aa | 18039 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18041 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18042 | else |
18043 | # Canadian cross, just use what we found | |
5213506e RW |
18044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18045 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18046 | fi |
2abefe3d PB |
18047 | else |
18048 | ok=yes | |
18049 | case " ${configdirs} " in | |
18050 | *" gcc "*) ;; | |
18051 | *) ok=no ;; | |
18052 | esac | |
1c710c3c | 18053 | |
2abefe3d PB |
18054 | if test $ok = yes; then |
18055 | # An in-tree tool is available and we can use it | |
18056 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18058 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18059 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18060 | # We already found the complete path | |
172e41aa | 18061 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18063 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18064 | elif test "x$target" = "x$host"; then |
18065 | # We can use an host tool | |
18066 | GCC_FOR_TARGET='$()' | |
5213506e RW |
18067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18068 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18069 | else |
18070 | # We need a cross tool | |
5213506e RW |
18071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18072 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18073 | fi |
18074 | fi | |
0b0dc272 | 18075 | |
5213506e RW |
18076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
18077 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 18078 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18079 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18080 | # We already found the complete path | |
172e41aa | 18081 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18083 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18084 | else |
18085 | # Canadian cross, just use what we found | |
5213506e RW |
18086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18087 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18088 | fi |
2abefe3d PB |
18089 | else |
18090 | ok=yes | |
18091 | case " ${configdirs} " in | |
18092 | *" gcc "*) ;; | |
18093 | *) ok=no ;; | |
18094 | esac | |
18095 | case ,${enable_languages}, in | |
18096 | *,fortran,*) ;; | |
18097 | *) ok=no ;; | |
18098 | esac | |
18099 | if test $ok = yes; then | |
18100 | # An in-tree tool is available and we can use it | |
18101 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18103 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18104 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18105 | # We already found the complete path | |
172e41aa | 18106 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18108 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18109 | elif test "x$target" = "x$host"; then |
18110 | # We can use an host tool | |
18111 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
18112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18113 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18114 | else |
18115 | # We need a cross tool | |
5213506e RW |
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18117 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18118 | fi |
18119 | fi | |
0b0dc272 | 18120 | |
632e2a07 ILT |
18121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
18122 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
18123 | if test "x${build}" != "x${host}" ; then | |
18124 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18125 | # We already found the complete path | |
18126 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18128 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18129 | else | |
18130 | # Canadian cross, just use what we found | |
18131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18132 | $as_echo "pre-installed" >&6; } | |
18133 | fi | |
18134 | else | |
18135 | ok=yes | |
18136 | case " ${configdirs} " in | |
18137 | *" gcc "*) ;; | |
18138 | *) ok=no ;; | |
18139 | esac | |
18140 | case ,${enable_languages}, in | |
18141 | *,go,*) ;; | |
18142 | *) ok=no ;; | |
18143 | esac | |
18144 | if test $ok = yes; then | |
18145 | # An in-tree tool is available and we can use it | |
18146 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18148 | $as_echo "just compiled" >&6; } | |
18149 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18150 | # We already found the complete path | |
18151 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18153 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18154 | elif test "x$target" = "x$host"; then | |
18155 | # We can use an host tool | |
18156 | GOC_FOR_TARGET='$(GOC)' | |
18157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18158 | $as_echo "host tool" >&6; } | |
18159 | else | |
18160 | # We need a cross tool | |
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18162 | $as_echo "pre-installed" >&6; } | |
18163 | fi | |
18164 | fi | |
18165 | ||
b4c522fa IB |
18166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
18167 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
18168 | if test "x${build}" != "x${host}" ; then | |
18169 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18170 | # We already found the complete path | |
18171 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18174 | else | |
18175 | # Canadian cross, just use what we found | |
18176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18177 | $as_echo "pre-installed" >&6; } | |
18178 | fi | |
18179 | else | |
18180 | ok=yes | |
18181 | case " ${configdirs} " in | |
18182 | *" gcc "*) ;; | |
18183 | *) ok=no ;; | |
18184 | esac | |
18185 | case ,${enable_languages}, in | |
18186 | *,d,*) ;; | |
18187 | *) ok=no ;; | |
18188 | esac | |
18189 | if test $ok = yes; then | |
18190 | # An in-tree tool is available and we can use it | |
18191 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18193 | $as_echo "just compiled" >&6; } | |
18194 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18195 | # We already found the complete path | |
18196 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18198 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18199 | elif test "x$target" = "x$host"; then | |
18200 | # We can use an host tool | |
18201 | GDC_FOR_TARGET='$(GDC)' | |
18202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18203 | $as_echo "host tool" >&6; } | |
18204 | else | |
18205 | # We need a cross tool | |
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18207 | $as_echo "pre-installed" >&6; } | |
18208 | fi | |
18209 | fi | |
18210 | ||
1eee94d3 GM |
18211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5 |
18212 | $as_echo_n "checking where to find the target gm2... " >&6; } | |
18213 | if test "x${build}" != "x${host}" ; then | |
18214 | if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18215 | # We already found the complete path | |
18216 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18218 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18219 | else | |
18220 | # Canadian cross, just use what we found | |
18221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18222 | $as_echo "pre-installed" >&6; } | |
18223 | fi | |
18224 | else | |
18225 | ok=yes | |
18226 | case " ${configdirs} " in | |
18227 | *" gcc "*) ;; | |
18228 | *) ok=no ;; | |
18229 | esac | |
18230 | case ,${enable_languages}, in | |
18231 | *,m2,*) ;; | |
18232 | *) ok=no ;; | |
18233 | esac | |
18234 | if test $ok = yes; then | |
18235 | # An in-tree tool is available and we can use it | |
18236 | GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/' | |
18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18238 | $as_echo "just compiled" >&6; } | |
18239 | elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18240 | # We already found the complete path | |
18241 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18243 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18244 | elif test "x$target" = "x$host"; then | |
18245 | # We can use an host tool | |
18246 | GM2_FOR_TARGET='$(GM2)' | |
18247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18248 | $as_echo "host tool" >&6; } | |
18249 | else | |
18250 | # We need a cross tool | |
18251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18252 | $as_echo "pre-installed" >&6; } | |
18253 | fi | |
18254 | fi | |
18255 | ||
5213506e RW |
18256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
18257 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 18258 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18259 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18260 | # We already found the complete path | |
172e41aa | 18261 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18263 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18264 | else |
18265 | # Canadian cross, just use what we found | |
5213506e RW |
18266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18267 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18268 | fi |
2abefe3d PB |
18269 | else |
18270 | ok=yes | |
18271 | case " ${configdirs} " in | |
18272 | *" ld "*) ;; | |
18273 | *) ok=no ;; | |
18274 | esac | |
1c710c3c | 18275 | |
2abefe3d PB |
18276 | if test $ok = yes; then |
18277 | # An in-tree tool is available and we can use it | |
18278 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
18279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18280 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18281 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18282 | # We already found the complete path | |
172e41aa | 18283 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18285 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18286 | elif test "x$target" = "x$host"; then |
18287 | # We can use an host tool | |
18288 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
18289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18290 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18291 | else |
18292 | # We need a cross tool | |
5213506e RW |
18293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18294 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18295 | fi |
18296 | fi | |
0b0dc272 | 18297 | |
5213506e RW |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18299 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 18300 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18301 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18302 | # We already found the complete path | |
172e41aa | 18303 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18305 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18306 | else |
18307 | # Canadian cross, just use what we found | |
5213506e RW |
18308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18309 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18310 | fi |
2abefe3d | 18311 | else |
e8b05380 PB |
18312 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18313 | # We already found the complete path | |
172e41aa | 18314 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18316 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 18317 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
18318 | # We can use an host tool |
18319 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
18320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18321 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18322 | else |
18323 | # We need a cross tool | |
5213506e RW |
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18325 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18326 | fi |
18327 | fi | |
0b0dc272 | 18328 | |
5213506e RW |
18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18330 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 18331 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18332 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18333 | # We already found the complete path | |
172e41aa | 18334 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18336 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18337 | else |
18338 | # Canadian cross, just use what we found | |
5213506e RW |
18339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18340 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18341 | fi |
2abefe3d PB |
18342 | else |
18343 | ok=yes | |
18344 | case " ${configdirs} " in | |
18345 | *" binutils "*) ;; | |
18346 | *) ok=no ;; | |
18347 | esac | |
1c710c3c | 18348 | |
2abefe3d PB |
18349 | if test $ok = yes; then |
18350 | # An in-tree tool is available and we can use it | |
18351 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
18352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18353 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18354 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18355 | # We already found the complete path | |
172e41aa | 18356 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18358 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18359 | elif test "x$target" = "x$host"; then |
18360 | # We can use an host tool | |
18361 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
18362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18363 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18364 | else |
18365 | # We need a cross tool | |
5213506e RW |
18366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18367 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18368 | fi |
18369 | fi | |
0b0dc272 | 18370 | |
9bccfdf5 AP |
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18372 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18373 | if test "x${build}" != "x${host}" ; then | |
18374 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18375 | # We already found the complete path | |
18376 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18378 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18379 | else | |
18380 | # Canadian cross, just use what we found | |
18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18382 | $as_echo "pre-installed" >&6; } | |
18383 | fi | |
18384 | else | |
18385 | ok=yes | |
18386 | case " ${configdirs} " in | |
18387 | *" binutils "*) ;; | |
18388 | *) ok=no ;; | |
18389 | esac | |
18390 | ||
18391 | if test $ok = yes; then | |
18392 | # An in-tree tool is available and we can use it | |
18393 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18395 | $as_echo "just compiled" >&6; } | |
18396 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18397 | # We already found the complete path | |
18398 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18400 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18401 | elif test "x$target" = "x$host"; then | |
18402 | # We can use an host tool | |
ec8fd1c0 | 18403 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
18404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18405 | $as_echo "host tool" >&6; } | |
18406 | else | |
18407 | # We need a cross tool | |
18408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18409 | $as_echo "pre-installed" >&6; } | |
18410 | fi | |
18411 | fi | |
18412 | ||
5213506e RW |
18413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18414 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 18415 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18416 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18417 | # We already found the complete path | |
172e41aa | 18418 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18420 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18421 | else |
18422 | # Canadian cross, just use what we found | |
5213506e RW |
18423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18424 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18425 | fi |
2abefe3d PB |
18426 | else |
18427 | ok=yes | |
18428 | case " ${configdirs} " in | |
18429 | *" binutils "*) ;; | |
18430 | *) ok=no ;; | |
18431 | esac | |
1c710c3c | 18432 | |
2abefe3d PB |
18433 | if test $ok = yes; then |
18434 | # An in-tree tool is available and we can use it | |
18435 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
18436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18437 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18438 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18439 | # We already found the complete path | |
172e41aa | 18440 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18442 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18443 | elif test "x$target" = "x$host"; then |
18444 | # We can use an host tool | |
18445 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
18446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18447 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18448 | else |
18449 | # We need a cross tool | |
5213506e RW |
18450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18451 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18452 | fi |
18453 | fi | |
0b0dc272 | 18454 | |
e4a9a572 IS |
18455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18456 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18457 | if test "x${build}" != "x${host}" ; then | |
18458 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18459 | # We already found the complete path | |
18460 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18462 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18463 | else | |
18464 | # Canadian cross, just use what we found | |
18465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18466 | $as_echo "pre-installed" >&6; } | |
18467 | fi | |
18468 | else | |
18469 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18470 | # We already found the complete path | |
18471 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18473 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18474 | elif test "x$target" = "x$host"; then | |
18475 | # We can use an host tool | |
18476 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18478 | $as_echo "host tool" >&6; } | |
18479 | else | |
18480 | # We need a cross tool | |
18481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18482 | $as_echo "pre-installed" >&6; } | |
18483 | fi | |
18484 | fi | |
18485 | ||
5213506e RW |
18486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18487 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 18488 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18489 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18490 | # We already found the complete path | |
172e41aa | 18491 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18493 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18494 | else |
18495 | # Canadian cross, just use what we found | |
5213506e RW |
18496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18497 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18498 | fi |
2abefe3d PB |
18499 | else |
18500 | ok=yes | |
18501 | case " ${configdirs} " in | |
18502 | *" binutils "*) ;; | |
18503 | *) ok=no ;; | |
18504 | esac | |
1c710c3c | 18505 | |
2abefe3d PB |
18506 | if test $ok = yes; then |
18507 | # An in-tree tool is available and we can use it | |
18508 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
18509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18510 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18511 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18512 | # We already found the complete path | |
172e41aa | 18513 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18515 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18516 | elif test "x$target" = "x$host"; then |
18517 | # We can use an host tool | |
18518 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
18519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18520 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18521 | else |
18522 | # We need a cross tool | |
5213506e RW |
18523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18524 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18525 | fi |
18526 | fi | |
0b0dc272 | 18527 | |
e7a82751 RM |
18528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18529 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18530 | if test "x${build}" != "x${host}" ; then | |
18531 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18532 | # We already found the complete path | |
18533 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18535 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18536 | else | |
18537 | # Canadian cross, just use what we found | |
18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18539 | $as_echo "pre-installed" >&6; } | |
18540 | fi | |
18541 | else | |
18542 | ok=yes | |
18543 | case " ${configdirs} " in | |
18544 | *" binutils "*) ;; | |
18545 | *) ok=no ;; | |
18546 | esac | |
18547 | ||
18548 | if test $ok = yes; then | |
18549 | # An in-tree tool is available and we can use it | |
18550 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18552 | $as_echo "just compiled" >&6; } | |
18553 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18554 | # We already found the complete path | |
18555 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18557 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18558 | elif test "x$target" = "x$host"; then | |
18559 | # We can use an host tool | |
18560 | READELF_FOR_TARGET='$(READELF)' | |
18561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18562 | $as_echo "host tool" >&6; } | |
18563 | else | |
18564 | # We need a cross tool | |
18565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18566 | $as_echo "pre-installed" >&6; } | |
18567 | fi | |
18568 | fi | |
18569 | ||
5213506e RW |
18570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18571 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18572 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18573 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18574 | # We already found the complete path | |
172e41aa | 18575 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18577 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18578 | else |
18579 | # Canadian cross, just use what we found | |
5213506e RW |
18580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18581 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18582 | fi |
2abefe3d PB |
18583 | else |
18584 | ok=yes | |
18585 | case " ${configdirs} " in | |
18586 | *" binutils "*) ;; | |
18587 | *) ok=no ;; | |
18588 | esac | |
1c710c3c | 18589 | |
2abefe3d PB |
18590 | if test $ok = yes; then |
18591 | # An in-tree tool is available and we can use it | |
455c8f48 | 18592 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18594 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18595 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18596 | # We already found the complete path | |
172e41aa | 18597 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18599 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18600 | elif test "x$target" = "x$host"; then |
18601 | # We can use an host tool | |
18602 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18604 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18605 | else |
18606 | # We need a cross tool | |
5213506e RW |
18607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18608 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18609 | fi |
18610 | fi | |
0b0dc272 | 18611 | |
5213506e RW |
18612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18613 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18614 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18615 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18616 | # We already found the complete path | |
172e41aa | 18617 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18619 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18620 | else |
18621 | # Canadian cross, just use what we found | |
5213506e RW |
18622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18623 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18624 | fi |
2abefe3d PB |
18625 | else |
18626 | ok=yes | |
18627 | case " ${configdirs} " in | |
18628 | *" binutils "*) ;; | |
18629 | *) ok=no ;; | |
18630 | esac | |
1c710c3c | 18631 | |
2abefe3d PB |
18632 | if test $ok = yes; then |
18633 | # An in-tree tool is available and we can use it | |
18634 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18636 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18637 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18638 | # We already found the complete path | |
172e41aa | 18639 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18641 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18642 | elif test "x$target" = "x$host"; then |
18643 | # We can use an host tool | |
18644 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18646 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18647 | else |
18648 | # We need a cross tool | |
5213506e RW |
18649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18650 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18651 | fi |
671aa708 | 18652 | fi |
be912515 | 18653 | |
5213506e RW |
18654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18655 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18656 | if test "x${build}" != "x${host}" ; then |
18657 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18658 | # We already found the complete path | |
18659 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18661 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18662 | else |
18663 | # Canadian cross, just use what we found | |
5213506e RW |
18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18665 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18666 | fi |
18667 | else | |
18668 | ok=yes | |
18669 | case " ${configdirs} " in | |
18670 | *" binutils "*) ;; | |
18671 | *) ok=no ;; | |
18672 | esac | |
18673 | ||
18674 | if test $ok = yes; then | |
18675 | # An in-tree tool is available and we can use it | |
18676 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18678 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18679 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18680 | # We already found the complete path | |
18681 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18683 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18684 | elif test "x$target" = "x$host"; then |
18685 | # We can use an host tool | |
18686 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18688 | $as_echo "host tool" >&6; } | |
901119ae KT |
18689 | else |
18690 | # We need a cross tool | |
5213506e RW |
18691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18692 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18693 | fi |
18694 | fi | |
18695 | ||
be912515 NN |
18696 | |
18697 | ||
2abefe3d | 18698 | |
0b0dc272 | 18699 | |
671aa708 NN |
18700 | # Certain tools may need extra flags. |
18701 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18702 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18703 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18704 | ||
2abefe3d PB |
18705 | # When building target libraries, except in a Canadian cross, we use |
18706 | # the same toolchain as the compiler we just built. | |
18707 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18708 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18709 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18710 | if test $host = $build; then | |
18711 | case " $configdirs " in | |
18712 | *" gcc "*) | |
18713 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18714 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18715 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18716 | ;; | |
18717 | esac | |
18718 | fi | |
18719 | ||
18720 | ||
18721 | ||
18722 | ||
18723 | ||
5213506e RW |
18724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18725 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18726 | # Check whether --enable-maintainer-mode was given. | |
18727 | if test "${enable_maintainer_mode+set}" = set; then : | |
18728 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18729 | else |
18730 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18731 | fi |
18732 | ||
18733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18734 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18735 | |
18736 | ||
18737 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18738 | MAINTAINER_MODE_TRUE= | |
18739 | MAINTAINER_MODE_FALSE='#' | |
18740 | else | |
18741 | MAINTAINER_MODE_TRUE='#' | |
18742 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18743 | fi |
ee03dc5e AO |
18744 | MAINT=$MAINTAINER_MODE_TRUE |
18745 | ||
2805b53a NN |
18746 | # --------------------- |
18747 | # GCC bootstrap support | |
18748 | # --------------------- | |
18749 | ||
18750 | # Stage specific cflags for build. | |
18751 | stage1_cflags="-g" | |
18752 | case $build in | |
18753 | vax-*-*) | |
18754 | case ${GCC} in | |
18755 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18756 | *) stage1_cflags="-g -J" ;; | |
18757 | esac ;; | |
2805b53a NN |
18758 | esac |
18759 | ||
0b50988a | 18760 | |
2805b53a | 18761 | |
8efea775 | 18762 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18763 | # Check whether --enable-stage1-checking was given. |
18764 | if test "${enable_stage1_checking+set}" = set; then : | |
18765 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18766 | else |
e643dc23 | 18767 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18768 | # For --disable-checking or implicit --enable-checking=release, avoid |
18769 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18770 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18771 | case $BUILD_CONFIG in |
18772 | *lto*) | |
7db11a5a JJ |
18773 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18774 | *) | |
18775 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18776 | esac |
7db11a5a JJ |
18777 | if test "x$enable_checking" = x && \ |
18778 | test -d ${srcdir}/gcc && \ | |
18779 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18780 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18781 | fi |
8efea775 | 18782 | else |
e643dc23 | 18783 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18784 | fi |
5213506e | 18785 | fi |
8efea775 PB |
18786 | |
18787 | ||
2aeb72e9 | 18788 | |
5213506e RW |
18789 | # Enable -Werror in bootstrap stage2 and later. |
18790 | # Check whether --enable-werror was given. | |
18791 | if test "${enable_werror+set}" = set; then : | |
18792 | enableval=$enable_werror; | |
09a9c095 NN |
18793 | case ${enable_werror} in |
18794 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18795 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18796 | esac |
18797 | ||
afd88efc ML |
18798 | else |
18799 | ||
01c712cb ML |
18800 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18801 | case $BUILD_CONFIG in | |
18802 | bootstrap-debug) | |
18803 | stage2_werror_flag="--enable-werror-always" ;; | |
18804 | "") | |
18805 | stage2_werror_flag="--enable-werror-always" ;; | |
18806 | esac | |
18807 | fi | |
18808 | ||
afd88efc ML |
18809 | fi |
18810 | ||
18811 | ||
01c712cb | 18812 | |
2805b53a | 18813 | |
f2689b09 SE |
18814 | # Specify what files to not compare during bootstrap. |
18815 | ||
18816 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
1eee94d3 GM |
18817 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*" |
18818 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*" | |
18819 | compare_exclusions="$compare_exclusions | gcc/m2/gm2version*" | |
f2689b09 SE |
18820 | case "$target" in |
18821 | hppa*64*-*-hpux*) ;; | |
4f943869 | 18822 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
f2689b09 SE |
18823 | esac |
18824 | ||
18825 | ||
5213506e RW |
18826 | ac_config_files="$ac_config_files Makefile" |
18827 | ||
1c710c3c | 18828 | cat >confcache <<\_ACEOF |
671aa708 NN |
18829 | # This file is a shell script that caches the results of configure |
18830 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18831 | # scripts and configure runs, see configure's option --config-cache. |
18832 | # It is not useful on other systems. If it contains results you don't | |
18833 | # want to keep, you may remove or edit it. | |
671aa708 | 18834 | # |
1c710c3c DJ |
18835 | # config.status only pays attention to the cache file if you give it |
18836 | # the --recheck option to rerun configure. | |
671aa708 | 18837 | # |
1c710c3c DJ |
18838 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18839 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18840 | # following values. | |
18841 | ||
18842 | _ACEOF | |
18843 | ||
671aa708 NN |
18844 | # The following way of writing the cache mishandles newlines in values, |
18845 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18846 | # So, we kill variables containing newlines. |
671aa708 NN |
18847 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18848 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18849 | ( |
18850 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18851 | eval ac_val=\$$ac_var | |
18852 | case $ac_val in #( | |
18853 | *${as_nl}*) | |
18854 | case $ac_var in #( | |
18855 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18856 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18857 | esac | |
18858 | case $ac_var in #( | |
18859 | _ | IFS | as_nl) ;; #( | |
18860 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18861 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18862 | esac ;; | |
18863 | esac | |
18864 | done | |
18865 | ||
1c710c3c | 18866 | (set) 2>&1 | |
5213506e RW |
18867 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18868 | *${as_nl}ac_space=\ *) | |
18869 | # `set' does not quote correctly, so add quotes: double-quote | |
18870 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18871 | sed -n \ |
18872 | "s/'/'\\\\''/g; | |
18873 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18874 | ;; #( |
1c710c3c DJ |
18875 | *) |
18876 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18877 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18878 | ;; |
5213506e RW |
18879 | esac | |
18880 | sort | |
18881 | ) | | |
1c710c3c | 18882 | sed ' |
5213506e | 18883 | /^ac_cv_env_/b end |
1c710c3c | 18884 | t clear |
5213506e | 18885 | :clear |
1c710c3c DJ |
18886 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18887 | t end | |
5213506e RW |
18888 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18889 | :end' >>confcache | |
18890 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18891 | if test -w "$cache_file"; then | |
22e05272 | 18892 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18893 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18894 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18895 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18896 | cat confcache >"$cache_file" | |
18897 | else | |
18898 | case $cache_file in #( | |
18899 | */* | ?:*) | |
18900 | mv -f confcache "$cache_file"$$ && | |
18901 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18902 | *) | |
18903 | mv -f confcache "$cache_file" ;; | |
18904 | esac | |
18905 | fi | |
18906 | fi | |
671aa708 | 18907 | else |
5213506e RW |
18908 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18909 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18910 | fi |
4977bab6 | 18911 | fi |
671aa708 | 18912 | rm -f confcache |
79c06341 | 18913 | |
671aa708 NN |
18914 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18915 | # Let make expand exec_prefix. | |
18916 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18917 | |
671aa708 NN |
18918 | # Transform confdefs.h into DEFS. |
18919 | # Protect against shell expansion while executing Makefile rules. | |
18920 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18921 | # |
18922 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18923 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18924 | # look for a macro that doesn't take arguments. |
5213506e RW |
18925 | ac_script=' |
18926 | :mline | |
18927 | /\\$/{ | |
18928 | N | |
18929 | s,\\\n,, | |
18930 | b mline | |
18931 | } | |
1c710c3c | 18932 | t clear |
5213506e RW |
18933 | :clear |
18934 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18935 | t quote |
5213506e | 18936 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18937 | t quote |
5213506e RW |
18938 | b any |
18939 | :quote | |
18940 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18941 | s/\[/\\&/g | |
18942 | s/\]/\\&/g | |
18943 | s/\$/$$/g | |
18944 | H | |
18945 | :any | |
18946 | ${ | |
18947 | g | |
18948 | s/^\n// | |
18949 | s/\n/ /g | |
18950 | p | |
18951 | } | |
18952 | ' | |
18953 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18954 | |
18955 | ||
18956 | ac_libobjs= | |
18957 | ac_ltlibobjs= | |
22e05272 | 18958 | U= |
1c710c3c DJ |
18959 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18960 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
18961 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18962 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18963 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18964 | # will be set to the directory where LIBOBJS objects are built. | |
18965 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18966 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
18967 | done |
18968 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 18969 | |
1c710c3c | 18970 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 18971 | |
af71363e | 18972 | |
1c710c3c | 18973 | |
22e05272 | 18974 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 18975 | ac_write_fail=0 |
1c710c3c DJ |
18976 | ac_clean_files_save=$ac_clean_files |
18977 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
18978 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18979 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18980 | as_write_fail=0 | |
18981 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
18982 | #! $SHELL |
18983 | # Generated by $as_me. | |
671aa708 | 18984 | # Run this file to recreate the current configuration. |
671aa708 | 18985 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 18986 | # configure, is in config.log if it exists. |
0b0dc272 | 18987 | |
1c710c3c DJ |
18988 | debug=false |
18989 | ac_cs_recheck=false | |
18990 | ac_cs_silent=false | |
1c710c3c | 18991 | |
5213506e RW |
18992 | SHELL=\${CONFIG_SHELL-$SHELL} |
18993 | export SHELL | |
18994 | _ASEOF | |
18995 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18996 | ## -------------------- ## | |
18997 | ## M4sh Initialization. ## | |
18998 | ## -------------------- ## | |
18999 | ||
19000 | # Be more Bourne compatible | |
19001 | DUALCASE=1; export DUALCASE # for MKS sh | |
19002 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
19003 | emulate sh |
19004 | NULLCMD=: | |
5213506e | 19005 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
19006 | # is contrary to our usage. Disable this feature. |
19007 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
19008 | setopt NO_GLOB_SUBST |
19009 | else | |
19010 | case `(set -o) 2>/dev/null` in #( | |
19011 | *posix*) : | |
19012 | set -o posix ;; #( | |
19013 | *) : | |
19014 | ;; | |
19015 | esac | |
1c710c3c | 19016 | fi |
1c710c3c | 19017 | |
5213506e RW |
19018 | |
19019 | as_nl=' | |
19020 | ' | |
19021 | export as_nl | |
19022 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19023 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19024 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19025 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19026 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19027 | # but without wasting forks for bash or zsh. | |
19028 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19029 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19030 | as_echo='print -r --' | |
19031 | as_echo_n='print -rn --' | |
19032 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19033 | as_echo='printf %s\n' | |
19034 | as_echo_n='printf %s' | |
19035 | else | |
19036 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19037 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19038 | as_echo_n='/usr/ucb/echo -n' | |
19039 | else | |
19040 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19041 | as_echo_n_body='eval | |
19042 | arg=$1; | |
19043 | case $arg in #( | |
19044 | *"$as_nl"*) | |
19045 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19046 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19047 | esac; | |
19048 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19049 | ' | |
19050 | export as_echo_n_body | |
19051 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19052 | fi | |
19053 | export as_echo_body | |
19054 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
19055 | fi |
19056 | ||
5213506e RW |
19057 | # The user is always right. |
19058 | if test "${PATH_SEPARATOR+set}" != set; then | |
19059 | PATH_SEPARATOR=: | |
19060 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19061 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19062 | PATH_SEPARATOR=';' | |
19063 | } | |
19064 | fi | |
19065 | ||
19066 | ||
19067 | # IFS | |
19068 | # We need space, tab and new line, in precisely that order. Quoting is | |
19069 | # there to prevent editors from complaining about space-tab. | |
19070 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19071 | # splitting by setting IFS to empty value.) | |
19072 | IFS=" "" $as_nl" | |
19073 | ||
19074 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 19075 | as_myself= |
5213506e RW |
19076 | case $0 in #(( |
19077 | *[\\/]* ) as_myself=$0 ;; | |
19078 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19079 | for as_dir in $PATH | |
19080 | do | |
19081 | IFS=$as_save_IFS | |
19082 | test -z "$as_dir" && as_dir=. | |
19083 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19084 | done | |
19085 | IFS=$as_save_IFS | |
19086 | ||
19087 | ;; | |
19088 | esac | |
19089 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19090 | # in which case we are not to be found in the path. | |
19091 | if test "x$as_myself" = x; then | |
19092 | as_myself=$0 | |
19093 | fi | |
19094 | if test ! -f "$as_myself"; then | |
19095 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19096 | exit 1 | |
19097 | fi | |
1c710c3c | 19098 | |
5213506e RW |
19099 | # Unset variables that we do not need and which cause bugs (e.g. in |
19100 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19101 | # suppresses any "Segmentation fault" message there. '((' could | |
19102 | # trigger a bug in pdksh 5.2.14. | |
19103 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19104 | do eval test x\${$as_var+set} = xset \ | |
19105 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19106 | done | |
1c710c3c DJ |
19107 | PS1='$ ' |
19108 | PS2='> ' | |
19109 | PS4='+ ' | |
19110 | ||
19111 | # NLS nuisances. | |
5213506e RW |
19112 | LC_ALL=C |
19113 | export LC_ALL | |
19114 | LANGUAGE=C | |
19115 | export LANGUAGE | |
19116 | ||
19117 | # CDPATH. | |
19118 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19119 | ||
19120 | ||
22e05272 JM |
19121 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
19122 | # ---------------------------------------- | |
5213506e RW |
19123 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
19124 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 19125 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
19126 | as_fn_error () |
19127 | { | |
22e05272 JM |
19128 | as_status=$1; test $as_status -eq 0 && as_status=1 |
19129 | if test "$4"; then | |
19130 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19131 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 19132 | fi |
22e05272 | 19133 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
19134 | as_fn_exit $as_status |
19135 | } # as_fn_error | |
19136 | ||
19137 | ||
19138 | # as_fn_set_status STATUS | |
19139 | # ----------------------- | |
19140 | # Set $? to STATUS, without forking. | |
19141 | as_fn_set_status () | |
19142 | { | |
19143 | return $1 | |
19144 | } # as_fn_set_status | |
19145 | ||
19146 | # as_fn_exit STATUS | |
19147 | # ----------------- | |
19148 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19149 | as_fn_exit () | |
19150 | { | |
19151 | set +e | |
19152 | as_fn_set_status $1 | |
19153 | exit $1 | |
19154 | } # as_fn_exit | |
19155 | ||
19156 | # as_fn_unset VAR | |
19157 | # --------------- | |
19158 | # Portably unset VAR. | |
19159 | as_fn_unset () | |
19160 | { | |
19161 | { eval $1=; unset $1;} | |
19162 | } | |
19163 | as_unset=as_fn_unset | |
19164 | # as_fn_append VAR VALUE | |
19165 | # ---------------------- | |
19166 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19167 | # advantage of any shell optimizations that allow amortized linear growth over | |
19168 | # repeated appends, instead of the typical quadratic growth present in naive | |
19169 | # implementations. | |
19170 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19171 | eval 'as_fn_append () | |
19172 | { | |
19173 | eval $1+=\$2 | |
19174 | }' | |
19175 | else | |
19176 | as_fn_append () | |
19177 | { | |
19178 | eval $1=\$$1\$2 | |
19179 | } | |
19180 | fi # as_fn_append | |
19181 | ||
19182 | # as_fn_arith ARG... | |
19183 | # ------------------ | |
19184 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19185 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19186 | # must be portable across $(()) and expr. | |
19187 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19188 | eval 'as_fn_arith () | |
19189 | { | |
19190 | as_val=$(( $* )) | |
19191 | }' | |
19192 | else | |
19193 | as_fn_arith () | |
19194 | { | |
19195 | as_val=`expr "$@" || test $? -eq 1` | |
19196 | } | |
19197 | fi # as_fn_arith | |
19198 | ||
1c710c3c | 19199 | |
5213506e RW |
19200 | if expr a : '\(a\)' >/dev/null 2>&1 && |
19201 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
19202 | as_expr=expr |
19203 | else | |
19204 | as_expr=false | |
19205 | fi | |
19206 | ||
5213506e | 19207 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
19208 | as_basename=basename |
19209 | else | |
19210 | as_basename=false | |
19211 | fi | |
19212 | ||
5213506e RW |
19213 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
19214 | as_dirname=dirname | |
19215 | else | |
19216 | as_dirname=false | |
19217 | fi | |
1c710c3c | 19218 | |
5213506e | 19219 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
19220 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19221 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
19222 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
19223 | $as_echo X/"$0" | | |
19224 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19225 | s//\1/ | |
19226 | q | |
19227 | } | |
19228 | /^X\/\(\/\/\)$/{ | |
19229 | s//\1/ | |
19230 | q | |
19231 | } | |
19232 | /^X\/\(\/\).*/{ | |
19233 | s//\1/ | |
19234 | q | |
19235 | } | |
19236 | s/.*/./; q'` | |
2aeb72e9 | 19237 | |
2aeb72e9 DD |
19238 | # Avoid depending upon Character Ranges. |
19239 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19240 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19241 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19242 | as_cr_digits='0123456789' | |
19243 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19244 | ||
5213506e RW |
19245 | ECHO_C= ECHO_N= ECHO_T= |
19246 | case `echo -n x` in #((((( | |
19247 | -n*) | |
19248 | case `echo 'xy\c'` in | |
19249 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19250 | xy) ECHO_C='\c';; | |
19251 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19252 | ECHO_T=' ';; | |
19253 | esac;; | |
19254 | *) | |
19255 | ECHO_N='-n';; | |
1c710c3c DJ |
19256 | esac |
19257 | ||
5213506e RW |
19258 | rm -f conf$$ conf$$.exe conf$$.file |
19259 | if test -d conf$$.dir; then | |
19260 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 19261 | else |
5213506e RW |
19262 | rm -f conf$$.dir |
19263 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 19264 | fi |
5213506e RW |
19265 | if (echo >conf$$.file) 2>/dev/null; then |
19266 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 19267 | as_ln_s='ln -s' |
5213506e RW |
19268 | # ... but there are two gotchas: |
19269 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19270 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 19271 | # In both cases, we have to default to `cp -pR'. |
5213506e | 19272 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 19273 | as_ln_s='cp -pR' |
5213506e RW |
19274 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19275 | as_ln_s=ln | |
19276 | else | |
22e05272 | 19277 | as_ln_s='cp -pR' |
2aeb72e9 | 19278 | fi |
1c710c3c | 19279 | else |
22e05272 | 19280 | as_ln_s='cp -pR' |
1c710c3c | 19281 | fi |
5213506e RW |
19282 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19283 | rmdir conf$$.dir 2>/dev/null | |
19284 | ||
19285 | ||
19286 | # as_fn_mkdir_p | |
19287 | # ------------- | |
19288 | # Create "$as_dir" as a directory, including parents if necessary. | |
19289 | as_fn_mkdir_p () | |
19290 | { | |
19291 | ||
19292 | case $as_dir in #( | |
19293 | -*) as_dir=./$as_dir;; | |
19294 | esac | |
19295 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19296 | as_dirs= | |
19297 | while :; do | |
19298 | case $as_dir in #( | |
19299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19300 | *) as_qdir=$as_dir;; | |
19301 | esac | |
19302 | as_dirs="'$as_qdir' $as_dirs" | |
19303 | as_dir=`$as_dirname -- "$as_dir" || | |
19304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19305 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19306 | X"$as_dir" : 'X\(//\)$' \| \ | |
19307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19308 | $as_echo X"$as_dir" | | |
19309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19310 | s//\1/ | |
19311 | q | |
19312 | } | |
19313 | /^X\(\/\/\)[^/].*/{ | |
19314 | s//\1/ | |
19315 | q | |
19316 | } | |
19317 | /^X\(\/\/\)$/{ | |
19318 | s//\1/ | |
19319 | q | |
19320 | } | |
19321 | /^X\(\/\).*/{ | |
19322 | s//\1/ | |
19323 | q | |
19324 | } | |
19325 | s/.*/./; q'` | |
19326 | test -d "$as_dir" && break | |
19327 | done | |
19328 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 19329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 19330 | |
1c710c3c | 19331 | |
5213506e | 19332 | } # as_fn_mkdir_p |
1c710c3c | 19333 | if mkdir -p . 2>/dev/null; then |
5213506e | 19334 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
19335 | else |
19336 | test -d ./-p && rmdir ./-p | |
19337 | as_mkdir_p=false | |
19338 | fi | |
19339 | ||
22e05272 JM |
19340 | |
19341 | # as_fn_executable_p FILE | |
19342 | # ----------------------- | |
19343 | # Test if FILE is an executable regular file. | |
19344 | as_fn_executable_p () | |
19345 | { | |
19346 | test -f "$1" && test -x "$1" | |
19347 | } # as_fn_executable_p | |
19348 | as_test_x='test -x' | |
19349 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
19350 | |
19351 | # Sed expression to map a string onto a valid CPP name. | |
19352 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19353 | ||
19354 | # Sed expression to map a string onto a valid variable name. | |
19355 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19356 | ||
19357 | ||
1c710c3c | 19358 | exec 6>&1 |
5213506e RW |
19359 | ## ----------------------------------- ## |
19360 | ## Main body of $CONFIG_STATUS script. ## | |
19361 | ## ----------------------------------- ## | |
19362 | _ASEOF | |
19363 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19364 | ||
19365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19366 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 19367 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
19368 | # values after options handling. |
19369 | ac_log=" | |
1c710c3c | 19370 | This file was extended by $as_me, which was |
22e05272 | 19371 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
19372 | |
19373 | CONFIG_FILES = $CONFIG_FILES | |
19374 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19375 | CONFIG_LINKS = $CONFIG_LINKS | |
19376 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19377 | $ $0 $@ | |
19378 | ||
5213506e RW |
19379 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19380 | " | |
19381 | ||
1c710c3c DJ |
19382 | _ACEOF |
19383 | ||
5213506e RW |
19384 | case $ac_config_files in *" |
19385 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19386 | esac | |
1c710c3c | 19387 | |
2aeb72e9 | 19388 | |
2aeb72e9 | 19389 | |
5213506e RW |
19390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19391 | # Files that config.status was made for. | |
19392 | config_files="$ac_config_files" | |
1c710c3c | 19393 | |
5213506e | 19394 | _ACEOF |
2aeb72e9 | 19395 | |
5213506e | 19396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 19397 | ac_cs_usage="\ |
5213506e RW |
19398 | \`$as_me' instantiates files and other configuration actions |
19399 | from templates according to the current configuration. Unless the files | |
19400 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 19401 | |
5213506e | 19402 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
19403 | |
19404 | -h, --help print this help, then exit | |
5213506e | 19405 | -V, --version print version number and configuration settings, then exit |
22e05272 | 19406 | --config print configuration, then exit |
5213506e RW |
19407 | -q, --quiet, --silent |
19408 | do not print progress messages | |
1c710c3c DJ |
19409 | -d, --debug don't remove temporary files |
19410 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
19411 | --file=FILE[:TEMPLATE] |
19412 | instantiate the configuration file FILE | |
1c710c3c DJ |
19413 | |
19414 | Configuration files: | |
19415 | $config_files | |
19416 | ||
5213506e | 19417 | Report bugs to the package provider." |
2aeb72e9 | 19418 | |
5213506e RW |
19419 | _ACEOF |
19420 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19421 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
19422 | ac_cs_version="\\ |
19423 | config.status | |
22e05272 JM |
19424 | configured by $0, generated by GNU Autoconf 2.69, |
19425 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 19426 | |
22e05272 | 19427 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
19428 | This config.status script is free software; the Free Software Foundation |
19429 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
19430 | |
19431 | ac_pwd='$ac_pwd' | |
19432 | srcdir='$srcdir' | |
19433 | INSTALL='$INSTALL' | |
87264276 | 19434 | AWK='$AWK' |
5213506e | 19435 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
19436 | _ACEOF |
19437 | ||
5213506e RW |
19438 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19439 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
19440 | ac_need_defaults=: |
19441 | while test $# != 0 | |
a4b9e93e | 19442 | do |
1c710c3c | 19443 | case $1 in |
22e05272 | 19444 | --*=?*) |
5213506e RW |
19445 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19446 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
19447 | ac_shift=: |
19448 | ;; | |
22e05272 JM |
19449 | --*=) |
19450 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19451 | ac_optarg= | |
19452 | ac_shift=: | |
19453 | ;; | |
5213506e | 19454 | *) |
1c710c3c DJ |
19455 | ac_option=$1 |
19456 | ac_optarg=$2 | |
19457 | ac_shift=shift | |
19458 | ;; | |
1c710c3c DJ |
19459 | esac |
19460 | ||
19461 | case $ac_option in | |
19462 | # Handling of the options. | |
671aa708 | 19463 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 19464 | ac_cs_recheck=: ;; |
5213506e RW |
19465 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19466 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
19467 | --config | --confi | --conf | --con | --co | --c ) |
19468 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 19469 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
19470 | debug=: ;; |
19471 | --file | --fil | --fi | --f ) | |
19472 | $ac_shift | |
5213506e RW |
19473 | case $ac_optarg in |
19474 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 19475 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
19476 | esac |
19477 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 19478 | ac_need_defaults=false;; |
5213506e RW |
19479 | --he | --h | --help | --hel | -h ) |
19480 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
19481 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19482 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19483 | ac_cs_silent=: ;; | |
19484 | ||
19485 | # This is an error. | |
22e05272 | 19486 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 19487 | Try \`$0 --help' for more information." ;; |
1c710c3c | 19488 | |
5213506e RW |
19489 | *) as_fn_append ac_config_targets " $1" |
19490 | ac_need_defaults=false ;; | |
1c710c3c | 19491 | |
0b0dc272 | 19492 | esac |
1c710c3c | 19493 | shift |
0b0dc272 AM |
19494 | done |
19495 | ||
1c710c3c | 19496 | ac_configure_extra_args= |
0b0dc272 | 19497 | |
1c710c3c DJ |
19498 | if $ac_cs_silent; then |
19499 | exec 6>/dev/null | |
19500 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19501 | fi | |
0b0dc272 | 19502 | |
1c710c3c | 19503 | _ACEOF |
5213506e | 19504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 19505 | if \$ac_cs_recheck; then |
22e05272 | 19506 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
19507 | shift |
19508 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19509 | CONFIG_SHELL='$SHELL' | |
19510 | export CONFIG_SHELL | |
19511 | exec "\$@" | |
1c710c3c DJ |
19512 | fi |
19513 | ||
19514 | _ACEOF | |
5213506e RW |
19515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19516 | exec 5>>config.log | |
19517 | { | |
19518 | echo | |
19519 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19520 | ## Running $as_me. ## | |
19521 | _ASBOX | |
19522 | $as_echo "$ac_log" | |
19523 | } >&5 | |
1c710c3c | 19524 | |
5213506e RW |
19525 | _ACEOF |
19526 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19527 | # |
19528 | # INIT-COMMANDS | |
19529 | # | |
19530 | extrasub_build="$extrasub_build" | |
19531 | extrasub_host="$extrasub_host" | |
19532 | extrasub_target="$extrasub_target" | |
19533 | ||
5213506e | 19534 | _ACEOF |
1c710c3c | 19535 | |
5213506e | 19536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19537 | |
5213506e | 19538 | # Handling of arguments. |
1c710c3c DJ |
19539 | for ac_config_target in $ac_config_targets |
19540 | do | |
5213506e RW |
19541 | case $ac_config_target in |
19542 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19543 | ||
22e05272 | 19544 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19545 | esac |
19546 | done | |
19547 | ||
5213506e | 19548 | |
1c710c3c DJ |
19549 | # If the user did not use the arguments to specify the items to instantiate, |
19550 | # then the envvar interface is used. Set only those that are not. | |
19551 | # We use the long form for the default assignment because of an extremely | |
19552 | # bizarre bug on SunOS 4.1.3. | |
19553 | if $ac_need_defaults; then | |
19554 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19555 | fi | |
19556 | ||
19557 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19558 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19559 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19560 | # Hook for its removal unless debugging. |
19561 | # Note that there is a small window in which the directory will not be cleaned: | |
19562 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19563 | $debug || |
19564 | { | |
22e05272 | 19565 | tmp= ac_tmp= |
5213506e | 19566 | trap 'exit_status=$? |
22e05272 JM |
19567 | : "${ac_tmp:=$tmp}" |
19568 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19569 | ' 0 |
19570 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19571 | } |
1c710c3c DJ |
19572 | # Create a (secure) tmp directory for tmp files. |
19573 | ||
19574 | { | |
5213506e | 19575 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19576 | test -d "$tmp" |
1c710c3c DJ |
19577 | } || |
19578 | { | |
5213506e RW |
19579 | tmp=./conf$$-$RANDOM |
19580 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19581 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19582 | ac_tmp=$tmp | |
5213506e RW |
19583 | |
19584 | # Set up the scripts for CONFIG_FILES section. | |
19585 | # No need to generate them if there are no CONFIG_FILES. | |
19586 | # This happens for instance with `./config.status config.h'. | |
19587 | if test -n "$CONFIG_FILES"; then | |
19588 | ||
19589 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19590 | ac_cs_awk_getline=: | |
19591 | ac_cs_awk_pipe_init= | |
19592 | ac_cs_awk_read_file=' | |
19593 | while ((getline aline < (F[key])) > 0) | |
19594 | print(aline) | |
19595 | close(F[key])' | |
19596 | ac_cs_awk_pipe_fini= | |
19597 | else | |
19598 | ac_cs_awk_getline=false | |
19599 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19600 | ac_cs_awk_read_file=' | |
19601 | print "|#_!!_#|" | |
19602 | print "cat " F[key] " &&" | |
19603 | '$ac_cs_awk_pipe_init | |
19604 | # The final `:' finishes the AND list. | |
19605 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19606 | fi | |
19607 | ac_cr=`echo X | tr X '\015'` | |
19608 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19609 | # But we know of no other shell where ac_cr would be empty at this | |
19610 | # point, so we can use a bashism as a fallback. | |
19611 | if test "x$ac_cr" = x; then | |
19612 | eval ac_cr=\$\'\\r\' | |
19613 | fi | |
19614 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19615 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19616 | ac_cs_awk_cr='\\r' |
5213506e RW |
19617 | else |
19618 | ac_cs_awk_cr=$ac_cr | |
19619 | fi | |
19620 | ||
22e05272 | 19621 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19622 | _ACEOF |
19623 | ||
19624 | # Create commands to substitute file output variables. | |
1c710c3c | 19625 | { |
5213506e | 19626 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19627 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19628 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19629 | echo "_ACAWK" && | |
19630 | echo "_ACEOF" | |
19631 | } >conf$$files.sh && | |
19632 | . ./conf$$files.sh || | |
22e05272 | 19633 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19634 | rm -f conf$$files.sh |
1c710c3c | 19635 | |
5213506e RW |
19636 | { |
19637 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19638 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19639 | echo "_ACEOF" | |
19640 | } >conf$$subs.sh || | |
22e05272 JM |
19641 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19642 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19643 | ac_delim='%!_!# ' |
19644 | for ac_last_try in false false false false false :; do | |
19645 | . ./conf$$subs.sh || | |
22e05272 | 19646 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19647 | |
19648 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19649 | if test $ac_delim_n = $ac_delim_num; then | |
19650 | break | |
19651 | elif $ac_last_try; then | |
22e05272 | 19652 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19653 | else |
19654 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19655 | fi | |
19656 | done | |
19657 | rm -f conf$$subs.sh | |
19658 | ||
19659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19660 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19661 | _ACEOF |
5213506e RW |
19662 | sed -n ' |
19663 | h | |
19664 | s/^/S["/; s/!.*/"]=/ | |
19665 | p | |
19666 | g | |
19667 | s/^[^!]*!// | |
19668 | :repl | |
19669 | t repl | |
19670 | s/'"$ac_delim"'$// | |
19671 | t delim | |
19672 | :nl | |
19673 | h | |
22e05272 | 19674 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19675 | t more1 |
19676 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19677 | p | |
19678 | n | |
19679 | b repl | |
19680 | :more1 | |
19681 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19682 | p | |
19683 | g | |
19684 | s/.\{148\}// | |
19685 | t nl | |
19686 | :delim | |
19687 | h | |
22e05272 | 19688 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19689 | t more2 |
19690 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19691 | p | |
19692 | b | |
19693 | :more2 | |
19694 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19695 | p | |
19696 | g | |
19697 | s/.\{148\}// | |
19698 | t delim | |
19699 | ' <conf$$subs.awk | sed ' | |
19700 | /^[^""]/{ | |
19701 | N | |
19702 | s/\n// | |
19703 | } | |
19704 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19705 | rm -f conf$$subs.awk | |
19706 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19707 | _ACAWK | |
22e05272 | 19708 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19709 | for (key in S) S_is_set[key] = 1 |
19710 | FS = "\a" | |
19711 | \$ac_cs_awk_pipe_init | |
19712 | } | |
19713 | { | |
19714 | line = $ 0 | |
19715 | nfields = split(line, field, "@") | |
19716 | substed = 0 | |
19717 | len = length(field[1]) | |
19718 | for (i = 2; i < nfields; i++) { | |
19719 | key = field[i] | |
19720 | keylen = length(key) | |
19721 | if (S_is_set[key]) { | |
19722 | value = S[key] | |
19723 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19724 | len += length(value) + length(field[++i]) | |
19725 | substed = 1 | |
19726 | } else | |
19727 | len += 1 + keylen | |
19728 | } | |
19729 | if (nfields == 3 && !substed) { | |
19730 | key = field[2] | |
19731 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19732 | \$ac_cs_awk_read_file | |
19733 | next | |
19734 | } | |
19735 | } | |
19736 | print line | |
19737 | } | |
19738 | \$ac_cs_awk_pipe_fini | |
19739 | _ACAWK | |
19740 | _ACEOF | |
19741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19742 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19743 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19744 | else | |
19745 | cat | |
22e05272 JM |
19746 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19747 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19748 | _ACEOF |
19749 | ||
22e05272 JM |
19750 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19751 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19752 | # trailing colons and then remove the whole line if VPATH becomes empty |
19753 | # (actually we leave an empty line to preserve line numbers). | |
19754 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19755 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19756 | h | |
19757 | s/// | |
19758 | s/^/:/ | |
19759 | s/[ ]*$/:/ | |
19760 | s/:\$(srcdir):/:/g | |
19761 | s/:\${srcdir}:/:/g | |
19762 | s/:@srcdir@:/:/g | |
19763 | s/^:*// | |
5213506e | 19764 | s/:*$// |
22e05272 JM |
19765 | x |
19766 | s/\(=[ ]*\).*/\1/ | |
19767 | G | |
19768 | s/\n// | |
5213506e RW |
19769 | s/^[^=]*=[ ]*$// |
19770 | }' | |
19771 | fi | |
2aeb72e9 | 19772 | |
5213506e RW |
19773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19774 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19775 | |
1c710c3c | 19776 | |
5213506e RW |
19777 | eval set X " :F $CONFIG_FILES " |
19778 | shift | |
19779 | for ac_tag | |
19780 | do | |
19781 | case $ac_tag in | |
19782 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19783 | esac | |
19784 | case $ac_mode$ac_tag in | |
19785 | :[FHL]*:*);; | |
22e05272 | 19786 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19787 | :[FH]-) ac_tag=-:-;; |
19788 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19789 | esac | |
19790 | ac_save_IFS=$IFS | |
19791 | IFS=: | |
19792 | set x $ac_tag | |
19793 | IFS=$ac_save_IFS | |
19794 | shift | |
19795 | ac_file=$1 | |
19796 | shift | |
79c06341 | 19797 | |
5213506e RW |
19798 | case $ac_mode in |
19799 | :L) ac_source=$1;; | |
19800 | :[FH]) | |
19801 | ac_file_inputs= | |
19802 | for ac_f | |
19803 | do | |
19804 | case $ac_f in | |
22e05272 | 19805 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19806 | *) # Look for the file first in the build tree, then in the source tree |
19807 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19808 | # because $ac_f cannot contain `:'. | |
19809 | test -f "$ac_f" || | |
19810 | case $ac_f in | |
19811 | [\\/$]*) false;; | |
19812 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19813 | esac || | |
22e05272 | 19814 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19815 | esac |
19816 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19817 | as_fn_append ac_file_inputs " '$ac_f'" | |
19818 | done | |
1c710c3c | 19819 | |
5213506e RW |
19820 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19821 | # use $as_me), people would be surprised to read: | |
19822 | # /* config.h. Generated by config.status. */ | |
19823 | configure_input='Generated from '` | |
19824 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19825 | `' by configure.' | |
19826 | if test x"$ac_file" != x-; then | |
19827 | configure_input="$ac_file. $configure_input" | |
19828 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19829 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19830 | fi |
5213506e RW |
19831 | # Neutralize special characters interpreted by sed in replacement strings. |
19832 | case $configure_input in #( | |
19833 | *\&* | *\|* | *\\* ) | |
19834 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19835 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19836 | *) ac_sed_conf_input=$configure_input;; | |
19837 | esac | |
11a67599 | 19838 | |
5213506e | 19839 | case $ac_tag in |
22e05272 JM |
19840 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19841 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19842 | esac |
19843 | ;; | |
11a67599 ZW |
19844 | esac |
19845 | ||
5213506e | 19846 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19847 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19848 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19849 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19850 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19851 | $as_echo X"$ac_file" | | |
19852 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19853 | s//\1/ | |
19854 | q | |
19855 | } | |
19856 | /^X\(\/\/\)[^/].*/{ | |
19857 | s//\1/ | |
19858 | q | |
19859 | } | |
19860 | /^X\(\/\/\)$/{ | |
19861 | s//\1/ | |
19862 | q | |
19863 | } | |
19864 | /^X\(\/\).*/{ | |
19865 | s//\1/ | |
19866 | q | |
19867 | } | |
19868 | s/.*/./; q'` | |
19869 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19870 | ac_builddir=. |
0b0dc272 | 19871 | |
5213506e RW |
19872 | case "$ac_dir" in |
19873 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19874 | *) | |
19875 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19876 | # A ".." for each directory in $ac_dir_suffix. | |
19877 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19878 | case $ac_top_builddir_sub in | |
19879 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19880 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19881 | esac ;; | |
19882 | esac | |
19883 | ac_abs_top_builddir=$ac_pwd | |
19884 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19885 | # for backward compatibility: | |
19886 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19887 | |
19888 | case $srcdir in | |
5213506e | 19889 | .) # We are building in place. |
1c710c3c | 19890 | ac_srcdir=. |
5213506e RW |
19891 | ac_top_srcdir=$ac_top_builddir_sub |
19892 | ac_abs_top_srcdir=$ac_pwd ;; | |
19893 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19894 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19895 | ac_top_srcdir=$srcdir |
19896 | ac_abs_top_srcdir=$srcdir ;; | |
19897 | *) # Relative name. | |
19898 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19899 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19900 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19901 | esac |
5213506e | 19902 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19903 | |
0b0dc272 | 19904 | |
5213506e RW |
19905 | case $ac_mode in |
19906 | :F) | |
19907 | # | |
19908 | # CONFIG_FILE | |
19909 | # | |
1c710c3c DJ |
19910 | |
19911 | case $INSTALL in | |
19912 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19913 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19914 | esac |
5213506e | 19915 | _ACEOF |
11a67599 | 19916 | |
5213506e RW |
19917 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19918 | # If the template does not know about datarootdir, expand it. | |
19919 | # FIXME: This hack should be removed a few years after 2.60. | |
19920 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19921 | ac_sed_dataroot=' | |
19922 | /datarootdir/ { | |
19923 | p | |
19924 | q | |
19925 | } | |
19926 | /@datadir@/p | |
19927 | /@docdir@/p | |
19928 | /@infodir@/p | |
19929 | /@localedir@/p | |
19930 | /@mandir@/p' | |
19931 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19932 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19933 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19935 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19936 | _ACEOF |
5213506e RW |
19937 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19938 | ac_datarootdir_hack=' | |
19939 | s&@datadir@&$datadir&g | |
19940 | s&@docdir@&$docdir&g | |
19941 | s&@infodir@&$infodir&g | |
19942 | s&@localedir@&$localedir&g | |
19943 | s&@mandir@&$mandir&g | |
19944 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19945 | esac | |
19946 | _ACEOF | |
19947 | ||
19948 | # Neutralize VPATH when `$srcdir' = `.'. | |
19949 | # Shell code in configure.ac might set extrasub. | |
19950 | # FIXME: do we really want to maintain this feature? | |
19951 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19952 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19953 | $extrasub |
19954 | _ACEOF | |
5213506e | 19955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19956 | :t |
19957 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19958 | s|@configure_input@|$ac_sed_conf_input|;t t |
19959 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19960 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19961 | s&@srcdir@&$ac_srcdir&;t t | |
19962 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19963 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19964 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19965 | s&@builddir@&$ac_builddir&;t t | |
19966 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19967 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19968 | s&@INSTALL@&$ac_INSTALL&;t t | |
19969 | $ac_datarootdir_hack | |
19970 | " | |
19971 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19972 | if $ac_cs_awk_getline; then | |
22e05272 | 19973 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 19974 | else |
22e05272 JM |
19975 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19976 | fi \ | |
19977 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
19978 | |
19979 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
19980 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19981 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19982 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 19983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19984 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 19985 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 19986 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 19987 | |
22e05272 | 19988 | rm -f "$ac_tmp/stdin" |
5213506e | 19989 | case $ac_file in |
22e05272 JM |
19990 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19991 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 19992 | esac \ |
22e05272 | 19993 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 19994 | ;; |
11a67599 | 19995 | |
11a67599 | 19996 | |
79c06341 | 19997 | |
5213506e RW |
19998 | esac |
19999 | ||
3e54529c RW |
20000 | |
20001 | case $ac_file$ac_mode in | |
20002 | "Makefile":F) sed "$extrasub_build" Makefile | | |
20003 | sed "$extrasub_host" | | |
20004 | sed "$extrasub_target" > mf$$ | |
20005 | mv -f mf$$ Makefile ;; | |
20006 | ||
20007 | esac | |
5213506e RW |
20008 | done # for ac_tag |
20009 | ||
20010 | ||
20011 | as_fn_exit 0 | |
1c710c3c | 20012 | _ACEOF |
1c710c3c DJ |
20013 | ac_clean_files=$ac_clean_files_save |
20014 | ||
5213506e | 20015 | test $ac_write_fail = 0 || |
22e05272 | 20016 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 20017 | |
1c710c3c DJ |
20018 | |
20019 | # configure is writing to config.log, and then calls config.status. | |
20020 | # config.status does its own redirection, appending to config.log. | |
20021 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20022 | # by configure, so config.status won't be able to write to it; its | |
20023 | # output is simply discarded. So we exec the FD to /dev/null, | |
20024 | # effectively closing config.log, so it can be properly (re)opened and | |
20025 | # appended to by config.status. When coming back to configure, we | |
20026 | # need to make the FD available again. | |
20027 | if test "$no_create" != yes; then | |
20028 | ac_cs_success=: | |
20029 | ac_config_status_args= | |
20030 | test "$silent" = yes && | |
20031 | ac_config_status_args="$ac_config_status_args --quiet" | |
20032 | exec 5>/dev/null | |
20033 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20034 | exec 5>>config.log | |
20035 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20036 | # would make configure fail if this is the last instruction. | |
22e05272 | 20037 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
20038 | fi |
20039 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20041 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 20042 | fi |
79c06341 | 20043 |