]>
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 | |
1ddd41fd | 625 | PKG_CONFIG_PATH |
5fee5ec3 | 626 | GDCFLAGS |
e7a82751 | 627 | READELF |
e4a9a572 | 628 | OTOOL |
5213506e RW |
629 | OBJDUMP |
630 | OBJCOPY | |
631 | WINDMC | |
632 | WINDRES | |
633 | STRIP | |
634 | RANLIB | |
635 | NM | |
636 | LIPO | |
637 | LD | |
3b5e8ee4 | 638 | DSYMUTIL |
5213506e RW |
639 | DLLTOOL |
640 | AS | |
641 | AR | |
642 | RUNTEST | |
643 | EXPECT | |
644 | MAKEINFO | |
645 | FLEX | |
646 | LEX | |
647 | M4 | |
648 | BISON | |
649 | YACC | |
5213506e RW |
650 | WINDRES_FOR_BUILD |
651 | WINDMC_FOR_BUILD | |
652 | RANLIB_FOR_BUILD | |
653 | NM_FOR_BUILD | |
654 | LD_FOR_BUILD | |
655 | LDFLAGS_FOR_BUILD | |
b4c522fa | 656 | GDC_FOR_BUILD |
632e2a07 | 657 | GOC_FOR_BUILD |
5213506e | 658 | GFORTRAN_FOR_BUILD |
3b5e8ee4 | 659 | DSYMUTIL_FOR_BUILD |
5213506e RW |
660 | DLLTOOL_FOR_BUILD |
661 | CXX_FOR_BUILD | |
662 | CXXFLAGS_FOR_BUILD | |
84401ce5 RP |
663 | CPPFLAGS_FOR_BUILD |
664 | CPP_FOR_BUILD | |
5213506e RW |
665 | CFLAGS_FOR_BUILD |
666 | CC_FOR_BUILD | |
667 | AS_FOR_BUILD | |
668 | AR_FOR_BUILD | |
aae29963 | 669 | target_configdirs |
5213506e | 670 | configdirs |
5213506e | 671 | build_configdirs |
5213506e RW |
672 | INSTALL_GDB_TK |
673 | GDB_TK | |
674 | CONFIGURE_GDB_TK | |
675 | build_tooldir | |
676 | tooldir | |
677 | GCC_SHLIB_SUBDIR | |
678 | RPATH_ENVVAR | |
ffedf511 RW |
679 | target_configargs |
680 | host_configargs | |
681 | build_configargs | |
e12c4094 | 682 | BUILD_CONFIG |
6f57bdf6 | 683 | LDFLAGS_FOR_TARGET |
5213506e RW |
684 | CXXFLAGS_FOR_TARGET |
685 | CFLAGS_FOR_TARGET | |
686 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
687 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 688 | get_gcc_base_ver |
1c01ebf6 | 689 | extra_host_zlib_configure_flags |
d7f09764 | 690 | extra_host_libiberty_configure_flags |
fca38047 | 691 | stage1_languages |
05048fc2 | 692 | host_libs_picflag |
b6cb10af | 693 | PICFLAG |
cdfee50a | 694 | host_shared |
c1fecabe | 695 | gcc_host_pie |
b6cb10af | 696 | host_pie |
45b3824d TS |
697 | extra_linker_plugin_flags |
698 | extra_linker_plugin_configure_flags | |
33ad93b9 | 699 | islinc |
eae1a5d4 | 700 | isllibs |
5213506e | 701 | poststage1_ldflags |
ed2eaa9f | 702 | poststage1_libs |
5213506e | 703 | stage1_ldflags |
0b21f5d3 | 704 | stage1_libs |
0ff2d841 | 705 | extra_isl_gmp_configure_flags |
5213506e RW |
706 | extra_mpc_mpfr_configure_flags |
707 | extra_mpc_gmp_configure_flags | |
708 | extra_mpfr_configure_flags | |
709 | gmpinc | |
710 | gmplibs | |
4a5e71f2 L |
711 | PGO_BUILD_LTO_CFLAGS |
712 | PGO_BUILD_USE_CFLAGS | |
713 | PGO_BUILD_GEN_CFLAGS | |
7ffcf5d6 | 714 | HAVE_CXX11_FOR_BUILD |
ffac9597 | 715 | HAVE_CXX11 |
5213506e | 716 | do_compare |
5fee5ec3 | 717 | GDC |
5213506e RW |
718 | GNATMAKE |
719 | GNATBIND | |
720 | ac_ct_CXX | |
721 | CXXFLAGS | |
722 | CXX | |
723 | OBJEXT | |
724 | EXEEXT | |
725 | ac_ct_CC | |
726 | CPPFLAGS | |
727 | LDFLAGS | |
728 | CFLAGS | |
729 | CC | |
730 | target_subdir | |
731 | host_subdir | |
732 | build_subdir | |
733 | build_libsubdir | |
87264276 PB |
734 | AWK |
735 | SED | |
5213506e RW |
736 | LN_S |
737 | LN | |
738 | INSTALL_DATA | |
739 | INSTALL_SCRIPT | |
740 | INSTALL_PROGRAM | |
741 | target_os | |
742 | target_vendor | |
743 | target_cpu | |
744 | target | |
745 | host_os | |
746 | host_vendor | |
747 | host_cpu | |
748 | host | |
749 | target_noncanonical | |
750 | host_noncanonical | |
751 | build_noncanonical | |
752 | build_os | |
753 | build_vendor | |
754 | build_cpu | |
755 | build | |
756 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
757 | target_alias | |
758 | host_alias | |
759 | build_alias | |
760 | LIBS | |
761 | ECHO_T | |
762 | ECHO_N | |
763 | ECHO_C | |
764 | DEFS | |
765 | mandir | |
766 | localedir | |
767 | libdir | |
768 | psdir | |
769 | pdfdir | |
770 | dvidir | |
771 | htmldir | |
772 | infodir | |
773 | docdir | |
774 | oldincludedir | |
775 | includedir | |
776 | localstatedir | |
777 | sharedstatedir | |
778 | sysconfdir | |
779 | datadir | |
780 | datarootdir | |
781 | libexecdir | |
782 | sbindir | |
783 | bindir | |
784 | program_transform_name | |
785 | prefix | |
786 | exec_prefix | |
787 | PACKAGE_URL | |
788 | PACKAGE_BUGREPORT | |
789 | PACKAGE_STRING | |
790 | PACKAGE_VERSION | |
791 | PACKAGE_TARNAME | |
792 | PACKAGE_NAME | |
793 | PATH_SEPARATOR | |
794 | SHELL' | |
795 | ac_subst_files='serialization_dependencies | |
796 | host_makefile_frag | |
797 | target_makefile_frag | |
798 | alphaieee_frag | |
799 | ospace_frag' | |
800 | ac_user_opts=' | |
801 | enable_option_checking | |
802 | with_build_libsubdir | |
a05c2c75 | 803 | with_system_zlib |
407a2c9a | 804 | with_zstd |
85c64bbe BS |
805 | enable_as_accelerator_for |
806 | enable_offload_targets | |
fe5bfa67 | 807 | enable_offload_defaulted |
5213506e | 808 | enable_gold |
21539e2e | 809 | enable_ld |
24552056 | 810 | enable_gprofng |
78edb32f | 811 | enable_compressed_debug_sections |
c9884636 | 812 | enable_default_compressed_debug_sections_algorithm |
a49d42e8 | 813 | enable_year2038 |
87e6d9dc TB |
814 | enable_libquadmath |
815 | enable_libquadmath_support | |
5213506e | 816 | enable_libada |
1eee94d3 | 817 | enable_libgm2 |
5213506e | 818 | enable_libssp |
1873ec0c | 819 | enable_libstdcxx |
ff3ac0f4 | 820 | enable_bootstrap |
4a5e71f2 | 821 | enable_pgo_build |
5213506e RW |
822 | with_mpc |
823 | with_mpc_include | |
824 | with_mpc_lib | |
5213506e RW |
825 | with_mpfr |
826 | with_mpfr_include | |
827 | with_mpfr_lib | |
5213506e RW |
828 | with_gmp |
829 | with_gmp_include | |
830 | with_gmp_lib | |
5213506e | 831 | with_stage1_libs |
aac9103b | 832 | with_static_standard_libraries |
0b21f5d3 | 833 | with_stage1_ldflags |
5213506e | 834 | with_boot_libs |
ed2eaa9f | 835 | with_boot_ldflags |
33ad93b9 RG |
836 | with_isl |
837 | with_isl_include | |
838 | with_isl_lib | |
839 | enable_isl_version_check | |
d7f09764 | 840 | enable_lto |
45b3824d TS |
841 | enable_linker_plugin_configure_flags |
842 | enable_linker_plugin_flags | |
b6cb10af | 843 | enable_host_pie |
cdfee50a | 844 | enable_host_shared |
5213506e | 845 | enable_stage1_languages |
43c40f3e | 846 | enable_objc_gc |
114bf3f1 MK |
847 | with_target_bdw_gc |
848 | with_target_bdw_gc_include | |
849 | with_target_bdw_gc_lib | |
3c36aa6b | 850 | with_gcc_major_version_only |
5213506e RW |
851 | with_build_sysroot |
852 | with_debug_prefix_map | |
5646b7b9 | 853 | with_build_config |
beeda1d9 | 854 | enable_vtable_verify |
5213506e RW |
855 | enable_serial_configure |
856 | with_build_time_tools | |
857 | enable_maintainer_mode | |
858 | enable_stage1_checking | |
859 | enable_werror | |
5213506e RW |
860 | ' |
861 | ac_precious_vars='build_alias | |
862 | host_alias | |
863 | target_alias | |
864 | CC | |
865 | CFLAGS | |
866 | LDFLAGS | |
867 | LIBS | |
868 | CPPFLAGS | |
869 | CXX | |
870 | CXXFLAGS | |
871 | CCC | |
ffedf511 RW |
872 | build_configargs |
873 | host_configargs | |
874 | target_configargs | |
5213506e RW |
875 | AR |
876 | AS | |
877 | DLLTOOL | |
3b5e8ee4 | 878 | DSYMUTIL |
5213506e RW |
879 | LD |
880 | LIPO | |
881 | NM | |
882 | RANLIB | |
883 | STRIP | |
884 | WINDRES | |
885 | WINDMC | |
886 | OBJCOPY | |
887 | OBJDUMP | |
e4a9a572 | 888 | OTOOL |
e7a82751 | 889 | READELF |
5213506e RW |
890 | CC_FOR_TARGET |
891 | CXX_FOR_TARGET | |
892 | GCC_FOR_TARGET | |
5213506e | 893 | GFORTRAN_FOR_TARGET |
632e2a07 | 894 | GOC_FOR_TARGET |
b4c522fa | 895 | GDC_FOR_TARGET |
1eee94d3 | 896 | GM2_FOR_TARGET |
5213506e RW |
897 | AR_FOR_TARGET |
898 | AS_FOR_TARGET | |
899 | DLLTOOL_FOR_TARGET | |
3b5e8ee4 | 900 | DSYMUTIL_FOR_TARGET |
5213506e RW |
901 | LD_FOR_TARGET |
902 | LIPO_FOR_TARGET | |
903 | NM_FOR_TARGET | |
9bccfdf5 | 904 | OBJCOPY_FOR_TARGET |
5213506e | 905 | OBJDUMP_FOR_TARGET |
e4a9a572 | 906 | OTOOL_FOR_TARGET |
5213506e | 907 | RANLIB_FOR_TARGET |
e7a82751 | 908 | READELF_FOR_TARGET |
5213506e RW |
909 | STRIP_FOR_TARGET |
910 | WINDRES_FOR_TARGET | |
911 | WINDMC_FOR_TARGET' | |
912 | ||
671aa708 NN |
913 | |
914 | # Initialize some variables set by options. | |
1c710c3c DJ |
915 | ac_init_help= |
916 | ac_init_version=false | |
5213506e RW |
917 | ac_unrecognized_opts= |
918 | ac_unrecognized_sep= | |
671aa708 NN |
919 | # The variables have the same names as the options, with |
920 | # dashes changed to underlines. | |
1c710c3c | 921 | cache_file=/dev/null |
671aa708 | 922 | exec_prefix=NONE |
671aa708 | 923 | no_create= |
671aa708 NN |
924 | no_recursion= |
925 | prefix=NONE | |
926 | program_prefix=NONE | |
927 | program_suffix=NONE | |
928 | program_transform_name=s,x,x, | |
929 | silent= | |
930 | site= | |
931 | srcdir= | |
671aa708 NN |
932 | verbose= |
933 | x_includes=NONE | |
934 | x_libraries=NONE | |
1c710c3c DJ |
935 | |
936 | # Installation directory options. | |
937 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
938 | # and all the variables that are supposed to be based on exec_prefix | |
939 | # by default will actually change. | |
940 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 941 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
942 | bindir='${exec_prefix}/bin' |
943 | sbindir='${exec_prefix}/sbin' | |
944 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
945 | datarootdir='${prefix}/share' |
946 | datadir='${datarootdir}' | |
671aa708 NN |
947 | sysconfdir='${prefix}/etc' |
948 | sharedstatedir='${prefix}/com' | |
949 | localstatedir='${prefix}/var' | |
671aa708 NN |
950 | includedir='${prefix}/include' |
951 | oldincludedir='/usr/include' | |
5213506e RW |
952 | docdir='${datarootdir}/doc/${PACKAGE}' |
953 | infodir='${datarootdir}/info' | |
954 | htmldir='${docdir}' | |
955 | dvidir='${docdir}' | |
956 | pdfdir='${docdir}' | |
957 | psdir='${docdir}' | |
958 | libdir='${exec_prefix}/lib' | |
959 | localedir='${datarootdir}/locale' | |
960 | mandir='${datarootdir}/man' | |
79c06341 | 961 | |
671aa708 | 962 | ac_prev= |
5213506e | 963 | ac_dashdash= |
671aa708 NN |
964 | for ac_option |
965 | do | |
671aa708 NN |
966 | # If the previous option needs an argument, assign it. |
967 | if test -n "$ac_prev"; then | |
5213506e | 968 | eval $ac_prev=\$ac_option |
671aa708 NN |
969 | ac_prev= |
970 | continue | |
971 | fi | |
79c06341 | 972 | |
5213506e | 973 | case $ac_option in |
22e05272 JM |
974 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
975 | *=) ac_optarg= ;; | |
976 | *) ac_optarg=yes ;; | |
5213506e | 977 | esac |
671aa708 NN |
978 | |
979 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
980 | ||
5213506e RW |
981 | case $ac_dashdash$ac_option in |
982 | --) | |
983 | ac_dashdash=yes ;; | |
671aa708 NN |
984 | |
985 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
986 | ac_prev=bindir ;; | |
987 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 988 | bindir=$ac_optarg ;; |
671aa708 NN |
989 | |
990 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 991 | ac_prev=build_alias ;; |
671aa708 | 992 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 993 | build_alias=$ac_optarg ;; |
671aa708 NN |
994 | |
995 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
996 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
997 | ac_prev=cache_file ;; | |
998 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
999 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
1000 | cache_file=$ac_optarg ;; |
1001 | ||
1002 | --config-cache | -C) | |
1003 | cache_file=config.cache ;; | |
671aa708 | 1004 | |
5213506e | 1005 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 1006 | ac_prev=datadir ;; |
5213506e | 1007 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 1008 | datadir=$ac_optarg ;; |
671aa708 | 1009 | |
5213506e RW |
1010 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1011 | | --dataroo | --dataro | --datar) | |
1012 | ac_prev=datarootdir ;; | |
1013 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1014 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1015 | datarootdir=$ac_optarg ;; | |
1016 | ||
671aa708 | 1017 | -disable-* | --disable-*) |
5213506e | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 1019 | # Reject names that are not valid shell variable names. |
5213506e | 1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1021 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1022 | ac_useropt_orig=$ac_useropt |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=no ;; | |
1032 | ||
1033 | -docdir | --docdir | --docdi | --doc | --do) | |
1034 | ac_prev=docdir ;; | |
1035 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1036 | docdir=$ac_optarg ;; | |
1037 | ||
1038 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1039 | ac_prev=dvidir ;; | |
1040 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1041 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1042 | |
1043 | -enable-* | --enable-*) | |
5213506e | 1044 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 1045 | # Reject names that are not valid shell variable names. |
5213506e | 1046 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1047 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
1048 | ac_useropt_orig=$ac_useropt |
1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1050 | case $ac_user_opts in | |
1051 | *" | |
1052 | "enable_$ac_useropt" | |
1053 | "*) ;; | |
1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1055 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1056 | esac |
5213506e | 1057 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1058 | |
1059 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1060 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1061 | | --exec | --exe | --ex) | |
1062 | ac_prev=exec_prefix ;; | |
1063 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1064 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1065 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1066 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1067 | |
1068 | -gas | --gas | --ga | --g) | |
1069 | # Obsolete; use --with-gas. | |
1070 | with_gas=yes ;; | |
1071 | ||
1c710c3c DJ |
1072 | -help | --help | --hel | --he | -h) |
1073 | ac_init_help=long ;; | |
1074 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1075 | ac_init_help=recursive ;; | |
1076 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1077 | ac_init_help=short ;; | |
671aa708 NN |
1078 | |
1079 | -host | --host | --hos | --ho) | |
1c710c3c | 1080 | ac_prev=host_alias ;; |
671aa708 | 1081 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1082 | host_alias=$ac_optarg ;; |
671aa708 | 1083 | |
5213506e RW |
1084 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1085 | ac_prev=htmldir ;; | |
1086 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1087 | | --ht=*) | |
1088 | htmldir=$ac_optarg ;; | |
1089 | ||
671aa708 NN |
1090 | -includedir | --includedir | --includedi | --included | --include \ |
1091 | | --includ | --inclu | --incl | --inc) | |
1092 | ac_prev=includedir ;; | |
1093 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1094 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1095 | includedir=$ac_optarg ;; |
671aa708 NN |
1096 | |
1097 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1098 | ac_prev=infodir ;; | |
1099 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1100 | infodir=$ac_optarg ;; |
671aa708 NN |
1101 | |
1102 | -libdir | --libdir | --libdi | --libd) | |
1103 | ac_prev=libdir ;; | |
1104 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1105 | libdir=$ac_optarg ;; |
671aa708 NN |
1106 | |
1107 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1108 | | --libexe | --libex | --libe) | |
1109 | ac_prev=libexecdir ;; | |
1110 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1111 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1112 | libexecdir=$ac_optarg ;; |
671aa708 | 1113 | |
5213506e RW |
1114 | -localedir | --localedir | --localedi | --localed | --locale) |
1115 | ac_prev=localedir ;; | |
1116 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1117 | localedir=$ac_optarg ;; | |
1118 | ||
671aa708 | 1119 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1120 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1121 | ac_prev=localstatedir ;; |
1122 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1123 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1124 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1125 | |
1126 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1127 | ac_prev=mandir ;; | |
1128 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1129 | mandir=$ac_optarg ;; |
671aa708 NN |
1130 | |
1131 | -nfp | --nfp | --nf) | |
1132 | # Obsolete; use --without-fp. | |
1133 | with_fp=no ;; | |
1134 | ||
1135 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1136 | | --no-cr | --no-c | -n) |
671aa708 NN |
1137 | no_create=yes ;; |
1138 | ||
1139 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1140 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1141 | no_recursion=yes ;; | |
1142 | ||
1143 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1144 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1145 | | --oldin | --oldi | --old | --ol | --o) | |
1146 | ac_prev=oldincludedir ;; | |
1147 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1148 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1149 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1150 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1151 | |
1152 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1153 | ac_prev=prefix ;; | |
1154 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1155 | prefix=$ac_optarg ;; |
671aa708 NN |
1156 | |
1157 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1158 | | --program-pre | --program-pr | --program-p) | |
1159 | ac_prev=program_prefix ;; | |
1160 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1161 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1162 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1163 | |
1164 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1165 | | --program-suf | --program-su | --program-s) | |
1166 | ac_prev=program_suffix ;; | |
1167 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1168 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1169 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1170 | |
1171 | -program-transform-name | --program-transform-name \ | |
1172 | | --program-transform-nam | --program-transform-na \ | |
1173 | | --program-transform-n | --program-transform- \ | |
1174 | | --program-transform | --program-transfor \ | |
1175 | | --program-transfo | --program-transf \ | |
1176 | | --program-trans | --program-tran \ | |
1177 | | --progr-tra | --program-tr | --program-t) | |
1178 | ac_prev=program_transform_name ;; | |
1179 | -program-transform-name=* | --program-transform-name=* \ | |
1180 | | --program-transform-nam=* | --program-transform-na=* \ | |
1181 | | --program-transform-n=* | --program-transform-=* \ | |
1182 | | --program-transform=* | --program-transfor=* \ | |
1183 | | --program-transfo=* | --program-transf=* \ | |
1184 | | --program-trans=* | --program-tran=* \ | |
1185 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1186 | program_transform_name=$ac_optarg ;; |
671aa708 | 1187 | |
5213506e RW |
1188 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1189 | ac_prev=pdfdir ;; | |
1190 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1191 | pdfdir=$ac_optarg ;; | |
1192 | ||
1193 | -psdir | --psdir | --psdi | --psd | --ps) | |
1194 | ac_prev=psdir ;; | |
1195 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1196 | psdir=$ac_optarg ;; | |
1197 | ||
671aa708 NN |
1198 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1199 | | -silent | --silent | --silen | --sile | --sil) | |
1200 | silent=yes ;; | |
1201 | ||
1202 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1203 | ac_prev=sbindir ;; | |
1204 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1205 | | --sbi=* | --sb=*) | |
1c710c3c | 1206 | sbindir=$ac_optarg ;; |
671aa708 NN |
1207 | |
1208 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1209 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1210 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1211 | | --sha | --sh) | |
1212 | ac_prev=sharedstatedir ;; | |
1213 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1214 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1215 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1216 | | --sha=* | --sh=*) | |
1c710c3c | 1217 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1218 | |
1219 | -site | --site | --sit) | |
1220 | ac_prev=site ;; | |
1221 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1222 | site=$ac_optarg ;; |
671aa708 NN |
1223 | |
1224 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1225 | ac_prev=srcdir ;; | |
1226 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1227 | srcdir=$ac_optarg ;; |
671aa708 NN |
1228 | |
1229 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1230 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1231 | ac_prev=sysconfdir ;; | |
1232 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1233 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1234 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1235 | |
1236 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1237 | ac_prev=target_alias ;; |
671aa708 | 1238 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1239 | target_alias=$ac_optarg ;; |
671aa708 NN |
1240 | |
1241 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1242 | verbose=yes ;; | |
1243 | ||
1c710c3c DJ |
1244 | -version | --version | --versio | --versi | --vers | -V) |
1245 | ac_init_version=: ;; | |
671aa708 NN |
1246 | |
1247 | -with-* | --with-*) | |
5213506e | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1249 | # Reject names that are not valid shell variable names. |
5213506e | 1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1251 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1252 | ac_useropt_orig=$ac_useropt |
1253 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1254 | case $ac_user_opts in | |
1255 | *" | |
1256 | "with_$ac_useropt" | |
1257 | "*) ;; | |
1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1259 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1260 | esac |
5213506e | 1261 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1262 | |
1263 | -without-* | --without-*) | |
5213506e | 1264 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1265 | # Reject names that are not valid shell variable names. |
5213506e | 1266 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1267 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1268 | ac_useropt_orig=$ac_useropt |
1269 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1270 | case $ac_user_opts in | |
1271 | *" | |
1272 | "with_$ac_useropt" | |
1273 | "*) ;; | |
1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1275 | ac_unrecognized_sep=', ';; | |
1276 | esac | |
1277 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1278 | |
1279 | --x) | |
1280 | # Obsolete; use --with-x. | |
1281 | with_x=yes ;; | |
1282 | ||
1283 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1284 | | --x-incl | --x-inc | --x-in | --x-i) | |
1285 | ac_prev=x_includes ;; | |
1286 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1287 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1288 | x_includes=$ac_optarg ;; |
671aa708 NN |
1289 | |
1290 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1291 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1292 | ac_prev=x_libraries ;; | |
1293 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1294 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1295 | x_libraries=$ac_optarg ;; |
671aa708 | 1296 | |
22e05272 JM |
1297 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1298 | Try \`$0 --help' for more information" | |
671aa708 NN |
1299 | ;; |
1300 | ||
1c710c3c DJ |
1301 | *=*) |
1302 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1303 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1304 | case $ac_envvar in #( |
1305 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1306 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1307 | esac |
1308 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1309 | export $ac_envvar ;; |
1310 | ||
671aa708 | 1311 | *) |
1c710c3c | 1312 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1313 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1314 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1315 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1316 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1317 | ;; |
1318 | ||
1319 | esac | |
1320 | done | |
1321 | ||
1322 | if test -n "$ac_prev"; then | |
1c710c3c | 1323 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1324 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1325 | fi |
af71363e | 1326 | |
5213506e RW |
1327 | if test -n "$ac_unrecognized_opts"; then |
1328 | case $enable_option_checking in | |
1329 | no) ;; | |
22e05272 | 1330 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1331 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1332 | esac |
5213506e | 1333 | fi |
2aeb72e9 | 1334 | |
5213506e RW |
1335 | # Check all directory arguments for consistency. |
1336 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1337 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1338 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1339 | libdir localedir mandir | |
2aeb72e9 | 1340 | do |
5213506e RW |
1341 | eval ac_val=\$$ac_var |
1342 | # Remove trailing slashes. | |
1343 | case $ac_val in | |
1344 | */ ) | |
1345 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1346 | eval $ac_var=\$ac_val;; | |
1347 | esac | |
1348 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1349 | case $ac_val in |
5213506e RW |
1350 | [\\/$]* | ?:[\\/]* ) continue;; |
1351 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1352 | esac |
22e05272 | 1353 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1354 | done |
1355 | ||
1c710c3c DJ |
1356 | # There might be people who depend on the old broken behavior: `$host' |
1357 | # used to hold the argument of --host etc. | |
1358 | # FIXME: To remove some day. | |
1359 | build=$build_alias | |
1360 | host=$host_alias | |
1361 | target=$target_alias | |
0b0dc272 | 1362 | |
1c710c3c DJ |
1363 | # FIXME: To remove some day. |
1364 | if test "x$host_alias" != x; then | |
1365 | if test "x$build_alias" = x; then | |
1366 | cross_compiling=maybe | |
1c710c3c DJ |
1367 | elif test "x$build_alias" != "x$host_alias"; then |
1368 | cross_compiling=yes | |
1369 | fi | |
1370 | fi | |
1371 | ||
1372 | ac_tool_prefix= | |
1373 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1374 | ||
1375 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1376 | |
671aa708 | 1377 | |
5213506e RW |
1378 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1379 | ac_ls_di=`ls -di .` && | |
1380 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1381 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1382 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1383 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1384 | |
1385 | ||
671aa708 NN |
1386 | # Find the source files, if location was not specified. |
1387 | if test -z "$srcdir"; then | |
1388 | ac_srcdir_defaulted=yes | |
5213506e RW |
1389 | # Try the directory containing this script, then the parent directory. |
1390 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1391 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1392 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1393 | X"$as_myself" : 'X\(//\)$' \| \ | |
1394 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1395 | $as_echo X"$as_myself" | | |
1396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1397 | s//\1/ | |
1398 | q | |
1399 | } | |
1400 | /^X\(\/\/\)[^/].*/{ | |
1401 | s//\1/ | |
1402 | q | |
1403 | } | |
1404 | /^X\(\/\/\)$/{ | |
1405 | s//\1/ | |
1406 | q | |
1407 | } | |
1408 | /^X\(\/\).*/{ | |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | s/.*/./; q'` | |
671aa708 | 1413 | srcdir=$ac_confdir |
5213506e | 1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1415 | srcdir=.. |
1416 | fi | |
1417 | else | |
1418 | ac_srcdir_defaulted=no | |
1419 | fi | |
5213506e RW |
1420 | if test ! -r "$srcdir/$ac_unique_file"; then |
1421 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1422 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1423 | fi |
1424 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1425 | ac_abs_confdir=`( | |
22e05272 | 1426 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1427 | pwd)` |
1428 | # When building in place, set srcdir=. | |
1429 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1430 | srcdir=. | |
1431 | fi | |
1432 | # Remove unnecessary trailing slashes from srcdir. | |
1433 | # Double slashes in file names in object file debugging info | |
1434 | # mess up M-x gdb in Emacs. | |
1435 | case $srcdir in | |
1436 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1437 | esac | |
87841584 AM |
1438 | case $srcdir in |
1439 | *" "*) | |
22e05272 | 1440 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1441 | ;; |
1442 | esac | |
ac9e6043 RW |
1443 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1444 | ||
5213506e RW |
1445 | for ac_var in $ac_precious_vars; do |
1446 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1447 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1448 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1450 | done | |
1c710c3c DJ |
1451 | |
1452 | # | |
1453 | # Report the --help message. | |
1454 | # | |
1455 | if test "$ac_init_help" = "long"; then | |
1456 | # Omit some internal or obsolete options to make the list less imposing. | |
1457 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1458 | cat <<_ACEOF | |
1459 | \`configure' configures this package to adapt to many kinds of systems. | |
1460 | ||
1461 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1462 | ||
1463 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1464 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1465 | ||
1466 | Defaults for the options are specified in brackets. | |
1467 | ||
1468 | Configuration: | |
1469 | -h, --help display this help and exit | |
1470 | --help=short display options specific to this package | |
1471 | --help=recursive display the short help of all the included packages | |
1472 | -V, --version display version information and exit | |
22e05272 | 1473 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1474 | --cache-file=FILE cache test results in FILE [disabled] |
1475 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1476 | -n, --no-create do not create output files | |
1477 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1478 | ||
1c710c3c DJ |
1479 | Installation directories: |
1480 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1481 | [$ac_default_prefix] |
1c710c3c | 1482 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1483 | [PREFIX] |
1c710c3c DJ |
1484 | |
1485 | By default, \`make install' will install all the files in | |
1486 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1487 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1488 | for instance \`--prefix=\$HOME'. | |
1489 | ||
1490 | For better control, use the options below. | |
1491 | ||
1492 | Fine tuning of the installation directories: | |
5213506e RW |
1493 | --bindir=DIR user executables [EPREFIX/bin] |
1494 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1495 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1496 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1497 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1498 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1499 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1500 | --includedir=DIR C header files [PREFIX/include] | |
1501 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1502 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1503 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1504 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1505 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1506 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1507 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1508 | --htmldir=DIR html documentation [DOCDIR] | |
1509 | --dvidir=DIR dvi documentation [DOCDIR] | |
1510 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1511 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1512 | _ACEOF |
1513 | ||
1514 | cat <<\_ACEOF | |
1515 | ||
1516 | Program names: | |
1517 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1518 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1519 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1520 | ||
1521 | System types: | |
1522 | --build=BUILD configure for building on BUILD [guessed] | |
1523 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1524 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1525 | _ACEOF | |
1526 | fi | |
1527 | ||
1528 | if test -n "$ac_init_help"; then | |
1529 | ||
1530 | cat <<\_ACEOF | |
1531 | ||
1532 | Optional Features: | |
5213506e | 1533 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1536 | --enable-as-accelerator-for=ARG |
1537 | build as offload target compiler. Specify offload | |
1538 | host triple by ARG | |
1539 | --enable-offload-targets=LIST | |
1540 | enable offloading to devices from comma-separated | |
1541 | LIST of TARGET[=DIR]. Use optional path to find | |
1542 | offload target compiler during the build | |
fe5bfa67 TB |
1543 | --enable-offload-defaulted |
1544 | If enabled, configured but not installed offload compilers and | |
1545 | libgomp plugins are silently ignored. Useful for distribution | |
1546 | compilers where those are in separate optional packages. | |
1547 | ||
21539e2e | 1548 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1549 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
24552056 | 1550 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
324402a0 | 1551 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1552 | Enable compressed debug sections for gas, gold or ld |
1553 | by default | |
c9884636 ML |
1554 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1555 | Default compression algorithm for | |
1556 | --enable-compressed-debug-sections. | |
a49d42e8 | 1557 | --enable-year2038 enable support for timestamps past the year 2038 |
87e6d9dc TB |
1558 | --disable-libquadmath do not build libquadmath directory |
1559 | --disable-libquadmath-support | |
1560 | disable libquadmath support for Fortran | |
30b74385 | 1561 | --enable-libada build libada directory |
1eee94d3 | 1562 | --enable-libgm2 build libgm2 directory |
30b74385 | 1563 | --enable-libssp build libssp directory |
1873ec0c | 1564 | --disable-libstdcxx do not build libstdc++-v3 directory |
ff3ac0f4 | 1565 | --enable-bootstrap enable bootstrapping [yes if native build] |
4a5e71f2 L |
1566 | --enable-pgo-build[=lto] |
1567 | enable the PGO build | |
33ad93b9 | 1568 | --disable-isl-version-check |
560d18d3 | 1569 | disable check for isl version |
d7f09764 | 1570 | --enable-lto enable link time optimization support |
45b3824d TS |
1571 | --enable-linker-plugin-configure-flags=FLAGS |
1572 | additional flags for configuring linker plugins | |
1573 | [none] | |
1574 | --enable-linker-plugin-flags=FLAGS | |
1575 | additional flags for configuring and building linker | |
1576 | plugins [none] | |
b6cb10af | 1577 | --enable-host-pie build position independent host executables |
cdfee50a | 1578 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1579 | --enable-stage1-languages[=all] |
1580 | choose additional languages to build during stage1. | |
1581 | Mostly useful for compiler development | |
43c40f3e RO |
1582 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1583 | Objective-C runtime | |
318a4e6d | 1584 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1585 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1586 | force sequential configuration of sub-packages for |
1587 | the host, target or build machine, or all | |
1588 | sub-packages | |
1589 | --enable-maintainer-mode | |
1590 | enable make rules and dependencies not useful (and | |
1591 | sometimes confusing) to the casual installer | |
1592 | --enable-stage1-checking[=all] | |
1593 | choose additional checking for stage1 of the | |
1594 | compiler | |
1c710c3c DJ |
1595 | --enable-werror enable -Werror in bootstrap stage2 and later |
1596 | ||
1597 | Optional Packages: | |
1598 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1599 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1600 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1601 | --with-system-zlib use installed libz |
407a2c9a FS |
1602 | --with-zstd Support zstd compressed debug sections |
1603 | (default=auto) | |
33e39b66 AS |
1604 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1605 | Equivalent to --with-mpc-include=PATH/include plus | |
1606 | --with-mpc-lib=PATH/lib | |
1607 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1608 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 | 1609 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
33e39b66 AS |
1610 | Equivalent to --with-mpfr-include=PATH/include plus |
1611 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1612 | --with-mpfr-include=PATH |
30b74385 RW |
1613 | specify directory for installed MPFR include files |
1614 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
33e39b66 AS |
1615 | --with-gmp=PATH specify prefix directory for the installed GMP |
1616 | package. Equivalent to | |
1617 | --with-gmp-include=PATH/include plus | |
1618 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1619 | --with-gmp-include=PATH specify directory for installed GMP include files |
1620 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1621 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1622 | --with-static-standard-libraries |
1623 | use -static-libstdc++ and -static-libgcc | |
1624 | (default=auto) | |
33e39b66 AS |
1625 | --with-stage1-ldflags=FLAGS |
1626 | linker flags for stage1 | |
33e39b66 AS |
1627 | --with-boot-libs=LIBS libraries for stage2 and later |
1628 | --with-boot-ldflags=FLAGS | |
1629 | linker flags for stage2 and later | |
e357a5e0 | 1630 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1631 | package. Equivalent to |
33ad93b9 RG |
1632 | --with-isl-include=PATH/include plus |
1633 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1634 | --with-isl-include=PATH Specify directory for installed isl include files |
1635 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1636 | --with-target-bdw-gc=PATHLIST |
1637 | specify prefix directory for installed bdw-gc | |
1638 | package. Equivalent to | |
1639 | --with-target-bdw-gc-include=PATH/include plus | |
1640 | --with-target-bdw-gc-lib=PATH/lib | |
1641 | --with-target-bdw-gc-include=PATHLIST | |
1642 | specify directories for installed bdw-gc include | |
1643 | files | |
1644 | --with-target-bdw-gc-lib=PATHLIST | |
1645 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1646 | --with-gcc-major-version-only |
1647 | use only GCC major number in filesystem paths | |
30b74385 | 1648 | --with-build-sysroot=SYSROOT |
1c710c3c | 1649 | use sysroot as the system root during the build |
c8aea42c | 1650 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1651 | map A to B, C to D ... in debug information |
1652 | --with-build-config='NAME NAME2...' | |
1653 | use config/NAME.mk build configuration | |
30b74385 | 1654 | --with-build-time-tools=PATH |
1c710c3c | 1655 | use given path to find target tools during the build |
1c710c3c DJ |
1656 | |
1657 | Some influential environment variables: | |
1658 | CC C compiler command | |
1659 | CFLAGS C compiler flags | |
1660 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1661 | nonstandard directory <lib dir> | |
5213506e | 1662 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1663 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1664 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1665 | CXX C++ compiler command |
1666 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1667 | build_configargs |
1668 | additional configure arguments for build directories | |
1669 | host_configargs | |
1670 | additional configure arguments for host directories | |
1671 | target_configargs | |
1672 | additional configure arguments for target directories | |
278a7a38 AO |
1673 | AR AR for the host |
1674 | AS AS for the host | |
1675 | DLLTOOL DLLTOOL for the host | |
3b5e8ee4 | 1676 | DSYMUTIL DSYMUTIL for the host |
278a7a38 AO |
1677 | LD LD for the host |
1678 | LIPO LIPO for the host | |
1679 | NM NM for the host | |
1680 | RANLIB RANLIB for the host | |
1681 | STRIP STRIP for the host | |
1682 | WINDRES WINDRES for the host | |
901119ae | 1683 | WINDMC WINDMC for the host |
278a7a38 AO |
1684 | OBJCOPY OBJCOPY for the host |
1685 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1686 | OTOOL OTOOL for the host |
e7a82751 | 1687 | READELF READELF for the host |
278a7a38 AO |
1688 | CC_FOR_TARGET |
1689 | CC for the target | |
1690 | CXX_FOR_TARGET | |
1691 | CXX for the target | |
1692 | GCC_FOR_TARGET | |
1693 | GCC for the target | |
278a7a38 AO |
1694 | GFORTRAN_FOR_TARGET |
1695 | GFORTRAN for the target | |
632e2a07 ILT |
1696 | GOC_FOR_TARGET |
1697 | GOC for the target | |
b4c522fa IB |
1698 | GDC_FOR_TARGET |
1699 | GDC for the target | |
1eee94d3 GM |
1700 | GM2_FOR_TARGET |
1701 | GM2 for the target | |
278a7a38 AO |
1702 | AR_FOR_TARGET |
1703 | AR for the target | |
1704 | AS_FOR_TARGET | |
1705 | AS for the target | |
1706 | DLLTOOL_FOR_TARGET | |
1707 | DLLTOOL for the target | |
3b5e8ee4 IS |
1708 | DSYMUTIL_FOR_TARGET |
1709 | DSYMUTIL for the target | |
278a7a38 AO |
1710 | LD_FOR_TARGET |
1711 | LD for the target | |
1712 | LIPO_FOR_TARGET | |
1713 | LIPO for the target | |
1714 | NM_FOR_TARGET | |
1715 | NM for the target | |
9bccfdf5 AP |
1716 | OBJCOPY_FOR_TARGET |
1717 | OBJCOPY for the target | |
278a7a38 AO |
1718 | OBJDUMP_FOR_TARGET |
1719 | OBJDUMP for the target | |
e4a9a572 IS |
1720 | OTOOL_FOR_TARGET |
1721 | OTOOL for the target | |
278a7a38 AO |
1722 | RANLIB_FOR_TARGET |
1723 | RANLIB for the target | |
e7a82751 RM |
1724 | READELF_FOR_TARGET |
1725 | READELF for the target | |
278a7a38 AO |
1726 | STRIP_FOR_TARGET |
1727 | STRIP for the target | |
1728 | WINDRES_FOR_TARGET | |
1729 | WINDRES for the target | |
901119ae KT |
1730 | WINDMC_FOR_TARGET |
1731 | WINDMC for the target | |
1c710c3c DJ |
1732 | |
1733 | Use these variables to override the choices made by `configure' or to help | |
1734 | it to find libraries and programs with nonstandard names/locations. | |
1735 | ||
5213506e | 1736 | Report bugs to the package provider. |
1c710c3c | 1737 | _ACEOF |
5213506e | 1738 | ac_status=$? |
1c710c3c DJ |
1739 | fi |
1740 | ||
1741 | if test "$ac_init_help" = "recursive"; then | |
1742 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1743 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1744 | test -d "$ac_dir" || |
1745 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1746 | continue | |
1c710c3c DJ |
1747 | ac_builddir=. |
1748 | ||
5213506e RW |
1749 | case "$ac_dir" in |
1750 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1751 | *) | |
1752 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1753 | # A ".." for each directory in $ac_dir_suffix. | |
1754 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1755 | case $ac_top_builddir_sub in | |
1756 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1757 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1758 | esac ;; | |
1759 | esac | |
1760 | ac_abs_top_builddir=$ac_pwd | |
1761 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1762 | # for backward compatibility: | |
1763 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1764 | |
1765 | case $srcdir in | |
5213506e | 1766 | .) # We are building in place. |
1c710c3c | 1767 | ac_srcdir=. |
5213506e RW |
1768 | ac_top_srcdir=$ac_top_builddir_sub |
1769 | ac_abs_top_srcdir=$ac_pwd ;; | |
1770 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1771 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1772 | ac_top_srcdir=$srcdir |
1773 | ac_abs_top_srcdir=$srcdir ;; | |
1774 | *) # Relative name. | |
1775 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1776 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1777 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1778 | esac |
5213506e RW |
1779 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1780 | ||
1781 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1782 | # Check for guested configure. | |
1783 | if test -f "$ac_srcdir/configure.gnu"; then | |
1784 | echo && | |
1785 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1786 | elif test -f "$ac_srcdir/configure"; then | |
1787 | echo && | |
1788 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1789 | else |
5213506e RW |
1790 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1791 | fi || ac_status=$? | |
1792 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1793 | done |
1794 | fi | |
1795 | ||
5213506e | 1796 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1797 | if $ac_init_version; then |
1798 | cat <<\_ACEOF | |
5213506e | 1799 | configure |
22e05272 | 1800 | generated by GNU Autoconf 2.69 |
1c710c3c | 1801 | |
22e05272 | 1802 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1803 | This configure script is free software; the Free Software Foundation |
1804 | gives unlimited permission to copy, distribute and modify it. | |
1805 | _ACEOF | |
5213506e | 1806 | exit |
0b0dc272 | 1807 | fi |
5213506e RW |
1808 | |
1809 | ## ------------------------ ## | |
1810 | ## Autoconf initialization. ## | |
1811 | ## ------------------------ ## | |
1812 | ||
1813 | # ac_fn_c_try_compile LINENO | |
1814 | # -------------------------- | |
1815 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1816 | ac_fn_c_try_compile () | |
1817 | { | |
1818 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1819 | rm -f conftest.$ac_objext | |
1820 | if { { ac_try="$ac_compile" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_compile") 2>conftest.err | |
1828 | ac_status=$? | |
1829 | if test -s conftest.err; then | |
1830 | grep -v '^ *+' conftest.err >conftest.er1 | |
1831 | cat conftest.er1 >&5 | |
1832 | mv -f conftest.er1 conftest.err | |
1833 | fi | |
1834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1835 | test $ac_status = 0; } && { | |
1836 | test -z "$ac_c_werror_flag" || | |
1837 | test ! -s conftest.err | |
1838 | } && test -s conftest.$ac_objext; then : | |
1839 | ac_retval=0 | |
1840 | else | |
1841 | $as_echo "$as_me: failed program was:" >&5 | |
1842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1843 | ||
1844 | ac_retval=1 | |
1845 | fi | |
22e05272 JM |
1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1847 | as_fn_set_status $ac_retval | |
5213506e RW |
1848 | |
1849 | } # ac_fn_c_try_compile | |
1850 | ||
1851 | # ac_fn_cxx_try_compile LINENO | |
1852 | # ---------------------------- | |
1853 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1854 | ac_fn_cxx_try_compile () | |
1855 | { | |
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1857 | rm -f conftest.$ac_objext | |
1858 | if { { ac_try="$ac_compile" | |
1859 | case "(($ac_try" in | |
1860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1861 | *) ac_try_echo=$ac_try;; | |
1862 | esac | |
1863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1864 | $as_echo "$ac_try_echo"; } >&5 | |
1865 | (eval "$ac_compile") 2>conftest.err | |
1866 | ac_status=$? | |
1867 | if test -s conftest.err; then | |
1868 | grep -v '^ *+' conftest.err >conftest.er1 | |
1869 | cat conftest.er1 >&5 | |
1870 | mv -f conftest.er1 conftest.err | |
1871 | fi | |
1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1873 | test $ac_status = 0; } && { | |
1874 | test -z "$ac_cxx_werror_flag" || | |
1875 | test ! -s conftest.err | |
1876 | } && test -s conftest.$ac_objext; then : | |
1877 | ac_retval=0 | |
1878 | else | |
1879 | $as_echo "$as_me: failed program was:" >&5 | |
1880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1881 | ||
1882 | ac_retval=1 | |
1883 | fi | |
22e05272 JM |
1884 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1885 | as_fn_set_status $ac_retval | |
5213506e RW |
1886 | |
1887 | } # ac_fn_cxx_try_compile | |
1888 | ||
0b21f5d3 EB |
1889 | # ac_fn_cxx_try_link LINENO |
1890 | # ------------------------- | |
1891 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1892 | ac_fn_cxx_try_link () | |
1893 | { | |
1894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1896 | if { { ac_try="$ac_link" | |
1897 | case "(($ac_try" in | |
1898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1899 | *) ac_try_echo=$ac_try;; | |
1900 | esac | |
1901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1902 | $as_echo "$ac_try_echo"; } >&5 | |
1903 | (eval "$ac_link") 2>conftest.err | |
1904 | ac_status=$? | |
1905 | if test -s conftest.err; then | |
1906 | grep -v '^ *+' conftest.err >conftest.er1 | |
1907 | cat conftest.er1 >&5 | |
1908 | mv -f conftest.er1 conftest.err | |
1909 | fi | |
1910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1911 | test $ac_status = 0; } && { | |
1912 | test -z "$ac_cxx_werror_flag" || | |
1913 | test ! -s conftest.err | |
1914 | } && test -s conftest$ac_exeext && { | |
1915 | test "$cross_compiling" = yes || | |
22e05272 | 1916 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1917 | }; then : |
1918 | ac_retval=0 | |
1919 | else | |
1920 | $as_echo "$as_me: failed program was:" >&5 | |
1921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1922 | ||
1923 | ac_retval=1 | |
1924 | fi | |
1925 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1926 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1927 | # interfere with the next link command; also delete a directory that is | |
1928 | # left behind by Apple's compiler. We do this before executing the actions. | |
1929 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1931 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1932 | |
1933 | } # ac_fn_cxx_try_link | |
1934 | ||
5213506e RW |
1935 | # ac_fn_c_try_link LINENO |
1936 | # ----------------------- | |
1937 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1938 | ac_fn_c_try_link () | |
1939 | { | |
1940 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1941 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1942 | if { { ac_try="$ac_link" | |
1943 | case "(($ac_try" in | |
1944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1945 | *) ac_try_echo=$ac_try;; | |
1946 | esac | |
1947 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1948 | $as_echo "$ac_try_echo"; } >&5 | |
1949 | (eval "$ac_link") 2>conftest.err | |
1950 | ac_status=$? | |
1951 | if test -s conftest.err; then | |
1952 | grep -v '^ *+' conftest.err >conftest.er1 | |
1953 | cat conftest.er1 >&5 | |
1954 | mv -f conftest.er1 conftest.err | |
1955 | fi | |
1956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1957 | test $ac_status = 0; } && { | |
1958 | test -z "$ac_c_werror_flag" || | |
1959 | test ! -s conftest.err | |
1960 | } && test -s conftest$ac_exeext && { | |
1961 | test "$cross_compiling" = yes || | |
22e05272 | 1962 | test -x conftest$ac_exeext |
5213506e RW |
1963 | }; then : |
1964 | ac_retval=0 | |
1965 | else | |
1966 | $as_echo "$as_me: failed program was:" >&5 | |
1967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1968 | ||
1969 | ac_retval=1 | |
1970 | fi | |
1971 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1972 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1973 | # interfere with the next link command; also delete a directory that is | |
1974 | # left behind by Apple's compiler. We do this before executing the actions. | |
1975 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1976 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1977 | as_fn_set_status $ac_retval | |
5213506e RW |
1978 | |
1979 | } # ac_fn_c_try_link | |
1980 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1981 | This file contains any messages produced by compilers while |
1982 | running configure, to aid debugging if configure makes a mistake. | |
1983 | ||
1984 | It was created by $as_me, which was | |
22e05272 | 1985 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1986 | |
1987 | $ $0 $@ | |
1988 | ||
1989 | _ACEOF | |
5213506e | 1990 | exec 5>>config.log |
1c710c3c DJ |
1991 | { |
1992 | cat <<_ASUNAME | |
1993 | ## --------- ## | |
1994 | ## Platform. ## | |
1995 | ## --------- ## | |
1996 | ||
1997 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1998 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1999 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2000 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2001 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2002 | ||
2003 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2004 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2005 | ||
2006 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2007 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2008 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 2009 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
2010 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2011 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2012 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2013 | ||
2014 | _ASUNAME | |
2015 | ||
2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2017 | for as_dir in $PATH | |
2018 | do | |
2019 | IFS=$as_save_IFS | |
2020 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2021 | $as_echo "PATH: $as_dir" |
2022 | done | |
2023 | IFS=$as_save_IFS | |
1c710c3c DJ |
2024 | |
2025 | } >&5 | |
2026 | ||
2027 | cat >&5 <<_ACEOF | |
2028 | ||
2029 | ||
2030 | ## ----------- ## | |
2031 | ## Core tests. ## | |
2032 | ## ----------- ## | |
2033 | ||
2034 | _ACEOF | |
2035 | ||
2036 | ||
2037 | # Keep a trace of the command line. | |
2038 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2039 | # Strip out --silent because we don't want to record it for future runs. | |
2040 | # Also quote any args containing shell meta-characters. | |
2041 | # Make two passes to allow for proper duplicate-argument suppression. | |
2042 | ac_configure_args= | |
2043 | ac_configure_args0= | |
2044 | ac_configure_args1= | |
1c710c3c DJ |
2045 | ac_must_keep_next=false |
2046 | for ac_pass in 1 2 | |
2047 | do | |
2048 | for ac_arg | |
2049 | do | |
2050 | case $ac_arg in | |
2051 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2053 | | -silent | --silent | --silen | --sile | --sil) | |
2054 | continue ;; | |
5213506e RW |
2055 | *\'*) |
2056 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2057 | esac |
2058 | case $ac_pass in | |
5213506e | 2059 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2060 | 2) |
5213506e | 2061 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2062 | if test $ac_must_keep_next = true; then |
2063 | ac_must_keep_next=false # Got value, back to normal. | |
2064 | else | |
2065 | case $ac_arg in | |
2066 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2067 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2068 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2069 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2070 | case "$ac_configure_args0 " in | |
2071 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2072 | esac | |
2073 | ;; | |
2074 | -* ) ac_must_keep_next=true ;; | |
2075 | esac | |
2076 | fi | |
5213506e | 2077 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2078 | ;; |
2079 | esac | |
2080 | done | |
2081 | done | |
5213506e RW |
2082 | { ac_configure_args0=; unset ac_configure_args0;} |
2083 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2084 | |
2085 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2086 | # config.log. We remove comments because anyway the quotes in there | |
2087 | # would cause problems or look ugly. | |
5213506e RW |
2088 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2089 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2090 | trap 'exit_status=$? |
2091 | # Save into config.log some information that might help in debugging. | |
2092 | { | |
2093 | echo | |
2094 | ||
22e05272 | 2095 | $as_echo "## ---------------- ## |
1c710c3c | 2096 | ## Cache variables. ## |
22e05272 | 2097 | ## ---------------- ##" |
1c710c3c DJ |
2098 | echo |
2099 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2100 | ( |
2101 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2102 | eval ac_val=\$$ac_var | |
2103 | case $ac_val in #( | |
2104 | *${as_nl}*) | |
2105 | case $ac_var in #( | |
2106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2108 | esac | |
2109 | case $ac_var in #( | |
2110 | _ | IFS | as_nl) ;; #( | |
2111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2112 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2113 | esac ;; | |
2114 | esac | |
2115 | done | |
1c710c3c | 2116 | (set) 2>&1 | |
5213506e RW |
2117 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2118 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2119 | sed -n \ |
5213506e RW |
2120 | "s/'\''/'\''\\\\'\'''\''/g; |
2121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2122 | ;; #( | |
1c710c3c | 2123 | *) |
5213506e | 2124 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2125 | ;; |
5213506e RW |
2126 | esac | |
2127 | sort | |
2128 | ) | |
1c710c3c DJ |
2129 | echo |
2130 | ||
22e05272 | 2131 | $as_echo "## ----------------- ## |
1c710c3c | 2132 | ## Output variables. ## |
22e05272 | 2133 | ## ----------------- ##" |
1c710c3c DJ |
2134 | echo |
2135 | for ac_var in $ac_subst_vars | |
2136 | do | |
5213506e RW |
2137 | eval ac_val=\$$ac_var |
2138 | case $ac_val in | |
2139 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2140 | esac | |
2141 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2142 | done | sort |
2143 | echo | |
2144 | ||
2145 | if test -n "$ac_subst_files"; then | |
22e05272 | 2146 | $as_echo "## ------------------- ## |
5213506e | 2147 | ## File substitutions. ## |
22e05272 | 2148 | ## ------------------- ##" |
1c710c3c DJ |
2149 | echo |
2150 | for ac_var in $ac_subst_files | |
2151 | do | |
5213506e RW |
2152 | eval ac_val=\$$ac_var |
2153 | case $ac_val in | |
2154 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2155 | esac | |
2156 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2157 | done | sort |
2158 | echo | |
2159 | fi | |
2160 | ||
2161 | if test -s confdefs.h; then | |
22e05272 | 2162 | $as_echo "## ----------- ## |
1c710c3c | 2163 | ## confdefs.h. ## |
22e05272 | 2164 | ## ----------- ##" |
1c710c3c | 2165 | echo |
5213506e | 2166 | cat confdefs.h |
1c710c3c DJ |
2167 | echo |
2168 | fi | |
2169 | test "$ac_signal" != 0 && | |
5213506e RW |
2170 | $as_echo "$as_me: caught signal $ac_signal" |
2171 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2172 | } >&5 |
5213506e RW |
2173 | rm -f core *.core core.conftest.* && |
2174 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2175 | exit $exit_status |
5213506e | 2176 | ' 0 |
1c710c3c | 2177 | for ac_signal in 1 2 13 15; do |
5213506e | 2178 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2179 | done |
2180 | ac_signal=0 | |
2181 | ||
2182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2183 | rm -f -r conftest* confdefs.h |
2184 | ||
2185 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2186 | |
2187 | # Predefined preprocessor variables. | |
2188 | ||
2189 | cat >>confdefs.h <<_ACEOF | |
2190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2191 | _ACEOF | |
2192 | ||
1c710c3c DJ |
2193 | cat >>confdefs.h <<_ACEOF |
2194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2195 | _ACEOF | |
2196 | ||
1c710c3c DJ |
2197 | cat >>confdefs.h <<_ACEOF |
2198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2199 | _ACEOF | |
0b0dc272 | 2200 | |
1c710c3c DJ |
2201 | cat >>confdefs.h <<_ACEOF |
2202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2203 | _ACEOF | |
2204 | ||
1c710c3c DJ |
2205 | cat >>confdefs.h <<_ACEOF |
2206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2207 | _ACEOF | |
2208 | ||
5213506e RW |
2209 | cat >>confdefs.h <<_ACEOF |
2210 | #define PACKAGE_URL "$PACKAGE_URL" | |
2211 | _ACEOF | |
2212 | ||
1c710c3c DJ |
2213 | |
2214 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2215 | # Prefer an explicitly selected file to automatically selected ones. |
2216 | ac_site_file1=NONE | |
2217 | ac_site_file2=NONE | |
2218 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2219 | # We do not want a PATH search for config.site. |
2220 | case $CONFIG_SITE in #(( | |
2221 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2222 | */*) ac_site_file1=$CONFIG_SITE;; | |
2223 | *) ac_site_file1=./$CONFIG_SITE;; | |
2224 | esac | |
5213506e RW |
2225 | elif test "x$prefix" != xNONE; then |
2226 | ac_site_file1=$prefix/share/config.site | |
2227 | ac_site_file2=$prefix/etc/config.site | |
2228 | else | |
2229 | ac_site_file1=$ac_default_prefix/share/config.site | |
2230 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2231 | fi |
5213506e RW |
2232 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2233 | do | |
2234 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2235 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2237 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2238 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2239 | . "$ac_site_file" \ |
2240 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2242 | as_fn_error $? "failed to load site script $ac_site_file | |
2243 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2244 | fi |
2245 | done | |
2246 | ||
2247 | if test -r "$cache_file"; then | |
22e05272 JM |
2248 | # Some versions of bash will fail to source /dev/null (special files |
2249 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2250 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2252 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2253 | case $cache_file in |
5213506e RW |
2254 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2255 | *) . "./$cache_file";; | |
1c710c3c DJ |
2256 | esac |
2257 | fi | |
671aa708 | 2258 | else |
5213506e RW |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2260 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2261 | >$cache_file |
2262 | fi | |
2263 | ||
2264 | # Check that the precious variables saved in the cache have kept the same | |
2265 | # value. | |
2266 | ac_cache_corrupted=false | |
5213506e | 2267 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2268 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2269 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2270 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2271 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2272 | case $ac_old_set,$ac_new_set in |
2273 | set,) | |
5213506e RW |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2275 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2276 | ac_cache_corrupted=: ;; |
2277 | ,set) | |
5213506e RW |
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2279 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2280 | ac_cache_corrupted=: ;; |
2281 | ,);; | |
2282 | *) | |
2283 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2284 | # differences in whitespace do not lead to failure. |
2285 | ac_old_val_w=`echo x $ac_old_val` | |
2286 | ac_new_val_w=`echo x $ac_new_val` | |
2287 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2289 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2290 | ac_cache_corrupted=: | |
2291 | else | |
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2293 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2294 | eval $ac_var=\$ac_old_val | |
2295 | fi | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2297 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2299 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2300 | fi;; |
2301 | esac | |
2302 | # Pass precious variables to config.status. | |
2303 | if test "$ac_new_set" = set; then | |
2304 | case $ac_new_val in | |
5213506e | 2305 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2306 | *) ac_arg=$ac_var=$ac_new_val ;; |
2307 | esac | |
2308 | case " $ac_configure_args " in | |
2309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2310 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2311 | esac |
2312 | fi | |
2313 | done | |
2314 | if $ac_cache_corrupted; then | |
5213506e RW |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2316 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2318 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2319 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2320 | fi |
5213506e RW |
2321 | ## -------------------- ## |
2322 | ## Main body of script. ## | |
2323 | ## -------------------- ## | |
671aa708 | 2324 | |
2aeb72e9 DD |
2325 | ac_ext=c |
2326 | ac_cpp='$CPP $CPPFLAGS' | |
2327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2330 | ||
1c710c3c DJ |
2331 | |
2332 | ||
2333 | ||
1c710c3c DJ |
2334 | |
2335 | ||
0115d4a3 | 2336 | |
1c710c3c | 2337 | |
ad33ff57 RW |
2338 | progname=$0 |
2339 | # if PWD already has a value, it is probably wrong. | |
2340 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2341 | ||
2342 | # Export original configure arguments for use by sub-configures. | |
2343 | # Quote arguments with shell meta charatcers. | |
2344 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2345 | set -- "$progname" "$@" | |
2346 | for ac_arg | |
2347 | do | |
2348 | case "$ac_arg" in | |
2349 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2350 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2351 | # if the argument is of the form -foo=baz, quote the baz part only | |
2352 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2353 | *) ;; | |
2354 | esac | |
2355 | # Add the quoted argument to the list. | |
2356 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2357 | done | |
2358 | if test "$silent" = yes; then | |
2359 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2360 | fi | |
2361 | # Remove the initial space we just introduced and, as these will be | |
2362 | # expanded by make, quote '$'. | |
2363 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2364 | ||
1c710c3c DJ |
2365 | |
2366 | # Find the build, host, and target systems. | |
671aa708 | 2367 | ac_aux_dir= |
5213506e | 2368 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2369 | if test -f "$ac_dir/install-sh"; then |
2370 | ac_aux_dir=$ac_dir | |
2371 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2372 | break | |
2373 | elif test -f "$ac_dir/install.sh"; then | |
2374 | ac_aux_dir=$ac_dir | |
2375 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2376 | break | |
2377 | elif test -f "$ac_dir/shtool"; then | |
2378 | ac_aux_dir=$ac_dir | |
2379 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2380 | break | |
2381 | fi | |
671aa708 NN |
2382 | done |
2383 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2384 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2385 | fi |
5213506e RW |
2386 | |
2387 | # These three variables are undocumented and unsupported, | |
2388 | # and are intended to be withdrawn in a future Autoconf release. | |
2389 | # They can cause serious problems if a builder's source tree is in a directory | |
2390 | # whose full name contains unusual characters. | |
2391 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2392 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2393 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2394 | ||
671aa708 | 2395 | |
1c710c3c | 2396 | # Make sure we can run config.sub. |
5213506e | 2397 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2398 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2399 | |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2401 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2402 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2403 | $as_echo_n "(cached) " >&6 |
2404 | else | |
2405 | ac_build_alias=$build_alias | |
2406 | test "x$ac_build_alias" = x && | |
2407 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2408 | test "x$ac_build_alias" = x && | |
22e05272 | 2409 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2410 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2411 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2412 | |
2413 | fi | |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2415 | $as_echo "$ac_cv_build" >&6; } | |
2416 | case $ac_cv_build in | |
2417 | *-*-*) ;; | |
22e05272 | 2418 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2419 | esac |
1c710c3c | 2420 | build=$ac_cv_build |
5213506e RW |
2421 | ac_save_IFS=$IFS; IFS='-' |
2422 | set x $ac_cv_build | |
2423 | shift | |
2424 | build_cpu=$1 | |
2425 | build_vendor=$2 | |
2426 | shift; shift | |
2427 | # Remember, the first character of IFS is used to create $*, | |
2428 | # except with old shells: | |
2429 | build_os=$* | |
2430 | IFS=$ac_save_IFS | |
2431 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2432 | |
671aa708 | 2433 | |
1c710c3c DJ |
2434 | case ${build_alias} in |
2435 | "") build_noncanonical=${build} ;; | |
2436 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2437 | esac |
2438 | ||
2439 | ||
af71363e | 2440 | |
1c710c3c DJ |
2441 | case ${host_alias} in |
2442 | "") host_noncanonical=${build_noncanonical} ;; | |
2443 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2444 | esac |
2445 | ||
af71363e | 2446 | |
1c710c3c DJ |
2447 | |
2448 | case ${target_alias} in | |
2449 | "") target_noncanonical=${host_noncanonical} ;; | |
2450 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2451 | esac |
2452 | ||
af71363e | 2453 | |
1c710c3c DJ |
2454 | |
2455 | ||
2456 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2457 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2458 | NONENONEs,x,x, && | |
1c710c3c | 2459 | program_transform_name=s,y,y, |
af71363e | 2460 | |
5213506e RW |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2462 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2463 | if ${ac_cv_host+:} false; then : |
5213506e | 2464 | $as_echo_n "(cached) " >&6 |
af71363e | 2465 | else |
5213506e RW |
2466 | if test "x$host_alias" = x; then |
2467 | ac_cv_host=$ac_cv_build | |
2468 | else | |
2469 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2470 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2471 | fi |
1c710c3c | 2472 | |
af71363e | 2473 | fi |
5213506e RW |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2475 | $as_echo "$ac_cv_host" >&6; } | |
2476 | case $ac_cv_host in | |
2477 | *-*-*) ;; | |
22e05272 | 2478 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2479 | esac |
1c710c3c | 2480 | host=$ac_cv_host |
5213506e RW |
2481 | ac_save_IFS=$IFS; IFS='-' |
2482 | set x $ac_cv_host | |
2483 | shift | |
2484 | host_cpu=$1 | |
2485 | host_vendor=$2 | |
2486 | shift; shift | |
2487 | # Remember, the first character of IFS is used to create $*, | |
2488 | # except with old shells: | |
2489 | host_os=$* | |
2490 | IFS=$ac_save_IFS | |
2491 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2492 | |
2493 | ||
5213506e RW |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2495 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2496 | if ${ac_cv_target+:} false; then : |
5213506e | 2497 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2498 | else |
5213506e RW |
2499 | if test "x$target_alias" = x; then |
2500 | ac_cv_target=$ac_cv_host | |
2501 | else | |
2502 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2503 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2504 | fi |
1c710c3c DJ |
2505 | |
2506 | fi | |
5213506e RW |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2508 | $as_echo "$ac_cv_target" >&6; } | |
2509 | case $ac_cv_target in | |
2510 | *-*-*) ;; | |
22e05272 | 2511 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2512 | esac |
1c710c3c | 2513 | target=$ac_cv_target |
5213506e RW |
2514 | ac_save_IFS=$IFS; IFS='-' |
2515 | set x $ac_cv_target | |
2516 | shift | |
2517 | target_cpu=$1 | |
2518 | target_vendor=$2 | |
2519 | shift; shift | |
2520 | # Remember, the first character of IFS is used to create $*, | |
2521 | # except with old shells: | |
2522 | target_os=$* | |
2523 | IFS=$ac_save_IFS | |
2524 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2525 | |
2526 | ||
2527 | # The aliases save the names the user supplied, while $host etc. | |
2528 | # will get canonicalized. | |
2529 | test -n "$target_alias" && | |
2530 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2531 | NONENONEs,x,x, && | |
2532 | program_prefix=${target_alias}- | |
5213506e | 2533 | |
671aa708 | 2534 | test "$program_prefix" != NONE && |
5213506e | 2535 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2536 | # Use a double $ so make ignores it. |
2537 | test "$program_suffix" != NONE && | |
5213506e RW |
2538 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2539 | # Double any \ or $. | |
1c710c3c | 2540 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2541 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2542 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2543 | |
671aa708 NN |
2544 | |
2545 | ||
775956d0 NN |
2546 | # Get 'install' or 'install-sh' and its variants. |
2547 | # Find a good install program. We prefer a C program (faster), | |
2548 | # so one script is as good as another. But avoid the broken or | |
2549 | # incompatible versions: | |
2550 | # SysV /etc/install, /usr/sbin/install | |
2551 | # SunOS /usr/etc/install | |
2552 | # IRIX /sbin/install | |
2553 | # AIX /bin/install | |
1c710c3c | 2554 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2555 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2556 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2557 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2558 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2559 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2560 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2562 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2563 | if test -z "$INSTALL"; then |
22e05272 | 2564 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2565 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2566 | else |
2567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2568 | for as_dir in $PATH | |
2569 | do | |
2570 | IFS=$as_save_IFS | |
2571 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2572 | # Account for people who put trailing slashes in PATH elements. |
2573 | case $as_dir/ in #(( | |
2574 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2575 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2576 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2577 | /usr/ucb/* ) ;; |
2578 | *) | |
2579 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2580 | # Don't use installbsd from OSF since it installs stuff as root | |
2581 | # by default. | |
2582 | for ac_prog in ginstall scoinst install; do | |
2583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2584 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2585 | if test $ac_prog = install && |
1c710c3c | 2586 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2587 | # AIX install. It has an incompatible calling convention. |
2588 | : | |
1c710c3c DJ |
2589 | elif test $ac_prog = install && |
2590 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2591 | # program-specific install script used by HP pwplus--don't use. | |
2592 | : | |
775956d0 | 2593 | else |
38d24731 RW |
2594 | rm -rf conftest.one conftest.two conftest.dir |
2595 | echo one > conftest.one | |
2596 | echo two > conftest.two | |
2597 | mkdir conftest.dir | |
2598 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2599 | test -s conftest.one && test -s conftest.two && | |
2600 | test -s conftest.dir/conftest.one && | |
2601 | test -s conftest.dir/conftest.two | |
2602 | then | |
2603 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2604 | break 3 | |
2605 | fi | |
775956d0 NN |
2606 | fi |
2607 | fi | |
2608 | done | |
1c710c3c DJ |
2609 | done |
2610 | ;; | |
2611 | esac | |
5213506e RW |
2612 | |
2613 | done | |
2614 | IFS=$as_save_IFS | |
1c710c3c | 2615 | |
38d24731 | 2616 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2617 | |
2618 | fi | |
2619 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2620 | INSTALL=$ac_cv_path_install |
775956d0 | 2621 | else |
38d24731 RW |
2622 | # As a last resort, use the slow shell script. Don't cache a |
2623 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2624 | # break other packages using the cache if that directory is |
38d24731 | 2625 | # removed, or if the value is a relative name. |
1c710c3c | 2626 | INSTALL=$ac_install_sh |
775956d0 NN |
2627 | fi |
2628 | fi | |
5213506e RW |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2630 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2631 | |
2632 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2633 | # It thinks the first close brace ends the variable substitution. | |
2634 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2635 | ||
1c710c3c | 2636 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2637 | |
2638 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2639 | ||
5213506e RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2641 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2642 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2643 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2644 | else |
2645 | rm -f conftestdata_t | |
2646 | echo >conftestdata_f | |
2647 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2648 | then | |
2649 | acx_cv_prog_LN=ln | |
2650 | else | |
2651 | acx_cv_prog_LN=no | |
2652 | fi | |
2653 | rm -f conftestdata_f conftestdata_t | |
2654 | ||
2655 | fi | |
2656 | if test $acx_cv_prog_LN = no; then | |
2657 | LN="cp" | |
5213506e RW |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2659 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2660 | else |
2661 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2663 | $as_echo "yes" >&6; } | |
ad6717df PB |
2664 | fi |
2665 | ||
5213506e RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2667 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2668 | LN_S=$as_ln_s |
2669 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2671 | $as_echo "yes" >&6; } | |
fb0103e5 | 2672 | else |
5213506e RW |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2674 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2675 | fi |
2676 | ||
87264276 PB |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2678 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2679 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2680 | $as_echo_n "(cached) " >&6 |
2681 | else | |
2682 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2683 | for ac_i in 1 2 3 4 5 6 7; do | |
2684 | ac_script="$ac_script$as_nl$ac_script" | |
2685 | done | |
2686 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2687 | { ac_script=; unset ac_script;} | |
2688 | if test -z "$SED"; then | |
2689 | ac_path_SED_found=false | |
2690 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2692 | for as_dir in $PATH | |
2693 | do | |
2694 | IFS=$as_save_IFS | |
2695 | test -z "$as_dir" && as_dir=. | |
2696 | for ac_prog in sed gsed; do | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2699 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2700 | # Check for GNU ac_path_SED and select it if it is found. |
2701 | # Check for GNU $ac_path_SED | |
2702 | case `"$ac_path_SED" --version 2>&1` in | |
2703 | *GNU*) | |
2704 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2705 | *) | |
2706 | ac_count=0 | |
2707 | $as_echo_n 0123456789 >"conftest.in" | |
2708 | while : | |
2709 | do | |
2710 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2711 | mv "conftest.tmp" "conftest.in" | |
2712 | cp "conftest.in" "conftest.nl" | |
2713 | $as_echo '' >> "conftest.nl" | |
2714 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2715 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2716 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2717 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2718 | # Best one so far, save it but keep looking for a better one | |
2719 | ac_cv_path_SED="$ac_path_SED" | |
2720 | ac_path_SED_max=$ac_count | |
2721 | fi | |
2722 | # 10*(2^10) chars as input seems more than enough | |
2723 | test $ac_count -gt 10 && break | |
2724 | done | |
2725 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2726 | esac | |
2727 | ||
2728 | $ac_path_SED_found && break 3 | |
2729 | done | |
2730 | done | |
2731 | done | |
2732 | IFS=$as_save_IFS | |
2733 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2734 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2735 | fi |
2736 | else | |
2737 | ac_cv_path_SED=$SED | |
2738 | fi | |
2739 | ||
2740 | fi | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2742 | $as_echo "$ac_cv_path_SED" >&6; } | |
2743 | SED="$ac_cv_path_SED" | |
2744 | rm -f conftest.sed | |
2745 | ||
2746 | for ac_prog in gawk mawk nawk awk | |
2747 | do | |
2748 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2749 | set dummy $ac_prog; ac_word=$2 | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2751 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2752 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2753 | $as_echo_n "(cached) " >&6 |
2754 | else | |
2755 | if test -n "$AWK"; then | |
2756 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2757 | else | |
2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2759 | for as_dir in $PATH | |
2760 | do | |
2761 | IFS=$as_save_IFS | |
2762 | test -z "$as_dir" && as_dir=. | |
2763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2765 | ac_cv_prog_AWK="$ac_prog" |
2766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2767 | break 2 | |
2768 | fi | |
2769 | done | |
2770 | done | |
2771 | IFS=$as_save_IFS | |
2772 | ||
2773 | fi | |
2774 | fi | |
2775 | AWK=$ac_cv_prog_AWK | |
2776 | if test -n "$AWK"; then | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2778 | $as_echo "$AWK" >&6; } | |
2779 | else | |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2781 | $as_echo "no" >&6; } | |
2782 | fi | |
2783 | ||
2784 | ||
2785 | test -n "$AWK" && break | |
2786 | done | |
2787 | ||
775956d0 | 2788 | |
ee6a22df L |
2789 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2790 | ||
2791 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2792 | # a relative path. | |
2793 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2794 | INSTALL="${srcpwd}/install-sh -c" | |
2795 | fi | |
2796 | ||
671aa708 NN |
2797 | # Set srcdir to "." if that's what it is. |
2798 | # This is important for multilib support. | |
2799 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2800 | if test "${pwd}" = "${srcpwd}" ; then |
2801 | srcdir=. | |
79c06341 JL |
2802 | fi |
2803 | ||
671aa708 | 2804 | topsrcdir=$srcpwd |
5d4a5ee6 | 2805 | |
671aa708 | 2806 | extra_host_args= |
afabd8e6 | 2807 | |
671aa708 NN |
2808 | ### To add a new directory to the tree, first choose whether it is a target |
2809 | ### or a host dependent tool. Then put it into the appropriate list | |
2810 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2811 | |
1c710c3c | 2812 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2813 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2814 | |
1c710c3c DJ |
2815 | # Dependency sorting is only needed when *configuration* must be done in |
2816 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2817 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2818 | |
671aa708 NN |
2819 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2820 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2821 | |
23f6b2f9 PB |
2822 | # these library is used by various programs built for the build |
2823 | # environment | |
2824 | # | |
929315a9 | 2825 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2826 | |
2827 | # these tools are built for the build environment | |
85bfb75e | 2828 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2829 | |
671aa708 | 2830 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2831 | #f |
3de627ff | 2832 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe" |
671aa708 | 2833 | |
671aa708 NN |
2834 | # these tools are built for the host environment |
2835 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2836 | # know that we are building the simulator. | |
2837 | # binutils, gas and ld appear in that order because it makes sense to run | |
2838 | # "make check" in that particular order. | |
38e3d868 | 2839 | # If --enable-gold is used, "gold" may replace "ld". |
1eee94d3 | 2840 | 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 | 2841 | |
671aa708 NN |
2842 | # these libraries are built for the target environment, and are built after |
2843 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2844 | # Note that libiberty is not a target library. |
291f172e | 2845 | target_libraries="target-libgcc \ |
eff02e4f | 2846 | target-libbacktrace \ |
671aa708 NN |
2847 | target-libgloss \ |
2848 | target-newlib \ | |
6d3b5aea | 2849 | target-libgomp \ |
48310492 | 2850 | target-libatomic \ |
0a35513e | 2851 | target-libitm \ |
cb543528 | 2852 | target-libstdc++-v3 \ |
f35db108 | 2853 | target-libsanitizer \ |
2077db1b | 2854 | target-libvtv \ |
77008252 | 2855 | target-libssp \ |
1ec601bf | 2856 | target-libquadmath \ |
6de9cd9a | 2857 | target-libgfortran \ |
012447ea | 2858 | target-libffi \ |
d9cdb878 | 2859 | target-libobjc \ |
632e2a07 | 2860 | target-libada \ |
1eee94d3 | 2861 | target-libgm2 \ |
b4c522fa | 2862 | target-libgo \ |
bb50312e IB |
2863 | target-libphobos \ |
2864 | target-zlib" | |
671aa708 | 2865 | |
4dbda6f0 NN |
2866 | # these tools are built using the target libraries, and are intended to |
2867 | # run only in the target environment | |
671aa708 | 2868 | # |
4dbda6f0 | 2869 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2870 | # list belongs in this list. |
671aa708 | 2871 | # |
85bfb75e | 2872 | target_tools="target-rda" |
79c06341 | 2873 | |
671aa708 | 2874 | ################################################################################ |
79c06341 | 2875 | |
671aa708 NN |
2876 | ## All tools belong in one of the four categories, and are assigned above |
2877 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2878 | ## is important because configure will choke if they ever get through. | |
2879 | ## ${configdirs} is directories we build using the host tools. | |
2880 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2881 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2882 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2883 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2884 | |
ac9e6043 RW |
2885 | |
2886 | ||
671aa708 | 2887 | ################################################################################ |
79c06341 | 2888 | |
671aa708 | 2889 | srcname="gnu development package" |
79c06341 | 2890 | |
671aa708 NN |
2891 | # This gets set non-empty for some net releases of packages. |
2892 | appdirs="" | |
79c06341 | 2893 | |
671aa708 NN |
2894 | # Define is_cross_compiler to save on calls to 'test'. |
2895 | is_cross_compiler= | |
2896 | if test x"${host}" = x"${target}" ; then | |
2897 | is_cross_compiler=no | |
79c06341 | 2898 | else |
671aa708 | 2899 | is_cross_compiler=yes |
1c710c3c | 2900 | fi |
79c06341 | 2901 | |
b4acb5ef | 2902 | # Find the build and target subdir names. |
8b87bb96 | 2903 | |
2e9e6f68 DJ |
2904 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2905 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2906 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2907 | # However, they still use the build modules, because the corresponding | |
2908 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2909 | # finishes. So: | |
2910 | # - build_subdir is where we find build modules, and never changes. | |
2911 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2912 | ||
2913 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2914 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2915 | |
5213506e RW |
2916 | # Check whether --with-build-libsubdir was given. |
2917 | if test "${with_build_libsubdir+set}" = set; then : | |
2918 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2919 | else |
2920 | build_libsubdir="$build_subdir" | |
5213506e RW |
2921 | fi |
2922 | ||
215c351a PB |
2923 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2924 | if ( test $srcdir = . && test -d gcc ) \ | |
2925 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2926 | host_subdir="host-${host_noncanonical}" | |
2927 | else | |
2928 | host_subdir=. | |
2929 | fi | |
8b87bb96 NN |
2930 | # No prefix. |
2931 | target_subdir=${target_noncanonical} | |
1c710c3c | 2932 | |
0db770bd RW |
2933 | # Be sure to cover against remnants of an in-tree build. |
2934 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2935 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2936 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2937 | fi | |
79c06341 | 2938 | |
671aa708 NN |
2939 | # Skipdirs are removed silently. |
2940 | skipdirs= | |
2941 | # Noconfigdirs are removed loudly. | |
2942 | noconfigdirs="" | |
79c06341 | 2943 | |
671aa708 NN |
2944 | use_gnu_ld= |
2945 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2946 | if test x$with_gnu_ld = xno ; then | |
2947 | use_gnu_ld=no | |
5afab7ad | 2948 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2949 | fi |
2950 | ||
671aa708 NN |
2951 | use_gnu_as= |
2952 | # Make sure we don't let GNU as be added if we didn't want it. | |
2953 | if test x$with_gnu_as = xno ; then | |
2954 | use_gnu_as=no | |
2955 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2956 | fi |
2957 | ||
d7f09764 | 2958 | use_included_zlib= |
a05c2c75 L |
2959 | |
2960 | # Check whether --with-system-zlib was given. | |
2961 | if test "${with_system_zlib+set}" = set; then : | |
2962 | withval=$with_system_zlib; | |
2963 | fi | |
2964 | ||
d7f09764 DN |
2965 | # Make sure we don't let ZLIB be added if we didn't want it. |
2966 | if test x$with_system_zlib = xyes ; then | |
2967 | use_included_zlib=no | |
2968 | noconfigdirs="$noconfigdirs zlib" | |
2969 | fi | |
2970 | ||
36ba9851 ДП |
2971 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2972 | # is provided. | |
2973 | if test x$with_system_readline = xyes ; then | |
2974 | noconfigdirs="$noconfigdirs readline" | |
2975 | fi | |
2976 | ||
407a2c9a FS |
2977 | |
2978 | # Check whether --with-zstd was given. | |
2979 | if test "${with_zstd+set}" = set; then : | |
2980 | withval=$with_zstd; | |
2981 | fi | |
2982 | ||
2983 | ||
1c710c3c | 2984 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2985 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2986 | |
671aa708 NN |
2987 | case ${with_x} in |
2988 | yes | "") ;; # the default value for this tree is that X11 is available | |
2989 | no) | |
b4f96efe | 2990 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2991 | # We won't be able to build gdbtk without X. |
1c710c3c | 2992 | enable_gdbtk=no |
671aa708 NN |
2993 | ;; |
2994 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2995 | esac | |
79c06341 | 2996 | |
1bcce263 | 2997 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2998 | # Remove these if host=target. |
2999 | cross_only="target-libgloss target-newlib target-opcodes" | |
3000 | ||
3001 | case $is_cross_compiler in | |
3002 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 3003 | esac |
79c06341 | 3004 | |
671aa708 NN |
3005 | # If both --with-headers and --with-libs are specified, default to |
3006 | # --without-newlib. | |
ee6a22df L |
3007 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
3008 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
3009 | if test x"${with_newlib}" = x ; then |
3010 | with_newlib=no | |
3011 | fi | |
79c06341 JL |
3012 | fi |
3013 | ||
671aa708 NN |
3014 | # Recognize --with-newlib/--without-newlib. |
3015 | case ${with_newlib} in | |
3016 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3017 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3018 | esac | |
79c06341 | 3019 | |
85c64bbe BS |
3020 | # Check whether --enable-as-accelerator-for was given. |
3021 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 3022 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
3023 | fi |
3024 | ||
3025 | ||
3026 | # Check whether --enable-offload-targets was given. | |
3027 | if test "${enable_offload_targets+set}" = set; then : | |
3028 | enableval=$enable_offload_targets; | |
3029 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 3030 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
3031 | fi |
3032 | ||
3033 | else | |
3034 | enable_offload_targets= | |
3035 | fi | |
3036 | ||
3037 | ||
fe5bfa67 TB |
3038 | # Check whether --enable-offload-defaulted was given. |
3039 | if test "${enable_offload_defaulted+set}" = set; then : | |
3040 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3041 | else | |
3042 | enable_offload_defaulted= | |
3043 | fi | |
3044 | ||
3045 | ||
21539e2e MK |
3046 | # Handle --enable-gold, --enable-ld. |
3047 | # --disable-gold [--enable-ld] | |
3048 | # Build only ld. Default option. | |
9580395f L |
3049 | # --enable-gold [--enable-ld] |
3050 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3051 | # as "ld.bfd" and "ld". | |
3052 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
3053 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3054 | # install ld as "ld.bfd". | |
3055 | # --enable-gold[=default] --disable-ld | |
3056 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3057 | # --enable-gold --enable-ld=default | |
9580395f L |
3058 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3059 | # and ld.bfd). | |
21539e2e MK |
3060 | # In other words, ld is default |
3061 | # --enable-gold=default --enable-ld=default | |
3062 | # Error. | |
3063 | ||
3064 | default_ld= | |
5213506e RW |
3065 | # Check whether --enable-gold was given. |
3066 | if test "${enable_gold+set}" = set; then : | |
3067 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3068 | else |
3069 | ENABLE_GOLD=no | |
5213506e RW |
3070 | fi |
3071 | ||
21539e2e MK |
3072 | case "${ENABLE_GOLD}" in |
3073 | yes|default) | |
38e3d868 RM |
3074 | # Check for ELF target. |
3075 | is_elf=no | |
3076 | case "${target}" in | |
3077 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3078 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3079 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ead5103c | 3080 | | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*) |
38e3d868 RM |
3081 | case "${target}" in |
3082 | *-*-linux*aout* | *-*-linux*oldld*) | |
3083 | ;; | |
3084 | *) | |
3085 | is_elf=yes | |
3086 | ;; | |
3087 | esac | |
3088 | esac | |
3089 | ||
3090 | if test "$is_elf" = "yes"; then | |
3091 | # Check for target supported by gold. | |
5afab7ad | 3092 | case "${target}" in |
7705dfd1 | 3093 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
a885ec24 | 3094 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
21539e2e MK |
3095 | configdirs="$configdirs gold" |
3096 | if test x${ENABLE_GOLD} = xdefault; then | |
3097 | default_ld=gold | |
3098 | fi | |
38e3d868 | 3099 | ENABLE_GOLD=yes |
5afab7ad ILT |
3100 | ;; |
3101 | esac | |
38e3d868 RM |
3102 | fi |
3103 | ;; | |
3104 | no) | |
3105 | ;; | |
3106 | *) | |
22e05272 | 3107 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3108 | ;; |
21539e2e MK |
3109 | esac |
3110 | ||
3111 | # Check whether --enable-ld was given. | |
3112 | if test "${enable_ld+set}" = set; then : | |
3113 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3114 | else | |
3115 | ENABLE_LD=yes | |
3116 | fi | |
3117 | ||
3118 | ||
3119 | case "${ENABLE_LD}" in | |
3120 | default) | |
9580395f | 3121 | if test x${default_ld} != x; then |
22e05272 | 3122 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3123 | fi |
3124 | ;; | |
3125 | yes) | |
3126 | ;; | |
3127 | no) | |
3128 | if test x${ENABLE_GOLD} != xyes; then | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3130 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3131 | fi | |
3132 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3133 | ;; | |
3134 | *) | |
22e05272 | 3135 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3136 | ;; |
3137 | esac | |
5afab7ad | 3138 | |
24552056 VM |
3139 | # Check whether --enable-gprofng was given. |
3140 | if test "${enable_gprofng+set}" = set; then : | |
3141 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3142 | else | |
3143 | enable_gprofng=yes | |
3144 | fi | |
3145 | ||
3146 | if test "$enable_gprofng" = "yes"; then | |
3147 | case "${target}" in | |
3148 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3149 | configdirs="$configdirs gprofng" | |
3150 | ;; | |
3151 | esac | |
3152 | fi | |
3153 | ||
3154 | ||
78edb32f L |
3155 | # PR gas/19109 |
3156 | # Decide the default method for compressing debug sections. | |
3157 | # Provide a configure time option to override our default. | |
3158 | # Check whether --enable-compressed_debug_sections was given. | |
3159 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3160 | enableval=$enable_compressed_debug_sections; | |
3161 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3162 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3163 | fi |
3164 | ||
3165 | else | |
3166 | enable_compressed_debug_sections= | |
3167 | fi | |
3168 | ||
3169 | ||
c9884636 ML |
3170 | # Select default compression algorithm. |
3171 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3172 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3173 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3174 | else | |
3175 | default_compressed_debug_sections_algorithm= | |
3176 | fi | |
3177 | ||
3178 | ||
671aa708 | 3179 | # Configure extra directories which are host specific |
79c06341 | 3180 | |
671aa708 NN |
3181 | case "${host}" in |
3182 | *-cygwin*) | |
3183 | configdirs="$configdirs libtermcap" ;; | |
3184 | esac | |
79c06341 | 3185 | |
4fab7234 HPN |
3186 | # A target can indicate whether a language isn't supported for some reason. |
3187 | # Only spaces may be used in this macro; not newlines or tabs. | |
3188 | unsupported_languages= | |
3189 | ||
1c710c3c | 3190 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3191 | # target this usually means that a port of the program doesn't |
3192 | # exist yet. | |
ec8d6ddc | 3193 | |
671aa708 | 3194 | case "${host}" in |
111eeb6e | 3195 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3196 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3197 | ;; |
671aa708 | 3198 | esac |
ec8d6ddc | 3199 | |
a49d42e8 LM |
3200 | # Default to --disable-year2038 until we can handle differences between |
3201 | # projects that use gnulib (which understands year 2038) and projects that | |
3202 | # do not (like BFD). | |
3203 | # Check whether --enable-year2038 was given. | |
3204 | if test "${enable_year2038+set}" = set; then : | |
3205 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3206 | else | |
3207 | ENABLE_YEAR2038=no | |
3208 | fi | |
3209 | ||
3210 | enable_year2038= | |
3211 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3212 | enable_year2038=no | |
3213 | fi | |
6de9cd9a | 3214 | |
87e6d9dc TB |
3215 | # Check whether --enable-libquadmath was given. |
3216 | if test "${enable_libquadmath+set}" = set; then : | |
3217 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3218 | else | |
3219 | ENABLE_LIBQUADMATH=yes | |
3220 | fi | |
3221 | ||
3222 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3223 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | # Check whether --enable-libquadmath-support was given. | |
3228 | if test "${enable_libquadmath_support+set}" = set; then : | |
3229 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3230 | else | |
3231 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3232 | fi | |
3233 | ||
3234 | enable_libquadmath_support= | |
3235 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3236 | enable_libquadmath_support=no | |
3237 | fi | |
3238 | ||
3239 | ||
5213506e RW |
3240 | # Check whether --enable-libada was given. |
3241 | if test "${enable_libada+set}" = set; then : | |
3242 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3243 | else |
3244 | ENABLE_LIBADA=yes | |
5213506e RW |
3245 | fi |
3246 | ||
d9cdb878 | 3247 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3248 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3249 | fi |
3250 | ||
1eee94d3 GM |
3251 | # Check whether --enable-libgm2 was given. |
3252 | if test "${enable_libgm2+set}" = set; then : | |
3253 | enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval | |
3254 | else | |
3255 | ENABLE_LIBGM2=no | |
3256 | fi | |
3257 | ||
3258 | if test "${ENABLE_LIBGM2}" != "yes" ; then | |
3259 | noconfigdirs="$noconfigdirs gm2tools" | |
3260 | fi | |
3261 | ||
5213506e RW |
3262 | # Check whether --enable-libssp was given. |
3263 | if test "${enable_libssp+set}" = set; then : | |
3264 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3265 | else |
3266 | ENABLE_LIBSSP=yes | |
5213506e RW |
3267 | fi |
3268 | ||
ef0087a7 | 3269 | |
1873ec0c L |
3270 | # Check whether --enable-libstdcxx was given. |
3271 | if test "${enable_libstdcxx+set}" = set; then : | |
3272 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3273 | else | |
3274 | ENABLE_LIBSTDCXX=default | |
3275 | fi | |
3276 | ||
3277 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3278 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3279 | fi |
3280 | ||
44a7d18d | 3281 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3282 | if test x$enable_libgomp = x ; then |
953ff289 | 3283 | case "${target}" in |
416ac4d4 | 3284 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3285 | ;; |
8c6d158a | 3286 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3287 | ;; |
b24513a1 | 3288 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3289 | ;; |
cac90078 | 3290 | *-*-darwin* | *-*-aix*) |
953ff289 | 3291 | ;; |
29b1533a | 3292 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3293 | ;; |
953ff289 DN |
3294 | *) |
3295 | noconfigdirs="$noconfigdirs target-libgomp" | |
3296 | ;; | |
3297 | esac | |
27079765 | 3298 | fi |
953ff289 | 3299 | |
48310492 RH |
3300 | # Disable libatomic on unsupported systems. |
3301 | if test -d ${srcdir}/libatomic; then | |
3302 | if test x$enable_libatomic = x; then | |
3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3304 | $as_echo_n "checking for libatomic support... " >&6; } | |
3305 | if (srcdir=${srcdir}/libatomic; \ | |
3306 | . ${srcdir}/configure.tgt; \ | |
3307 | test -n "$UNSUPPORTED") | |
3308 | then | |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3310 | $as_echo "no" >&6; } | |
3311 | noconfigdirs="$noconfigdirs target-libatomic" | |
3312 | else | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3314 | $as_echo "yes" >&6; } | |
3315 | fi | |
3316 | fi | |
3317 | fi | |
3318 | ||
e948157d RH |
3319 | # Disable libitm on unsupported systems. |
3320 | if test -d ${srcdir}/libitm; then | |
3321 | if test x$enable_libitm = x; then | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3323 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3324 | if (srcdir=${srcdir}/libitm; \ |
3325 | . ${srcdir}/configure.tgt; \ | |
3326 | test -n "$UNSUPPORTED") | |
3327 | then | |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3329 | $as_echo "no" >&6; } |
e948157d RH |
3330 | noconfigdirs="$noconfigdirs target-libitm" |
3331 | else | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3333 | $as_echo "yes" >&6; } |
e948157d RH |
3334 | fi |
3335 | fi | |
0a35513e AH |
3336 | fi |
3337 | ||
93bf5390 RH |
3338 | # Disable libsanitizer on unsupported systems. |
3339 | if test -d ${srcdir}/libsanitizer; then | |
3340 | if test x$enable_libsanitizer = x; then | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3342 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3343 | if (srcdir=${srcdir}/libsanitizer; \ | |
3344 | . ${srcdir}/configure.tgt; \ | |
3345 | test -n "$UNSUPPORTED") | |
3346 | then | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3348 | $as_echo "no" >&6; } | |
3349 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3350 | else | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3352 | $as_echo "yes" >&6; } | |
3353 | fi | |
3354 | fi | |
3355 | fi | |
3356 | ||
2077db1b CT |
3357 | # Disable libvtv on unsupported systems. |
3358 | if test -d ${srcdir}/libvtv; then | |
3359 | if test x$enable_libvtv = x; then | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3361 | $as_echo_n "checking for libvtv support... " >&6; } | |
3362 | if (srcdir=${srcdir}/libvtv; \ | |
3363 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3364 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3365 | then |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3367 | $as_echo "no" >&6; } | |
3368 | noconfigdirs="$noconfigdirs target-libvtv" | |
3369 | else | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3371 | $as_echo "yes" >&6; } | |
3372 | fi | |
3373 | fi | |
3374 | fi | |
3375 | ||
d91491e5 SE |
3376 | # Disable libquadmath for some systems. |
3377 | case "${target}" in | |
e7fae550 DE |
3378 | avr-*-*) |
3379 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3380 | ;; | |
d91491e5 SE |
3381 | # libquadmath is unused on AIX and libquadmath build process use of |
3382 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3383 | powerpc-*-aix* | rs6000-*-aix*) | |
3384 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3385 | ;; | |
3386 | esac | |
3387 | ||
1e9e0e23 JM |
3388 | # Disable libssp for some systems. |
3389 | case "${target}" in | |
3390 | avr-*-*) | |
b318fb4b | 3391 | # No hosted I/O support. |
1e9e0e23 JM |
3392 | noconfigdirs="$noconfigdirs target-libssp" |
3393 | ;; | |
91dfef96 JM |
3394 | bpf-*-*) |
3395 | noconfigdirs="$noconfigdirs target-libssp" | |
3396 | ;; | |
1e9e0e23 JM |
3397 | powerpc-*-aix* | rs6000-*-aix*) |
3398 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3399 | ;; |
8d2af3a2 DD |
3400 | pru-*-*) |
3401 | # No hosted I/O support. | |
3402 | noconfigdirs="$noconfigdirs target-libssp" | |
3403 | ;; | |
85b8555e | 3404 | rl78-*-*) |
7cb62ef1 EB |
3405 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3406 | # doesn't fault for those - instead, it gives a build-time error | |
3407 | # for explicit misaligned loads. | |
85b8555e | 3408 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3409 | ;; |
0969ec7d EB |
3410 | visium-*-*) |
3411 | # No hosted I/O support. | |
3412 | noconfigdirs="$noconfigdirs target-libssp" | |
3413 | ;; | |
1e9e0e23 JM |
3414 | esac |
3415 | ||
1e9e0e23 | 3416 | # Disable libstdc++-v3 for some systems. |
67a1cb2a | 3417 | # Allow user to override this if they pass --enable-libstdcxx |
1873ec0c L |
3418 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3419 | case "${target}" in | |
3420 | *-*-vxworks*) | |
3421 | # VxWorks uses the Dinkumware C++ library. | |
3422 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3423 | ;; | |
afa3d80e TS |
3424 | amdgcn*-*-*) |
3425 | # Not ported/fails to build when using newlib. | |
3426 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3427 | ;; | |
1873ec0c L |
3428 | arm*-wince-pe*) |
3429 | # the C++ libraries don't build on top of CE's C libraries | |
3430 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3431 | ;; | |
3432 | avr-*-*) | |
3433 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3434 | ;; | |
91dfef96 JM |
3435 | bpf-*-*) |
3436 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3437 | ;; | |
fef939d6 JB |
3438 | ft32-*-*) |
3439 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3440 | ;; | |
1873ec0c L |
3441 | esac |
3442 | fi | |
1e9e0e23 | 3443 | |
91dfef96 JM |
3444 | # Disable C++ on systems where it is known to not work. |
3445 | # For testing, you can override this with --enable-languages=c++. | |
3446 | case ,${enable_languages}, in | |
3447 | *,c++,*) | |
3448 | ;; | |
3449 | *) | |
3450 | case "${target}" in | |
3451 | bpf-*-*) | |
3452 | unsupported_languages="$unsupported_languages c++" | |
3453 | ;; | |
3454 | esac | |
3455 | ;; | |
3456 | esac | |
3457 | ||
3458 | # Disable Objc on systems where it is known to not work. | |
3459 | # For testing, you can override this with --enable-languages=objc. | |
3460 | case ,${enable_languages}, in | |
3461 | *,objc,*) | |
3462 | ;; | |
3463 | *) | |
3464 | case "${target}" in | |
3465 | bpf-*-*) | |
3466 | unsupported_languages="$unsupported_languages objc" | |
3467 | ;; | |
3468 | esac | |
3469 | ;; | |
3470 | esac | |
3471 | ||
260eedb9 IB |
3472 | # Disable D on systems where it is known to not work. |
3473 | # For testing, you can override this with --enable-languages=d. | |
3474 | case ,${enable_languages}, in | |
3475 | *,d,*) | |
3476 | ;; | |
3477 | *) | |
3478 | case "${target}" in | |
91dfef96 | 3479 | bpf-*-*) |
260eedb9 IB |
3480 | unsupported_languages="$unsupported_languages d" |
3481 | ;; | |
3482 | esac | |
3483 | ;; | |
3484 | esac | |
3485 | ||
3486 | # Disable libphobos on unsupported systems. | |
3487 | # For testing, you can override this with --enable-libphobos. | |
3488 | if test -d ${srcdir}/libphobos; then | |
3489 | if test x$enable_libphobos = x; then | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3491 | $as_echo_n "checking for libphobos support... " >&6; } | |
3492 | if (srcdir=${srcdir}/libphobos; \ | |
3493 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3494 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3495 | then |
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3497 | $as_echo "no" >&6; } | |
3498 | noconfigdirs="$noconfigdirs target-libphobos" | |
3499 | else | |
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3501 | $as_echo "yes" >&6; } | |
3502 | fi | |
3503 | fi | |
3504 | fi | |
3505 | ||
1e9e0e23 JM |
3506 | # Disable Fortran for some systems. |
3507 | case "${target}" in | |
3508 | mmix-*-*) | |
3509 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3510 | unsupported_languages="$unsupported_languages fortran" | |
3511 | ;; | |
91dfef96 JM |
3512 | bpf-*-*) |
3513 | unsupported_languages="$unsupported_languages fortran" | |
3514 | ;; | |
1e9e0e23 JM |
3515 | esac |
3516 | ||
012447ea JJ |
3517 | # Disable libffi for some systems. |
3518 | case "${target}" in | |
3519 | powerpc-*-darwin*) | |
3520 | ;; | |
3521 | i[3456789]86-*-darwin*) | |
3522 | ;; | |
3523 | x86_64-*-darwin[912]*) | |
3524 | ;; | |
3525 | *-*-darwin*) | |
3526 | noconfigdirs="$noconfigdirs target-libffi" | |
3527 | ;; | |
3528 | *-*-netware*) | |
3529 | noconfigdirs="$noconfigdirs target-libffi" | |
3530 | ;; | |
3531 | *-*-phoenix*) | |
3532 | noconfigdirs="$noconfigdirs target-libffi" | |
3533 | ;; | |
3534 | *-*-rtems*) | |
3535 | noconfigdirs="$noconfigdirs target-libffi" | |
3536 | ;; | |
3537 | *-*-tpf*) | |
3538 | noconfigdirs="$noconfigdirs target-libffi" | |
3539 | ;; | |
3540 | *-*-uclinux*) | |
3541 | noconfigdirs="$noconfigdirs target-libffi" | |
3542 | ;; | |
3543 | *-*-vxworks*) | |
3544 | noconfigdirs="$noconfigdirs target-libffi" | |
3545 | ;; | |
b20e7532 AT |
3546 | aarch64*-*-freebsd*) |
3547 | noconfigdirs="$noconfigdirs target-libffi" | |
3548 | ;; | |
012447ea JJ |
3549 | alpha*-*-*vms*) |
3550 | noconfigdirs="$noconfigdirs target-libffi" | |
3551 | ;; | |
3552 | arm*-*-freebsd*) | |
3553 | noconfigdirs="$noconfigdirs target-libffi" | |
3554 | ;; | |
3555 | arm-wince-pe) | |
3556 | noconfigdirs="$noconfigdirs target-libffi" | |
3557 | ;; | |
3558 | arm*-*-symbianelf*) | |
3559 | noconfigdirs="$noconfigdirs target-libffi" | |
3560 | ;; | |
91dfef96 JM |
3561 | bpf-*-*) |
3562 | noconfigdirs="$noconfigdirs target-libffi" | |
3563 | ;; | |
012447ea JJ |
3564 | cris-*-* | crisv32-*-*) |
3565 | case "${target}" in | |
3566 | *-*-linux*) | |
3567 | ;; | |
3568 | *) # See PR46792 regarding target-libffi. | |
3569 | noconfigdirs="$noconfigdirs target-libffi";; | |
3570 | esac | |
3571 | ;; | |
3572 | hppa*64*-*-hpux*) | |
3573 | noconfigdirs="$noconfigdirs target-libffi" | |
3574 | ;; | |
b48e9940 AA |
3575 | hppa*-hp-hpux11*) |
3576 | ;; | |
3577 | hppa*-*-hpux*) | |
3578 | noconfigdirs="$noconfigdirs target-libffi" | |
3579 | ;; | |
012447ea JJ |
3580 | ia64*-*-*vms*) |
3581 | noconfigdirs="$noconfigdirs target-libffi" | |
3582 | ;; | |
3583 | i[3456789]86-w64-mingw*) | |
3584 | noconfigdirs="$noconfigdirs target-libffi" | |
3585 | ;; | |
3586 | i[3456789]86-*-mingw*) | |
3587 | noconfigdirs="$noconfigdirs target-libffi" | |
3588 | ;; | |
3589 | x86_64-*-mingw*) | |
3590 | noconfigdirs="$noconfigdirs target-libffi" | |
3591 | ;; | |
3592 | mmix-*-*) | |
3593 | noconfigdirs="$noconfigdirs target-libffi" | |
3594 | ;; | |
3595 | powerpc-*-aix*) | |
012447ea JJ |
3596 | ;; |
3597 | rs6000-*-aix*) | |
012447ea JJ |
3598 | ;; |
3599 | ft32-*-*) | |
3600 | noconfigdirs="$noconfigdirs target-libffi" | |
3601 | ;; | |
3602 | *-*-lynxos*) | |
3603 | noconfigdirs="$noconfigdirs target-libffi" | |
3604 | ;; | |
3605 | esac | |
3606 | ||
3607 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3608 | # this in sync with contrib/config-list.mk. | |
3609 | case "${target}" in | |
91dfef96 | 3610 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3611 | unsupported_languages="$unsupported_languages go" |
3612 | ;; | |
3613 | esac | |
3614 | ||
f9d09df0 TT |
3615 | # Only allow gdbserver on some systems. |
3616 | if test -d ${srcdir}/gdbserver; then | |
3617 | if test x$enable_gdbserver = x; then | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3619 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3620 | if (srcdir=${srcdir}/gdbserver; \ | |
3621 | . ${srcdir}/configure.srv; \ | |
3622 | test -n "$UNSUPPORTED") | |
3623 | then | |
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3625 | $as_echo "no" >&6; } | |
3626 | noconfigdirs="$noconfigdirs gdbserver" | |
3627 | else | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3629 | $as_echo "yes" >&6; } | |
3630 | fi | |
3631 | fi | |
3632 | fi | |
3633 | ||
cdbc9e92 ILT |
3634 | # Disable libgo for some systems where it is known to not work. |
3635 | # For testing, you can easily override this with --enable-libgo. | |
3636 | if test x$enable_libgo = x; then | |
3637 | case "${target}" in | |
3638 | *-*-darwin*) | |
3639 | # PR 46986 | |
3640 | noconfigdirs="$noconfigdirs target-libgo" | |
3641 | ;; | |
3642 | *-*-cygwin* | *-*-mingw*) | |
3643 | noconfigdirs="$noconfigdirs target-libgo" | |
3644 | ;; | |
91dfef96 JM |
3645 | bpf-*-*) |
3646 | noconfigdirs="$noconfigdirs target-libgo" | |
3647 | ;; | |
cdbc9e92 ILT |
3648 | esac |
3649 | fi | |
3650 | ||
c03353e2 RIL |
3651 | # Default libgloss CPU subdirectory. |
3652 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3653 | |
fbcf0dca JM |
3654 | case "${target}" in |
3655 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3656 | libgloss_dir=wince | |
3657 | ;; | |
4dddfc74 YZ |
3658 | aarch64*-*-* ) |
3659 | libgloss_dir=aarch64 | |
3660 | ;; | |
fbcf0dca JM |
3661 | arm*-*-*) |
3662 | libgloss_dir=arm | |
3663 | ;; | |
3664 | cris-*-* | crisv32-*-*) | |
3665 | libgloss_dir=cris | |
3666 | ;; | |
3667 | hppa*-*-*) | |
3668 | libgloss_dir=pa | |
3669 | ;; | |
3670 | i[3456789]86-*-*) | |
3671 | libgloss_dir=i386 | |
3672 | ;; | |
c6c0594e | 3673 | loongarch*-*-*) |
3674 | libgloss_dir=loongarch | |
3675 | ;; | |
fbcf0dca JM |
3676 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3677 | libgloss_dir=m68hc11 | |
3678 | ;; | |
3679 | m68*-*-* | fido-*-*) | |
3680 | libgloss_dir=m68k | |
3681 | ;; | |
3682 | mips*-*-*) | |
3683 | libgloss_dir=mips | |
3684 | ;; | |
3685 | powerpc*-*-*) | |
3686 | libgloss_dir=rs6000 | |
3687 | ;; | |
8d2af3a2 DD |
3688 | pru-*-*) |
3689 | libgloss_dir=pru | |
3690 | ;; | |
fbcf0dca JM |
3691 | sparc*-*-*) |
3692 | libgloss_dir=sparc | |
3693 | ;; | |
3694 | esac | |
3695 | ||
6a789d5e | 3696 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3697 | case "${target}" in |
6a789d5e JM |
3698 | alpha*-dec-osf*) |
3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3700 | ;; | |
3701 | i[3456789]86-*-linux*) | |
3702 | # This section makes it possible to build newlib natively on linux. | |
3703 | # If we are using a cross compiler then don't configure newlib. | |
3704 | if test x${is_cross_compiler} != xno ; then | |
3705 | noconfigdirs="$noconfigdirs target-newlib" | |
3706 | fi | |
3707 | noconfigdirs="$noconfigdirs target-libgloss" | |
3708 | # If we are not using a cross compiler, do configure newlib. | |
3709 | # Note however, that newlib will only be configured in this situation | |
3710 | # if the --with-newlib option has been given, because otherwise | |
3711 | # 'target-newlib' will appear in skipdirs. | |
3712 | ;; | |
3713 | i[3456789]86-*-rdos*) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | sparc-*-sunos4*) | |
3720 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3721 | ;; | |
91dfef96 JM |
3722 | bpf-*-*) |
3723 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3724 | ;; | |
6a789d5e JM |
3725 | *-*-aix*) |
3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3727 | ;; | |
3728 | *-*-beos*) | |
3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3730 | ;; | |
671aa708 | 3731 | *-*-chorusos) |
0036370f | 3732 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3733 | ;; |
6a789d5e JM |
3734 | *-*-dragonfly*) |
3735 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3736 | ;; | |
3737 | *-*-freebsd*) | |
3738 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3739 | ;; | |
3740 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3741 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3742 | ;; | |
3743 | *-*-lynxos*) | |
3744 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3745 | ;; | |
3746 | *-*-mingw*) | |
3747 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3748 | ;; | |
3749 | *-*-netbsd*) | |
3750 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3751 | ;; | |
3752 | *-*-netware*) | |
3753 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3754 | ;; | |
3755 | *-*-tpf*) | |
3756 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3757 | ;; | |
3758 | *-*-uclinux*) | |
3759 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3760 | ;; | |
3761 | *-*-vxworks*) | |
3762 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3763 | ;; | |
3764 | esac | |
3765 | ||
3766 | case "${target}" in | |
3767 | *-*-chorusos) | |
3768 | ;; | |
3be96231 TG |
3769 | aarch64-*-darwin*) |
3770 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3771 | noconfigdirs="$noconfigdirs sim target-rda" | |
3772 | ;; | |
7431c1a1 AS |
3773 | amdgcn*-*-*) |
3774 | ;; | |
3be96231 TG |
3775 | arm-*-darwin*) |
3776 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3777 | noconfigdirs="$noconfigdirs sim target-rda" | |
3778 | ;; | |
75eeae1a | 3779 | powerpc-*-darwin*) |
e1514c3f | 3780 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3781 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3782 | ;; |
354ebf88 RW |
3783 | i[3456789]86-*-darwin*) |
3784 | noconfigdirs="$noconfigdirs ld gprof" | |
3785 | noconfigdirs="$noconfigdirs sim target-rda" | |
3786 | ;; | |
3787 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3788 | noconfigdirs="$noconfigdirs ld gas gprof" |
3789 | noconfigdirs="$noconfigdirs sim target-rda" | |
3790 | ;; | |
42c1cd8a AT |
3791 | *-*-darwin*) |
3792 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3793 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3794 | ;; |
8c6d158a | 3795 | *-*-dragonfly*) |
8c6d158a | 3796 | ;; |
c3f84f61 | 3797 | *-*-freebsd*) |
88252529 | 3798 | if test "x$with_gmp" = x \ |
c0d0a722 | 3799 | && ! test -d ${srcdir}/gmp \ |
6de9cd9a DN |
3800 | && test -f /usr/local/include/gmp.h; then |
3801 | with_gmp=/usr/local | |
3802 | fi | |
6de9cd9a | 3803 | ;; |
ef4e7569 US |
3804 | *-*-kaos*) |
3805 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3806 | noconfigdirs="$noconfigdirs target-libgloss" |
3807 | ;; | |
671aa708 | 3808 | *-*-netbsd*) |
671aa708 | 3809 | ;; |
61fec9ff | 3810 | *-*-netware*) |
671aa708 | 3811 | ;; |
fd6487af JS |
3812 | *-*-phoenix*) |
3813 | noconfigdirs="$noconfigdirs target-libgloss" | |
3814 | ;; | |
671aa708 | 3815 | *-*-rtems*) |
2909494b | 3816 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3817 | ;; |
a8ba31f2 EC |
3818 | # The tpf target doesn't support gdb yet. |
3819 | *-*-tpf*) | |
6a789d5e | 3820 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3821 | ;; |
5785c0ed | 3822 | *-*-uclinux*) |
6a789d5e | 3823 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3824 | ;; |
671aa708 | 3825 | *-*-vxworks*) |
671aa708 NN |
3826 | ;; |
3827 | alpha*-dec-osf*) | |
3828 | # ld works, but does not support shared libraries. | |
671aa708 | 3829 | # gas doesn't generate exception information. |
6a789d5e | 3830 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3831 | ;; |
3832 | alpha*-*-*vms*) | |
2909494b | 3833 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3834 | ;; |
671aa708 NN |
3835 | alpha*-*-*) |
3836 | # newlib is not 64 bit ready | |
2909494b | 3837 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3838 | ;; |
91dfef96 JM |
3839 | bpf-*-*) |
3840 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3841 | ;; | |
671aa708 | 3842 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3843 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3844 | ;; |
2fd88f4f AK |
3845 | arc*-*-*) |
3846 | noconfigdirs="$noconfigdirs sim" | |
3847 | ;; | |
671aa708 | 3848 | arm-*-pe*) |
2909494b | 3849 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3850 | ;; |
671aa708 | 3851 | arm-*-riscix*) |
0036370f | 3852 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3853 | ;; |
b588ae30 GJL |
3854 | avr-*-*) |
3855 | if test x${with_avrlibc} != xno; then | |
3856 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3857 | fi | |
3858 | ;; | |
671aa708 | 3859 | c4x-*-* | tic4x-*-*) |
0036370f | 3860 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3861 | ;; |
0036370f JM |
3862 | tic54x-*-*) |
3863 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3864 | ;; |
671aa708 | 3865 | d10v-*-*) |
0036370f | 3866 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3867 | ;; |
3868 | d30v-*-*) | |
0036370f | 3869 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3870 | ;; |
3871 | fr30-*-elf*) | |
2909494b | 3872 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3873 | ;; |
a05c2c75 L |
3874 | ft32-*-*) |
3875 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3876 | ;; | |
55f2d967 | 3877 | moxie-*-*) |
a05c2c75 | 3878 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3879 | ;; |
671aa708 | 3880 | h8300*-*-*) |
2909494b | 3881 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3882 | ;; |
3883 | h8500-*-*) | |
0036370f | 3884 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3885 | ;; |
b48e9940 AA |
3886 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
3887 | ;; | |
a05c2c75 L |
3888 | hppa*64*-*-hpux*) |
3889 | noconfigdirs="$noconfigdirs gdb" | |
3890 | ;; | |
b48e9940 AA |
3891 | hppa*-*-hpux11*) |
3892 | noconfigdirs="$noconfigdirs gdb ld" | |
3893 | ;; | |
4569f85e | 3894 | hppa*64*-*-linux*) |
671aa708 | 3895 | ;; |
56f8587a | 3896 | hppa*-*-linux*) |
3e732ba0 | 3897 | ;; |
671aa708 | 3898 | hppa*-*-*elf* | \ |
671aa708 NN |
3899 | hppa*-*-lites* | \ |
3900 | hppa*-*-openbsd* | \ | |
3901 | hppa*64*-*-*) | |
671aa708 | 3902 | ;; |
c03353e2 | 3903 | hppa*-*-pro*) |
c03353e2 | 3904 | ;; |
671aa708 | 3905 | hppa*-*-*) |
2909494b | 3906 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3907 | ;; |
fb87ad5d | 3908 | i960-*-*) |
0036370f | 3909 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3910 | ;; |
671aa708 NN |
3911 | ia64*-*-elf*) |
3912 | # No gdb support yet. | |
1bcce263 | 3913 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3914 | ;; |
3915 | ia64*-**-hpux*) | |
5a2931d1 | 3916 | # No ld support yet. |
a05c2c75 | 3917 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3918 | ;; |
52535a64 | 3919 | ia64*-*-*vms*) |
091fe9ca TG |
3920 | # No ld support yet. |
3921 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3922 | ;; |
ef4c4300 | 3923 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3924 | ;; |
3925 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3926 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3927 | ;; |
671aa708 NN |
3928 | *-*-cygwin*) |
3929 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3930 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3931 | # always build newlib if winsup directory is present. |
b91f0a41 | 3932 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3933 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3934 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3935 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3936 | fi |
1c710c3c | 3937 | ;; |
f2a0e225 | 3938 | i[3456789]86-*-pe) |
ebb9f8b0 | 3939 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3940 | ;; |
f2a0e225 | 3941 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3942 | # The linker does not yet know about weak symbols in COFF, |
3943 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3944 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3945 | ;; |
f2a0e225 | 3946 | i[3456789]86-*-sco*) |
0036370f | 3947 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3948 | ;; |
fbdd5d87 | 3949 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3950 | noconfigdirs="$noconfigdirs target-libgloss" |
3951 | ;; | |
f2a0e225 | 3952 | i[3456789]86-*-sysv4*) |
0036370f | 3953 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3954 | ;; |
f2a0e225 | 3955 | i[3456789]86-*-beos*) |
6a789d5e | 3956 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3957 | ;; |
d1f8db0c | 3958 | i[3456789]86-*-rdos*) |
6a789d5e | 3959 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3960 | ;; |
671aa708 | 3961 | mmix-*-*) |
2909494b | 3962 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3963 | ;; |
ab34901f | 3964 | mt-*-*) |
79dd769c AH |
3965 | noconfigdirs="$noconfigdirs sim" |
3966 | ;; | |
58b40a67 FT |
3967 | nfp-*-*) |
3968 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3969 | noconfigdirs="$noconfigdirs $target_libraries" | |
3970 | ;; | |
e6cbe965 SC |
3971 | pdp11-*-*) |
3972 | noconfigdirs="$noconfigdirs gdb gprof" | |
3973 | ;; | |
671aa708 NN |
3974 | powerpc-*-aix*) |
3975 | # copied from rs6000-*-* entry | |
6a789d5e | 3976 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3977 | ;; |
4569f85e | 3978 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3979 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3980 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3981 | # always build newlib. |
3982 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3983 | ;; | |
3984 | # This is temporary until we can link against shared libraries | |
3985 | powerpcle-*-solaris*) | |
0036370f | 3986 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3987 | ;; |
3988 | powerpc-*-beos*) | |
6a789d5e | 3989 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3990 | ;; |
671aa708 | 3991 | rs6000-*-lynxos*) |
6a789d5e | 3992 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3993 | ;; |
3994 | rs6000-*-aix*) | |
6a789d5e | 3995 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3996 | ;; |
3997 | rs6000-*-*) | |
2909494b | 3998 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3999 | ;; |
4000 | m68k-apollo-*) | |
0036370f | 4001 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 4002 | ;; |
ca9fe997 | 4003 | microblaze*) |
2909494b | 4004 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 4005 | ;; |
d896cc4d | 4006 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
4007 | if test x$with_newlib = xyes; then |
4008 | noconfigdirs="$noconfigdirs gprof" | |
4009 | fi | |
d9dced13 | 4010 | ;; |
671aa708 | 4011 | mips*-*-irix5*) |
0036370f | 4012 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
4013 | ;; |
4014 | mips*-*-irix6*) | |
2909494b | 4015 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 4016 | ;; |
671aa708 | 4017 | mips*-*-bsd*) |
bc98bcc4 | 4018 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 4019 | ;; |
671aa708 | 4020 | mips*-*-linux*) |
671aa708 | 4021 | ;; |
bc98bcc4 JBG |
4022 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4023 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4024 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4025 | ;; | |
671aa708 | 4026 | mips*-*-*) |
2909494b | 4027 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 4028 | ;; |
738f2522 | 4029 | nvptx*-*-*) |
738f2522 BS |
4030 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4031 | ;; | |
bc6d9014 | 4032 | sh-*-*) |
ea2002ba CB |
4033 | case "${target}" in |
4034 | sh*-*-elf) | |
2909494b | 4035 | ;; |
ea2002ba | 4036 | *) |
2909494b | 4037 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4038 | esac |
671aa708 | 4039 | ;; |
671aa708 | 4040 | sparc-*-sunos4*) |
6a789d5e | 4041 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4042 | use_gnu_ld=no |
4043 | fi | |
4044 | ;; | |
b42f0d7e | 4045 | tic6x-*-*) |
0d557ff8 | 4046 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4047 | ;; |
a885ec24 AA |
4048 | tilepro*-*-* | tilegx*-*-*) |
4049 | noconfigdirs="$noconfigdirs sim" | |
4050 | ;; | |
671aa708 | 4051 | v810-*-*) |
0036370f | 4052 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4053 | ;; |
4054 | vax-*-*) | |
2909494b | 4055 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4056 | ;; |
1fc1d82e MR |
4057 | wasm32-*-*) |
4058 | noconfigdirs="$noconfigdirs ld" | |
4059 | ;; | |
c6c0594e | 4060 | loongarch*-*-linux*) |
4061 | ;; | |
4062 | loongarch*-*-*) | |
4063 | noconfigdirs="$noconfigdirs gprof" | |
4064 | ;; | |
671aa708 | 4065 | esac |
79c06341 | 4066 | |
671aa708 NN |
4067 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4068 | # depends upon some newlib header files. | |
4069 | case "${noconfigdirs}" in | |
4070 | *target-libgloss*) ;; | |
4071 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4072 | esac | |
4073 | ||
671aa708 | 4074 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4075 | host_makefile_frag=/dev/null |
4076 | if test -d ${srcdir}/config ; then | |
4077 | case "${host}" in | |
f2a0e225 | 4078 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4079 | host_makefile_frag="config/mh-djgpp" |
4080 | ;; | |
4081 | *-cygwin*) | |
2a79c47f | 4082 | |
5213506e RW |
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4084 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4085 | echo a >cygwin-cat-check |
e25a8c82 | 4086 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4087 | rm cygwin-cat-check |
5213506e RW |
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4089 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4090 | else |
4091 | rm cygwin-cat-check | |
5213506e RW |
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4093 | $as_echo "no" >&6; } | |
22e05272 | 4094 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4095 | Please either mount the build directory in binary mode or run the following |
4096 | commands before running any configure script: | |
4097 | set -o igncr | |
4098 | export SHELLOPTS | |
5213506e | 4099 | " "$LINENO" 5 |
2a79c47f NC |
4100 | fi |
4101 | ||
671aa708 NN |
4102 | host_makefile_frag="config/mh-cygwin" |
4103 | ;; | |
c53a18d3 | 4104 | *-mingw*) |
1f5a6b84 | 4105 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4106 | ;; |
cabb9d59 | 4107 | alpha*-linux*) |
13be44ed UB |
4108 | host_makefile_frag="config/mh-alpha-linux" |
4109 | ;; | |
111eeb6e | 4110 | hppa*-hp-hpux*) |
efd41714 PB |
4111 | host_makefile_frag="config/mh-pa" |
4112 | ;; | |
4113 | hppa*-*) | |
4114 | host_makefile_frag="config/mh-pa" | |
4115 | ;; | |
54258e22 | 4116 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
d8ed14ce | 4117 | host_makefile_frag="config/mh-darwin" |
be8fff81 | 4118 | ;; |
d19bca38 PB |
4119 | powerpc-*-aix*) |
4120 | host_makefile_frag="config/mh-ppc-aix" | |
4121 | ;; | |
4122 | rs6000-*-aix*) | |
4123 | host_makefile_frag="config/mh-ppc-aix" | |
4124 | ;; | |
671aa708 NN |
4125 | esac |
4126 | fi | |
4127 | ||
55ffb5ed | 4128 | if test "${build}" != "${host}" ; then |
0999159b PB |
4129 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4130 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4131 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
c841dc0a | 4132 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
0999159b | 4133 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3b5e8ee4 | 4134 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
0999159b | 4135 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4136 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4137 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4138 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4139 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4140 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4141 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4142 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4143 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4144 | else | |
4145 | AR_FOR_BUILD="\$(AR)" | |
4146 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4147 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4148 | CXX_FOR_BUILD="\$(CXX)" |
3b5e8ee4 | 4149 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
0999159b | 4150 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4151 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4152 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4153 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4154 | LD_FOR_BUILD="\$(LD)" | |
4155 | NM_FOR_BUILD="\$(NM)" | |
4156 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4157 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4158 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4159 | fi |
4160 | ||
4161 | ac_ext=c | |
1c710c3c DJ |
4162 | ac_cpp='$CPP $CPPFLAGS' |
4163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4166 | if test -n "$ac_tool_prefix"; then | |
4167 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4168 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4171 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4172 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4173 | else |
4174 | if test -n "$CC"; then | |
4175 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4176 | else | |
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4178 | for as_dir in $PATH | |
4179 | do | |
4180 | IFS=$as_save_IFS | |
4181 | test -z "$as_dir" && as_dir=. | |
5213506e | 4182 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4184 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4186 | break 2 |
4187 | fi | |
4188 | done | |
5213506e RW |
4189 | done |
4190 | IFS=$as_save_IFS | |
1c710c3c DJ |
4191 | |
4192 | fi | |
4193 | fi | |
4194 | CC=$ac_cv_prog_CC | |
4195 | if test -n "$CC"; then | |
5213506e RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4197 | $as_echo "$CC" >&6; } | |
1c710c3c | 4198 | else |
5213506e RW |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4200 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4201 | fi |
4202 | ||
5213506e | 4203 | |
1c710c3c DJ |
4204 | fi |
4205 | if test -z "$ac_cv_prog_CC"; then | |
4206 | ac_ct_CC=$CC | |
fb0103e5 RG |
4207 | # Extract the first word of "gcc", so it can be a program name with args. |
4208 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4210 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4211 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4212 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4213 | else |
4214 | if test -n "$ac_ct_CC"; then | |
4215 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4216 | else | |
4217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4218 | for as_dir in $PATH | |
4219 | do | |
4220 | IFS=$as_save_IFS | |
4221 | test -z "$as_dir" && as_dir=. | |
5213506e | 4222 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4224 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4226 | break 2 |
4227 | fi | |
4228 | done | |
5213506e RW |
4229 | done |
4230 | IFS=$as_save_IFS | |
1c710c3c DJ |
4231 | |
4232 | fi | |
4233 | fi | |
4234 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4235 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4237 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4238 | else |
5213506e RW |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4240 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4241 | fi |
4242 | ||
5213506e RW |
4243 | if test "x$ac_ct_CC" = x; then |
4244 | CC="" | |
4245 | else | |
4246 | case $cross_compiling:$ac_tool_warned in | |
4247 | yes:) | |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4250 | ac_tool_warned=yes ;; | |
4251 | esac | |
4252 | CC=$ac_ct_CC | |
4253 | fi | |
1c710c3c DJ |
4254 | else |
4255 | CC="$ac_cv_prog_CC" | |
4256 | fi | |
4257 | ||
4258 | if test -z "$CC"; then | |
5213506e RW |
4259 | if test -n "$ac_tool_prefix"; then |
4260 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4261 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4263 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4264 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4265 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4266 | else |
4267 | if test -n "$CC"; then | |
4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4269 | else | |
1c710c3c DJ |
4270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4271 | for as_dir in $PATH | |
4272 | do | |
4273 | IFS=$as_save_IFS | |
4274 | test -z "$as_dir" && as_dir=. | |
5213506e | 4275 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4277 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4279 | break 2 |
4280 | fi | |
4281 | done | |
5213506e RW |
4282 | done |
4283 | IFS=$as_save_IFS | |
1c710c3c | 4284 | |
0b0dc272 | 4285 | fi |
0b0dc272 | 4286 | fi |
1c710c3c | 4287 | CC=$ac_cv_prog_CC |
af71363e | 4288 | if test -n "$CC"; then |
5213506e RW |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4290 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4291 | else |
5213506e RW |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4293 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4294 | fi |
4295 | ||
2aeb72e9 | 4296 | |
5213506e | 4297 | fi |
1c710c3c | 4298 | fi |
55ffb5ed NN |
4299 | if test -z "$CC"; then |
4300 | # Extract the first word of "cc", so it can be a program name with args. | |
4301 | set dummy cc; ac_word=$2 | |
5213506e RW |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4303 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4304 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4305 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4306 | else |
4307 | if test -n "$CC"; then | |
4308 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4309 | else | |
0b0dc272 | 4310 | ac_prog_rejected=no |
1c710c3c DJ |
4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4312 | for as_dir in $PATH | |
4313 | do | |
4314 | IFS=$as_save_IFS | |
4315 | test -z "$as_dir" && as_dir=. | |
5213506e | 4316 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4318 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4319 | ac_prog_rejected=yes | |
4320 | continue | |
4321 | fi | |
4322 | ac_cv_prog_CC="cc" | |
5213506e | 4323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4324 | break 2 |
4325 | fi | |
4326 | done | |
5213506e RW |
4327 | done |
4328 | IFS=$as_save_IFS | |
1c710c3c | 4329 | |
55ffb5ed NN |
4330 | if test $ac_prog_rejected = yes; then |
4331 | # We found a bogon in the path, so make sure we never use it. | |
4332 | set dummy $ac_cv_prog_CC | |
4333 | shift | |
1c710c3c | 4334 | if test $# != 0; then |
55ffb5ed NN |
4335 | # We chose a different compiler from the bogus one. |
4336 | # However, it has the same basename, so the bogon will be chosen | |
4337 | # first if we set CC to just the basename; use the full file name. | |
4338 | shift | |
1c710c3c | 4339 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4340 | fi |
4341 | fi | |
4342 | fi | |
4343 | fi | |
1c710c3c | 4344 | CC=$ac_cv_prog_CC |
55ffb5ed | 4345 | if test -n "$CC"; then |
5213506e RW |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4347 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4348 | else |
5213506e RW |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4350 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4351 | fi |
4352 | ||
5213506e | 4353 | |
1c710c3c DJ |
4354 | fi |
4355 | if test -z "$CC"; then | |
4356 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4357 | for ac_prog in cl.exe |
1c710c3c DJ |
4358 | do |
4359 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4360 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4362 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4363 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4364 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4365 | else |
4366 | if test -n "$CC"; then | |
4367 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4368 | else | |
1c710c3c DJ |
4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4370 | for as_dir in $PATH | |
4371 | do | |
4372 | IFS=$as_save_IFS | |
4373 | test -z "$as_dir" && as_dir=. | |
5213506e | 4374 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4376 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4378 | break 2 |
4379 | fi | |
4380 | done | |
5213506e RW |
4381 | done |
4382 | IFS=$as_save_IFS | |
1c710c3c | 4383 | |
55ffb5ed NN |
4384 | fi |
4385 | fi | |
1c710c3c | 4386 | CC=$ac_cv_prog_CC |
55ffb5ed | 4387 | if test -n "$CC"; then |
5213506e RW |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4389 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4390 | else |
5213506e RW |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4392 | $as_echo "no" >&6; } | |
fb0103e5 | 4393 | fi |
af71363e | 4394 | |
5213506e | 4395 | |
1c710c3c DJ |
4396 | test -n "$CC" && break |
4397 | done | |
af71363e | 4398 | fi |
1c710c3c DJ |
4399 | if test -z "$CC"; then |
4400 | ac_ct_CC=$CC | |
5213506e | 4401 | for ac_prog in cl.exe |
1c710c3c DJ |
4402 | do |
4403 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4404 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4406 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4407 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4408 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4409 | else |
1c710c3c DJ |
4410 | if test -n "$ac_ct_CC"; then |
4411 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4412 | else |
1c710c3c DJ |
4413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4414 | for as_dir in $PATH | |
4415 | do | |
4416 | IFS=$as_save_IFS | |
4417 | test -z "$as_dir" && as_dir=. | |
5213506e | 4418 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4420 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4422 | break 2 |
4423 | fi | |
4424 | done | |
5213506e RW |
4425 | done |
4426 | IFS=$as_save_IFS | |
1c710c3c | 4427 | |
af71363e AS |
4428 | fi |
4429 | fi | |
1c710c3c DJ |
4430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4431 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4433 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4434 | else |
5213506e RW |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4436 | $as_echo "no" >&6; } | |
af71363e | 4437 | fi |
0b0dc272 | 4438 | |
5213506e | 4439 | |
1c710c3c DJ |
4440 | test -n "$ac_ct_CC" && break |
4441 | done | |
4442 | ||
5213506e RW |
4443 | if test "x$ac_ct_CC" = x; then |
4444 | CC="" | |
4445 | else | |
4446 | case $cross_compiling:$ac_tool_warned in | |
4447 | yes:) | |
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4449 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4450 | ac_tool_warned=yes ;; | |
4451 | esac | |
4452 | CC=$ac_ct_CC | |
4453 | fi | |
1c710c3c DJ |
4454 | fi |
4455 | ||
4456 | fi | |
4457 | ||
4458 | ||
5213506e RW |
4459 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4461 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4462 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4463 | |
4464 | # Provide some information about the compiler. | |
5213506e RW |
4465 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4466 | set X $ac_compile | |
4467 | ac_compiler=$2 | |
4468 | for ac_option in --version -v -V -qversion; do | |
4469 | { { ac_try="$ac_compiler $ac_option >&5" | |
4470 | case "(($ac_try" in | |
4471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4472 | *) ac_try_echo=$ac_try;; | |
4473 | esac | |
4474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4475 | $as_echo "$ac_try_echo"; } >&5 | |
4476 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4477 | ac_status=$? |
5213506e RW |
4478 | if test -s conftest.err; then |
4479 | sed '10a\ | |
4480 | ... rest of stderr output deleted ... | |
4481 | 10q' conftest.err >conftest.er1 | |
4482 | cat conftest.er1 >&5 | |
5213506e | 4483 | fi |
22e05272 | 4484 | rm -f conftest.er1 conftest.err |
5213506e RW |
4485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4486 | test $ac_status = 0; } | |
4487 | done | |
1c710c3c | 4488 | |
5213506e | 4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4490 | /* end confdefs.h. */ |
4491 | ||
4492 | int | |
4493 | main () | |
4494 | { | |
4495 | ||
4496 | ; | |
4497 | return 0; | |
4498 | } | |
4499 | _ACEOF | |
4500 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4501 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4502 | # Try to create an executable without -o first, disregard a.out. |
4503 | # It will help us diagnose broken compilers, and finding out an intuition | |
4504 | # of exeext. | |
22e05272 JM |
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4506 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4507 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4508 | ||
4509 | # The possible output files: | |
4510 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4511 | ||
4512 | ac_rmfiles= | |
4513 | for ac_file in $ac_files | |
4514 | do | |
4515 | case $ac_file in | |
4516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4517 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4518 | esac | |
4519 | done | |
4520 | rm -f $ac_rmfiles | |
4521 | ||
4522 | if { { ac_try="$ac_link_default" | |
4523 | case "(($ac_try" in | |
4524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4525 | *) ac_try_echo=$ac_try;; | |
4526 | esac | |
4527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4528 | $as_echo "$ac_try_echo"; } >&5 | |
4529 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4530 | ac_status=$? |
5213506e RW |
4531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4532 | test $ac_status = 0; }; then : | |
4533 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4534 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4535 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4536 | # so that the user can short-circuit this test for compilers unknown to | |
4537 | # Autoconf. | |
4538 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4539 | do |
4540 | test -f "$ac_file" || continue | |
4541 | case $ac_file in | |
5213506e | 4542 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4543 | ;; |
4544 | [ab].out ) | |
4545 | # We found the default executable, but exeext='' is most | |
4546 | # certainly right. | |
4547 | break;; | |
4548 | *.* ) | |
5213506e RW |
4549 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4550 | then :; else | |
4551 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4552 | fi | |
4553 | # We set ac_cv_exeext here because the later test for it is not | |
4554 | # safe: cross compilers may not add the suffix if given an `-o' | |
4555 | # argument, so we may need to know it at that point already. | |
4556 | # Even if this section looks crufty: it has the advantage of | |
4557 | # actually working. | |
1c710c3c DJ |
4558 | break;; |
4559 | * ) | |
4560 | break;; | |
4561 | esac | |
4562 | done | |
5213506e RW |
4563 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4564 | ||
1c710c3c | 4565 | else |
5213506e RW |
4566 | ac_file='' |
4567 | fi | |
5213506e | 4568 | if test -z "$ac_file"; then : |
22e05272 JM |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4570 | $as_echo "no" >&6; } | |
4571 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4572 | sed 's/^/| /' conftest.$ac_ext >&5 |
4573 | ||
5213506e RW |
4574 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4576 | as_fn_error 77 "C compiler cannot create executables |
4577 | See \`config.log' for more details" "$LINENO" 5; } | |
4578 | else | |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4580 | $as_echo "yes" >&6; } | |
1c710c3c | 4581 | fi |
22e05272 JM |
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4583 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4585 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4586 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4587 | |
22e05272 | 4588 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4589 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4591 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4592 | if { { ac_try="$ac_link" | |
4593 | case "(($ac_try" in | |
4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4595 | *) ac_try_echo=$ac_try;; | |
4596 | esac | |
4597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4598 | $as_echo "$ac_try_echo"; } >&5 | |
4599 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4600 | ac_status=$? |
5213506e RW |
4601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4602 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4603 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4604 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4605 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4606 | # `rm'. | |
4607 | for ac_file in conftest.exe conftest conftest.*; do | |
4608 | test -f "$ac_file" || continue | |
4609 | case $ac_file in | |
5213506e | 4610 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4611 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4612 | break;; |
4613 | * ) break;; | |
4614 | esac | |
4615 | done | |
af71363e | 4616 | else |
5213506e RW |
4617 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4618 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4619 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4620 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4621 | fi |
22e05272 | 4622 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4624 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4625 | |
4626 | rm -f conftest.$ac_ext | |
4627 | EXEEXT=$ac_cv_exeext | |
4628 | ac_exeext=$EXEEXT | |
22e05272 JM |
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4630 | /* end confdefs.h. */ | |
4631 | #include <stdio.h> | |
4632 | int | |
4633 | main () | |
4634 | { | |
4635 | FILE *f = fopen ("conftest.out", "w"); | |
4636 | return ferror (f) || fclose (f) != 0; | |
4637 | ||
4638 | ; | |
4639 | return 0; | |
4640 | } | |
4641 | _ACEOF | |
4642 | ac_clean_files="$ac_clean_files conftest.out" | |
4643 | # Check that the compiler produces executables we can run. If not, either | |
4644 | # the compiler is broken, or we cross compile. | |
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4646 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4647 | if test "$cross_compiling" != yes; then | |
4648 | { { ac_try="$ac_link" | |
4649 | case "(($ac_try" in | |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
4653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4654 | $as_echo "$ac_try_echo"; } >&5 | |
4655 | (eval "$ac_link") 2>&5 | |
4656 | ac_status=$? | |
4657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4658 | test $ac_status = 0; } | |
4659 | if { ac_try='./conftest$ac_cv_exeext' | |
4660 | { { case "(($ac_try" in | |
4661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4662 | *) ac_try_echo=$ac_try;; | |
4663 | esac | |
4664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4665 | $as_echo "$ac_try_echo"; } >&5 | |
4666 | (eval "$ac_try") 2>&5 | |
4667 | ac_status=$? | |
4668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4669 | test $ac_status = 0; }; }; then | |
4670 | cross_compiling=no | |
4671 | else | |
4672 | if test "$cross_compiling" = maybe; then | |
4673 | cross_compiling=yes | |
4674 | else | |
4675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4677 | as_fn_error $? "cannot run C compiled programs. | |
4678 | If you meant to cross compile, use \`--host'. | |
4679 | See \`config.log' for more details" "$LINENO" 5; } | |
4680 | fi | |
4681 | fi | |
4682 | fi | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4684 | $as_echo "$cross_compiling" >&6; } | |
4685 | ||
4686 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4687 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4689 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4690 | if ${ac_cv_objext+:} false; then : |
5213506e | 4691 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4692 | else |
5213506e | 4693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4694 | /* end confdefs.h. */ |
4695 | ||
4696 | int | |
4697 | main () | |
4698 | { | |
4699 | ||
4700 | ; | |
4701 | return 0; | |
4702 | } | |
4703 | _ACEOF | |
4704 | rm -f conftest.o conftest.obj | |
5213506e RW |
4705 | if { { ac_try="$ac_compile" |
4706 | case "(($ac_try" in | |
4707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4708 | *) ac_try_echo=$ac_try;; | |
4709 | esac | |
4710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4711 | $as_echo "$ac_try_echo"; } >&5 | |
4712 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4713 | ac_status=$? |
5213506e RW |
4714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4715 | test $ac_status = 0; }; then : | |
4716 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4717 | test -f "$ac_file" || continue; | |
1c710c3c | 4718 | case $ac_file in |
5213506e | 4719 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4720 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4721 | break;; | |
4722 | esac | |
4723 | done | |
4724 | else | |
5213506e | 4725 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4726 | sed 's/^/| /' conftest.$ac_ext >&5 |
4727 | ||
5213506e RW |
4728 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4730 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4731 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4732 | fi |
1c710c3c DJ |
4733 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4734 | fi | |
5213506e RW |
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4736 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4737 | OBJEXT=$ac_cv_objext |
4738 | ac_objext=$OBJEXT | |
5213506e RW |
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4740 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4741 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4742 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4743 | else |
5213506e | 4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4745 | /* end confdefs.h. */ |
4746 | ||
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | #ifndef __GNUC__ | |
4751 | choke me | |
4752 | #endif | |
4753 | ||
4754 | ; | |
4755 | return 0; | |
4756 | } | |
4757 | _ACEOF | |
5213506e | 4758 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4759 | ac_compiler_gnu=yes |
4760 | else | |
5213506e | 4761 | ac_compiler_gnu=no |
1c710c3c | 4762 | fi |
5213506e | 4763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4764 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4765 | ||
4766 | fi | |
5213506e RW |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4768 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4769 | if test $ac_compiler_gnu = yes; then | |
4770 | GCC=yes | |
4771 | else | |
4772 | GCC= | |
4773 | fi | |
1c710c3c DJ |
4774 | ac_test_CFLAGS=${CFLAGS+set} |
4775 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4777 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4778 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4779 | $as_echo_n "(cached) " >&6 |
4780 | else | |
4781 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4782 | ac_c_werror_flag=yes | |
4783 | ac_cv_prog_cc_g=no | |
4784 | CFLAGS="-g" | |
4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4786 | /* end confdefs.h. */ |
4787 | ||
4788 | int | |
4789 | main () | |
4790 | { | |
4791 | ||
4792 | ; | |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
5213506e | 4796 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4797 | ac_cv_prog_cc_g=yes |
4798 | else | |
5213506e RW |
4799 | CFLAGS="" |
4800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4801 | /* end confdefs.h. */ | |
4802 | ||
4803 | int | |
4804 | main () | |
4805 | { | |
4806 | ||
4807 | ; | |
4808 | return 0; | |
4809 | } | |
4810 | _ACEOF | |
4811 | if ac_fn_c_try_compile "$LINENO"; then : | |
4812 | ||
4813 | else | |
4814 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4815 | CFLAGS="-g" | |
4816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4817 | /* end confdefs.h. */ | |
af71363e | 4818 | |
5213506e RW |
4819 | int |
4820 | main () | |
4821 | { | |
4822 | ||
4823 | ; | |
4824 | return 0; | |
4825 | } | |
4826 | _ACEOF | |
4827 | if ac_fn_c_try_compile "$LINENO"; then : | |
4828 | ac_cv_prog_cc_g=yes | |
4829 | fi | |
4830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4831 | fi |
5213506e | 4832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4833 | fi |
5213506e RW |
4834 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4835 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4836 | fi | |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4838 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4839 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4840 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4841 | elif test $ac_cv_prog_cc_g = yes; then |
4842 | if test "$GCC" = yes; then | |
4843 | CFLAGS="-g -O2" | |
4844 | else | |
4845 | CFLAGS="-g" | |
4846 | fi | |
4847 | else | |
4848 | if test "$GCC" = yes; then | |
4849 | CFLAGS="-O2" | |
4850 | else | |
4851 | CFLAGS= | |
4852 | fi | |
4853 | fi | |
5213506e RW |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4855 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4856 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4857 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4858 | else |
5213506e | 4859 | ac_cv_prog_cc_c89=no |
1c710c3c | 4860 | ac_save_CC=$CC |
5213506e | 4861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4862 | /* end confdefs.h. */ |
4863 | #include <stdarg.h> | |
4864 | #include <stdio.h> | |
22e05272 | 4865 | struct stat; |
1c710c3c DJ |
4866 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4867 | struct buf { int x; }; | |
4868 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4869 | static char *e (p, i) | |
4870 | char **p; | |
4871 | int i; | |
4872 | { | |
4873 | return p[i]; | |
4874 | } | |
4875 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4876 | { | |
4877 | char *s; | |
4878 | va_list v; | |
4879 | va_start (v,p); | |
4880 | s = g (p, va_arg (v,int)); | |
4881 | va_end (v); | |
4882 | return s; | |
4883 | } | |
4884 | ||
4885 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4886 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4887 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4888 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4889 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4890 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4891 | that's true only with -std. */ |
1c710c3c DJ |
4892 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4893 | ||
5213506e RW |
4894 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4895 | inside strings and character constants. */ | |
4896 | #define FOO(x) 'x' | |
4897 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4898 | ||
1c710c3c DJ |
4899 | int test (int i, double x); |
4900 | struct s1 {int (*f) (int a);}; | |
4901 | struct s2 {int (*f) (double a);}; | |
4902 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4903 | int argc; | |
4904 | char **argv; | |
4905 | int | |
4906 | main () | |
4907 | { | |
4908 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4909 | ; | |
4910 | return 0; | |
4911 | } | |
4912 | _ACEOF | |
5213506e RW |
4913 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4914 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4915 | do |
4916 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4917 | if ac_fn_c_try_compile "$LINENO"; then : |
4918 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4919 | fi |
5213506e RW |
4920 | rm -f core conftest.err conftest.$ac_objext |
4921 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4922 | done |
5213506e | 4923 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4924 | CC=$ac_save_CC |
4925 | ||
4926 | fi | |
5213506e RW |
4927 | # AC_CACHE_VAL |
4928 | case "x$ac_cv_prog_cc_c89" in | |
4929 | x) | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4931 | $as_echo "none needed" >&6; } ;; | |
4932 | xno) | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4934 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4935 | *) |
5213506e RW |
4936 | CC="$CC $ac_cv_prog_cc_c89" |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4938 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4939 | esac |
5213506e | 4940 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4941 | |
2aeb72e9 DD |
4942 | fi |
4943 | ||
2aeb72e9 DD |
4944 | ac_ext=c |
4945 | ac_cpp='$CPP $CPPFLAGS' | |
4946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4949 | ||
91743432 NC |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4951 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4952 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4953 | $as_echo_n "(cached) " >&6 | |
4954 | else | |
4955 | ac_cv_prog_cc_c99=no | |
4956 | ac_save_CC=$CC | |
4957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4958 | /* end confdefs.h. */ | |
4959 | #include <stdarg.h> | |
4960 | #include <stdbool.h> | |
4961 | #include <stdlib.h> | |
4962 | #include <wchar.h> | |
4963 | #include <stdio.h> | |
4964 | ||
4965 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4966 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4967 | #define showlist(...) puts (#__VA_ARGS__) | |
4968 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4969 | static void | |
4970 | test_varargs_macros (void) | |
4971 | { | |
4972 | int x = 1234; | |
4973 | int y = 5678; | |
4974 | debug ("Flag"); | |
4975 | debug ("X = %d\n", x); | |
4976 | showlist (The first, second, and third items.); | |
4977 | report (x>y, "x is %d but y is %d", x, y); | |
4978 | } | |
4979 | ||
4980 | // Check long long types. | |
4981 | #define BIG64 18446744073709551615ull | |
4982 | #define BIG32 4294967295ul | |
4983 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4984 | #if !BIG_OK | |
4985 | your preprocessor is broken; | |
4986 | #endif | |
4987 | #if BIG_OK | |
4988 | #else | |
4989 | your preprocessor is broken; | |
4990 | #endif | |
4991 | static long long int bignum = -9223372036854775807LL; | |
4992 | static unsigned long long int ubignum = BIG64; | |
4993 | ||
4994 | struct incomplete_array | |
4995 | { | |
4996 | int datasize; | |
4997 | double data[]; | |
4998 | }; | |
4999 | ||
5000 | struct named_init { | |
5001 | int number; | |
5002 | const wchar_t *name; | |
5003 | double average; | |
5004 | }; | |
5005 | ||
5006 | typedef const char *ccp; | |
5007 | ||
5008 | static inline int | |
5009 | test_restrict (ccp restrict text) | |
5010 | { | |
5011 | // See if C++-style comments work. | |
5012 | // Iterate through items via the restricted pointer. | |
5013 | // Also check for declarations in for loops. | |
5014 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5015 | continue; | |
5016 | return 0; | |
5017 | } | |
5018 | ||
5019 | // Check varargs and va_copy. | |
5020 | static void | |
5021 | test_varargs (const char *format, ...) | |
5022 | { | |
5023 | va_list args; | |
5024 | va_start (args, format); | |
5025 | va_list args_copy; | |
5026 | va_copy (args_copy, args); | |
5027 | ||
5028 | const char *str; | |
5029 | int number; | |
5030 | float fnumber; | |
5031 | ||
5032 | while (*format) | |
5033 | { | |
5034 | switch (*format++) | |
5035 | { | |
5036 | case 's': // string | |
5037 | str = va_arg (args_copy, const char *); | |
5038 | break; | |
5039 | case 'd': // int | |
5040 | number = va_arg (args_copy, int); | |
5041 | break; | |
5042 | case 'f': // float | |
5043 | fnumber = va_arg (args_copy, double); | |
5044 | break; | |
5045 | default: | |
5046 | break; | |
5047 | } | |
5048 | } | |
5049 | va_end (args_copy); | |
5050 | va_end (args); | |
5051 | } | |
5052 | ||
5053 | int | |
5054 | main () | |
5055 | { | |
5056 | ||
5057 | // Check bool. | |
5058 | _Bool success = false; | |
5059 | ||
5060 | // Check restrict. | |
5061 | if (test_restrict ("String literal") == 0) | |
5062 | success = true; | |
5063 | char *restrict newvar = "Another string"; | |
5064 | ||
5065 | // Check varargs. | |
5066 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5067 | test_varargs_macros (); | |
5068 | ||
5069 | // Check flexible array members. | |
5070 | struct incomplete_array *ia = | |
5071 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5072 | ia->datasize = 10; | |
5073 | for (int i = 0; i < ia->datasize; ++i) | |
5074 | ia->data[i] = i * 1.234; | |
5075 | ||
5076 | // Check named initializers. | |
5077 | struct named_init ni = { | |
5078 | .number = 34, | |
5079 | .name = L"Test wide string", | |
5080 | .average = 543.34343, | |
5081 | }; | |
5082 | ||
5083 | ni.number = 58; | |
5084 | ||
5085 | int dynamic_array[ni.number]; | |
5086 | dynamic_array[ni.number - 1] = 543; | |
5087 | ||
5088 | // work around unused variable warnings | |
5089 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5090 | || dynamic_array[ni.number - 1] != 543); | |
5091 | ||
5092 | ; | |
5093 | return 0; | |
5094 | } | |
5095 | _ACEOF | |
5096 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5097 | do | |
5098 | CC="$ac_save_CC $ac_arg" | |
5099 | if ac_fn_c_try_compile "$LINENO"; then : | |
5100 | ac_cv_prog_cc_c99=$ac_arg | |
5101 | fi | |
5102 | rm -f core conftest.err conftest.$ac_objext | |
5103 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5104 | done | |
5105 | rm -f conftest.$ac_ext | |
5106 | CC=$ac_save_CC | |
5107 | ||
5108 | fi | |
5109 | # AC_CACHE_VAL | |
5110 | case "x$ac_cv_prog_cc_c99" in | |
5111 | x) | |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5113 | $as_echo "none needed" >&6; } ;; | |
5114 | xno) | |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5116 | $as_echo "unsupported" >&6; } ;; | |
5117 | *) | |
5118 | CC="$CC $ac_cv_prog_cc_c99" | |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5120 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5121 | esac | |
5122 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5123 | ||
5124 | fi | |
5125 | ||
5126 | ||
5213506e | 5127 | ac_ext=cpp |
2aeb72e9 DD |
5128 | ac_cpp='$CXXCPP $CPPFLAGS' |
5129 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5130 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5131 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
5132 | if test -z "$CXX"; then |
5133 | if test -n "$CCC"; then | |
5134 | CXX=$CCC | |
5135 | else | |
5136 | if test -n "$ac_tool_prefix"; then | |
5137 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
5138 | do |
5139 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5140 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5142 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5143 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 5144 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
5145 | else |
5146 | if test -n "$CXX"; then | |
5147 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5148 | else | |
5149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5150 | for as_dir in $PATH | |
5151 | do | |
5152 | IFS=$as_save_IFS | |
5153 | test -z "$as_dir" && as_dir=. | |
5213506e | 5154 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 5156 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 5157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
5158 | break 2 |
5159 | fi | |
5160 | done | |
5213506e RW |
5161 | done |
5162 | IFS=$as_save_IFS | |
55ffb5ed | 5163 | |
c3a86da9 DJ |
5164 | fi |
5165 | fi | |
5166 | CXX=$ac_cv_prog_CXX | |
5167 | if test -n "$CXX"; then | |
5213506e RW |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5169 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 5170 | else |
5213506e RW |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5172 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5173 | fi |
5174 | ||
5213506e | 5175 | |
c3a86da9 DJ |
5176 | test -n "$CXX" && break |
5177 | done | |
5178 | fi | |
5179 | if test -z "$CXX"; then | |
5180 | ac_ct_CXX=$CXX | |
5213506e | 5181 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
5182 | do |
5183 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5184 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5186 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5187 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 5188 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
5189 | else |
5190 | if test -n "$ac_ct_CXX"; then | |
5191 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5192 | else | |
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5194 | for as_dir in $PATH | |
5195 | do | |
5196 | IFS=$as_save_IFS | |
5197 | test -z "$as_dir" && as_dir=. | |
5213506e | 5198 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 5200 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 5201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
5202 | break 2 |
5203 | fi | |
5204 | done | |
5213506e RW |
5205 | done |
5206 | IFS=$as_save_IFS | |
c3a86da9 DJ |
5207 | |
5208 | fi | |
5209 | fi | |
5210 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5211 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5213 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 5214 | else |
5213506e RW |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5216 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5217 | fi |
5218 | ||
5213506e | 5219 | |
c3a86da9 DJ |
5220 | test -n "$ac_ct_CXX" && break |
5221 | done | |
c3a86da9 | 5222 | |
5213506e RW |
5223 | if test "x$ac_ct_CXX" = x; then |
5224 | CXX="g++" | |
5225 | else | |
5226 | case $cross_compiling:$ac_tool_warned in | |
5227 | yes:) | |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5229 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5230 | ac_tool_warned=yes ;; | |
5231 | esac | |
5232 | CXX=$ac_ct_CXX | |
5233 | fi | |
c3a86da9 DJ |
5234 | fi |
5235 | ||
5213506e RW |
5236 | fi |
5237 | fi | |
c3a86da9 | 5238 | # Provide some information about the compiler. |
5213506e RW |
5239 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5240 | set X $ac_compile | |
5241 | ac_compiler=$2 | |
5242 | for ac_option in --version -v -V -qversion; do | |
5243 | { { ac_try="$ac_compiler $ac_option >&5" | |
5244 | case "(($ac_try" in | |
5245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5246 | *) ac_try_echo=$ac_try;; | |
5247 | esac | |
5248 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5249 | $as_echo "$ac_try_echo"; } >&5 | |
5250 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5251 | ac_status=$? |
5213506e RW |
5252 | if test -s conftest.err; then |
5253 | sed '10a\ | |
5254 | ... rest of stderr output deleted ... | |
5255 | 10q' conftest.err >conftest.er1 | |
5256 | cat conftest.er1 >&5 | |
5213506e | 5257 | fi |
22e05272 | 5258 | rm -f conftest.er1 conftest.err |
5213506e RW |
5259 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5260 | test $ac_status = 0; } | |
5261 | done | |
c3a86da9 | 5262 | |
5213506e RW |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5264 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5265 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5266 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5267 | else |
5213506e | 5268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5269 | /* end confdefs.h. */ |
5270 | ||
5271 | int | |
5272 | main () | |
5273 | { | |
5274 | #ifndef __GNUC__ | |
5275 | choke me | |
5276 | #endif | |
5277 | ||
5278 | ; | |
5279 | return 0; | |
5280 | } | |
5281 | _ACEOF | |
5213506e | 5282 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5283 | ac_compiler_gnu=yes |
5284 | else | |
5213506e | 5285 | ac_compiler_gnu=no |
c3a86da9 | 5286 | fi |
5213506e | 5287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5288 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5289 | ||
5290 | fi | |
5213506e RW |
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5292 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5293 | if test $ac_compiler_gnu = yes; then | |
5294 | GXX=yes | |
5295 | else | |
5296 | GXX= | |
5297 | fi | |
c3a86da9 DJ |
5298 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5299 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5301 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5302 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5303 | $as_echo_n "(cached) " >&6 |
5304 | else | |
5305 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5306 | ac_cxx_werror_flag=yes | |
5307 | ac_cv_prog_cxx_g=no | |
5308 | CXXFLAGS="-g" | |
5309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5310 | /* end confdefs.h. */ |
5311 | ||
5312 | int | |
5313 | main () | |
5314 | { | |
5315 | ||
5316 | ; | |
5317 | return 0; | |
5318 | } | |
5319 | _ACEOF | |
5213506e | 5320 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5321 | ac_cv_prog_cxx_g=yes |
5322 | else | |
5213506e RW |
5323 | CXXFLAGS="" |
5324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5325 | /* end confdefs.h. */ |
5213506e | 5326 | |
c3a86da9 DJ |
5327 | int |
5328 | main () | |
5329 | { | |
5213506e | 5330 | |
c3a86da9 DJ |
5331 | ; |
5332 | return 0; | |
5333 | } | |
5334 | _ACEOF | |
5213506e | 5335 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5336 | |
5213506e RW |
5337 | else |
5338 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5339 | CXXFLAGS="-g" | |
5340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5341 | /* end confdefs.h. */ |
5213506e | 5342 | |
c3a86da9 DJ |
5343 | int |
5344 | main () | |
5345 | { | |
5213506e | 5346 | |
c3a86da9 DJ |
5347 | ; |
5348 | return 0; | |
5349 | } | |
5350 | _ACEOF | |
5213506e RW |
5351 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5352 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5353 | fi |
5213506e RW |
5354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5355 | fi | |
5356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5357 | fi | |
5358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5359 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5360 | fi | |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5362 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5363 | if test "$ac_test_CXXFLAGS" = set; then | |
5364 | CXXFLAGS=$ac_save_CXXFLAGS | |
5365 | elif test $ac_cv_prog_cxx_g = yes; then | |
5366 | if test "$GXX" = yes; then | |
5367 | CXXFLAGS="-g -O2" | |
5368 | else | |
5369 | CXXFLAGS="-g" | |
5370 | fi | |
5371 | else | |
5372 | if test "$GXX" = yes; then | |
5373 | CXXFLAGS="-O2" | |
5374 | else | |
5375 | CXXFLAGS= | |
5376 | fi | |
c3a86da9 | 5377 | fi |
c3a86da9 DJ |
5378 | ac_ext=c |
5379 | ac_cpp='$CPP $CPPFLAGS' | |
5380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5383 | ||
5384 | ||
5385 | # We must set the default linker to the linker used by gcc for the correct | |
5386 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5387 | # set the LD default to the ld used by gcc. | |
5388 | if test -z "$LD"; then | |
5389 | if test "$GCC" = yes; then | |
5390 | case $build in | |
5391 | *-*-mingw*) | |
5392 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5393 | *) | |
5394 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5395 | esac | |
5396 | case $gcc_prog_ld in | |
5397 | # Accept absolute paths. | |
5398 | [\\/]* | [A-Za-z]:[\\/]*) | |
5399 | LD="$gcc_prog_ld" ;; | |
5400 | esac | |
5401 | fi | |
23f6b2f9 PB |
5402 | fi |
5403 | ||
0b21f5d3 EB |
5404 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5405 | have_static_libs=no | |
5406 | if test "$GCC" = yes; then | |
5407 | saved_LDFLAGS="$LDFLAGS" | |
5408 | ||
5409 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5411 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5412 | ac_ext=cpp | |
5413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5417 | ||
5418 | ||
5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5420 | /* end confdefs.h. */ | |
0d6414b2 EB |
5421 | |
5422 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5423 | #error -static-libstdc++ not implemented | |
5424 | #endif | |
0b21f5d3 EB |
5425 | int main() {} |
5426 | _ACEOF | |
5427 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5429 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5430 | else | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5432 | $as_echo "no" >&6; } | |
5433 | fi | |
5434 | rm -f core conftest.err conftest.$ac_objext \ | |
5435 | conftest$ac_exeext conftest.$ac_ext | |
5436 | ac_ext=c | |
5437 | ac_cpp='$CPP $CPPFLAGS' | |
5438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5441 | ||
5442 | ||
5443 | LDFLAGS="$saved_LDFLAGS" | |
5444 | fi | |
5445 | ||
23f6b2f9 PB |
5446 | |
5447 | ||
55ffb5ed | 5448 | |
1c710c3c DJ |
5449 | if test -n "$ac_tool_prefix"; then |
5450 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5451 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5453 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5454 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5455 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5456 | else |
5457 | if test -n "$GNATBIND"; then | |
5458 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5459 | else | |
1c710c3c DJ |
5460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5461 | for as_dir in $PATH | |
5462 | do | |
5463 | IFS=$as_save_IFS | |
5464 | test -z "$as_dir" && as_dir=. | |
5213506e | 5465 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5467 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5469 | break 2 |
5470 | fi | |
5471 | done | |
5213506e RW |
5472 | done |
5473 | IFS=$as_save_IFS | |
1c710c3c | 5474 | |
55ffb5ed NN |
5475 | fi |
5476 | fi | |
1c710c3c | 5477 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5478 | if test -n "$GNATBIND"; then |
5213506e RW |
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5480 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5481 | else |
5213506e RW |
5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5483 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5484 | fi |
5485 | ||
5213506e | 5486 | |
1c710c3c | 5487 | fi |
55ffb5ed | 5488 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5489 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5490 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5491 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5493 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5494 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5495 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5496 | else |
1c710c3c DJ |
5497 | if test -n "$ac_ct_GNATBIND"; then |
5498 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5499 | else |
1c710c3c DJ |
5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5501 | for as_dir in $PATH | |
5502 | do | |
5503 | IFS=$as_save_IFS | |
5504 | test -z "$as_dir" && as_dir=. | |
5213506e | 5505 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5507 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5509 | break 2 |
5510 | fi | |
5511 | done | |
5213506e RW |
5512 | done |
5513 | IFS=$as_save_IFS | |
1c710c3c | 5514 | |
55ffb5ed NN |
5515 | fi |
5516 | fi | |
1c710c3c DJ |
5517 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5518 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5520 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5521 | else |
5213506e RW |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5523 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5524 | fi |
5525 | ||
5213506e RW |
5526 | if test "x$ac_ct_GNATBIND" = x; then |
5527 | GNATBIND="no" | |
5528 | else | |
5529 | case $cross_compiling:$ac_tool_warned in | |
5530 | yes:) | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5532 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5533 | ac_tool_warned=yes ;; | |
5534 | esac | |
5535 | GNATBIND=$ac_ct_GNATBIND | |
5536 | fi | |
55ffb5ed | 5537 | else |
1c710c3c | 5538 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5539 | fi |
5540 | ||
1c710c3c DJ |
5541 | if test -n "$ac_tool_prefix"; then |
5542 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5543 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5545 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5546 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5547 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5548 | else |
5549 | if test -n "$GNATMAKE"; then | |
5550 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5551 | else | |
1c710c3c DJ |
5552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5553 | for as_dir in $PATH | |
5554 | do | |
5555 | IFS=$as_save_IFS | |
5556 | test -z "$as_dir" && as_dir=. | |
5213506e | 5557 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5559 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5561 | break 2 |
5562 | fi | |
5563 | done | |
5213506e RW |
5564 | done |
5565 | IFS=$as_save_IFS | |
1c710c3c | 5566 | |
5305be7e RG |
5567 | fi |
5568 | fi | |
1c710c3c | 5569 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5570 | if test -n "$GNATMAKE"; then |
5213506e RW |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5572 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5573 | else |
5213506e RW |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5575 | $as_echo "no" >&6; } | |
5305be7e RG |
5576 | fi |
5577 | ||
5213506e | 5578 | |
1c710c3c | 5579 | fi |
5305be7e | 5580 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5581 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5582 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5583 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5585 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5586 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5587 | $as_echo_n "(cached) " >&6 |
5305be7e | 5588 | else |
1c710c3c DJ |
5589 | if test -n "$ac_ct_GNATMAKE"; then |
5590 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5591 | else |
1c710c3c DJ |
5592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5593 | for as_dir in $PATH | |
5594 | do | |
5595 | IFS=$as_save_IFS | |
5596 | test -z "$as_dir" && as_dir=. | |
5213506e | 5597 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5599 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5601 | break 2 |
5602 | fi | |
5603 | done | |
5213506e RW |
5604 | done |
5605 | IFS=$as_save_IFS | |
1c710c3c | 5606 | |
5305be7e RG |
5607 | fi |
5608 | fi | |
1c710c3c DJ |
5609 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5610 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5612 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5613 | else |
5213506e RW |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5615 | $as_echo "no" >&6; } | |
5305be7e RG |
5616 | fi |
5617 | ||
5213506e RW |
5618 | if test "x$ac_ct_GNATMAKE" = x; then |
5619 | GNATMAKE="no" | |
5620 | else | |
5621 | case $cross_compiling:$ac_tool_warned in | |
5622 | yes:) | |
5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5624 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5625 | ac_tool_warned=yes ;; | |
5626 | esac | |
5627 | GNATMAKE=$ac_ct_GNATMAKE | |
5628 | fi | |
5305be7e | 5629 | else |
1c710c3c | 5630 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5631 | fi |
5632 | ||
71f068a9 RS |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5634 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
22e05272 | 5635 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5636 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5637 | else |
5638 | cat >conftest.adb <<EOF | |
71f068a9 RS |
5639 | pragma Warnings (Off); |
5640 | with System.CRTL; | |
5641 | pragma Warnings (On); | |
5642 | use type System.CRTL.int64; | |
55ffb5ed NN |
5643 | procedure conftest is begin null; end conftest; |
5644 | EOF | |
5645 | acx_cv_cc_gcc_supports_ada=no | |
5646 | # There is a bug in old released versions of GCC which causes the | |
5647 | # driver to exit successfully when the appropriate language module | |
5648 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5649 | # Therefore we must check for the error message as well as an | |
5650 | # unsuccessful exit. | |
1db673ca RO |
5651 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5652 | # given a .adb file, but produce no object file. So we must check | |
5653 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5654 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5655 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5656 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5657 | fi |
5658 | rm -f conftest.* | |
5659 | fi | |
5213506e RW |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5661 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5662 | |
7cb62ef1 | 5663 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5664 | have_gnat=yes |
5665 | else | |
5666 | have_gnat=no | |
5667 | fi | |
5668 | ||
5fee5ec3 IB |
5669 | |
5670 | ||
5671 | if test -n "$ac_tool_prefix"; then | |
5672 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5673 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5675 | $as_echo_n "checking for $ac_word... " >&6; } | |
5676 | if ${ac_cv_prog_GDC+:} false; then : | |
5677 | $as_echo_n "(cached) " >&6 | |
5678 | else | |
5679 | if test -n "$GDC"; then | |
5680 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5681 | else | |
5682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5683 | for as_dir in $PATH | |
5684 | do | |
5685 | IFS=$as_save_IFS | |
5686 | test -z "$as_dir" && as_dir=. | |
5687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5688 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5689 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5691 | break 2 | |
5692 | fi | |
5693 | done | |
5694 | done | |
5695 | IFS=$as_save_IFS | |
5696 | ||
5697 | fi | |
5698 | fi | |
5699 | GDC=$ac_cv_prog_GDC | |
5700 | if test -n "$GDC"; then | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5702 | $as_echo "$GDC" >&6; } | |
5703 | else | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5705 | $as_echo "no" >&6; } | |
5706 | fi | |
5707 | ||
5708 | ||
5709 | fi | |
5710 | if test -z "$ac_cv_prog_GDC"; then | |
5711 | ac_ct_GDC=$GDC | |
5712 | # Extract the first word of "gdc", so it can be a program name with args. | |
5713 | set dummy gdc; ac_word=$2 | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5715 | $as_echo_n "checking for $ac_word... " >&6; } | |
5716 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5717 | $as_echo_n "(cached) " >&6 | |
5718 | else | |
5719 | if test -n "$ac_ct_GDC"; then | |
5720 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5721 | else | |
5722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5723 | for as_dir in $PATH | |
5724 | do | |
5725 | IFS=$as_save_IFS | |
5726 | test -z "$as_dir" && as_dir=. | |
5727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5729 | ac_cv_prog_ac_ct_GDC="gdc" | |
5730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5731 | break 2 | |
5732 | fi | |
5733 | done | |
5734 | done | |
5735 | IFS=$as_save_IFS | |
5736 | ||
5737 | fi | |
5738 | fi | |
5739 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5740 | if test -n "$ac_ct_GDC"; then | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5742 | $as_echo "$ac_ct_GDC" >&6; } | |
5743 | else | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5745 | $as_echo "no" >&6; } | |
5746 | fi | |
5747 | ||
5748 | if test "x$ac_ct_GDC" = x; then | |
5749 | GDC="no" | |
5750 | else | |
5751 | case $cross_compiling:$ac_tool_warned in | |
5752 | yes:) | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5754 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5755 | ac_tool_warned=yes ;; | |
5756 | esac | |
5757 | GDC=$ac_ct_GDC | |
5758 | fi | |
5759 | else | |
5760 | GDC="$ac_cv_prog_GDC" | |
5761 | fi | |
5762 | ||
7c6ae994 IB |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 |
5764 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5765 | if ${acx_cv_d_compiler_works+:} false; then : | |
5766 | $as_echo_n "(cached) " >&6 | |
5767 | else | |
5768 | cat >conftest.d <<EOF | |
5769 | module conftest; int main() { return 0; } | |
5770 | EOF | |
5771 | acx_cv_d_compiler_works=no | |
5fee5ec3 | 5772 | if test "x$GDC" != xno; then |
7c6ae994 IB |
5773 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` |
5774 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5775 | acx_cv_d_compiler_works=yes | |
5776 | fi | |
5777 | rm -f conftest.* | |
5778 | fi | |
5779 | fi | |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5781 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5782 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5fee5ec3 IB |
5783 | have_gdc=yes |
5784 | else | |
5785 | have_gdc=no | |
5786 | fi | |
5787 | ||
5213506e RW |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5789 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5790 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5791 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5792 | else |
5793 | echo abfoo >t1 | |
5794 | echo cdfoo >t2 | |
b55e6680 | 5795 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5796 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5797 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5798 | : | |
5799 | else | |
5800 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5801 | fi | |
5802 | fi | |
a76494aa PB |
5803 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5804 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5805 | : |
a76494aa PB |
5806 | else |
5807 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5808 | fi | |
5809 | fi | |
5810 | rm t1 t2 | |
5811 | ||
5812 | fi | |
5213506e RW |
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5814 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5815 | do_compare="$gcc_cv_prog_cmp_skip" |
5816 | ||
5817 | ||
55ffb5ed | 5818 | |
ff3ac0f4 ILT |
5819 | # Check whether --enable-bootstrap was given. |
5820 | if test "${enable_bootstrap+set}" = set; then : | |
5821 | enableval=$enable_bootstrap; | |
5822 | else | |
5823 | enable_bootstrap=default | |
5824 | fi | |
5825 | ||
5826 | ||
5827 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5828 | if test -r $srcdir/gcc/configure; then |
5829 | have_compiler=yes | |
5830 | else | |
5831 | have_compiler=no | |
5832 | fi | |
ff3ac0f4 ILT |
5833 | |
5834 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5835 | *:*:*:no) ;; | |
5836 | ||
5837 | # Default behavior. Enable bootstrap if we have a compiler | |
5838 | # and we are in a native configuration. | |
5839 | yes:$build:$build:default) | |
5840 | enable_bootstrap=yes ;; | |
5841 | ||
5842 | *:*:*:default) | |
5843 | enable_bootstrap=no ;; | |
5844 | ||
5845 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5846 | yes:$build:$build:yes) | |
5847 | ;; | |
5848 | ||
5849 | # Other configurations, but we have a compiler. Assume the user knows | |
5850 | # what he's doing. | |
5851 | yes:*:*:yes) | |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5853 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5854 | ;; | |
5855 | ||
5856 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5857 | no:*:*:yes) | |
22e05272 | 5858 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5859 | |
5860 | # Fail if wrong command line | |
5861 | *) | |
22e05272 | 5862 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5863 | ;; |
5864 | esac | |
5865 | ||
5329b59a | 5866 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5867 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5868 | # require C++11 (or higher). | |
46070488 | 5869 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5870 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5871 | elif test "$have_compiler" = yes; then |
5872 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5873 | ac_ext=cpp | |
5874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5878 | ac_success=no | |
5879 | ||
5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5881 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5882 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5883 | $as_echo_n "(cached) " >&6 | |
5884 | else | |
5885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5886 | /* end confdefs.h. */ | |
5887 | ||
5888 | ||
5889 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5890 | // Hopefully, this will speed up the test. | |
5891 | ||
5892 | #ifndef __cplusplus | |
5893 | ||
5894 | #error "This is not a C++ compiler" | |
5895 | ||
5896 | #elif __cplusplus < 201103L | |
5897 | ||
5898 | #error "This is not a C++11 compiler" | |
5899 | ||
5900 | #else | |
5901 | ||
5902 | namespace cxx11 | |
5903 | { | |
5904 | ||
5905 | namespace test_static_assert | |
5906 | { | |
5907 | ||
5908 | template <typename T> | |
5909 | struct check | |
5910 | { | |
5911 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5912 | }; | |
5913 | ||
5914 | } | |
5915 | ||
5916 | namespace test_final_override | |
5917 | { | |
5918 | ||
5919 | struct Base | |
5920 | { | |
5921 | virtual ~Base() {} | |
5922 | virtual void f() {} | |
5923 | }; | |
5924 | ||
5925 | struct Derived : public Base | |
5926 | { | |
5927 | virtual ~Derived() override {} | |
5928 | virtual void f() override {} | |
5929 | }; | |
5930 | ||
5931 | } | |
5932 | ||
5933 | namespace test_double_right_angle_brackets | |
5934 | { | |
5935 | ||
5936 | template < typename T > | |
5937 | struct check {}; | |
5938 | ||
5939 | typedef check<void> single_type; | |
5940 | typedef check<check<void>> double_type; | |
5941 | typedef check<check<check<void>>> triple_type; | |
5942 | typedef check<check<check<check<void>>>> quadruple_type; | |
5943 | ||
5944 | } | |
5945 | ||
5946 | namespace test_decltype | |
5947 | { | |
5948 | ||
5949 | int | |
5950 | f() | |
5951 | { | |
5952 | int a = 1; | |
5953 | decltype(a) b = 2; | |
5954 | return a + b; | |
5955 | } | |
5956 | ||
5957 | } | |
5958 | ||
5959 | namespace test_type_deduction | |
5960 | { | |
5961 | ||
5962 | template < typename T1, typename T2 > | |
5963 | struct is_same | |
5964 | { | |
5965 | static const bool value = false; | |
5966 | }; | |
5967 | ||
5968 | template < typename T > | |
5969 | struct is_same<T, T> | |
5970 | { | |
5971 | static const bool value = true; | |
5972 | }; | |
5973 | ||
5974 | template < typename T1, typename T2 > | |
5975 | auto | |
5976 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5977 | { | |
5978 | return a1 + a2; | |
5979 | } | |
5980 | ||
5981 | int | |
5982 | test(const int c, volatile int v) | |
5983 | { | |
5984 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5985 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5986 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5987 | auto ac = c; | |
5988 | auto av = v; | |
5989 | auto sumi = ac + av + 'x'; | |
5990 | auto sumf = ac + av + 1.0; | |
5991 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5992 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5993 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5994 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5995 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5996 | return (sumf > 0.0) ? sumi : add(c, v); | |
5997 | } | |
5998 | ||
5999 | } | |
6000 | ||
6001 | namespace test_noexcept | |
6002 | { | |
6003 | ||
6004 | int f() { return 0; } | |
6005 | int g() noexcept { return 0; } | |
6006 | ||
6007 | static_assert(noexcept(f()) == false, ""); | |
6008 | static_assert(noexcept(g()) == true, ""); | |
6009 | ||
6010 | } | |
6011 | ||
6012 | namespace test_constexpr | |
6013 | { | |
6014 | ||
6015 | template < typename CharT > | |
6016 | unsigned long constexpr | |
6017 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6018 | { | |
6019 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6020 | } | |
6021 | ||
6022 | template < typename CharT > | |
6023 | unsigned long constexpr | |
6024 | strlen_c(const CharT *const s) noexcept | |
6025 | { | |
6026 | return strlen_c_r(s, 0UL); | |
6027 | } | |
6028 | ||
6029 | static_assert(strlen_c("") == 0UL, ""); | |
6030 | static_assert(strlen_c("1") == 1UL, ""); | |
6031 | static_assert(strlen_c("example") == 7UL, ""); | |
6032 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6033 | ||
6034 | } | |
6035 | ||
6036 | namespace test_rvalue_references | |
6037 | { | |
6038 | ||
6039 | template < int N > | |
6040 | struct answer | |
6041 | { | |
6042 | static constexpr int value = N; | |
6043 | }; | |
6044 | ||
6045 | answer<1> f(int&) { return answer<1>(); } | |
6046 | answer<2> f(const int&) { return answer<2>(); } | |
6047 | answer<3> f(int&&) { return answer<3>(); } | |
6048 | ||
6049 | void | |
6050 | test() | |
6051 | { | |
6052 | int i = 0; | |
6053 | const int c = 0; | |
6054 | static_assert(decltype(f(i))::value == 1, ""); | |
6055 | static_assert(decltype(f(c))::value == 2, ""); | |
6056 | static_assert(decltype(f(0))::value == 3, ""); | |
6057 | } | |
6058 | ||
6059 | } | |
6060 | ||
6061 | namespace test_uniform_initialization | |
6062 | { | |
6063 | ||
6064 | struct test | |
6065 | { | |
6066 | static const int zero {}; | |
6067 | static const int one {1}; | |
6068 | }; | |
6069 | ||
6070 | static_assert(test::zero == 0, ""); | |
6071 | static_assert(test::one == 1, ""); | |
6072 | ||
6073 | } | |
6074 | ||
6075 | namespace test_lambdas | |
6076 | { | |
6077 | ||
6078 | void | |
6079 | test1() | |
6080 | { | |
6081 | auto lambda1 = [](){}; | |
6082 | auto lambda2 = lambda1; | |
6083 | lambda1(); | |
6084 | lambda2(); | |
6085 | } | |
6086 | ||
6087 | int | |
6088 | test2() | |
6089 | { | |
6090 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6091 | auto b = []() -> int { return '0'; }(); | |
6092 | auto c = [=](){ return a + b; }(); | |
6093 | auto d = [&](){ return c; }(); | |
6094 | auto e = [a, &b](int x) mutable { | |
6095 | const auto identity = [](int y){ return y; }; | |
6096 | for (auto i = 0; i < a; ++i) | |
6097 | a += b--; | |
6098 | return x + identity(a + b); | |
6099 | }(0); | |
6100 | return a + b + c + d + e; | |
6101 | } | |
6102 | ||
6103 | int | |
6104 | test3() | |
6105 | { | |
6106 | const auto nullary = [](){ return 0; }; | |
6107 | const auto unary = [](int x){ return x; }; | |
6108 | using nullary_t = decltype(nullary); | |
6109 | using unary_t = decltype(unary); | |
6110 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6111 | const auto higher2nd = [unary](nullary_t f1){ | |
6112 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6113 | }; | |
6114 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6115 | } | |
6116 | ||
6117 | } | |
6118 | ||
6119 | namespace test_variadic_templates | |
6120 | { | |
6121 | ||
6122 | template <int...> | |
6123 | struct sum; | |
6124 | ||
6125 | template <int N0, int... N1toN> | |
6126 | struct sum<N0, N1toN...> | |
6127 | { | |
6128 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6129 | }; | |
6130 | ||
6131 | template <> | |
6132 | struct sum<> | |
6133 | { | |
6134 | static constexpr auto value = 0; | |
6135 | }; | |
6136 | ||
6137 | static_assert(sum<>::value == 0, ""); | |
6138 | static_assert(sum<1>::value == 1, ""); | |
6139 | static_assert(sum<23>::value == 23, ""); | |
6140 | static_assert(sum<1, 2>::value == 3, ""); | |
6141 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6142 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6143 | ||
6144 | } | |
6145 | ||
6146 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6147 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6148 | // because of this. | |
6149 | namespace test_template_alias_sfinae | |
6150 | { | |
6151 | ||
6152 | struct foo {}; | |
6153 | ||
6154 | template<typename T> | |
6155 | using member = typename T::member_type; | |
6156 | ||
6157 | template<typename T> | |
6158 | void func(...) {} | |
6159 | ||
6160 | template<typename T> | |
6161 | void func(member<T>*) {} | |
6162 | ||
6163 | void test(); | |
6164 | ||
6165 | void test() { func<foo>(0); } | |
6166 | ||
6167 | } | |
6168 | ||
6169 | } // namespace cxx11 | |
6170 | ||
6171 | #endif // __cplusplus >= 201103L | |
6172 | ||
6173 | ||
6174 | ||
6175 | _ACEOF | |
6176 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6177 | ax_cv_cxx_compile_cxx11=yes | |
6178 | else | |
6179 | ax_cv_cxx_compile_cxx11=no | |
6180 | fi | |
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6182 | fi | |
6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6184 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6185 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6186 | ac_success=yes | |
6187 | fi | |
6188 | ||
6189 | if test x$ac_success = xno; then | |
6190 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6191 | switch="-std=gnu++${alternative}" | |
6192 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6194 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6195 | if eval \${$cachevar+:} false; then : | |
6196 | $as_echo_n "(cached) " >&6 | |
6197 | else | |
6198 | ac_save_CXX="$CXX" | |
6199 | CXX="$CXX $switch" | |
6200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6201 | /* end confdefs.h. */ | |
6202 | ||
6203 | ||
6204 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6205 | // Hopefully, this will speed up the test. | |
6206 | ||
6207 | #ifndef __cplusplus | |
6208 | ||
6209 | #error "This is not a C++ compiler" | |
6210 | ||
6211 | #elif __cplusplus < 201103L | |
6212 | ||
6213 | #error "This is not a C++11 compiler" | |
6214 | ||
6215 | #else | |
6216 | ||
6217 | namespace cxx11 | |
6218 | { | |
6219 | ||
6220 | namespace test_static_assert | |
6221 | { | |
6222 | ||
6223 | template <typename T> | |
6224 | struct check | |
6225 | { | |
6226 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6227 | }; | |
6228 | ||
6229 | } | |
6230 | ||
6231 | namespace test_final_override | |
6232 | { | |
6233 | ||
6234 | struct Base | |
6235 | { | |
6236 | virtual ~Base() {} | |
6237 | virtual void f() {} | |
6238 | }; | |
6239 | ||
6240 | struct Derived : public Base | |
6241 | { | |
6242 | virtual ~Derived() override {} | |
6243 | virtual void f() override {} | |
6244 | }; | |
6245 | ||
6246 | } | |
6247 | ||
6248 | namespace test_double_right_angle_brackets | |
6249 | { | |
6250 | ||
6251 | template < typename T > | |
6252 | struct check {}; | |
6253 | ||
6254 | typedef check<void> single_type; | |
6255 | typedef check<check<void>> double_type; | |
6256 | typedef check<check<check<void>>> triple_type; | |
6257 | typedef check<check<check<check<void>>>> quadruple_type; | |
6258 | ||
6259 | } | |
6260 | ||
6261 | namespace test_decltype | |
6262 | { | |
6263 | ||
6264 | int | |
6265 | f() | |
6266 | { | |
6267 | int a = 1; | |
6268 | decltype(a) b = 2; | |
6269 | return a + b; | |
6270 | } | |
6271 | ||
6272 | } | |
6273 | ||
6274 | namespace test_type_deduction | |
6275 | { | |
6276 | ||
6277 | template < typename T1, typename T2 > | |
6278 | struct is_same | |
6279 | { | |
6280 | static const bool value = false; | |
6281 | }; | |
6282 | ||
6283 | template < typename T > | |
6284 | struct is_same<T, T> | |
6285 | { | |
6286 | static const bool value = true; | |
6287 | }; | |
6288 | ||
6289 | template < typename T1, typename T2 > | |
6290 | auto | |
6291 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6292 | { | |
6293 | return a1 + a2; | |
6294 | } | |
6295 | ||
6296 | int | |
6297 | test(const int c, volatile int v) | |
6298 | { | |
6299 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6300 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6301 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6302 | auto ac = c; | |
6303 | auto av = v; | |
6304 | auto sumi = ac + av + 'x'; | |
6305 | auto sumf = ac + av + 1.0; | |
6306 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6307 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6308 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6309 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6310 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6311 | return (sumf > 0.0) ? sumi : add(c, v); | |
6312 | } | |
6313 | ||
6314 | } | |
6315 | ||
6316 | namespace test_noexcept | |
6317 | { | |
6318 | ||
6319 | int f() { return 0; } | |
6320 | int g() noexcept { return 0; } | |
6321 | ||
6322 | static_assert(noexcept(f()) == false, ""); | |
6323 | static_assert(noexcept(g()) == true, ""); | |
6324 | ||
6325 | } | |
6326 | ||
6327 | namespace test_constexpr | |
6328 | { | |
6329 | ||
6330 | template < typename CharT > | |
6331 | unsigned long constexpr | |
6332 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6333 | { | |
6334 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6335 | } | |
6336 | ||
6337 | template < typename CharT > | |
6338 | unsigned long constexpr | |
6339 | strlen_c(const CharT *const s) noexcept | |
6340 | { | |
6341 | return strlen_c_r(s, 0UL); | |
6342 | } | |
6343 | ||
6344 | static_assert(strlen_c("") == 0UL, ""); | |
6345 | static_assert(strlen_c("1") == 1UL, ""); | |
6346 | static_assert(strlen_c("example") == 7UL, ""); | |
6347 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6348 | ||
6349 | } | |
6350 | ||
6351 | namespace test_rvalue_references | |
6352 | { | |
6353 | ||
6354 | template < int N > | |
6355 | struct answer | |
6356 | { | |
6357 | static constexpr int value = N; | |
6358 | }; | |
6359 | ||
6360 | answer<1> f(int&) { return answer<1>(); } | |
6361 | answer<2> f(const int&) { return answer<2>(); } | |
6362 | answer<3> f(int&&) { return answer<3>(); } | |
6363 | ||
6364 | void | |
6365 | test() | |
6366 | { | |
6367 | int i = 0; | |
6368 | const int c = 0; | |
6369 | static_assert(decltype(f(i))::value == 1, ""); | |
6370 | static_assert(decltype(f(c))::value == 2, ""); | |
6371 | static_assert(decltype(f(0))::value == 3, ""); | |
6372 | } | |
6373 | ||
6374 | } | |
6375 | ||
6376 | namespace test_uniform_initialization | |
6377 | { | |
6378 | ||
6379 | struct test | |
6380 | { | |
6381 | static const int zero {}; | |
6382 | static const int one {1}; | |
6383 | }; | |
6384 | ||
6385 | static_assert(test::zero == 0, ""); | |
6386 | static_assert(test::one == 1, ""); | |
6387 | ||
6388 | } | |
6389 | ||
6390 | namespace test_lambdas | |
6391 | { | |
6392 | ||
6393 | void | |
6394 | test1() | |
6395 | { | |
6396 | auto lambda1 = [](){}; | |
6397 | auto lambda2 = lambda1; | |
6398 | lambda1(); | |
6399 | lambda2(); | |
6400 | } | |
6401 | ||
6402 | int | |
6403 | test2() | |
6404 | { | |
6405 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6406 | auto b = []() -> int { return '0'; }(); | |
6407 | auto c = [=](){ return a + b; }(); | |
6408 | auto d = [&](){ return c; }(); | |
6409 | auto e = [a, &b](int x) mutable { | |
6410 | const auto identity = [](int y){ return y; }; | |
6411 | for (auto i = 0; i < a; ++i) | |
6412 | a += b--; | |
6413 | return x + identity(a + b); | |
6414 | }(0); | |
6415 | return a + b + c + d + e; | |
6416 | } | |
6417 | ||
6418 | int | |
6419 | test3() | |
6420 | { | |
6421 | const auto nullary = [](){ return 0; }; | |
6422 | const auto unary = [](int x){ return x; }; | |
6423 | using nullary_t = decltype(nullary); | |
6424 | using unary_t = decltype(unary); | |
6425 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6426 | const auto higher2nd = [unary](nullary_t f1){ | |
6427 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6428 | }; | |
6429 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6430 | } | |
6431 | ||
6432 | } | |
6433 | ||
6434 | namespace test_variadic_templates | |
6435 | { | |
6436 | ||
6437 | template <int...> | |
6438 | struct sum; | |
6439 | ||
6440 | template <int N0, int... N1toN> | |
6441 | struct sum<N0, N1toN...> | |
6442 | { | |
6443 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6444 | }; | |
6445 | ||
6446 | template <> | |
6447 | struct sum<> | |
6448 | { | |
6449 | static constexpr auto value = 0; | |
6450 | }; | |
6451 | ||
6452 | static_assert(sum<>::value == 0, ""); | |
6453 | static_assert(sum<1>::value == 1, ""); | |
6454 | static_assert(sum<23>::value == 23, ""); | |
6455 | static_assert(sum<1, 2>::value == 3, ""); | |
6456 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6457 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6458 | ||
6459 | } | |
6460 | ||
6461 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6462 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6463 | // because of this. | |
6464 | namespace test_template_alias_sfinae | |
6465 | { | |
6466 | ||
6467 | struct foo {}; | |
6468 | ||
6469 | template<typename T> | |
6470 | using member = typename T::member_type; | |
6471 | ||
6472 | template<typename T> | |
6473 | void func(...) {} | |
6474 | ||
6475 | template<typename T> | |
6476 | void func(member<T>*) {} | |
6477 | ||
6478 | void test(); | |
6479 | ||
6480 | void test() { func<foo>(0); } | |
6481 | ||
6482 | } | |
6483 | ||
6484 | } // namespace cxx11 | |
6485 | ||
6486 | #endif // __cplusplus >= 201103L | |
6487 | ||
6488 | ||
6489 | ||
6490 | _ACEOF | |
6491 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6492 | eval $cachevar=yes | |
6493 | else | |
6494 | eval $cachevar=no | |
6495 | fi | |
6496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6497 | CXX="$ac_save_CXX" | |
6498 | fi | |
6499 | eval ac_res=\$$cachevar | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6501 | $as_echo "$ac_res" >&6; } | |
6502 | if eval test x\$$cachevar = xyes; then | |
6503 | CXX="$CXX $switch" | |
6504 | if test -n "$CXXCPP" ; then | |
6505 | CXXCPP="$CXXCPP $switch" | |
6506 | fi | |
6507 | ac_success=yes | |
6508 | break | |
6509 | fi | |
6510 | done | |
6511 | fi | |
6512 | ||
6513 | if test x$ac_success = xno; then | |
6514 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6515 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6516 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6518 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6519 | if eval \${$cachevar+:} false; then : | |
6520 | $as_echo_n "(cached) " >&6 | |
6521 | else | |
6522 | ac_save_CXX="$CXX" | |
6523 | CXX="$CXX $switch" | |
6524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6525 | /* end confdefs.h. */ | |
6526 | ||
6527 | ||
6528 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6529 | // Hopefully, this will speed up the test. | |
6530 | ||
6531 | #ifndef __cplusplus | |
6532 | ||
6533 | #error "This is not a C++ compiler" | |
6534 | ||
6535 | #elif __cplusplus < 201103L | |
6536 | ||
6537 | #error "This is not a C++11 compiler" | |
6538 | ||
6539 | #else | |
6540 | ||
6541 | namespace cxx11 | |
6542 | { | |
6543 | ||
6544 | namespace test_static_assert | |
6545 | { | |
6546 | ||
6547 | template <typename T> | |
6548 | struct check | |
6549 | { | |
6550 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6551 | }; | |
6552 | ||
6553 | } | |
6554 | ||
6555 | namespace test_final_override | |
6556 | { | |
6557 | ||
6558 | struct Base | |
6559 | { | |
6560 | virtual ~Base() {} | |
6561 | virtual void f() {} | |
6562 | }; | |
6563 | ||
6564 | struct Derived : public Base | |
6565 | { | |
6566 | virtual ~Derived() override {} | |
6567 | virtual void f() override {} | |
6568 | }; | |
6569 | ||
6570 | } | |
6571 | ||
6572 | namespace test_double_right_angle_brackets | |
6573 | { | |
6574 | ||
6575 | template < typename T > | |
6576 | struct check {}; | |
6577 | ||
6578 | typedef check<void> single_type; | |
6579 | typedef check<check<void>> double_type; | |
6580 | typedef check<check<check<void>>> triple_type; | |
6581 | typedef check<check<check<check<void>>>> quadruple_type; | |
6582 | ||
6583 | } | |
6584 | ||
6585 | namespace test_decltype | |
6586 | { | |
6587 | ||
6588 | int | |
6589 | f() | |
6590 | { | |
6591 | int a = 1; | |
6592 | decltype(a) b = 2; | |
6593 | return a + b; | |
6594 | } | |
6595 | ||
6596 | } | |
6597 | ||
6598 | namespace test_type_deduction | |
6599 | { | |
6600 | ||
6601 | template < typename T1, typename T2 > | |
6602 | struct is_same | |
6603 | { | |
6604 | static const bool value = false; | |
6605 | }; | |
6606 | ||
6607 | template < typename T > | |
6608 | struct is_same<T, T> | |
6609 | { | |
6610 | static const bool value = true; | |
6611 | }; | |
6612 | ||
6613 | template < typename T1, typename T2 > | |
6614 | auto | |
6615 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6616 | { | |
6617 | return a1 + a2; | |
6618 | } | |
6619 | ||
6620 | int | |
6621 | test(const int c, volatile int v) | |
6622 | { | |
6623 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6624 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6625 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6626 | auto ac = c; | |
6627 | auto av = v; | |
6628 | auto sumi = ac + av + 'x'; | |
6629 | auto sumf = ac + av + 1.0; | |
6630 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6631 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6632 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6633 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6634 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6635 | return (sumf > 0.0) ? sumi : add(c, v); | |
6636 | } | |
6637 | ||
6638 | } | |
6639 | ||
6640 | namespace test_noexcept | |
6641 | { | |
6642 | ||
6643 | int f() { return 0; } | |
6644 | int g() noexcept { return 0; } | |
6645 | ||
6646 | static_assert(noexcept(f()) == false, ""); | |
6647 | static_assert(noexcept(g()) == true, ""); | |
6648 | ||
6649 | } | |
6650 | ||
6651 | namespace test_constexpr | |
6652 | { | |
6653 | ||
6654 | template < typename CharT > | |
6655 | unsigned long constexpr | |
6656 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6657 | { | |
6658 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6659 | } | |
6660 | ||
6661 | template < typename CharT > | |
6662 | unsigned long constexpr | |
6663 | strlen_c(const CharT *const s) noexcept | |
6664 | { | |
6665 | return strlen_c_r(s, 0UL); | |
6666 | } | |
6667 | ||
6668 | static_assert(strlen_c("") == 0UL, ""); | |
6669 | static_assert(strlen_c("1") == 1UL, ""); | |
6670 | static_assert(strlen_c("example") == 7UL, ""); | |
6671 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6672 | ||
6673 | } | |
6674 | ||
6675 | namespace test_rvalue_references | |
6676 | { | |
6677 | ||
6678 | template < int N > | |
6679 | struct answer | |
6680 | { | |
6681 | static constexpr int value = N; | |
6682 | }; | |
6683 | ||
6684 | answer<1> f(int&) { return answer<1>(); } | |
6685 | answer<2> f(const int&) { return answer<2>(); } | |
6686 | answer<3> f(int&&) { return answer<3>(); } | |
6687 | ||
6688 | void | |
6689 | test() | |
6690 | { | |
6691 | int i = 0; | |
6692 | const int c = 0; | |
6693 | static_assert(decltype(f(i))::value == 1, ""); | |
6694 | static_assert(decltype(f(c))::value == 2, ""); | |
6695 | static_assert(decltype(f(0))::value == 3, ""); | |
6696 | } | |
6697 | ||
6698 | } | |
6699 | ||
6700 | namespace test_uniform_initialization | |
6701 | { | |
6702 | ||
6703 | struct test | |
6704 | { | |
6705 | static const int zero {}; | |
6706 | static const int one {1}; | |
6707 | }; | |
6708 | ||
6709 | static_assert(test::zero == 0, ""); | |
6710 | static_assert(test::one == 1, ""); | |
6711 | ||
6712 | } | |
6713 | ||
6714 | namespace test_lambdas | |
6715 | { | |
6716 | ||
6717 | void | |
6718 | test1() | |
6719 | { | |
6720 | auto lambda1 = [](){}; | |
6721 | auto lambda2 = lambda1; | |
6722 | lambda1(); | |
6723 | lambda2(); | |
6724 | } | |
6725 | ||
6726 | int | |
6727 | test2() | |
6728 | { | |
6729 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6730 | auto b = []() -> int { return '0'; }(); | |
6731 | auto c = [=](){ return a + b; }(); | |
6732 | auto d = [&](){ return c; }(); | |
6733 | auto e = [a, &b](int x) mutable { | |
6734 | const auto identity = [](int y){ return y; }; | |
6735 | for (auto i = 0; i < a; ++i) | |
6736 | a += b--; | |
6737 | return x + identity(a + b); | |
6738 | }(0); | |
6739 | return a + b + c + d + e; | |
6740 | } | |
6741 | ||
6742 | int | |
6743 | test3() | |
6744 | { | |
6745 | const auto nullary = [](){ return 0; }; | |
6746 | const auto unary = [](int x){ return x; }; | |
6747 | using nullary_t = decltype(nullary); | |
6748 | using unary_t = decltype(unary); | |
6749 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6750 | const auto higher2nd = [unary](nullary_t f1){ | |
6751 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6752 | }; | |
6753 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6754 | } | |
6755 | ||
6756 | } | |
6757 | ||
6758 | namespace test_variadic_templates | |
6759 | { | |
6760 | ||
6761 | template <int...> | |
6762 | struct sum; | |
6763 | ||
6764 | template <int N0, int... N1toN> | |
6765 | struct sum<N0, N1toN...> | |
6766 | { | |
6767 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6768 | }; | |
6769 | ||
6770 | template <> | |
6771 | struct sum<> | |
6772 | { | |
6773 | static constexpr auto value = 0; | |
6774 | }; | |
6775 | ||
6776 | static_assert(sum<>::value == 0, ""); | |
6777 | static_assert(sum<1>::value == 1, ""); | |
6778 | static_assert(sum<23>::value == 23, ""); | |
6779 | static_assert(sum<1, 2>::value == 3, ""); | |
6780 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6781 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6782 | ||
6783 | } | |
6784 | ||
6785 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6786 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6787 | // because of this. | |
6788 | namespace test_template_alias_sfinae | |
6789 | { | |
6790 | ||
6791 | struct foo {}; | |
6792 | ||
6793 | template<typename T> | |
6794 | using member = typename T::member_type; | |
6795 | ||
6796 | template<typename T> | |
6797 | void func(...) {} | |
6798 | ||
6799 | template<typename T> | |
6800 | void func(member<T>*) {} | |
6801 | ||
6802 | void test(); | |
6803 | ||
6804 | void test() { func<foo>(0); } | |
6805 | ||
6806 | } | |
6807 | ||
6808 | } // namespace cxx11 | |
6809 | ||
6810 | #endif // __cplusplus >= 201103L | |
6811 | ||
6812 | ||
6813 | ||
6814 | _ACEOF | |
6815 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6816 | eval $cachevar=yes | |
6817 | else | |
6818 | eval $cachevar=no | |
6819 | fi | |
6820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6821 | CXX="$ac_save_CXX" | |
6822 | fi | |
6823 | eval ac_res=\$$cachevar | |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6825 | $as_echo "$ac_res" >&6; } | |
6826 | if eval test x\$$cachevar = xyes; then | |
6827 | CXX="$CXX $switch" | |
6828 | if test -n "$CXXCPP" ; then | |
6829 | CXXCPP="$CXXCPP $switch" | |
6830 | fi | |
6831 | ac_success=yes | |
6832 | break | |
6833 | fi | |
6834 | done | |
6835 | if test x$ac_success = xyes; then | |
6836 | break | |
6837 | fi | |
6838 | done | |
6839 | fi | |
7ffcf5d6 | 6840 | |
ffac9597 JM |
6841 | ac_ext=c |
6842 | ac_cpp='$CPP $CPPFLAGS' | |
6843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6846 | ||
6847 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6848 | if test x$ac_success = xno; then | |
6849 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6850 | fi | |
6851 | fi | |
6852 | if test x$ac_success = xno; then | |
6853 | HAVE_CXX11=0 | |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6855 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6856 | else | |
6857 | HAVE_CXX11=1 | |
6858 | ||
6859 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6860 | ||
6861 | fi | |
6862 | ||
6863 | ||
7ffcf5d6 TB |
6864 | |
6865 | if test "${build}" != "${host}"; then | |
6866 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6867 | ac_ext=cpp | |
6868 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6869 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6870 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6871 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6872 | ac_success=no | |
6873 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6874 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6875 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6876 | CXX="$CXX_FOR_BUILD" | |
6877 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6878 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6880 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6881 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6882 | $as_echo_n "(cached) " >&6 | |
6883 | else | |
6884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6885 | /* end confdefs.h. */ | |
6886 | ||
6887 | ||
6888 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6889 | // Hopefully, this will speed up the test. | |
6890 | ||
6891 | #ifndef __cplusplus | |
6892 | ||
6893 | #error "This is not a C++ compiler" | |
6894 | ||
6895 | #elif __cplusplus < 201103L | |
6896 | ||
6897 | #error "This is not a C++11 compiler" | |
6898 | ||
6899 | #else | |
6900 | ||
6901 | namespace cxx11 | |
6902 | { | |
6903 | ||
6904 | namespace test_static_assert | |
6905 | { | |
6906 | ||
6907 | template <typename T> | |
6908 | struct check | |
6909 | { | |
6910 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6911 | }; | |
6912 | ||
6913 | } | |
6914 | ||
6915 | namespace test_final_override | |
6916 | { | |
6917 | ||
6918 | struct Base | |
6919 | { | |
6920 | virtual ~Base() {} | |
6921 | virtual void f() {} | |
6922 | }; | |
6923 | ||
6924 | struct Derived : public Base | |
6925 | { | |
6926 | virtual ~Derived() override {} | |
6927 | virtual void f() override {} | |
6928 | }; | |
6929 | ||
6930 | } | |
6931 | ||
6932 | namespace test_double_right_angle_brackets | |
6933 | { | |
6934 | ||
6935 | template < typename T > | |
6936 | struct check {}; | |
6937 | ||
6938 | typedef check<void> single_type; | |
6939 | typedef check<check<void>> double_type; | |
6940 | typedef check<check<check<void>>> triple_type; | |
6941 | typedef check<check<check<check<void>>>> quadruple_type; | |
6942 | ||
6943 | } | |
6944 | ||
6945 | namespace test_decltype | |
6946 | { | |
6947 | ||
6948 | int | |
6949 | f() | |
6950 | { | |
6951 | int a = 1; | |
6952 | decltype(a) b = 2; | |
6953 | return a + b; | |
6954 | } | |
6955 | ||
6956 | } | |
6957 | ||
6958 | namespace test_type_deduction | |
6959 | { | |
6960 | ||
6961 | template < typename T1, typename T2 > | |
6962 | struct is_same | |
6963 | { | |
6964 | static const bool value = false; | |
6965 | }; | |
6966 | ||
6967 | template < typename T > | |
6968 | struct is_same<T, T> | |
6969 | { | |
6970 | static const bool value = true; | |
6971 | }; | |
6972 | ||
6973 | template < typename T1, typename T2 > | |
6974 | auto | |
6975 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6976 | { | |
6977 | return a1 + a2; | |
6978 | } | |
6979 | ||
6980 | int | |
6981 | test(const int c, volatile int v) | |
6982 | { | |
6983 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6984 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6985 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6986 | auto ac = c; | |
6987 | auto av = v; | |
6988 | auto sumi = ac + av + 'x'; | |
6989 | auto sumf = ac + av + 1.0; | |
6990 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6991 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6992 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6993 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6994 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6995 | return (sumf > 0.0) ? sumi : add(c, v); | |
6996 | } | |
6997 | ||
6998 | } | |
6999 | ||
7000 | namespace test_noexcept | |
7001 | { | |
7002 | ||
7003 | int f() { return 0; } | |
7004 | int g() noexcept { return 0; } | |
7005 | ||
7006 | static_assert(noexcept(f()) == false, ""); | |
7007 | static_assert(noexcept(g()) == true, ""); | |
7008 | ||
7009 | } | |
7010 | ||
7011 | namespace test_constexpr | |
7012 | { | |
7013 | ||
7014 | template < typename CharT > | |
7015 | unsigned long constexpr | |
7016 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7017 | { | |
7018 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7019 | } | |
7020 | ||
7021 | template < typename CharT > | |
7022 | unsigned long constexpr | |
7023 | strlen_c(const CharT *const s) noexcept | |
7024 | { | |
7025 | return strlen_c_r(s, 0UL); | |
7026 | } | |
7027 | ||
7028 | static_assert(strlen_c("") == 0UL, ""); | |
7029 | static_assert(strlen_c("1") == 1UL, ""); | |
7030 | static_assert(strlen_c("example") == 7UL, ""); | |
7031 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7032 | ||
7033 | } | |
7034 | ||
7035 | namespace test_rvalue_references | |
7036 | { | |
7037 | ||
7038 | template < int N > | |
7039 | struct answer | |
7040 | { | |
7041 | static constexpr int value = N; | |
7042 | }; | |
7043 | ||
7044 | answer<1> f(int&) { return answer<1>(); } | |
7045 | answer<2> f(const int&) { return answer<2>(); } | |
7046 | answer<3> f(int&&) { return answer<3>(); } | |
7047 | ||
7048 | void | |
7049 | test() | |
7050 | { | |
7051 | int i = 0; | |
7052 | const int c = 0; | |
7053 | static_assert(decltype(f(i))::value == 1, ""); | |
7054 | static_assert(decltype(f(c))::value == 2, ""); | |
7055 | static_assert(decltype(f(0))::value == 3, ""); | |
7056 | } | |
7057 | ||
7058 | } | |
7059 | ||
7060 | namespace test_uniform_initialization | |
7061 | { | |
7062 | ||
7063 | struct test | |
7064 | { | |
7065 | static const int zero {}; | |
7066 | static const int one {1}; | |
7067 | }; | |
7068 | ||
7069 | static_assert(test::zero == 0, ""); | |
7070 | static_assert(test::one == 1, ""); | |
7071 | ||
7072 | } | |
7073 | ||
7074 | namespace test_lambdas | |
7075 | { | |
7076 | ||
7077 | void | |
7078 | test1() | |
7079 | { | |
7080 | auto lambda1 = [](){}; | |
7081 | auto lambda2 = lambda1; | |
7082 | lambda1(); | |
7083 | lambda2(); | |
7084 | } | |
7085 | ||
7086 | int | |
7087 | test2() | |
7088 | { | |
7089 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7090 | auto b = []() -> int { return '0'; }(); | |
7091 | auto c = [=](){ return a + b; }(); | |
7092 | auto d = [&](){ return c; }(); | |
7093 | auto e = [a, &b](int x) mutable { | |
7094 | const auto identity = [](int y){ return y; }; | |
7095 | for (auto i = 0; i < a; ++i) | |
7096 | a += b--; | |
7097 | return x + identity(a + b); | |
7098 | }(0); | |
7099 | return a + b + c + d + e; | |
7100 | } | |
7101 | ||
7102 | int | |
7103 | test3() | |
7104 | { | |
7105 | const auto nullary = [](){ return 0; }; | |
7106 | const auto unary = [](int x){ return x; }; | |
7107 | using nullary_t = decltype(nullary); | |
7108 | using unary_t = decltype(unary); | |
7109 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7110 | const auto higher2nd = [unary](nullary_t f1){ | |
7111 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7112 | }; | |
7113 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7114 | } | |
7115 | ||
7116 | } | |
7117 | ||
7118 | namespace test_variadic_templates | |
7119 | { | |
7120 | ||
7121 | template <int...> | |
7122 | struct sum; | |
7123 | ||
7124 | template <int N0, int... N1toN> | |
7125 | struct sum<N0, N1toN...> | |
7126 | { | |
7127 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7128 | }; | |
7129 | ||
7130 | template <> | |
7131 | struct sum<> | |
7132 | { | |
7133 | static constexpr auto value = 0; | |
7134 | }; | |
7135 | ||
7136 | static_assert(sum<>::value == 0, ""); | |
7137 | static_assert(sum<1>::value == 1, ""); | |
7138 | static_assert(sum<23>::value == 23, ""); | |
7139 | static_assert(sum<1, 2>::value == 3, ""); | |
7140 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7141 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7142 | ||
7143 | } | |
7144 | ||
7145 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7146 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7147 | // because of this. | |
7148 | namespace test_template_alias_sfinae | |
7149 | { | |
7150 | ||
7151 | struct foo {}; | |
7152 | ||
7153 | template<typename T> | |
7154 | using member = typename T::member_type; | |
7155 | ||
7156 | template<typename T> | |
7157 | void func(...) {} | |
7158 | ||
7159 | template<typename T> | |
7160 | void func(member<T>*) {} | |
7161 | ||
7162 | void test(); | |
7163 | ||
7164 | void test() { func<foo>(0); } | |
7165 | ||
7166 | } | |
7167 | ||
7168 | } // namespace cxx11 | |
7169 | ||
7170 | #endif // __cplusplus >= 201103L | |
7171 | ||
7172 | ||
7173 | ||
7174 | _ACEOF | |
7175 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7176 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7177 | else | |
7178 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7179 | fi | |
7180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7181 | fi | |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7183 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7184 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7185 | ac_success=yes | |
7186 | fi | |
7187 | ||
7188 | if test x$ac_success = xno; then | |
7189 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7190 | switch="-std=gnu++${alternative}" | |
7191 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7193 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7194 | if eval \${$cachevar+:} false; then : | |
7195 | $as_echo_n "(cached) " >&6 | |
7196 | else | |
7197 | ac_save_CXX="$CXX" | |
7198 | CXX="$CXX $switch" | |
7199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7200 | /* end confdefs.h. */ | |
7201 | ||
7202 | ||
7203 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7204 | // Hopefully, this will speed up the test. | |
7205 | ||
7206 | #ifndef __cplusplus | |
7207 | ||
7208 | #error "This is not a C++ compiler" | |
7209 | ||
7210 | #elif __cplusplus < 201103L | |
7211 | ||
7212 | #error "This is not a C++11 compiler" | |
7213 | ||
7214 | #else | |
7215 | ||
7216 | namespace cxx11 | |
7217 | { | |
7218 | ||
7219 | namespace test_static_assert | |
7220 | { | |
7221 | ||
7222 | template <typename T> | |
7223 | struct check | |
7224 | { | |
7225 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7226 | }; | |
7227 | ||
7228 | } | |
7229 | ||
7230 | namespace test_final_override | |
7231 | { | |
7232 | ||
7233 | struct Base | |
7234 | { | |
7235 | virtual ~Base() {} | |
7236 | virtual void f() {} | |
7237 | }; | |
7238 | ||
7239 | struct Derived : public Base | |
7240 | { | |
7241 | virtual ~Derived() override {} | |
7242 | virtual void f() override {} | |
7243 | }; | |
7244 | ||
7245 | } | |
7246 | ||
7247 | namespace test_double_right_angle_brackets | |
7248 | { | |
7249 | ||
7250 | template < typename T > | |
7251 | struct check {}; | |
7252 | ||
7253 | typedef check<void> single_type; | |
7254 | typedef check<check<void>> double_type; | |
7255 | typedef check<check<check<void>>> triple_type; | |
7256 | typedef check<check<check<check<void>>>> quadruple_type; | |
7257 | ||
7258 | } | |
7259 | ||
7260 | namespace test_decltype | |
7261 | { | |
7262 | ||
7263 | int | |
7264 | f() | |
7265 | { | |
7266 | int a = 1; | |
7267 | decltype(a) b = 2; | |
7268 | return a + b; | |
7269 | } | |
7270 | ||
7271 | } | |
7272 | ||
7273 | namespace test_type_deduction | |
7274 | { | |
7275 | ||
7276 | template < typename T1, typename T2 > | |
7277 | struct is_same | |
7278 | { | |
7279 | static const bool value = false; | |
7280 | }; | |
7281 | ||
7282 | template < typename T > | |
7283 | struct is_same<T, T> | |
7284 | { | |
7285 | static const bool value = true; | |
7286 | }; | |
7287 | ||
7288 | template < typename T1, typename T2 > | |
7289 | auto | |
7290 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7291 | { | |
7292 | return a1 + a2; | |
7293 | } | |
7294 | ||
7295 | int | |
7296 | test(const int c, volatile int v) | |
7297 | { | |
7298 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7299 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7300 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7301 | auto ac = c; | |
7302 | auto av = v; | |
7303 | auto sumi = ac + av + 'x'; | |
7304 | auto sumf = ac + av + 1.0; | |
7305 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7306 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7307 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7308 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7309 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7310 | return (sumf > 0.0) ? sumi : add(c, v); | |
7311 | } | |
7312 | ||
7313 | } | |
7314 | ||
7315 | namespace test_noexcept | |
7316 | { | |
7317 | ||
7318 | int f() { return 0; } | |
7319 | int g() noexcept { return 0; } | |
7320 | ||
7321 | static_assert(noexcept(f()) == false, ""); | |
7322 | static_assert(noexcept(g()) == true, ""); | |
7323 | ||
7324 | } | |
7325 | ||
7326 | namespace test_constexpr | |
7327 | { | |
7328 | ||
7329 | template < typename CharT > | |
7330 | unsigned long constexpr | |
7331 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7332 | { | |
7333 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7334 | } | |
7335 | ||
7336 | template < typename CharT > | |
7337 | unsigned long constexpr | |
7338 | strlen_c(const CharT *const s) noexcept | |
7339 | { | |
7340 | return strlen_c_r(s, 0UL); | |
7341 | } | |
7342 | ||
7343 | static_assert(strlen_c("") == 0UL, ""); | |
7344 | static_assert(strlen_c("1") == 1UL, ""); | |
7345 | static_assert(strlen_c("example") == 7UL, ""); | |
7346 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7347 | ||
7348 | } | |
7349 | ||
7350 | namespace test_rvalue_references | |
7351 | { | |
7352 | ||
7353 | template < int N > | |
7354 | struct answer | |
7355 | { | |
7356 | static constexpr int value = N; | |
7357 | }; | |
7358 | ||
7359 | answer<1> f(int&) { return answer<1>(); } | |
7360 | answer<2> f(const int&) { return answer<2>(); } | |
7361 | answer<3> f(int&&) { return answer<3>(); } | |
7362 | ||
7363 | void | |
7364 | test() | |
7365 | { | |
7366 | int i = 0; | |
7367 | const int c = 0; | |
7368 | static_assert(decltype(f(i))::value == 1, ""); | |
7369 | static_assert(decltype(f(c))::value == 2, ""); | |
7370 | static_assert(decltype(f(0))::value == 3, ""); | |
7371 | } | |
7372 | ||
7373 | } | |
7374 | ||
7375 | namespace test_uniform_initialization | |
7376 | { | |
7377 | ||
7378 | struct test | |
7379 | { | |
7380 | static const int zero {}; | |
7381 | static const int one {1}; | |
7382 | }; | |
7383 | ||
7384 | static_assert(test::zero == 0, ""); | |
7385 | static_assert(test::one == 1, ""); | |
7386 | ||
7387 | } | |
7388 | ||
7389 | namespace test_lambdas | |
7390 | { | |
7391 | ||
7392 | void | |
7393 | test1() | |
7394 | { | |
7395 | auto lambda1 = [](){}; | |
7396 | auto lambda2 = lambda1; | |
7397 | lambda1(); | |
7398 | lambda2(); | |
7399 | } | |
7400 | ||
7401 | int | |
7402 | test2() | |
7403 | { | |
7404 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7405 | auto b = []() -> int { return '0'; }(); | |
7406 | auto c = [=](){ return a + b; }(); | |
7407 | auto d = [&](){ return c; }(); | |
7408 | auto e = [a, &b](int x) mutable { | |
7409 | const auto identity = [](int y){ return y; }; | |
7410 | for (auto i = 0; i < a; ++i) | |
7411 | a += b--; | |
7412 | return x + identity(a + b); | |
7413 | }(0); | |
7414 | return a + b + c + d + e; | |
7415 | } | |
7416 | ||
7417 | int | |
7418 | test3() | |
7419 | { | |
7420 | const auto nullary = [](){ return 0; }; | |
7421 | const auto unary = [](int x){ return x; }; | |
7422 | using nullary_t = decltype(nullary); | |
7423 | using unary_t = decltype(unary); | |
7424 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7425 | const auto higher2nd = [unary](nullary_t f1){ | |
7426 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7427 | }; | |
7428 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7429 | } | |
7430 | ||
7431 | } | |
7432 | ||
7433 | namespace test_variadic_templates | |
7434 | { | |
7435 | ||
7436 | template <int...> | |
7437 | struct sum; | |
7438 | ||
7439 | template <int N0, int... N1toN> | |
7440 | struct sum<N0, N1toN...> | |
7441 | { | |
7442 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7443 | }; | |
7444 | ||
7445 | template <> | |
7446 | struct sum<> | |
7447 | { | |
7448 | static constexpr auto value = 0; | |
7449 | }; | |
7450 | ||
7451 | static_assert(sum<>::value == 0, ""); | |
7452 | static_assert(sum<1>::value == 1, ""); | |
7453 | static_assert(sum<23>::value == 23, ""); | |
7454 | static_assert(sum<1, 2>::value == 3, ""); | |
7455 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7456 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7457 | ||
7458 | } | |
7459 | ||
7460 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7461 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7462 | // because of this. | |
7463 | namespace test_template_alias_sfinae | |
7464 | { | |
7465 | ||
7466 | struct foo {}; | |
7467 | ||
7468 | template<typename T> | |
7469 | using member = typename T::member_type; | |
7470 | ||
7471 | template<typename T> | |
7472 | void func(...) {} | |
7473 | ||
7474 | template<typename T> | |
7475 | void func(member<T>*) {} | |
7476 | ||
7477 | void test(); | |
7478 | ||
7479 | void test() { func<foo>(0); } | |
7480 | ||
7481 | } | |
7482 | ||
7483 | } // namespace cxx11 | |
7484 | ||
7485 | #endif // __cplusplus >= 201103L | |
7486 | ||
7487 | ||
7488 | ||
7489 | _ACEOF | |
7490 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7491 | eval $cachevar=yes | |
7492 | else | |
7493 | eval $cachevar=no | |
7494 | fi | |
7495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7496 | CXX="$ac_save_CXX" | |
7497 | fi | |
7498 | eval ac_res=\$$cachevar | |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7500 | $as_echo "$ac_res" >&6; } | |
7501 | if eval test x\$$cachevar = xyes; then | |
7502 | CXX="$CXX $switch" | |
7503 | if test -n "$CXXCPP" ; then | |
7504 | CXXCPP="$CXXCPP $switch" | |
7505 | fi | |
7506 | ac_success=yes | |
7507 | break | |
7508 | fi | |
7509 | done | |
7510 | fi | |
7511 | ||
7512 | if test x$ac_success = xno; then | |
7513 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7514 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7515 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7517 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7518 | if eval \${$cachevar+:} false; then : | |
7519 | $as_echo_n "(cached) " >&6 | |
7520 | else | |
7521 | ac_save_CXX="$CXX" | |
7522 | CXX="$CXX $switch" | |
7523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7524 | /* end confdefs.h. */ | |
7525 | ||
7526 | ||
7527 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7528 | // Hopefully, this will speed up the test. | |
7529 | ||
7530 | #ifndef __cplusplus | |
7531 | ||
7532 | #error "This is not a C++ compiler" | |
7533 | ||
7534 | #elif __cplusplus < 201103L | |
7535 | ||
7536 | #error "This is not a C++11 compiler" | |
7537 | ||
7538 | #else | |
7539 | ||
7540 | namespace cxx11 | |
7541 | { | |
7542 | ||
7543 | namespace test_static_assert | |
7544 | { | |
7545 | ||
7546 | template <typename T> | |
7547 | struct check | |
7548 | { | |
7549 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7550 | }; | |
7551 | ||
7552 | } | |
7553 | ||
7554 | namespace test_final_override | |
7555 | { | |
7556 | ||
7557 | struct Base | |
7558 | { | |
7559 | virtual ~Base() {} | |
7560 | virtual void f() {} | |
7561 | }; | |
7562 | ||
7563 | struct Derived : public Base | |
7564 | { | |
7565 | virtual ~Derived() override {} | |
7566 | virtual void f() override {} | |
7567 | }; | |
7568 | ||
7569 | } | |
7570 | ||
7571 | namespace test_double_right_angle_brackets | |
7572 | { | |
7573 | ||
7574 | template < typename T > | |
7575 | struct check {}; | |
7576 | ||
7577 | typedef check<void> single_type; | |
7578 | typedef check<check<void>> double_type; | |
7579 | typedef check<check<check<void>>> triple_type; | |
7580 | typedef check<check<check<check<void>>>> quadruple_type; | |
7581 | ||
7582 | } | |
7583 | ||
7584 | namespace test_decltype | |
7585 | { | |
7586 | ||
7587 | int | |
7588 | f() | |
7589 | { | |
7590 | int a = 1; | |
7591 | decltype(a) b = 2; | |
7592 | return a + b; | |
7593 | } | |
7594 | ||
7595 | } | |
7596 | ||
7597 | namespace test_type_deduction | |
7598 | { | |
7599 | ||
7600 | template < typename T1, typename T2 > | |
7601 | struct is_same | |
7602 | { | |
7603 | static const bool value = false; | |
7604 | }; | |
7605 | ||
7606 | template < typename T > | |
7607 | struct is_same<T, T> | |
7608 | { | |
7609 | static const bool value = true; | |
7610 | }; | |
7611 | ||
7612 | template < typename T1, typename T2 > | |
7613 | auto | |
7614 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7615 | { | |
7616 | return a1 + a2; | |
7617 | } | |
7618 | ||
7619 | int | |
7620 | test(const int c, volatile int v) | |
7621 | { | |
7622 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7623 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7624 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7625 | auto ac = c; | |
7626 | auto av = v; | |
7627 | auto sumi = ac + av + 'x'; | |
7628 | auto sumf = ac + av + 1.0; | |
7629 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7630 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7631 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7632 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7633 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7634 | return (sumf > 0.0) ? sumi : add(c, v); | |
7635 | } | |
7636 | ||
7637 | } | |
7638 | ||
7639 | namespace test_noexcept | |
7640 | { | |
7641 | ||
7642 | int f() { return 0; } | |
7643 | int g() noexcept { return 0; } | |
7644 | ||
7645 | static_assert(noexcept(f()) == false, ""); | |
7646 | static_assert(noexcept(g()) == true, ""); | |
7647 | ||
7648 | } | |
7649 | ||
7650 | namespace test_constexpr | |
7651 | { | |
7652 | ||
7653 | template < typename CharT > | |
7654 | unsigned long constexpr | |
7655 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7656 | { | |
7657 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7658 | } | |
7659 | ||
7660 | template < typename CharT > | |
7661 | unsigned long constexpr | |
7662 | strlen_c(const CharT *const s) noexcept | |
7663 | { | |
7664 | return strlen_c_r(s, 0UL); | |
7665 | } | |
7666 | ||
7667 | static_assert(strlen_c("") == 0UL, ""); | |
7668 | static_assert(strlen_c("1") == 1UL, ""); | |
7669 | static_assert(strlen_c("example") == 7UL, ""); | |
7670 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7671 | ||
7672 | } | |
7673 | ||
7674 | namespace test_rvalue_references | |
7675 | { | |
7676 | ||
7677 | template < int N > | |
7678 | struct answer | |
7679 | { | |
7680 | static constexpr int value = N; | |
7681 | }; | |
7682 | ||
7683 | answer<1> f(int&) { return answer<1>(); } | |
7684 | answer<2> f(const int&) { return answer<2>(); } | |
7685 | answer<3> f(int&&) { return answer<3>(); } | |
7686 | ||
7687 | void | |
7688 | test() | |
7689 | { | |
7690 | int i = 0; | |
7691 | const int c = 0; | |
7692 | static_assert(decltype(f(i))::value == 1, ""); | |
7693 | static_assert(decltype(f(c))::value == 2, ""); | |
7694 | static_assert(decltype(f(0))::value == 3, ""); | |
7695 | } | |
7696 | ||
7697 | } | |
7698 | ||
7699 | namespace test_uniform_initialization | |
7700 | { | |
7701 | ||
7702 | struct test | |
7703 | { | |
7704 | static const int zero {}; | |
7705 | static const int one {1}; | |
7706 | }; | |
7707 | ||
7708 | static_assert(test::zero == 0, ""); | |
7709 | static_assert(test::one == 1, ""); | |
7710 | ||
7711 | } | |
7712 | ||
7713 | namespace test_lambdas | |
7714 | { | |
7715 | ||
7716 | void | |
7717 | test1() | |
7718 | { | |
7719 | auto lambda1 = [](){}; | |
7720 | auto lambda2 = lambda1; | |
7721 | lambda1(); | |
7722 | lambda2(); | |
7723 | } | |
7724 | ||
7725 | int | |
7726 | test2() | |
7727 | { | |
7728 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7729 | auto b = []() -> int { return '0'; }(); | |
7730 | auto c = [=](){ return a + b; }(); | |
7731 | auto d = [&](){ return c; }(); | |
7732 | auto e = [a, &b](int x) mutable { | |
7733 | const auto identity = [](int y){ return y; }; | |
7734 | for (auto i = 0; i < a; ++i) | |
7735 | a += b--; | |
7736 | return x + identity(a + b); | |
7737 | }(0); | |
7738 | return a + b + c + d + e; | |
7739 | } | |
7740 | ||
7741 | int | |
7742 | test3() | |
7743 | { | |
7744 | const auto nullary = [](){ return 0; }; | |
7745 | const auto unary = [](int x){ return x; }; | |
7746 | using nullary_t = decltype(nullary); | |
7747 | using unary_t = decltype(unary); | |
7748 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7749 | const auto higher2nd = [unary](nullary_t f1){ | |
7750 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7751 | }; | |
7752 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7753 | } | |
7754 | ||
7755 | } | |
7756 | ||
7757 | namespace test_variadic_templates | |
7758 | { | |
7759 | ||
7760 | template <int...> | |
7761 | struct sum; | |
7762 | ||
7763 | template <int N0, int... N1toN> | |
7764 | struct sum<N0, N1toN...> | |
7765 | { | |
7766 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7767 | }; | |
7768 | ||
7769 | template <> | |
7770 | struct sum<> | |
7771 | { | |
7772 | static constexpr auto value = 0; | |
7773 | }; | |
7774 | ||
7775 | static_assert(sum<>::value == 0, ""); | |
7776 | static_assert(sum<1>::value == 1, ""); | |
7777 | static_assert(sum<23>::value == 23, ""); | |
7778 | static_assert(sum<1, 2>::value == 3, ""); | |
7779 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7780 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7781 | ||
7782 | } | |
7783 | ||
7784 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7785 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7786 | // because of this. | |
7787 | namespace test_template_alias_sfinae | |
7788 | { | |
7789 | ||
7790 | struct foo {}; | |
7791 | ||
7792 | template<typename T> | |
7793 | using member = typename T::member_type; | |
7794 | ||
7795 | template<typename T> | |
7796 | void func(...) {} | |
7797 | ||
7798 | template<typename T> | |
7799 | void func(member<T>*) {} | |
7800 | ||
7801 | void test(); | |
7802 | ||
7803 | void test() { func<foo>(0); } | |
7804 | ||
7805 | } | |
7806 | ||
7807 | } // namespace cxx11 | |
7808 | ||
7809 | #endif // __cplusplus >= 201103L | |
7810 | ||
7811 | ||
7812 | ||
7813 | _ACEOF | |
7814 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7815 | eval $cachevar=yes | |
7816 | else | |
7817 | eval $cachevar=no | |
7818 | fi | |
7819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7820 | CXX="$ac_save_CXX" | |
7821 | fi | |
7822 | eval ac_res=\$$cachevar | |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7824 | $as_echo "$ac_res" >&6; } | |
7825 | if eval test x\$$cachevar = xyes; then | |
7826 | CXX="$CXX $switch" | |
7827 | if test -n "$CXXCPP" ; then | |
7828 | CXXCPP="$CXXCPP $switch" | |
7829 | fi | |
7830 | ac_success=yes | |
7831 | break | |
7832 | fi | |
7833 | done | |
7834 | if test x$ac_success = xyes; then | |
7835 | break | |
7836 | fi | |
7837 | done | |
7838 | fi | |
7839 | CXX_FOR_BUILD="$CXX" | |
7840 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7841 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7842 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7843 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7844 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7845 | ac_ext=c | |
7846 | ac_cpp='$CPP $CPPFLAGS' | |
7847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7850 | ||
7851 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7852 | if test x$ac_success = xno; then | |
7853 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7854 | fi | |
7855 | fi | |
7856 | if test x$ac_success = xno; then | |
7857 | HAVE_CXX11_FOR_BUILD=0 | |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7859 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7860 | else | |
7861 | HAVE_CXX11_FOR_BUILD=1 | |
7862 | ||
7863 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7864 | ||
7865 | fi | |
7866 | ||
7867 | ||
7868 | fi | |
46070488 JM |
7869 | fi |
7870 | ||
4a5e71f2 L |
7871 | # Check whether --enable-pgo-build was given. |
7872 | if test "${enable_pgo_build+set}" = set; then : | |
7873 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7874 | else | |
7875 | enable_pgo_build=no | |
7876 | fi | |
7877 | ||
7878 | ||
7879 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7880 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7881 | *:*:*:no) ;; | |
7882 | ||
7883 | # Allow the PGO build only if we aren't building a compiler and | |
7884 | # we are in a native configuration. | |
7885 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7886 | ||
7887 | # Disallow the PGO bootstrap if we are building a compiler. | |
7888 | yes:*:*:yes | yes:*:*:lto) | |
7889 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7890 | ||
7891 | *) | |
7892 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7893 | ;; | |
7894 | esac | |
7895 | ||
7896 | if test "$enable_pgo_build" != "no"; then | |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7898 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7899 | old_CFLAGS="$CFLAGS" | |
7900 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7901 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7902 | ||
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_GEN_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_GEN_CFLAGS"; then | |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7916 | $as_echo "yes" >&6; } | |
7917 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7918 | else | |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7920 | $as_echo "no" >&6; } | |
7921 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7922 | fi | |
7923 | ||
7924 | if test "$enable_pgo_build" = "lto"; then | |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7926 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7927 | old_CFLAGS="$CFLAGS" | |
7928 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7929 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7931 | /* end confdefs.h. */ | |
7932 | int foo; | |
7933 | _ACEOF | |
7934 | if ac_fn_c_try_compile "$LINENO"; then : | |
7935 | ||
7936 | else | |
7937 | PGO_BUILD_LTO_CFLAGS= | |
7938 | fi | |
7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7940 | CFLAGS="$old_CFLAGS" | |
7941 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7943 | $as_echo "yes" >&6; } | |
7944 | else | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7946 | $as_echo "no" >&6; } | |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7948 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7949 | fi | |
7950 | fi | |
7951 | fi | |
7952 | ||
7953 | ||
7954 | ||
7955 | ||
592c90ff KG |
7956 | # Used for setting $lt_cv_objdir |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7958 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 7959 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
7960 | $as_echo_n "(cached) " >&6 |
7961 | else | |
7962 | rm -f .libs 2>/dev/null | |
7963 | mkdir .libs 2>/dev/null | |
7964 | if test -d .libs; then | |
7965 | lt_cv_objdir=.libs | |
7966 | else | |
7967 | # MS-DOS does not allow filenames that begin with a dot. | |
7968 | lt_cv_objdir=_libs | |
7969 | fi | |
7970 | rmdir .libs 2>/dev/null | |
7971 | fi | |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7973 | $as_echo "$lt_cv_objdir" >&6; } | |
7974 | objdir=$lt_cv_objdir | |
7975 | ||
7976 | ||
7977 | ||
7978 | ||
7979 | ||
7980 | cat >>confdefs.h <<_ACEOF | |
7981 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7982 | _ACEOF | |
7983 | ||
7984 | ||
7985 | ||
acd26225 | 7986 | # Check for GMP, MPFR and MPC |
91e0d220 AP |
7987 | require_gmp=no |
7988 | require_mpc=no | |
7989 | if test -d ${srcdir}/gcc ; then | |
7990 | require_gmp=yes | |
7991 | require_mpc=yes | |
7992 | fi | |
7993 | if test -d ${srcdir}/gdb ; then | |
5977d14a CC |
7994 | if test "x$enable_gdb" != xno; then |
7995 | require_gmp=yes | |
7996 | fi | |
91e0d220 AP |
7997 | fi |
7998 | ||
7999 | gmplibs="-lmpfr -lgmp" | |
8000 | if test x"$require_mpc" = "xyes" ; then | |
8001 | gmplibs="-lmpc $gmplibs" | |
8002 | fi | |
6de9cd9a | 8003 | gmpinc= |
e69bf64b | 8004 | have_gmp=no |
acd26225 KG |
8005 | |
8006 | # Specify a location for mpc | |
8007 | # check for this first so it ends up on the link line before mpfr. | |
8008 | ||
5213506e RW |
8009 | # Check whether --with-mpc was given. |
8010 | if test "${with_mpc+set}" = set; then : | |
8011 | withval=$with_mpc; | |
8012 | fi | |
acd26225 | 8013 | |
acd26225 | 8014 | |
9965e3cd | 8015 | # Check whether --with-mpc-include was given. |
5213506e RW |
8016 | if test "${with_mpc_include+set}" = set; then : |
8017 | withval=$with_mpc_include; | |
8018 | fi | |
acd26225 | 8019 | |
acd26225 | 8020 | |
9965e3cd | 8021 | # Check whether --with-mpc-lib was given. |
5213506e RW |
8022 | if test "${with_mpc_lib+set}" = set; then : |
8023 | withval=$with_mpc_lib; | |
8024 | fi | |
acd26225 | 8025 | |
acd26225 KG |
8026 | |
8027 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
8028 | gmplibs="-L$with_mpc/lib $gmplibs" |
8029 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
8030 | fi |
8031 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 8032 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
8033 | fi |
8034 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 8035 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
8036 | fi |
8037 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 8038 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 8039 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
8040 | # Do not test the mpc version. Assume that it is sufficient, since |
8041 | # it is in the source tree, and the library has not been built yet | |
8042 | # but it would be included on the link line in the version check below | |
8043 | # hence making the test fail. | |
3a5729ea | 8044 | have_gmp=yes |
acd26225 | 8045 | fi |
e69bf64b | 8046 | |
bebf829d PB |
8047 | # Specify a location for mpfr |
8048 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 8049 | |
5213506e RW |
8050 | # Check whether --with-mpfr was given. |
8051 | if test "${with_mpfr+set}" = set; then : | |
8052 | withval=$with_mpfr; | |
8053 | fi | |
1c710c3c | 8054 | |
bebf829d | 8055 | |
9965e3cd | 8056 | # Check whether --with-mpfr-include was given. |
5213506e RW |
8057 | if test "${with_mpfr_include+set}" = set; then : |
8058 | withval=$with_mpfr_include; | |
8059 | fi | |
1c710c3c | 8060 | |
8a877c9c | 8061 | |
9965e3cd | 8062 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
8063 | if test "${with_mpfr_lib+set}" = set; then : |
8064 | withval=$with_mpfr_lib; | |
8065 | fi | |
8a877c9c | 8066 | |
bebf829d PB |
8067 | |
8068 | if test "x$with_mpfr" != x; then | |
8069 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 8070 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 8071 | fi |
8a877c9c | 8072 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 8073 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
8074 | fi |
8075 | if test "x$with_mpfr_lib" != x; then | |
8076 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8077 | fi | |
e69bf64b | 8078 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
8079 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
8080 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 8081 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 8082 | fi |
00f35794 BE |
8083 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8084 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8085 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
8086 | # Do not test the mpfr version. Assume that it is sufficient, since |
8087 | # it is in the source tree, and the library has not been built yet | |
8088 | # but it would be included on the link line in the version check below | |
8089 | # hence making the test fail. | |
8090 | have_gmp=yes | |
8091 | fi | |
bebf829d | 8092 | |
6de9cd9a | 8093 | # Specify a location for gmp |
1c710c3c | 8094 | |
5213506e RW |
8095 | # Check whether --with-gmp was given. |
8096 | if test "${with_gmp+set}" = set; then : | |
8097 | withval=$with_gmp; | |
8098 | fi | |
1c710c3c | 8099 | |
6de9cd9a | 8100 | |
9965e3cd | 8101 | # Check whether --with-gmp-include was given. |
5213506e RW |
8102 | if test "${with_gmp_include+set}" = set; then : |
8103 | withval=$with_gmp_include; | |
8104 | fi | |
1c710c3c | 8105 | |
8a877c9c | 8106 | |
9965e3cd | 8107 | # Check whether --with-gmp-lib was given. |
5213506e RW |
8108 | if test "${with_gmp_lib+set}" = set; then : |
8109 | withval=$with_gmp_lib; | |
8110 | fi | |
8a877c9c KG |
8111 | |
8112 | ||
6de9cd9a | 8113 | |
bebf829d PB |
8114 | if test "x$with_gmp" != x; then |
8115 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8116 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 8117 | fi |
8a877c9c KG |
8118 | if test "x$with_gmp_include" != x; then |
8119 | gmpinc="-I$with_gmp_include $gmpinc" | |
8120 | fi | |
8121 | if test "x$with_gmp_lib" != x; then | |
8122 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8123 | fi | |
e69bf64b | 8124 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 8125 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 8126 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 8127 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 8128 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 8129 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
8130 | # Do not test the gmp version. Assume that it is sufficient, since |
8131 | # it is in the source tree, and the library has not been built yet | |
8132 | # but it would be included on the link line in the version check below | |
8133 | # hence making the test fail. | |
8134 | have_gmp=yes | |
8135 | fi | |
6de9cd9a | 8136 | |
91e0d220 | 8137 | if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then |
e69bf64b PB |
8138 | have_gmp=yes |
8139 | saved_CFLAGS="$CFLAGS" | |
8140 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
8141 | # Check for the recommended and required versions of GMP. |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8143 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
4a5e71f2 | 8144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
362c6d2f KG |
8145 | /* end confdefs.h. */ |
8146 | #include "gmp.h" | |
8147 | int | |
8148 | main () | |
8149 | { | |
8150 | ||
8151 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8152 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 8153 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
8154 | choke me |
8155 | #endif | |
8156 | ||
8157 | ; | |
8158 | return 0; | |
8159 | } | |
8160 | _ACEOF | |
8161 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 8162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8163 | /* end confdefs.h. */ |
362c6d2f | 8164 | #include <gmp.h> |
1c710c3c DJ |
8165 | int |
8166 | main () | |
8167 | { | |
6de9cd9a | 8168 | |
362c6d2f KG |
8169 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8170 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8171 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
8172 | choke me |
8173 | #endif | |
1c710c3c DJ |
8174 | |
8175 | ; | |
8176 | return 0; | |
8177 | } | |
8178 | _ACEOF | |
5213506e RW |
8179 | if ac_fn_c_try_compile "$LINENO"; then : |
8180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8181 | $as_echo "yes" >&6; } | |
362c6d2f KG |
8182 | else |
8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8184 | $as_echo "buggy but acceptable" >&6; } | |
8185 | fi | |
8186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 8187 | else |
5213506e RW |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8189 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8190 | fi |
5213506e | 8191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 8192 | |
acd26225 | 8193 | # If we have GMP, check the MPFR version. |
e69bf64b | 8194 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
8195 | # Check for the recommended and required versions of MPFR. |
8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8197 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 8198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 8199 | /* end confdefs.h. */ |
70ec446f | 8200 | #include <gmp.h> |
e69bf64b | 8201 | #include <mpfr.h> |
1c710c3c DJ |
8202 | int |
8203 | main () | |
8204 | { | |
e48d66a9 | 8205 | |
8be34204 | 8206 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
8207 | choke me |
8208 | #endif | |
1c710c3c DJ |
8209 | |
8210 | ; | |
8211 | return 0; | |
8212 | } | |
8213 | _ACEOF | |
5213506e RW |
8214 | if ac_fn_c_try_compile "$LINENO"; then : |
8215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 8216 | /* end confdefs.h. */ |
a3993f33 | 8217 | #include <gmp.h> |
e69bf64b | 8218 | #include <mpfr.h> |
1c710c3c DJ |
8219 | int |
8220 | main () | |
8221 | { | |
a3993f33 | 8222 | |
8be34204 | 8223 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
8224 | choke me |
8225 | #endif | |
acd26225 KG |
8226 | |
8227 | ; | |
8228 | return 0; | |
8229 | } | |
8230 | _ACEOF | |
5213506e RW |
8231 | if ac_fn_c_try_compile "$LINENO"; then : |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8233 | $as_echo "yes" >&6; } | |
acd26225 | 8234 | else |
5213506e RW |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8236 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 8237 | fi |
5213506e | 8238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 8239 | else |
5213506e RW |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8241 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 8242 | fi |
5213506e | 8243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8244 | fi |
8245 | ||
8246 | # Check for the MPC header version. | |
91e0d220 | 8247 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then |
362c6d2f | 8248 | # Check for the recommended and required versions of MPC. |
5213506e RW |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8250 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
8252 | /* end confdefs.h. */ |
8253 | #include <mpc.h> | |
8254 | int | |
8255 | main () | |
8256 | { | |
8257 | ||
362c6d2f KG |
8258 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8259 | choke me | |
8260 | #endif | |
8261 | ||
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | if ac_fn_c_try_compile "$LINENO"; then : | |
8267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8268 | /* end confdefs.h. */ | |
8269 | #include <mpc.h> | |
8270 | int | |
8271 | main () | |
8272 | { | |
8273 | ||
8274 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
8275 | choke me |
8276 | #endif | |
8277 | ||
8278 | ; | |
8279 | return 0; | |
8280 | } | |
8281 | _ACEOF | |
5213506e RW |
8282 | if ac_fn_c_try_compile "$LINENO"; then : |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 8284 | $as_echo "yes" >&6; } |
362c6d2f KG |
8285 | else |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8287 | $as_echo "buggy but acceptable" >&6; } | |
8288 | fi | |
8289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 8290 | else |
5213506e | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 8292 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 8293 | fi |
5213506e | 8294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
8295 | fi |
8296 | ||
8297 | # Now check the MPFR library. | |
8298 | if test x"$have_gmp" = xyes; then | |
8299 | saved_LIBS="$LIBS" | |
8300 | LIBS="$LIBS $gmplibs" | |
91e0d220 AP |
8301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5 |
8302 | $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; } | |
5213506e | 8303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 8304 | /* end confdefs.h. */ |
91e0d220 | 8305 | #include <mpfr.h> |
acd26225 KG |
8306 | int |
8307 | main () | |
8308 | { | |
8309 | ||
8310 | mpfr_t n; | |
8311 | mpfr_t x; | |
8312 | int t; | |
8313 | mpfr_init (n); | |
8314 | mpfr_init (x); | |
90ca6847 TB |
8315 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8316 | mpfr_erfc (n, x, MPFR_RNDN); | |
8317 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
8318 | mpfr_clear(n); |
8319 | mpfr_clear(x); | |
91e0d220 AP |
8320 | |
8321 | ; | |
8322 | return 0; | |
8323 | } | |
8324 | _ACEOF | |
8325 | if ac_fn_c_try_link "$LINENO"; then : | |
8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8327 | $as_echo "yes" >&6; } | |
8328 | else | |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8330 | $as_echo "no" >&6; }; have_gmp=no | |
8331 | fi | |
8332 | rm -f core conftest.err conftest.$ac_objext \ | |
8333 | conftest$ac_exeext conftest.$ac_ext | |
8334 | LIBS="$saved_LIBS" | |
8335 | fi | |
8336 | ||
8337 | # Now check the MPC library | |
8338 | if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then | |
8339 | saved_LIBS="$LIBS" | |
8340 | LIBS="$LIBS $gmplibs" | |
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5 | |
8342 | $as_echo_n "checking for the correct version of the mpc libraries... " >&6; } | |
8343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8344 | /* end confdefs.h. */ | |
8345 | #include <mpc.h> | |
8346 | int | |
8347 | main () | |
8348 | { | |
8349 | ||
8350 | mpc_t c; | |
3a5729ea KG |
8351 | mpc_init2 (c, 53); |
8352 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8353 | mpc_cosh (c, c, MPC_RNDNN); | |
8354 | mpc_pow (c, c, c, MPC_RNDNN); | |
8355 | mpc_acosh (c, c, MPC_RNDNN); | |
8356 | mpc_clear (c); | |
1c710c3c DJ |
8357 | |
8358 | ; | |
8359 | return 0; | |
8360 | } | |
8361 | _ACEOF | |
5213506e RW |
8362 | if ac_fn_c_try_link "$LINENO"; then : |
8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8364 | $as_echo "yes" >&6; } | |
1c710c3c | 8365 | else |
5213506e RW |
8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8367 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 8368 | fi |
5213506e RW |
8369 | rm -f core conftest.err conftest.$ac_objext \ |
8370 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
8371 | LIBS="$saved_LIBS" |
8372 | fi | |
8373 | ||
e69bf64b | 8374 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 8375 | |
362c6d2f KG |
8376 | # The library versions listed in the error message below should match |
8377 | # the HARD-minimums enforced above. | |
e69bf64b | 8378 | if test x$have_gmp != xyes; then |
91e0d220 AP |
8379 | if test -d ${srcdir}/gcc ; then |
8380 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. | |
3a5729ea KG |
8381 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8382 | their locations. Source code for these libraries can be found at | |
8383 | their respective hosting sites as well as at | |
aeebd94c | 8384 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
45ab87d4 | 8385 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
3a5729ea KG |
8386 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, |
8387 | make sure that you have installed both the libraries and the header | |
8388 | files. They may be located in separate packages." "$LINENO" 5 | |
91e0d220 AP |
8389 | else |
8390 | as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+. | |
8391 | Try the --with-gmp and/or --with-mpfr options to specify | |
8392 | their locations. If you obtained GMP and/or MPFR from a vendor | |
8393 | distribution package, make sure that you have installed both the libraries | |
8394 | and the header files. They may be located in separate packages." "$LINENO" 5 | |
8395 | fi | |
e69bf64b | 8396 | fi |
70ec446f KG |
8397 | fi |
8398 | ||
acd26225 KG |
8399 | # Flags needed for both GMP, MPFR and/or MPC. |
8400 | ||
8401 | ||
6de9cd9a DN |
8402 | |
8403 | ||
8404 | ||
9e3eba15 | 8405 | |
0ff2d841 | 8406 | |
0b21f5d3 | 8407 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 8408 | |
0b21f5d3 EB |
8409 | # Check whether --with-stage1-libs was given. |
8410 | if test "${with_stage1_libs+set}" = set; then : | |
8411 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8412 | stage1_libs= | |
00020c16 | 8413 | else |
0b21f5d3 | 8414 | stage1_libs=$withval |
00020c16 ILT |
8415 | fi |
8416 | else | |
5dc85f7e | 8417 | stage1_libs= |
5213506e RW |
8418 | fi |
8419 | ||
00020c16 ILT |
8420 | |
8421 | ||
aac9103b TT |
8422 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8423 | # default is yes if gcc is being built; no otherwise. The reason for | |
8424 | # this default is that gdb is sometimes linked against GNU Source | |
8425 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8426 | # this case, -static-libstdc++ will cause crashes. | |
8427 | ||
8428 | # Check whether --with-static-standard-libraries was given. | |
8429 | if test "${with_static_standard_libraries+set}" = set; then : | |
8430 | withval=$with_static_standard_libraries; | |
8431 | else | |
8432 | with_static_standard_libraries=auto | |
8433 | fi | |
8434 | ||
8435 | if test "$with_static_standard_libraries" = auto; then | |
8436 | with_static_standard_libraries=$have_compiler | |
8437 | fi | |
8438 | ||
0b21f5d3 | 8439 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 8440 | |
0b21f5d3 EB |
8441 | # Check whether --with-stage1-ldflags was given. |
8442 | if test "${with_stage1_ldflags+set}" = set; then : | |
8443 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8444 | stage1_ldflags= | |
00020c16 | 8445 | else |
0b21f5d3 | 8446 | stage1_ldflags=$withval |
00020c16 ILT |
8447 | fi |
8448 | else | |
0b21f5d3 EB |
8449 | stage1_ldflags= |
8450 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8451 | # if supported. But if the user explicitly specified the libraries to use, | |
8452 | # trust that they are doing what they want. | |
aac9103b TT |
8453 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8454 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
8455 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8456 | fi | |
5213506e RW |
8457 | fi |
8458 | ||
00020c16 ILT |
8459 | |
8460 | ||
5dc85f7e | 8461 | # Libraries to use for stage2 and later builds. |
00020c16 | 8462 | |
5213506e RW |
8463 | # Check whether --with-boot-libs was given. |
8464 | if test "${with_boot_libs+set}" = set; then : | |
8465 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
8466 | poststage1_libs= |
8467 | else | |
8468 | poststage1_libs=$withval | |
8469 | fi | |
8470 | else | |
5dc85f7e | 8471 | poststage1_libs= |
5213506e RW |
8472 | fi |
8473 | ||
00020c16 ILT |
8474 | |
8475 | ||
ed2eaa9f ILT |
8476 | # Linker flags to use for stage2 and later builds. |
8477 | ||
8478 | # Check whether --with-boot-ldflags was given. | |
8479 | if test "${with_boot_ldflags+set}" = set; then : | |
8480 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8481 | poststage1_ldflags= | |
8482 | else | |
8483 | poststage1_ldflags=$withval | |
8484 | fi | |
8485 | else | |
8486 | poststage1_ldflags= | |
bec93d73 ILT |
8487 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8488 | # statically. But if the user explicitly specified the libraries to | |
8489 | # use, trust that they are doing what they want. | |
8490 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
8491 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8492 | fi | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | ||
e357a5e0 | 8497 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 8498 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
8499 | |
8500 | ||
33ad93b9 RG |
8501 | # Check whether --with-isl was given. |
8502 | if test "${with_isl+set}" = set; then : | |
8503 | withval=$with_isl; | |
5213506e | 8504 | fi |
f8bf9252 | 8505 | |
f8bf9252 | 8506 | |
eae1a5d4 | 8507 | # Treat --without-isl as a request to disable |
625afa23 | 8508 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 8509 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 8510 | # Check for isl |
625afa23 RG |
8511 | |
8512 | ||
33ad93b9 RG |
8513 | # Check whether --with-isl-include was given. |
8514 | if test "${with_isl_include+set}" = set; then : | |
8515 | withval=$with_isl_include; | |
5213506e RW |
8516 | fi |
8517 | ||
f8bf9252 | 8518 | |
33ad93b9 RG |
8519 | # Check whether --with-isl-lib was given. |
8520 | if test "${with_isl_lib+set}" = set; then : | |
8521 | withval=$with_isl_lib; | |
5213506e | 8522 | fi |
f8bf9252 | 8523 | |
f8bf9252 | 8524 | |
33ad93b9 RG |
8525 | # Check whether --enable-isl-version-check was given. |
8526 | if test "${enable_isl_version_check+set}" = set; then : | |
8527 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8528 | else | |
8529 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
8530 | fi |
8531 | ||
8532 | ||
33ad93b9 RG |
8533 | # Initialize isllibs and islinc. |
8534 | case $with_isl in | |
8535 | no) | |
8536 | isllibs= | |
8537 | islinc= | |
8538 | ;; | |
8539 | "" | yes) | |
8540 | ;; | |
8541 | *) | |
8542 | isllibs="-L$with_isl/lib" | |
8543 | islinc="-I$with_isl/include" | |
8544 | ;; | |
8545 | esac | |
8546 | if test "x${with_isl_include}" != x ; then | |
8547 | islinc="-I$with_isl_include" | |
8548 | fi | |
8549 | if test "x${with_isl_lib}" != x; then | |
8550 | isllibs="-L$with_isl_lib" | |
8551 | fi | |
8552 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8553 | && test -d ${srcdir}/isl; then | |
8554 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8555 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8556 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8558 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 8559 | fi |
7d32a440 | 8560 | |
eae1a5d4 RG |
8561 | isllibs="${isllibs} -lisl" |
8562 | ||
7d32a440 | 8563 | |
7d32a440 | 8564 | |
9847828b RB |
8565 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
8566 | _isl_saved_CFLAGS=$CFLAGS | |
8567 | _isl_saved_LDFLAGS=$LDFLAGS | |
8568 | _isl_saved_LIBS=$LIBS | |
8569 | ||
8570 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
8571 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8572 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 8573 | |
f877b3ad RB |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8575 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 8576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 8577 | /* end confdefs.h. */ |
f877b3ad | 8578 | #include <isl/schedule.h> |
622dbadf BC |
8579 | int |
8580 | main () | |
8581 | { | |
f877b3ad | 8582 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
8583 | ; |
8584 | return 0; | |
8585 | } | |
8586 | _ACEOF | |
8587 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 8588 | gcc_cv_isl=yes |
622dbadf BC |
8589 | else |
8590 | gcc_cv_isl=no | |
8591 | fi | |
8592 | rm -f core conftest.err conftest.$ac_objext \ | |
8593 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8595 | $as_echo "$gcc_cv_isl" >&6; } | |
8596 | ||
560d18d3 | 8597 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8599 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
8600 | fi |
8601 | ||
9847828b RB |
8602 | CFLAGS=$_isl_saved_CFLAGS |
8603 | LDFLAGS=$_isl_saved_LDFLAGS | |
8604 | LIBS=$_isl_saved_LIBS | |
8605 | fi | |
8606 | ||
8607 | ||
f8bf9252 | 8608 | |
f8bf9252 | 8609 | |
33ad93b9 RG |
8610 | |
8611 | ||
33ad93b9 RG |
8612 | if test "x${with_isl}" = xno; then |
8613 | graphite_requested=no | |
8614 | elif test "x${with_isl}" != x \ | |
8615 | || test "x${with_isl_include}" != x \ | |
8616 | || test "x${with_isl_lib}" != x ; then | |
8617 | graphite_requested=yes | |
8618 | else | |
8619 | graphite_requested=no | |
7d32a440 | 8620 | fi |
d789184e | 8621 | |
d789184e SP |
8622 | |
8623 | ||
33ad93b9 RG |
8624 | if test "${gcc_cv_isl}" = no ; then |
8625 | isllibs= | |
8626 | islinc= | |
8627 | fi | |
8628 | ||
8629 | if test "${graphite_requested}" = yes \ | |
8630 | && test "x${isllibs}" = x \ | |
8631 | && test "x${islinc}" = x ; then | |
f8bf9252 | 8632 | |
22e05272 | 8633 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 8634 | fi |
f8bf9252 | 8635 | |
d32ef397 | 8636 | |
d32ef397 AS |
8637 | fi |
8638 | ||
e357a5e0 | 8639 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 8640 | if test "x$with_isl" = xno || |
625afa23 | 8641 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 8642 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 8643 | islinc= |
32d024bf RG |
8644 | fi |
8645 | ||
625afa23 RG |
8646 | |
8647 | ||
8648 | ||
d7f09764 DN |
8649 | # Check for LTO support. |
8650 | # Check whether --enable-lto was given. | |
8651 | if test "${enable_lto+set}" = set; then : | |
8652 | enableval=$enable_lto; enable_lto=$enableval | |
8653 | else | |
8654 | enable_lto=yes; default_enable_lto=yes | |
8655 | fi | |
8656 | ||
8657 | ||
7413962d | 8658 | |
9a02962b DK |
8659 | |
8660 | ||
8661 | target_elf=no | |
8662 | case $target in | |
8663 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 8664 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 8665 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 8666 | nvptx-*-none) |
9a02962b DK |
8667 | target_elf=no |
8668 | ;; | |
8669 | *) | |
8670 | target_elf=yes | |
8671 | ;; | |
8672 | esac | |
8673 | ||
8674 | if test $target_elf = yes; then : | |
48215350 DK |
8675 | # ELF platforms build the lto-plugin always. |
8676 | build_lto_plugin=yes | |
9a02962b | 8677 | |
9a02962b DK |
8678 | else |
8679 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 8680 | case $target in |
deeba76a | 8681 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 8682 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
8683 | *) enable_lto=no ;; |
8684 | esac | |
9a02962b | 8685 | else |
db50fe7d IS |
8686 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8687 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
8688 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8689 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8690 | # -flto it won't be needed until after installation anyway. | |
8691 | case $target in | |
9e530bcd | 8692 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 8693 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 8694 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
8695 | fi |
8696 | ;; | |
8697 | esac | |
8698 | fi | |
1cd0b716 | 8699 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 8700 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 8701 | case $target in |
48215350 | 8702 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
8703 | *) ;; |
8704 | esac | |
48215350 | 8705 | |
9a02962b DK |
8706 | fi |
8707 | ||
d7f09764 | 8708 | |
45b3824d TS |
8709 | # Check whether --enable-linker-plugin-configure-flags was given. |
8710 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8711 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8712 | else | |
8713 | extra_linker_plugin_configure_flags= | |
8714 | fi | |
8715 | ||
8716 | ||
8717 | # Check whether --enable-linker-plugin-flags was given. | |
8718 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8719 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8720 | else | |
8721 | extra_linker_plugin_flags= | |
8722 | fi | |
8723 | ||
8724 | ||
8725 | ||
c1fecabe IS |
8726 | # Handle --enable-host-pie |
8727 | # If host PIE executables are the default (or must be forced on) for some host, | |
8728 | # we must pass that configuration to the gcc directory. | |
8729 | gcc_host_pie= | |
b6cb10af MP |
8730 | # Check whether --enable-host-pie was given. |
8731 | if test "${enable_host_pie+set}" = set; then : | |
8732 | enableval=$enable_host_pie; host_pie=$enableval | |
8733 | case $host in | |
c1fecabe | 8734 | *-*-darwin2*) |
b6cb10af | 8735 | if test x$host_pie != xyes ; then |
c1fecabe IS |
8736 | # for Darwin20+ this is required. |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5 | |
8738 | $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;} | |
b6cb10af | 8739 | host_pie=yes |
c1fecabe | 8740 | gcc_host_pie=--enable-host-pie |
b6cb10af MP |
8741 | fi ;; |
8742 | *) ;; | |
8743 | esac | |
8744 | else | |
8745 | case $host in | |
c1fecabe IS |
8746 | *-*-darwin2*) |
8747 | # Default to PIE (mandatory for aarch64). | |
8748 | host_pie=yes | |
8749 | gcc_host_pie=--enable-host-pie | |
8750 | ;; | |
b6cb10af MP |
8751 | *) host_pie=no ;; |
8752 | esac | |
8753 | fi | |
8754 | ||
8755 | ||
8756 | ||
8757 | ||
c1fecabe | 8758 | |
cdfee50a NS |
8759 | # Enable --enable-host-shared. |
8760 | # Checked early to determine whether jit is an 'all' language | |
8761 | # Check whether --enable-host-shared was given. | |
8762 | if test "${enable_host_shared+set}" = set; then : | |
8763 | enableval=$enable_host_shared; host_shared=$enableval | |
1edfc8f2 | 8764 | case $host in |
a1d2b162 IS |
8765 | x86_64-*-darwin* | aarch64-*-darwin*) |
8766 | if test x$host_shared != xyes ; then | |
8767 | # PIC is the default, and actually cannot be switched off. | |
c1fecabe IS |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5 |
8769 | $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;} | |
a1d2b162 IS |
8770 | host_shared=yes |
8771 | fi ;; | |
b6cb10af | 8772 | *-*-darwin*) |
c1fecabe IS |
8773 | if test x$host_pie = xyes -a x$host_shared != xyes ; then |
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5 | |
8775 | $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;} | |
b6cb10af MP |
8776 | host_shared=yes |
8777 | fi ;; | |
a1d2b162 IS |
8778 | *) ;; |
8779 | esac | |
cdfee50a | 8780 | else |
1edfc8f2 | 8781 | case $host in |
c1fecabe | 8782 | # 64B x86_64 and Aarch64 Darwin default to PIC. |
a1d2b162 | 8783 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; |
c1fecabe IS |
8784 | # 32B and powerpc64 Darwin must use PIC to link PIE exes. |
8785 | *-*-darwin*) host_shared=$host_pie ;; | |
b6cb10af | 8786 | *) host_shared=no;; |
a1d2b162 | 8787 | esac |
cdfee50a NS |
8788 | fi |
8789 | ||
8790 | ||
f8bf9252 | 8791 | |
05048fc2 | 8792 | |
b6cb10af | 8793 | if test x$host_shared = xyes; then |
c1fecabe IS |
8794 | case $host in |
8795 | *-*-darwin*) | |
8796 | # Since host shared is the default for 64b Darwin, and also enabled for | |
8797 | # host_pie, ensure that we present the PIE flag when host_pie is active. | |
8798 | if test x$host_pie = xyes; then | |
8799 | PICFLAG=-fPIE | |
8800 | fi | |
8801 | ;; | |
8802 | *) | |
8803 | PICFLAG=-fPIC | |
8804 | ;; | |
8805 | esac | |
b6cb10af MP |
8806 | elif test x$host_pie = xyes; then |
8807 | PICFLAG=-fPIE | |
8808 | else | |
8809 | PICFLAG= | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | ||
05048fc2 IS |
8814 | # If we are building PIC/PIE host executables, and we are building dependent |
8815 | # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC | |
8816 | # code. | |
8817 | host_libs_picflag= | |
b6cb10af | 8818 | if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then |
05048fc2 IS |
8819 | host_libs_picflag='--with-pic' |
8820 | fi | |
8821 | ||
8822 | ||
0823efed | 8823 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 8824 | stage1_languages=,c, |
2805b53a | 8825 | |
00020c16 | 8826 | # Target libraries that we bootstrap. |
ad1e5170 | 8827 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 8828 | |
55ffb5ed NN |
8829 | # Figure out what language subdirectories are present. |
8830 | # Look if the user specified --enable-languages="..."; if not, use | |
8831 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8832 | # go away some day. | |
8833 | # NB: embedded tabs in this IF block -- do not untabify | |
8834 | if test -d ${srcdir}/gcc; then | |
8835 | if test x"${enable_languages+set}" != xset; then | |
8836 | if test x"${LANGUAGES+set}" = xset; then | |
8837 | enable_languages="${LANGUAGES}" | |
6b1786aa | 8838 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 8839 | else |
cdfee50a | 8840 | enable_languages=default |
55ffb5ed NN |
8841 | fi |
8842 | else | |
8843 | if test x"${enable_languages}" = x || | |
8844 | test x"${enable_languages}" = xyes; | |
8845 | then | |
6b1786aa | 8846 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
8847 | exit 1 |
8848 | fi | |
8849 | fi | |
8850 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8851 | ||
7f26dfa3 FXC |
8852 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8853 | # and make the substitution. | |
8854 | case ,${enable_languages}, in | |
8855 | *,f95,*) | |
6b1786aa | 8856 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
8857 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8858 | ;; | |
8859 | esac | |
8860 | ||
0823efed DN |
8861 | # If bootstrapping, C++ must be enabled. |
8862 | case ",$enable_languages,:$enable_bootstrap" in | |
8863 | *,c++,*:*) ;; | |
8864 | *:yes) | |
ff3ac0f4 ILT |
8865 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8866 | enable_languages="${enable_languages},c++" | |
8867 | else | |
22e05272 | 8868 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
8869 | fi |
8870 | ;; | |
8871 | esac | |
8872 | ||
55ffb5ed NN |
8873 | # First scan to see if an enabled language requires some other language. |
8874 | # We assume that a given config-lang.in will list all the language | |
8875 | # front ends it requires, even if some are required indirectly. | |
8876 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8877 | case ${lang_frag} in | |
8878 | ..) ;; | |
8879 | # The odd quoting in the next line works around | |
8880 | # an apparent bug in bash 1.12 on linux. | |
8881 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8882 | *) | |
69ecd18f ILT |
8883 | # From the config-lang.in, get $language, $lang_requires, and |
8884 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
8885 | language= |
8886 | lang_requires= | |
69ecd18f | 8887 | lang_requires_boot_languages= |
d4360477 NS |
8888 | # set srcdir during sourcing lang_frag to the gcc dir. |
8889 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8890 | # polutes this shell | |
8891 | saved_srcdir=${srcdir} | |
8892 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8893 | srcdir=${saved_srcdir} | |
69ecd18f | 8894 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
8895 | case ,${enable_languages}, in |
8896 | *,$other,*) ;; | |
cdfee50a | 8897 | *,default,*) ;; |
55ffb5ed NN |
8898 | *,all,*) ;; |
8899 | *,$language,*) | |
8900 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8901 | enable_languages="${enable_languages},${other}" | |
8902 | ;; | |
8903 | esac | |
8904 | done | |
69ecd18f ILT |
8905 | for other in ${lang_requires_boot_languages} ; do |
8906 | if test "$other" != "c"; then | |
8907 | case ,${enable_stage1_languages}, in | |
8908 | *,$other,*) ;; | |
cdfee50a | 8909 | *,default,*) ;; |
69ecd18f ILT |
8910 | *,all,*) ;; |
8911 | *) | |
8912 | case ,${enable_languages}, in | |
8913 | *,$language,*) | |
8914 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8915 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8916 | ;; | |
8917 | esac | |
8918 | ;; | |
8919 | esac | |
8920 | fi | |
8921 | done | |
55ffb5ed NN |
8922 | ;; |
8923 | esac | |
8924 | done | |
8925 | ||
e1888513 | 8926 | new_enable_languages=,c, |
d7f09764 DN |
8927 | |
8928 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 8929 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
8930 | case ,${enable_languages}, in |
8931 | *,lto,*) ;; | |
8932 | *) enable_languages="${enable_languages},lto" ;; | |
8933 | esac | |
1cd0b716 | 8934 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 8935 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
8936 | fi |
8937 | fi | |
8938 | ||
426c1eb0 TS |
8939 | # If we're building an offloading compiler, add the LTO front end. |
8940 | if test x"$enable_as_accelerator_for" != x ; then | |
8941 | case ,${enable_languages}, in | |
8942 | *,lto,*) ;; | |
8943 | *) enable_languages="${enable_languages},lto" ;; | |
8944 | esac | |
8945 | fi | |
8946 | ||
cdfee50a | 8947 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 8948 | potential_languages=,c, |
55ffb5ed | 8949 | |
4da3b0f8 ILT |
8950 | enabled_target_libs= |
8951 | disabled_target_libs= | |
8952 | ||
55ffb5ed NN |
8953 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8954 | case ${lang_frag} in | |
8955 | ..) ;; | |
8956 | # The odd quoting in the next line works around | |
8957 | # an apparent bug in bash 1.12 on linux. | |
8958 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8959 | *) | |
1c710c3c | 8960 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 8961 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
8962 | language= |
8963 | target_libs= | |
8964 | lang_dirs= | |
1546bb64 | 8965 | subdir_requires= |
e1888513 PB |
8966 | boot_language=no |
8967 | build_by_default=yes | |
d4360477 NS |
8968 | # set srcdir during sourcing. See above about save & restore |
8969 | saved_srcdir=${srcdir} | |
8970 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8971 | srcdir=${saved_srcdir} | |
e1888513 PB |
8972 | if test x${language} = x; then |
8973 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8974 | exit 1 | |
8975 | fi | |
8976 | ||
78767fd9 | 8977 | if test "$language" = "c++"; then |
0823efed | 8978 | boot_language=yes |
00020c16 ILT |
8979 | fi |
8980 | ||
178f875a | 8981 | add_this_lang=no |
cdfee50a NS |
8982 | # C is always enabled, so no need to add it again |
8983 | if test "$language" != "c"; then | |
8984 | case ,${enable_languages}, in | |
8985 | *,${language},*) | |
8986 | # Language was explicitly selected; include it | |
d4a10d0a | 8987 | add_this_lang=yes |
cdfee50a NS |
8988 | ;; |
8989 | *,all,*) | |
8990 | # All languages are enabled | |
8991 | add_this_lang=all | |
8992 | ;; | |
8993 | *,default,*) | |
8994 | # 'default' was selected, select it if it is a default language | |
178f875a | 8995 | add_this_lang=${build_by_default} |
cdfee50a NS |
8996 | ;; |
8997 | esac | |
8998 | fi | |
6de9cd9a | 8999 | |
1546bb64 | 9000 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 9001 | for i in $subdir_requires; do |
b6348cb3 | 9002 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
9003 | case ${add_this_lang} in |
9004 | yes) | |
1546bb64 | 9005 | # Specifically requested language; tell them. |
22e05272 | 9006 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 9007 | ;; |
cdfee50a NS |
9008 | all) |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
9010 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
9011 | add_this_lang=unsupported | |
9012 | ;; | |
1546bb64 PB |
9013 | *) |
9014 | # Silently disable. | |
e1888513 | 9015 | add_this_lang=unsupported |
1546bb64 PB |
9016 | ;; |
9017 | esac | |
9018 | done | |
9019 | ||
e1888513 | 9020 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
9021 | case ${add_this_lang}:${language}:${have_gnat} in |
9022 | yes:ada:no) | |
e1888513 | 9023 | # Specifically requested language; tell them. |
22e05272 | 9024 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 9025 | ;; |
cdfee50a NS |
9026 | all:ada:no) |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
9028 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
9029 | add_this_lang=unsupported | |
9030 | ;; | |
e1888513 PB |
9031 | *:ada:no) |
9032 | # Silently disable. | |
9033 | add_this_lang=unsupported | |
9034 | ;; | |
9035 | esac | |
9036 | ||
5fee5ec3 IB |
9037 | # Disable D if no preexisting GDC is available. |
9038 | case ${add_this_lang}:${language}:${have_gdc} in | |
9039 | yes:d:no) | |
9040 | # Specifically requested language; tell them. | |
9041 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
9042 | ;; | |
9043 | all:d:no) | |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
9045 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
9046 | add_this_lang=unsupported | |
9047 | ;; | |
9048 | *:d:no) | |
9049 | # Silently disable. | |
9050 | add_this_lang=unsupported | |
9051 | ;; | |
9052 | esac | |
9053 | ||
cdfee50a | 9054 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
9055 | # but not if building for Mingw. All code in Windows |
9056 | # is position independent code (PIC). | |
c83027f3 NB |
9057 | case $target in |
9058 | *mingw*) ;; | |
9059 | *) | |
9060 | case ${add_this_lang}:${language}:${host_shared} in | |
9061 | yes:jit:no) | |
9062 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 9063 | as_fn_error $? " |
cdfee50a NS |
9064 | Enabling language \"jit\" requires --enable-host-shared. |
9065 | ||
9066 | --enable-host-shared typically slows the rest of the compiler down by | |
9067 | a few %, so you must explicitly enable it. | |
9068 | ||
9069 | If you want to build both the jit and the regular compiler, it is often | |
9070 | best to do this via two separate configure/builds, in separate | |
9071 | directories, to avoid imposing the performance cost of | |
9072 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
9073 | ;; |
9074 | all:jit:no) | |
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 9076 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
9077 | add_this_lang=unsupported |
9078 | ;; | |
9079 | *:jit:no) | |
9080 | # Silently disable. | |
9081 | add_this_lang=unsupported | |
9082 | ;; | |
9083 | esac | |
9084 | ;; | |
9085 | esac | |
cdfee50a NS |
9086 | |
9087 | # Disable a language that is unsupported by the target. | |
9088 | case "${add_this_lang}: $unsupported_languages " in | |
9089 | no:*) ;; | |
9090 | unsupported:*) ;; | |
9091 | *:*" $language "*) | |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9093 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 9094 | add_this_lang=unsupported |
4fab7234 HPN |
9095 | ;; |
9096 | esac | |
9097 | ||
6de9cd9a | 9098 | case $add_this_lang in |
e1888513 | 9099 | unsupported) |
55ffb5ed | 9100 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
9101 | disabled_target_libs="$disabled_target_libs $target_libs" |
9102 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 9103 | ;; |
e1888513 PB |
9104 | no) |
9105 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
9106 | disabled_target_libs="$disabled_target_libs $target_libs" |
9107 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
9108 | potential_languages="${potential_languages}${language}," |
9109 | ;; | |
cdfee50a | 9110 | all|yes) |
e1888513 PB |
9111 | new_enable_languages="${new_enable_languages}${language}," |
9112 | potential_languages="${potential_languages}${language}," | |
2805b53a | 9113 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 9114 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
9115 | case "${boot_language}:,$enable_stage1_languages," in |
9116 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 9117 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
9118 | case ",$stage1_languages," in |
9119 | *,$language,* | ,yes, | ,all,) ;; | |
9120 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9121 | esac | |
00020c16 | 9122 | # We need to bootstrap any supporting libraries. |
5fee5ec3 | 9123 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
2805b53a NN |
9124 | ;; |
9125 | esac | |
9126 | ;; | |
55ffb5ed NN |
9127 | esac |
9128 | ;; | |
9129 | esac | |
9130 | done | |
9131 | ||
4da3b0f8 ILT |
9132 | # Add target libraries which are only needed for disabled languages |
9133 | # to noconfigdirs. | |
9134 | if test -n "$disabled_target_libs"; then | |
9135 | for dir in $disabled_target_libs; do | |
9136 | case " $enabled_target_libs " in | |
9137 | *" ${dir} "*) ;; | |
9138 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9139 | esac | |
9140 | done | |
9141 | fi | |
9142 | ||
5213506e RW |
9143 | # Check whether --enable-stage1-languages was given. |
9144 | if test "${enable_stage1_languages+set}" = set; then : | |
9145 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
9146 | ,no,|,,) |
9147 | # Set it to something that will have no effect in the loop below | |
9148 | enable_stage1_languages=c ;; | |
9149 | ,yes,) | |
9150 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9151 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9152 | *,all,*) | |
9153 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9154 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9155 | esac | |
9156 | ||
9157 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9158 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9159 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9160 | case $potential_languages in | |
9161 | *,$i,*) | |
9162 | case $stage1_languages in | |
9163 | *,$i,*) ;; | |
9164 | *) stage1_languages="$stage1_languages$i," ;; | |
9165 | esac ;; | |
9166 | *) | |
9167 | case $missing_languages in | |
9168 | *,$i,*) ;; | |
9169 | *) missing_languages="$missing_languages$i," ;; | |
9170 | esac ;; | |
9171 | esac | |
9172 | done | |
5213506e RW |
9173 | fi |
9174 | ||
e1888513 PB |
9175 | |
9176 | # Remove leading/trailing commas that were added for simplicity | |
9177 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 9178 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
9179 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9180 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9181 | ||
55ffb5ed | 9182 | if test "x$missing_languages" != x; then |
22e05272 | 9183 | as_fn_error $? " |
0cf085e4 | 9184 | The following requested languages could not be built: ${missing_languages} |
5213506e | 9185 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 9186 | fi |
55ffb5ed NN |
9187 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9188 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 9189 | enable_languages="$new_enable_languages" |
55ffb5ed | 9190 | fi |
e1888513 | 9191 | |
1c710c3c | 9192 | |
b2eaac4a | 9193 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
9194 | fi |
9195 | ||
27079765 AH |
9196 | # Handle --disable-<component> generically. |
9197 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9198 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
9199 | varname=`echo $dirname | sed -e s/+/_/g` |
9200 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
9201 | noconfigdirs="$noconfigdirs $dir" |
9202 | fi | |
9203 | done | |
9204 | ||
43c40f3e RO |
9205 | # Check for Boehm's garbage collector |
9206 | # Check whether --enable-objc-gc was given. | |
9207 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
9208 | enableval=$enable_objc_gc; |
9209 | fi | |
9210 | ||
9211 | ||
9212 | # Check whether --with-target-bdw-gc was given. | |
9213 | if test "${with_target_bdw_gc+set}" = set; then : | |
9214 | withval=$with_target_bdw_gc; | |
9215 | fi | |
9216 | ||
9217 | ||
9218 | # Check whether --with-target-bdw-gc-include was given. | |
9219 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9220 | withval=$with_target_bdw_gc_include; | |
9221 | fi | |
9222 | ||
9223 | ||
9224 | # Check whether --with-target-bdw-gc-lib was given. | |
9225 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9226 | withval=$with_target_bdw_gc_lib; | |
9227 | fi | |
9228 | ||
9229 | ||
9230 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9232 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9233 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
9235 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
9236 | else |
9237 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 9238 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 9239 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 9240 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
9241 | else |
9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9243 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
9244 | fi | |
9245 | fi | |
43c40f3e RO |
9246 | esac |
9247 | ||
e4cba494 | 9248 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
99776ebd | 9249 | case ,${enable_languages}, in |
1007a55c | 9250 | *,c++,*) |
5e9d6aa4 | 9251 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
9252 | case "${noconfigdirs}" in |
9253 | *target-libstdc++-v3*) | |
5e9d6aa4 | 9254 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
9255 | ;; |
9256 | *) ;; | |
9257 | esac | |
9258 | ;; | |
99776ebd | 9259 | *) |
e4cba494 | 9260 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
9261 | ;; |
9262 | esac | |
9263 | ||
dc614a83 AB |
9264 | # If gcc/ is not in the source tree then we'll not be building a |
9265 | # target compiler, assume in that case we don't want to build any | |
9266 | # target libraries or tools. | |
9267 | # | |
9268 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9269 | # this configure script, but don't always have target tools available. | |
9270 | if test ! -d ${srcdir}/gcc; then | |
9271 | skipdirs="${skipdirs} ${target_configdirs}" | |
9272 | fi | |
9273 | ||
ee6a22df L |
9274 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9275 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
9276 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9277 | ||
9278 | notsupp="" | |
9279 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 9280 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
9281 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9282 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9283 | if test -r $srcdir/$dirname/configure ; then | |
9284 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9285 | true | |
9286 | else | |
9287 | notsupp="$notsupp $dir" | |
9288 | fi | |
9289 | fi | |
9290 | fi | |
ee6a22df L |
9291 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9292 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9293 | if test -r $srcdir/$dirname/configure ; then | |
9294 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9295 | true | |
9296 | else | |
9297 | notsupp="$notsupp $dir" | |
9298 | fi | |
9299 | fi | |
9300 | fi | |
55ffb5ed NN |
9301 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9302 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9303 | if test -r $srcdir/$dirname/configure ; then | |
9304 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9305 | true | |
9306 | else | |
9307 | notsupp="$notsupp $dir" | |
9308 | fi | |
9309 | fi | |
9310 | fi | |
9311 | done | |
9312 | ||
55ffb5ed NN |
9313 | # Quietly strip out all directories which aren't configurable in this tree. |
9314 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9315 | # is now the case. | |
23f6b2f9 PB |
9316 | build_configdirs_all="$build_configdirs" |
9317 | build_configdirs= | |
9318 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 9319 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
9320 | if test -f ${srcdir}/$j/configure ; then |
9321 | build_configdirs="${build_configdirs} $i" | |
9322 | fi | |
9323 | done | |
9324 | ||
55ffb5ed NN |
9325 | configdirs_all="$configdirs" |
9326 | configdirs= | |
9327 | for i in ${configdirs_all} ; do | |
9328 | if test -f ${srcdir}/$i/configure ; then | |
9329 | configdirs="${configdirs} $i" | |
9330 | fi | |
9331 | done | |
23f6b2f9 | 9332 | |
55ffb5ed NN |
9333 | target_configdirs_all="$target_configdirs" |
9334 | target_configdirs= | |
9335 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 9336 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
9337 | if test -f ${srcdir}/$j/configure ; then |
9338 | target_configdirs="${target_configdirs} $i" | |
9339 | fi | |
9340 | done | |
9341 | ||
45b3824d TS |
9342 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9343 | # so we have to add it after the preceding checks. | |
9344 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9345 | then | |
9346 | case " $configdirs " in | |
9347 | *" libiberty "*) | |
9348 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9349 | configdirs="$configdirs libiberty-linker-plugin" | |
9350 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9351 | --with-libiberty=../libiberty-linker-plugin";; | |
9352 | *) | |
22e05272 | 9353 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
9354 | esac |
9355 | fi | |
9356 | ||
fca38047 TS |
9357 | # Sometimes we have special requirements for the host libiberty. |
9358 | extra_host_libiberty_configure_flags= | |
9359 | case " $configdirs " in | |
15368960 | 9360 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
fca38047 TS |
9361 | # When these are to be built as shared libraries, the same applies to |
9362 | # libiberty. | |
9363 | extra_host_libiberty_configure_flags=--enable-shared | |
9364 | ;; | |
04bb15e4 TV |
9365 | esac |
9366 | ||
9367 | ||
9368 | # Sometimes we have special requirements for the host zlib. | |
9369 | extra_host_zlib_configure_flags= | |
9370 | case " $configdirs " in | |
1c01ebf6 L |
9371 | *" bfd "*) |
9372 | # When bfd is to be built as a shared library, the same applies to | |
9373 | # zlib. | |
9374 | if test "$enable_shared" = "yes"; then | |
9375 | extra_host_zlib_configure_flags=--enable-host-shared | |
9376 | fi | |
9377 | ;; | |
fca38047 TS |
9378 | esac |
9379 | ||
9380 | ||
55ffb5ed NN |
9381 | # Produce a warning message for the subdirs we can't configure. |
9382 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9383 | # FSF releases, it's important to let people know when their machine isn't | |
9384 | # supported by the one or two programs in a package. | |
9385 | ||
9386 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9387 | # If $appdirs is non-empty, at least one of those directories must still | |
9388 | # be configured, or we error out. (E.g., if the gas release supports a | |
9389 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9390 | # pretend that all is well.) | |
9391 | if test -n "$appdirs" ; then | |
9392 | for dir in $appdirs ; do | |
9393 | if test -r $dir/Makefile.in ; then | |
9394 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9395 | appdirs="" | |
9396 | break | |
9397 | fi | |
23f6b2f9 | 9398 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
9399 | appdirs="" |
9400 | break | |
9401 | fi | |
9402 | fi | |
9403 | done | |
9404 | if test -n "$appdirs" ; then | |
9405 | echo "*** This configuration is not supported by this package." 1>&2 | |
9406 | exit 1 | |
9407 | fi | |
9408 | fi | |
9409 | # Okay, some application will build, or we don't care to check. Still | |
9410 | # notify of subdirs not getting built. | |
9411 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9412 | echo " ${notsupp}" 1>&2 | |
9413 | echo " (Any other directories should still work fine.)" 1>&2 | |
9414 | fi | |
9415 | ||
9416 | case "$host" in | |
9417 | *msdosdjgpp*) | |
9418 | enable_gdbtk=no ;; | |
9419 | esac | |
9420 | ||
c3a86da9 DJ |
9421 | # To find our prefix, in gcc_cv_tool_prefix. |
9422 | ||
9423 | # The user is always right. | |
9424 | if test "${PATH_SEPARATOR+set}" != set; then | |
9425 | echo "#! /bin/sh" >conf$$.sh | |
9426 | echo "exit 0" >>conf$$.sh | |
9427 | chmod +x conf$$.sh | |
9428 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9429 | PATH_SEPARATOR=';' | |
9430 | else | |
9431 | PATH_SEPARATOR=: | |
9432 | fi | |
9433 | rm -f conf$$.sh | |
9434 | fi | |
9435 | ||
9436 | ||
3c36aa6b JJ |
9437 | get_gcc_base_ver="cat" |
9438 | ||
9439 | # Check whether --with-gcc-major-version-only was given. | |
9440 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9441 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 9442 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
9443 | fi |
9444 | ||
9445 | fi | |
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
c3a86da9 DJ |
9451 | |
9452 | if test "x$exec_prefix" = xNONE; then | |
9453 | if test "x$prefix" = xNONE; then | |
9454 | gcc_cv_tool_prefix=$ac_default_prefix | |
9455 | else | |
9456 | gcc_cv_tool_prefix=$prefix | |
9457 | fi | |
9458 | else | |
9459 | gcc_cv_tool_prefix=$exec_prefix | |
9460 | fi | |
9461 | ||
9462 | # If there is no compiler in the tree, use the PATH only. In any | |
9463 | # case, if there is no compiler in the tree nobody should use | |
9464 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9465 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
9466 | if test x$with_gcc_major_version_only = xyes ; then |
9467 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9468 | else | |
9469 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9470 | fi | |
c3a86da9 DJ |
9471 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9472 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9473 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9474 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9475 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9476 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9477 | else | |
9478 | gcc_cv_tool_dirs= | |
9479 | fi | |
9480 | ||
9481 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9482 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9483 | fi | |
9484 | ||
9485 | ||
9486 | ||
55ffb5ed NN |
9487 | copy_dirs= |
9488 | ||
1c710c3c | 9489 | |
5213506e RW |
9490 | # Check whether --with-build-sysroot was given. |
9491 | if test "${with_build_sysroot+set}" = set; then : | |
9492 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
9493 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9494 | fi | |
9495 | else | |
9496 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 9497 | fi |
526635cb MM |
9498 | |
9499 | ||
c8aea42c | 9500 | |
5213506e RW |
9501 | |
9502 | # Check whether --with-debug-prefix-map was given. | |
9503 | if test "${with_debug_prefix_map+set}" = set; then : | |
9504 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
9505 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9506 | for debug_map in $withval; do | |
9507 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9508 | done | |
9509 | fi | |
9510 | else | |
9511 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
9512 | fi |
9513 | ||
c8aea42c PB |
9514 | |
9515 | ||
1c8bd6a3 PB |
9516 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9517 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9518 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9519 | # We want to ensure that TARGET libraries (which we know are built with | |
9520 | # gcc) are built with "-O2 -g", so include those options when setting | |
9521 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9522 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9523 | if test "x${is_cross_compiler}" = xyes; then |
9524 | CFLAGS_FOR_TARGET="-g -O2" | |
9525 | else | |
9526 | CFLAGS_FOR_TARGET=$CFLAGS | |
9527 | case " $CFLAGS " in | |
9528 | *" -O2 "*) ;; | |
9529 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9530 | esac | |
9531 | case " $CFLAGS " in | |
9532 | *" -g "* | *" -g3 "*) ;; | |
9533 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9534 | esac | |
9535 | fi | |
1c8bd6a3 PB |
9536 | fi |
9537 | ||
9538 | ||
9539 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
9540 | if test "x${is_cross_compiler}" = xyes; then |
9541 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9542 | else | |
9543 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9544 | case " $CXXFLAGS " in | |
9545 | *" -O2 "*) ;; | |
9546 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9547 | esac | |
9548 | case " $CXXFLAGS " in | |
9549 | *" -g "* | *" -g3 "*) ;; | |
9550 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9551 | esac | |
9552 | fi | |
1c8bd6a3 PB |
9553 | fi |
9554 | ||
9555 | ||
6f57bdf6 DK |
9556 | |
9557 | ||
55ffb5ed NN |
9558 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9559 | # the named directory are copied to $(tooldir)/sys-include. | |
9560 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9561 | if test x${is_cross_compiler} = xno ; then | |
9562 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9563 | exit 1 | |
9564 | fi | |
9565 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 9566 | x=${gcc_cv_tool_prefix} |
1c710c3c | 9567 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
9568 | fi |
9569 | fi | |
9570 | ||
9571 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9572 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9573 | # are permitted. | |
9574 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9575 | if test x${is_cross_compiler} = xno ; then | |
9576 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9577 | exit 1 | |
9578 | fi | |
9579 | if test x"${with_libs}" != xyes ; then | |
9580 | # Copy the libraries in reverse order, so that files in the first named | |
9581 | # library override files in subsequent libraries. | |
c3a86da9 | 9582 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 9583 | for l in ${with_libs}; do |
1c710c3c | 9584 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
9585 | done |
9586 | fi | |
9587 | fi | |
9588 | ||
d7f09764 | 9589 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
9590 | # |
9591 | # This is done by determining whether or not the appropriate directory | |
9592 | # is available, and by checking whether or not specific configurations | |
9593 | # have requested that this magic not happen. | |
1c710c3c DJ |
9594 | # |
9595 | # The command line options always override the explicit settings in | |
6b1786aa | 9596 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 9597 | # |
1c710c3c | 9598 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 9599 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
9600 | # --without-gnu-ld options for the configure script. Similarly, if |
9601 | # the default is to use the included zlib and you don't want to do that, | |
9602 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
9603 | |
9604 | if test x${use_gnu_as} = x && | |
9605 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9606 | with_gnu_as=yes | |
9607 | extra_host_args="$extra_host_args --with-gnu-as" | |
9608 | fi | |
9609 | ||
9610 | if test x${use_gnu_ld} = x && | |
5afab7ad | 9611 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
9612 | with_gnu_ld=yes |
9613 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9614 | fi | |
9615 | ||
d7f09764 DN |
9616 | if test x${use_included_zlib} = x && |
9617 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9618 | : | |
9619 | else | |
9620 | with_system_zlib=yes | |
9621 | extra_host_args="$extra_host_args --with-system-zlib" | |
9622 | fi | |
9623 | ||
e8b05380 PB |
9624 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9625 | # can detect this case. | |
9626 | ||
9627 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9628 | with_newlib=yes | |
9629 | extra_host_args="$extra_host_args --with-newlib" | |
9630 | fi | |
9631 | ||
55ffb5ed NN |
9632 | # Handle ${copy_dirs} |
9633 | set fnord ${copy_dirs} | |
9634 | shift | |
9635 | while test $# != 0 ; do | |
9636 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9637 | : | |
9638 | else | |
9639 | echo Copying $1 to $2 | |
9640 | ||
9641 | # Use the install script to create the directory and all required | |
9642 | # parent directories. | |
9643 | if test -d $2 ; then | |
9644 | : | |
9645 | else | |
9646 | echo >config.temp | |
9647 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9648 | fi | |
9649 | ||
9650 | # Copy the directory, assuming we have tar. | |
9651 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9652 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9653 | ||
9654 | # It is the responsibility of the user to correctly adjust all | |
9655 | # symlinks. If somebody can figure out how to handle them correctly | |
9656 | # here, feel free to add the code. | |
9657 | ||
9658 | echo $1 > $2/COPIED | |
9659 | fi | |
9660 | shift; shift | |
9661 | done | |
9662 | ||
e8b05380 PB |
9663 | # Determine a target-dependent exec_prefix that the installed |
9664 | # gcc will search in. Keep this list sorted by triplet, with | |
9665 | # the *-*-osname triplets last. | |
9666 | md_exec_prefix= | |
9667 | case "${target}" in | |
30b74385 | 9668 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
9669 | md_exec_prefix=/dev/env/DJDIR/bin |
9670 | ;; | |
e8b05380 | 9671 | *-*-hpux* | \ |
e8b05380 | 9672 | *-*-nto-qnx* | \ |
6de66370 | 9673 | *-*-solaris2*) |
e8b05380 PB |
9674 | md_exec_prefix=/usr/ccs/bin |
9675 | ;; | |
9676 | esac | |
9677 | ||
671aa708 NN |
9678 | extra_arflags_for_target= |
9679 | extra_nmflags_for_target= | |
9680 | extra_ranlibflags_for_target= | |
9681 | target_makefile_frag=/dev/null | |
9682 | case "${target}" in | |
58e24147 AM |
9683 | spu-*-*) |
9684 | target_makefile_frag="config/mt-spu" | |
9685 | ;; | |
227b18f5 YY |
9686 | loongarch*-*linux* | loongarch*-*gnu*) |
9687 | target_makefile_frag="config/mt-loongarch-gnu" | |
9688 | ;; | |
9689 | loongarch*-*elf*) | |
9690 | target_makefile_frag="config/mt-loongarch-elf" | |
9691 | ;; | |
d896cc4d | 9692 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
9693 | target_makefile_frag="config/mt-sde" |
9694 | ;; | |
1ec3b87b RS |
9695 | mipsisa*-*-elfoabi*) |
9696 | target_makefile_frag="config/mt-mips-elfoabi" | |
9697 | ;; | |
08d0963a RS |
9698 | mips*-*-*linux* | mips*-*-gnu*) |
9699 | target_makefile_frag="config/mt-mips-gnu" | |
9700 | ;; | |
707f1839 SL |
9701 | nios2-*-elf*) |
9702 | target_makefile_frag="config/mt-nios2-elf" | |
9703 | ;; | |
76052545 EB |
9704 | *-*-linux-android*) |
9705 | target_makefile_frag="config/mt-android" | |
9706 | ;; | |
416ac4d4 | 9707 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 9708 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
9709 | ;; |
9710 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 9711 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
9712 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9713 | # harmless if we're using GNU nm or ar. | |
9714 | extra_arflags_for_target=" -X32_64" | |
9715 | extra_nmflags_for_target=" -B -X32_64" | |
9716 | ;; | |
671aa708 NN |
9717 | esac |
9718 | ||
9719 | alphaieee_frag=/dev/null | |
9720 | case $target in | |
9721 | alpha*-*-*) | |
9722 | # This just makes sure to use the -mieee option to build target libs. | |
9723 | # This should probably be set individually by each library. | |
9724 | alphaieee_frag="config/mt-alphaieee" | |
9725 | ;; | |
9726 | esac | |
9727 | ||
9728 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9729 | # the target libraries, similarly if it is not specified, use -Os | |
9730 | # on selected platforms. | |
9731 | ospace_frag=/dev/null | |
9732 | case "${enable_target_optspace}:${target}" in | |
9733 | yes:*) | |
9734 | ospace_frag="config/mt-ospace" | |
9735 | ;; | |
9736 | :d30v-*) | |
9737 | ospace_frag="config/mt-d30v" | |
9738 | ;; | |
d9063947 | 9739 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
9740 | ospace_frag="config/mt-ospace" |
9741 | ;; | |
9742 | no:* | :*) | |
9743 | ;; | |
9744 | *) | |
9745 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9746 | ;; | |
9747 | esac | |
9748 | ||
671aa708 NN |
9749 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9750 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 9751 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
9752 | build_tooldir=${tooldir} |
9753 | ||
671aa708 NN |
9754 | # Create a .gdbinit file which runs the one in srcdir |
9755 | # and tells GDB to look there for source files. | |
9756 | ||
9757 | if test -r ${srcdir}/.gdbinit ; then | |
9758 | case ${srcdir} in | |
9759 | .) ;; | |
9760 | *) cat > ./.gdbinit <<EOF | |
9761 | # ${NO_EDIT} | |
9762 | dir ${srcdir} | |
9763 | dir . | |
9764 | source ${srcdir}/.gdbinit | |
9765 | EOF | |
9766 | ;; | |
9767 | esac | |
9768 | fi | |
9769 | ||
671aa708 NN |
9770 | # Make sure that the compiler is able to generate an executable. If it |
9771 | # can't, we are probably in trouble. We don't care whether we can run the | |
9772 | # executable--we might be using a cross compiler--we only care whether it | |
9773 | # can be created. At this point the main configure script has set CC. | |
9774 | we_are_ok=no | |
9775 | echo "int main () { return 0; }" > conftest.c | |
9776 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9777 | if test $? = 0 ; then | |
9778 | if test -s conftest || test -s conftest.exe ; then | |
9779 | we_are_ok=yes | |
9780 | fi | |
1c710c3c | 9781 | fi |
671aa708 NN |
9782 | case $we_are_ok in |
9783 | no) | |
9784 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9785 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9786 | rm -f conftest* | |
9787 | exit 1 | |
9788 | ;; | |
9789 | esac | |
9790 | rm -f conftest* | |
9791 | ||
d89f0ad6 | 9792 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
9793 | case "${host}" in |
9794 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 9795 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 9796 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
9797 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9798 | esac | |
9799 | ||
d89f0ad6 AL |
9800 | # On systems where the dynamic library environment variable is PATH, |
9801 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
9802 | # built executables to PATH. | |
9803 | if test "$RPATH_ENVVAR" = PATH; then | |
9804 | GCC_SHLIB_SUBDIR=/shlib | |
9805 | else | |
9806 | GCC_SHLIB_SUBDIR= | |
9807 | fi | |
9808 | ||
beeda1d9 JJ |
9809 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9810 | case $enable_bootstrap in | |
9811 | yes) | |
9812 | bootstrap_suffix=bootstrap | |
9813 | BUILD_CONFIG=bootstrap-debug | |
9814 | ;; | |
9815 | no) | |
9816 | bootstrap_suffix=no-bootstrap | |
9817 | BUILD_CONFIG= | |
9818 | ;; | |
9819 | esac | |
9820 | ||
9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9822 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9823 | ||
9824 | ||
9825 | # Check whether --with-build-config was given. | |
9826 | if test "${with_build_config+set}" = set; then : | |
9827 | withval=$with_build_config; case $with_build_config in | |
9828 | yes) with_build_config= ;; | |
9829 | no) with_build_config= BUILD_CONFIG= ;; | |
9830 | esac | |
9831 | fi | |
9832 | ||
9833 | ||
9834 | if test "x${with_build_config}" != x; then | |
9835 | BUILD_CONFIG=$with_build_config | |
9836 | else | |
9837 | case $BUILD_CONFIG in | |
9838 | bootstrap-debug) | |
9839 | if echo "int f (void) { return 0; }" > conftest.c && | |
9840 | ${CC} -c conftest.c && | |
9841 | mv conftest.o conftest.o.g0 && | |
9842 | ${CC} -c -g conftest.c && | |
9843 | mv conftest.o conftest.o.g && | |
9844 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9845 | : | |
9846 | else | |
9847 | BUILD_CONFIG= | |
9848 | fi | |
9849 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9850 | ;; | |
9851 | esac | |
9852 | fi | |
9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9854 | $as_echo "$BUILD_CONFIG" >&6; } | |
9855 | ||
9856 | ||
9857 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9859 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9860 | # Check whether --enable-vtable-verify was given. | |
9861 | if test "${enable_vtable_verify+set}" = set; then : | |
9862 | enableval=$enable_vtable_verify; case "$enableval" in | |
9863 | yes) enable_vtable_verify=yes ;; | |
9864 | no) enable_vtable_verify=no ;; | |
9865 | *) enable_vtable_verify=no;; | |
9866 | esac | |
9867 | else | |
9868 | enable_vtable_verify=no | |
9869 | fi | |
9870 | ||
9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9872 | $as_echo "$enable_vtable_verify" >&6; } | |
9873 | ||
671aa708 NN |
9874 | # Record target_configdirs and the configure arguments for target and |
9875 | # build configuration in Makefile. | |
9876 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 9877 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 9878 | bootstrap_fixincludes=no |
671aa708 | 9879 | |
ad1e5170 JR |
9880 | # If we are building libgomp, bootstrap it. |
9881 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9882 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9883 | fi | |
9884 | ||
beeda1d9 JJ |
9885 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9886 | # or bootstrap-ubsan, bootstrap it. | |
9887 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9888 | case "$BUILD_CONFIG" in | |
170e618e | 9889 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
beeda1d9 | 9890 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
9e1c8fc1 | 9891 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
9892 | ;; |
9893 | esac | |
ac8701fe L |
9894 | fi |
9895 | ||
beeda1d9 JJ |
9896 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9897 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9898 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
9899 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9900 | fi | |
9901 | ||
5fee5ec3 IB |
9902 | # If we are building libatomic and the list of enabled languages includes the |
9903 | # D frontend, bootstrap it. | |
9904 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9905 | case ,${enable_languages}, in | |
9906 | *,d,*) | |
9907 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9908 | ;; | |
9909 | esac | |
9910 | fi | |
9911 | ||
671aa708 NN |
9912 | # Determine whether gdb needs tk/tcl or not. |
9913 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9914 | # and in that case we want gdb to be built without tk. Ugh! | |
9915 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9916 | # so we should be able to put the 'maybe's in unconditionally and | |
9917 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9918 | # 100% sure that that's safe though. | |
e914a571 | 9919 | |
b4f96efe | 9920 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
9921 | case "$enable_gdbtk" in |
9922 | no) | |
9923 | GDB_TK="" ;; | |
e914a571 AC |
9924 | yes) |
9925 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 9926 | *) |
e914a571 AC |
9927 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9928 | # distro. Eventually someone will fix this and move Insight, nee | |
9929 | # gdbtk to a separate directory. | |
9930 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9931 | GDB_TK="${gdb_tk}" | |
9932 | else | |
9933 | GDB_TK="" | |
9934 | fi | |
9935 | ;; | |
671aa708 | 9936 | esac |
ef9db8d5 DJ |
9937 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9938 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 9939 | |
f9d09df0 TT |
9940 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9941 | # else does, only include them if one of these is built. The Makefile | |
9942 | # provides the ordering, so it's enough here to add to the list. | |
9943 | case " ${configdirs} " in | |
9944 | *\ gdb\ *) | |
9945 | configdirs="${configdirs} gnulib gdbsupport" | |
9946 | ;; | |
9947 | *\ gdbserver\ *) | |
9948 | configdirs="${configdirs} gnulib gdbsupport" | |
9949 | ;; | |
f14c9bd4 MF |
9950 | *\ sim\ *) |
9951 | configdirs="${configdirs} gnulib" | |
9952 | ;; | |
f9d09df0 | 9953 | esac |
98e5be21 | 9954 | |
60975492 | 9955 | # Strip out unwanted targets. |
8b87bb96 NN |
9956 | |
9957 | # While at that, we remove Makefiles if we were started for recursive | |
9958 | # configuration, so that the top-level Makefile reconfigures them, | |
9959 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 9960 | |
3e54529c RW |
9961 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9962 | # but now we're fixing up the Makefile ourselves with the additional | |
9963 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9964 | # extrasub-{build,host,target} not because there is any reason to split | |
9965 | # the substitutions up that way, but only to remain below the limit of | |
9966 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
9967 | |
9968 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9969 | # configure will not warn you at all. | |
8b87bb96 | 9970 | |
79cd2b23 RW |
9971 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9972 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9973 | yes:yes:*\ gold\ *:*) | |
22e05272 | 9974 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
9975 | ;; |
9976 | esac | |
9977 | ||
3e54529c | 9978 | extrasub_build= |
23f6b2f9 | 9979 | for module in ${build_configdirs} ; do |
5607edfd PB |
9980 | if test -z "${no_recursion}" \ |
9981 | && test -f ${build_subdir}/${module}/Makefile; then | |
9982 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9983 | rm -f ${build_subdir}/${module}/Makefile | |
9984 | fi | |
3e54529c | 9985 | extrasub_build="$extrasub_build |
5607edfd PB |
9986 | /^@if build-$module\$/d |
9987 | /^@endif build-$module\$/d | |
da34ca3f | 9988 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 9989 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
9990 | /^@endif build-$module-$bootstrap_suffix\$/d |
9991 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 9992 | done |
3e54529c | 9993 | extrasub_host= |
5607edfd | 9994 | for module in ${configdirs} ; do |
a6fbc1e2 | 9995 | if test -z "${no_recursion}"; then |
f063a9ed | 9996 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
9997 | if test -f ${file}; then |
9998 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9999 | rm -f ${file} | |
10000 | fi | |
10001 | done | |
5607edfd | 10002 | fi |
9e1c8fc1 JJ |
10003 | case ${module},${bootstrap_fixincludes} in |
10004 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
10005 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
10006 | esac | |
3e54529c | 10007 | extrasub_host="$extrasub_host |
5607edfd PB |
10008 | /^@if $module\$/d |
10009 | /^@endif $module\$/d | |
da34ca3f | 10010 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 10011 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
10012 | /^@endif $module-$host_bootstrap_suffix\$/d |
10013 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 10014 | done |
3e54529c | 10015 | extrasub_target= |
5607edfd PB |
10016 | for module in ${target_configdirs} ; do |
10017 | if test -z "${no_recursion}" \ | |
10018 | && test -f ${target_subdir}/${module}/Makefile; then | |
10019 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
10020 | rm -f ${target_subdir}/${module}/Makefile | |
10021 | fi | |
00020c16 ILT |
10022 | |
10023 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
10024 | case $bootstrap_target_libs in | |
10025 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
10026 | *) target_bootstrap_suffix=no-bootstrap ;; | |
10027 | esac | |
10028 | ||
3e54529c | 10029 | extrasub_target="$extrasub_target |
5607edfd PB |
10030 | /^@if target-$module\$/d |
10031 | /^@endif target-$module\$/d | |
da34ca3f | 10032 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 10033 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
10034 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
10035 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
10036 | done |
10037 | ||
3e54529c RW |
10038 | # Do the final fixup along with target modules. |
10039 | extrasub_target="$extrasub_target | |
da34ca3f AO |
10040 | /^@if /,/^@endif /d |
10041 | /^@unless /d | |
10042 | /^@endunless /d" | |
671aa708 | 10043 | |
4a5e71f2 L |
10044 | if test "$enable_pgo_build" != "no"; then |
10045 | extrasub_build="$extrasub_build | |
10046 | /^@if pgo-build\$/d | |
10047 | /^@endif pgo-build\$/d" | |
10048 | fi | |
10049 | ||
671aa708 NN |
10050 | # Create the serialization dependencies. This uses a temporary file. |
10051 | ||
5213506e RW |
10052 | # Check whether --enable-serial-configure was given. |
10053 | if test "${enable_serial_configure+set}" = set; then : | |
10054 | enableval=$enable_serial_configure; | |
10055 | fi | |
ade82b16 AO |
10056 | |
10057 | ||
bf1d3e81 NN |
10058 | case ${enable_serial_configure} in |
10059 | yes) | |
10060 | enable_serial_build_configure=yes | |
10061 | enable_serial_host_configure=yes | |
10062 | enable_serial_target_configure=yes | |
10063 | ;; | |
10064 | esac | |
10065 | ||
671aa708 NN |
10066 | # These force 'configure's to be done one at a time, to avoid problems |
10067 | # with contention over a shared config.cache. | |
10068 | rm -f serdep.tmp | |
7d115e01 | 10069 | if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then |
ade82b16 | 10070 | echo '# serdep.tmp' > serdep.tmp |
7d115e01 | 10071 | fi |
671aa708 | 10072 | olditem= |
bf1d3e81 | 10073 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
10074 | for item in ${build_configdirs} ; do |
10075 | case ${olditem} in | |
10076 | "") ;; | |
ade82b16 | 10077 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10078 | esac |
10079 | olditem=${item} | |
10080 | done | |
10081 | olditem= | |
bf1d3e81 | 10082 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
10083 | for item in ${configdirs} ; do |
10084 | case ${olditem} in | |
10085 | "") ;; | |
ade82b16 | 10086 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10087 | esac |
10088 | olditem=${item} | |
10089 | done | |
10090 | olditem= | |
bf1d3e81 | 10091 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
10092 | for item in ${target_configdirs} ; do |
10093 | case ${olditem} in | |
10094 | "") ;; | |
ade82b16 | 10095 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
10096 | esac |
10097 | olditem=${item} | |
10098 | done | |
10099 | serialization_dependencies=serdep.tmp | |
10100 | ||
10101 | ||
ade82b16 | 10102 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 10103 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
10104 | # might not want to pass down to subconfigures. The exception being |
10105 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10106 | # files altogether, and which should be passed on to subconfigures. | |
10107 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10108 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 10109 | baseargs= |
29a63921 | 10110 | tbaseargs= |
1c710c3c DJ |
10111 | keep_next=no |
10112 | skip_next=no | |
10113 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
10114 | for ac_arg |
10115 | do | |
1c710c3c DJ |
10116 | if test X"$skip_next" = X"yes"; then |
10117 | skip_next=no | |
10118 | continue | |
10119 | fi | |
10120 | if test X"$keep_next" = X"yes"; then | |
10121 | case $ac_arg in | |
10122 | *\'*) | |
10123 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10124 | esac | |
10125 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10126 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
10127 | keep_next=no |
10128 | continue | |
10129 | fi | |
10130 | ||
10131 | # Handle separated arguments. Based on the logic generated by | |
10132 | # autoconf 2.59. | |
10133 | case $ac_arg in | |
10134 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10135 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10136 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10137 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10138 | separate_arg=no | |
10139 | ;; | |
10140 | -*) | |
10141 | separate_arg=yes | |
10142 | ;; | |
10143 | *) | |
10144 | separate_arg=no | |
10145 | ;; | |
10146 | esac | |
10147 | ||
29a63921 AO |
10148 | skip_targ=no |
10149 | case $ac_arg in | |
10150 | ||
10151 | --with-* | --without-*) | |
10152 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10153 | ||
10154 | case $libopt in | |
10155 | *[-_]include) | |
10156 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10157 | ;; | |
10158 | *[-_]lib) | |
10159 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10160 | ;; | |
10161 | *) | |
10162 | lib=$libopt | |
10163 | ;; | |
10164 | esac | |
10165 | ||
10166 | ||
10167 | case $lib in | |
4a9bb2aa | 10168 | mpc | mpfr | gmp | isl) |
29a63921 AO |
10169 | # If we're processing --with-$lib, --with-$lib-include or |
10170 | # --with-$lib-lib, for one of the libs above, and target is | |
10171 | # different from host, don't pass the current argument to any | |
10172 | # target library's configure. | |
10173 | if test x$is_cross_compiler = xyes; then | |
10174 | skip_targ=yes | |
10175 | fi | |
10176 | ;; | |
10177 | esac | |
10178 | ;; | |
10179 | esac | |
10180 | ||
1c710c3c | 10181 | case "$ac_arg" in |
f1a036e4 NC |
10182 | --cache-file=/dev/null | \ |
10183 | -cache-file=/dev/null ) | |
10184 | # Handled here to avoid the test to skip args below. | |
10185 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 10186 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
10187 | # Assert: $separate_arg should always be no. |
10188 | keep_next=$separate_arg | |
10189 | ;; | |
1c710c3c DJ |
10190 | --no*) |
10191 | continue | |
10192 | ;; | |
10193 | --c* | \ | |
10194 | --sr* | \ | |
10195 | --ho* | \ | |
10196 | --bu* | \ | |
10197 | --t* | \ | |
10198 | --program-* | \ | |
10199 | -cache_file* | \ | |
10200 | -srcdir* | \ | |
10201 | -host* | \ | |
10202 | -build* | \ | |
10203 | -target* | \ | |
10204 | -program-prefix* | \ | |
10205 | -program-suffix* | \ | |
10206 | -program-transform-name* ) | |
10207 | skip_next=$separate_arg | |
10208 | continue | |
10209 | ;; | |
10210 | -*) | |
10211 | # An option. Add it. | |
10212 | case $ac_arg in | |
10213 | *\'*) | |
10214 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10215 | esac | |
10216 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
10217 | if test X"$skip_targ" = Xno; then |
10218 | tbaseargs="$tbaseargs '$ac_arg'" | |
10219 | fi | |
1c710c3c DJ |
10220 | keep_next=$separate_arg |
10221 | ;; | |
10222 | *) | |
10223 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10224 | # pass it down; let the Makefile handle this. | |
10225 | continue | |
10226 | ;; | |
10227 | esac | |
10228 | done | |
10229 | # Remove the initial space we just introduced and, as these will be | |
10230 | # expanded by make, quote '$'. | |
10231 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 10232 | |
43bb47c2 DJ |
10233 | # Add in --program-transform-name, after --program-prefix and |
10234 | # --program-suffix have been applied to it. Autoconf has already | |
10235 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10236 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 10237 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
10238 | # Also, because we want to override the logic in subdir configure scripts to |
10239 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10240 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10241 | ${program_transform_name} | |
10242 | EOF_SED | |
10243 | gcc_transform_name=`cat conftestsed.out` | |
10244 | rm -f conftestsed.out | |
10245 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 10246 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
10247 | if test "$silent" = yes; then |
10248 | baseargs="$baseargs --silent" | |
29a63921 | 10249 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 10250 | fi |
a49d42e8 | 10251 | |
0115d4a3 | 10252 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 10253 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 10254 | |
a49d42e8 LM |
10255 | if test "$enable_year2038" = no; then |
10256 | baseargs="$baseargs --disable-year2038" | |
10257 | tbaseargs="$tbaseargs --disable-year2038" | |
10258 | fi | |
10259 | ||
ffedf511 RW |
10260 | # Record and document user additions to sub configure arguments. |
10261 | ||
10262 | ||
10263 | ||
10264 | ||
671aa708 NN |
10265 | # For the build-side libraries, we just need to pretend we're native, |
10266 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
10267 | # desired. We can't even use the same cache file for all build-side |
10268 | # libraries, as they're compiled differently; some with C, some with | |
10269 | # C++ or with different feature-enabling options. | |
10270 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
10271 | |
10272 | # For host modules, accept cache file option, or specification as blank. | |
10273 | case "${cache_file}" in | |
10274 | "") # empty | |
10275 | cache_file_option="" ;; | |
10276 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10277 | cache_file_option="--cache-file=${cache_file}" ;; | |
10278 | *) # relative path | |
10279 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10280 | esac | |
10281 | ||
09438bde NN |
10282 | # Host dirs don't like to share a cache file either, horribly enough. |
10283 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 10284 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 10285 | |
29a63921 | 10286 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
10287 | |
10288 | # Passing a --with-cross-host argument lets the target libraries know | |
10289 | # whether they are being built with a cross-compiler or being built | |
10290 | # native. However, it would be better to use other mechanisms to make the | |
10291 | # sorts of decisions they want to make on this basis. Please consider | |
10292 | # this option to be deprecated. FIXME. | |
10293 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 10294 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
10295 | fi |
10296 | ||
79e0604d FXC |
10297 | # Special user-friendly check for native x86_64-linux build, if |
10298 | # multilib is not explicitly enabled. | |
10299 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10300 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 10301 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
10302 | dev64=no |
10303 | echo "int main () { return 0; }" > conftest.c | |
10304 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10305 | if test $? = 0 ; then | |
10306 | if test -s conftest || test -s conftest.exe ; then | |
10307 | dev64=yes | |
10308 | fi | |
10309 | fi | |
10310 | rm -f conftest* | |
10311 | if test x${dev64} != xyes ; then | |
22e05272 | 10312 | 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 |
10313 | fi |
10314 | ;; | |
10315 | esac | |
10316 | ||
dc683a3f RW |
10317 | # Default to --enable-multilib. |
10318 | if test x${enable_multilib} = x ; then | |
671aa708 | 10319 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 10320 | fi |
671aa708 NN |
10321 | |
10322 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10323 | # changed from the earlier setting of with_newlib. | |
10324 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10325 | target_configargs="--with-newlib ${target_configargs}" | |
10326 | fi | |
10327 | ||
6b9eb62c NN |
10328 | # Different target subdirs use different values of certain variables |
10329 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10330 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10331 | # it doesn't automatically accept command-line overrides of them. | |
10332 | # This means it's not safe for target subdirs to share a cache file, | |
10333 | # which is disgusting, but there you have it. Hopefully this can be | |
10334 | # fixed in future. It's still worthwhile to use a cache file for each | |
10335 | # directory. I think. | |
10336 | ||
bebcd931 MS |
10337 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10338 | # We need to pass --target, as newer autoconf's requires consistency | |
10339 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 10340 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 10341 | |
671aa708 NN |
10342 | FLAGS_FOR_TARGET= |
10343 | case " $target_configdirs " in | |
10344 | *" newlib "*) | |
10345 | case " $target_configargs " in | |
10346 | *" --with-newlib "*) | |
10347 | case "$target" in | |
5d571eaa | 10348 | *-cygwin*) |
443e6238 | 10349 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 10350 | ;; |
671aa708 NN |
10351 | esac |
10352 | ||
10353 | # If we're not building GCC, don't discard standard headers. | |
10354 | if test -d ${srcdir}/gcc; then | |
10355 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10356 | ||
10357 | if test "${build}" != "${host}"; then | |
10358 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10359 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10360 | # to it. This is right: we don't want to search that directory | |
10361 | # for binaries, but we want the header files in there, so add | |
10362 | # them explicitly. | |
0463992b | 10363 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
10364 | |
10365 | # Someone might think of using the pre-installed headers on | |
10366 | # Canadian crosses, in case the installed compiler is not fully | |
10367 | # compatible with the compiler being built. In this case, it | |
10368 | # would be better to flag an error than risking having | |
10369 | # incompatible object files being constructed. We can't | |
10370 | # guarantee that an error will be flagged, but let's hope the | |
10371 | # compiler will do it, when presented with incompatible header | |
10372 | # files. | |
10373 | fi | |
10374 | fi | |
10375 | ||
10376 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 10377 | i[3456789]86-*-linux*-no) |
671aa708 NN |
10378 | # Here host == target, so we don't need to build gcc, |
10379 | # so we don't want to discard standard headers. | |
10380 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10381 | ;; | |
10382 | *) | |
10383 | # If we're building newlib, use its generic headers last, but search | |
10384 | # for any libc-related directories first (so make it the last -B | |
10385 | # switch). | |
10386 | 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 |
10387 | |
10388 | # If we're building libgloss, find the startup file, simulator library | |
10389 | # and linker script. | |
10390 | case " $target_configdirs " in | |
10391 | *" libgloss "*) | |
10392 | # Look for startup file, simulator library and maybe linker script. | |
10393 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10394 | # Look for libnosys.a in case the target needs it. | |
10395 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10396 | # Most targets have the linker script in the source directory. | |
10397 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10398 | ;; | |
10399 | esac | |
671aa708 NN |
10400 | ;; |
10401 | esac | |
10402 | ;; | |
10403 | esac | |
10404 | ;; | |
10405 | esac | |
5d571eaa | 10406 | |
b91f0a41 | 10407 | case "$target" in |
5d571eaa OS |
10408 | x86_64-*mingw* | *-w64-mingw*) |
10409 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10410 | # however, use a symlink named 'mingw' in ${prefix} . | |
10411 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10412 | ;; | |
10413 | *-mingw*) | |
10414 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10415 | 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' | |
10416 | ;; | |
b91f0a41 | 10417 | esac |
671aa708 | 10418 | |
6691a79e ME |
10419 | # Allow the user to override the flags for |
10420 | # our build compiler if desired. | |
f019adc1 MF |
10421 | if test x"${build}" = x"${host}" ; then |
10422 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
84401ce5 | 10423 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
f019adc1 MF |
10424 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10425 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10426 | fi | |
6691a79e | 10427 | |
671aa708 NN |
10428 | # On Canadian crosses, we'll be searching the right directories for |
10429 | # the previously-installed cross compiler, so don't bother to add | |
10430 | # flags for directories within the install tree of the compiler | |
10431 | # being built; programs in there won't even run. | |
10432 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10433 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 10434 | 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 |
10435 | fi |
10436 | ||
10437 | if test "x${use_gnu_ld}" = x && | |
10438 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10439 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 10440 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
10441 | fi |
10442 | ||
e88a2c09 DD |
10443 | # Search for other target-specific linker scripts and such. |
10444 | case "${target}" in | |
3e19841a PB |
10445 | mep*) |
10446 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10447 | ;; | |
9b8ffbb8 OH |
10448 | # The VxWorks support for shared libraries is getting in |
10449 | # incrementally. Make sure it doesn't get activated implicitly: | |
10450 | *vxworks*) | |
10451 | if test "${enable_shared-unset}" = unset ; then | |
10452 | enable_shared=no | |
10453 | # So the build of libraries knows ... | |
10454 | target_configargs="${target_configargs} --disable-shared" | |
10455 | # So gcc knows ... | |
10456 | host_configargs="${host_configargs} --disable-shared" | |
10457 | fi | |
10458 | ;; | |
e88a2c09 DD |
10459 | esac |
10460 | ||
671aa708 | 10461 | # Makefile fragments. |
7b61653a PE |
10462 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10463 | do | |
10464 | eval fragval=\$$frag | |
10465 | if test $fragval != /dev/null; then | |
10466 | eval $frag=${srcdir}/$fragval | |
10467 | fi | |
10468 | done | |
671aa708 NN |
10469 | |
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | # Miscellanea: directories, flags, etc. | |
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
d89f0ad6 | 10482 | |
23f6b2f9 | 10483 | # Build module lists & subconfigure args. |
671aa708 NN |
10484 | |
10485 | ||
10486 | ||
2abefe3d PB |
10487 | # Host module lists & subconfigure args. |
10488 | ||
10489 | ||
10490 | ||
aae29963 | 10491 | |
2abefe3d PB |
10492 | # Target module lists & subconfigure args. |
10493 | ||
10494 | ||
10495 | ||
10496 | # Build tools. | |
10497 | ||
10498 | ||
10499 | ||
0999159b PB |
10500 | |
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
b4c522fa | 10513 | |
3b5e8ee4 | 10514 | |
a1d2b162 IS |
10515 | |
10516 | ||
2abefe3d PB |
10517 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10518 | # on the build machine. These are used if the Makefile can't locate these | |
10519 | # programs in objdir. | |
10520 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10521 | ||
10522 | for ac_prog in 'bison -y' byacc yacc | |
10523 | do | |
1c710c3c | 10524 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10525 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10527 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10528 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 10529 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10530 | else |
10531 | if test -n "$YACC"; then | |
10532 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10533 | else | |
1c710c3c DJ |
10534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10535 | for as_dir in $PATH | |
10536 | do | |
10537 | IFS=$as_save_IFS | |
10538 | test -z "$as_dir" && as_dir=. | |
5213506e | 10539 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10541 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 10542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10543 | break 2 |
10544 | fi | |
10545 | done | |
5213506e RW |
10546 | done |
10547 | IFS=$as_save_IFS | |
1c710c3c | 10548 | |
2abefe3d PB |
10549 | fi |
10550 | fi | |
1c710c3c | 10551 | YACC=$ac_cv_prog_YACC |
2abefe3d | 10552 | if test -n "$YACC"; then |
5213506e RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10554 | $as_echo "$YACC" >&6; } | |
2abefe3d | 10555 | else |
5213506e RW |
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10557 | $as_echo "no" >&6; } | |
2abefe3d PB |
10558 | fi |
10559 | ||
5213506e | 10560 | |
1c710c3c | 10561 | test -n "$YACC" && break |
2abefe3d PB |
10562 | done |
10563 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10564 | ||
10565 | case " $build_configdirs " in | |
10566 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
10567 | esac |
10568 | ||
10569 | for ac_prog in bison | |
10570 | do | |
1c710c3c | 10571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10572 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10574 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10575 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 10576 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10577 | else |
10578 | if test -n "$BISON"; then | |
10579 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10580 | else | |
1c710c3c DJ |
10581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10582 | for as_dir in $PATH | |
10583 | do | |
10584 | IFS=$as_save_IFS | |
10585 | test -z "$as_dir" && as_dir=. | |
5213506e | 10586 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10588 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 10589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10590 | break 2 |
10591 | fi | |
10592 | done | |
5213506e RW |
10593 | done |
10594 | IFS=$as_save_IFS | |
1c710c3c | 10595 | |
2abefe3d PB |
10596 | fi |
10597 | fi | |
1c710c3c | 10598 | BISON=$ac_cv_prog_BISON |
2abefe3d | 10599 | if test -n "$BISON"; then |
5213506e RW |
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10601 | $as_echo "$BISON" >&6; } | |
2abefe3d | 10602 | else |
5213506e RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10604 | $as_echo "no" >&6; } | |
2abefe3d PB |
10605 | fi |
10606 | ||
5213506e | 10607 | |
1c710c3c | 10608 | test -n "$BISON" && break |
2abefe3d PB |
10609 | done |
10610 | test -n "$BISON" || BISON="$MISSING bison" | |
10611 | ||
10612 | case " $build_configdirs " in | |
10613 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10614 | esac | |
10615 | ||
10616 | for ac_prog in gm4 gnum4 m4 | |
10617 | do | |
1c710c3c | 10618 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10619 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10621 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10622 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 10623 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10624 | else |
10625 | if test -n "$M4"; then | |
10626 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10627 | else | |
1c710c3c DJ |
10628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10629 | for as_dir in $PATH | |
10630 | do | |
10631 | IFS=$as_save_IFS | |
10632 | test -z "$as_dir" && as_dir=. | |
5213506e | 10633 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10635 | ac_cv_prog_M4="$ac_prog" |
5213506e | 10636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10637 | break 2 |
10638 | fi | |
10639 | done | |
5213506e RW |
10640 | done |
10641 | IFS=$as_save_IFS | |
1c710c3c | 10642 | |
2abefe3d PB |
10643 | fi |
10644 | fi | |
1c710c3c | 10645 | M4=$ac_cv_prog_M4 |
2abefe3d | 10646 | if test -n "$M4"; then |
5213506e RW |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10648 | $as_echo "$M4" >&6; } | |
2abefe3d | 10649 | else |
5213506e RW |
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10651 | $as_echo "no" >&6; } | |
2abefe3d PB |
10652 | fi |
10653 | ||
5213506e | 10654 | |
1c710c3c | 10655 | test -n "$M4" && break |
2abefe3d PB |
10656 | done |
10657 | test -n "$M4" || M4="$MISSING m4" | |
10658 | ||
10659 | case " $build_configdirs " in | |
10660 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10661 | esac | |
10662 | ||
10663 | for ac_prog in flex lex | |
10664 | do | |
1c710c3c | 10665 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10666 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10668 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10669 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 10670 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10671 | else |
10672 | if test -n "$LEX"; then | |
10673 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10674 | else | |
1c710c3c DJ |
10675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10676 | for as_dir in $PATH | |
10677 | do | |
10678 | IFS=$as_save_IFS | |
10679 | test -z "$as_dir" && as_dir=. | |
5213506e | 10680 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10682 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 10683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10684 | break 2 |
10685 | fi | |
10686 | done | |
5213506e RW |
10687 | done |
10688 | IFS=$as_save_IFS | |
1c710c3c | 10689 | |
2abefe3d PB |
10690 | fi |
10691 | fi | |
1c710c3c | 10692 | LEX=$ac_cv_prog_LEX |
2abefe3d | 10693 | if test -n "$LEX"; then |
5213506e RW |
10694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10695 | $as_echo "$LEX" >&6; } | |
2abefe3d | 10696 | else |
5213506e RW |
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10698 | $as_echo "no" >&6; } | |
2abefe3d PB |
10699 | fi |
10700 | ||
5213506e | 10701 | |
1c710c3c | 10702 | test -n "$LEX" && break |
2abefe3d PB |
10703 | done |
10704 | test -n "$LEX" || LEX="$MISSING flex" | |
10705 | ||
10706 | case " $build_configdirs " in | |
10707 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10708 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10709 | esac | |
10710 | ||
10711 | for ac_prog in flex | |
10712 | do | |
1c710c3c | 10713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10714 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10716 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10717 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 10718 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10719 | else |
10720 | if test -n "$FLEX"; then | |
10721 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10722 | else | |
1c710c3c DJ |
10723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10724 | for as_dir in $PATH | |
10725 | do | |
10726 | IFS=$as_save_IFS | |
10727 | test -z "$as_dir" && as_dir=. | |
5213506e | 10728 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10730 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 10731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10732 | break 2 |
10733 | fi | |
10734 | done | |
5213506e RW |
10735 | done |
10736 | IFS=$as_save_IFS | |
1c710c3c | 10737 | |
2abefe3d PB |
10738 | fi |
10739 | fi | |
1c710c3c | 10740 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 10741 | if test -n "$FLEX"; then |
5213506e RW |
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10743 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 10744 | else |
5213506e RW |
10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10746 | $as_echo "no" >&6; } | |
2abefe3d PB |
10747 | fi |
10748 | ||
5213506e | 10749 | |
1c710c3c | 10750 | test -n "$FLEX" && break |
2abefe3d PB |
10751 | done |
10752 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10753 | ||
10754 | case " $build_configdirs " in | |
10755 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10756 | esac | |
10757 | ||
10758 | for ac_prog in makeinfo | |
10759 | do | |
1c710c3c | 10760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10761 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10763 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10764 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 10765 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10766 | else |
10767 | if test -n "$MAKEINFO"; then | |
10768 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10769 | else | |
1c710c3c DJ |
10770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10771 | for as_dir in $PATH | |
10772 | do | |
10773 | IFS=$as_save_IFS | |
10774 | test -z "$as_dir" && as_dir=. | |
5213506e | 10775 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10777 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 10778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10779 | break 2 |
10780 | fi | |
10781 | done | |
5213506e RW |
10782 | done |
10783 | IFS=$as_save_IFS | |
1c710c3c | 10784 | |
2abefe3d PB |
10785 | fi |
10786 | fi | |
1c710c3c | 10787 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 10788 | if test -n "$MAKEINFO"; then |
5213506e RW |
10789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10790 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 10791 | else |
5213506e RW |
10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10793 | $as_echo "no" >&6; } | |
2abefe3d PB |
10794 | fi |
10795 | ||
5213506e | 10796 | |
1c710c3c | 10797 | test -n "$MAKEINFO" && break |
2abefe3d PB |
10798 | done |
10799 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10800 | ||
10801 | case " $build_configdirs " in | |
10802 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10803 | *) | |
10804 | ||
d18ff35a | 10805 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
10806 | # higher, else we use the "missing" dummy. |
10807 | if ${MAKEINFO} --version \ | |
d18ff35a | 10808 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
10809 | : |
10810 | else | |
10811 | MAKEINFO="$MISSING makeinfo" | |
10812 | fi | |
10813 | ;; | |
10814 | ||
10815 | esac | |
671aa708 | 10816 | |
2abefe3d | 10817 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 10818 | |
2abefe3d PB |
10819 | for ac_prog in expect |
10820 | do | |
1c710c3c | 10821 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10822 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10824 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10825 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 10826 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10827 | else |
10828 | if test -n "$EXPECT"; then | |
10829 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10830 | else | |
1c710c3c DJ |
10831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10832 | for as_dir in $PATH | |
10833 | do | |
10834 | IFS=$as_save_IFS | |
10835 | test -z "$as_dir" && as_dir=. | |
5213506e | 10836 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10838 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 10839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10840 | break 2 |
10841 | fi | |
10842 | done | |
5213506e RW |
10843 | done |
10844 | IFS=$as_save_IFS | |
1c710c3c | 10845 | |
2abefe3d PB |
10846 | fi |
10847 | fi | |
1c710c3c | 10848 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 10849 | if test -n "$EXPECT"; then |
5213506e RW |
10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10851 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 10852 | else |
5213506e RW |
10853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10854 | $as_echo "no" >&6; } | |
2abefe3d | 10855 | fi |
671aa708 | 10856 | |
5213506e | 10857 | |
1c710c3c | 10858 | test -n "$EXPECT" && break |
2abefe3d PB |
10859 | done |
10860 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 10861 | |
2abefe3d PB |
10862 | case " $configdirs " in |
10863 | *" expect "*) | |
10864 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10865 | ;; | |
10866 | esac | |
671aa708 | 10867 | |
2abefe3d PB |
10868 | for ac_prog in runtest |
10869 | do | |
1c710c3c | 10870 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 10871 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10873 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10874 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 10875 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10876 | else |
10877 | if test -n "$RUNTEST"; then | |
10878 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 10879 | else |
1c710c3c DJ |
10880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10881 | for as_dir in $PATH | |
10882 | do | |
10883 | IFS=$as_save_IFS | |
10884 | test -z "$as_dir" && as_dir=. | |
5213506e | 10885 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10887 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 10888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10889 | break 2 |
10890 | fi | |
10891 | done | |
5213506e RW |
10892 | done |
10893 | IFS=$as_save_IFS | |
1c710c3c | 10894 | |
2abefe3d PB |
10895 | fi |
10896 | fi | |
1c710c3c | 10897 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 10898 | if test -n "$RUNTEST"; then |
5213506e RW |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10900 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 10901 | else |
5213506e RW |
10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10903 | $as_echo "no" >&6; } | |
2abefe3d | 10904 | fi |
671aa708 | 10905 | |
5213506e | 10906 | |
1c710c3c | 10907 | test -n "$RUNTEST" && break |
2abefe3d PB |
10908 | done |
10909 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 10910 | |
2abefe3d PB |
10911 | case " $configdirs " in |
10912 | *" dejagnu "*) | |
c394e891 | 10913 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
10914 | ;; |
10915 | esac | |
671aa708 | 10916 | |
4e3dcf20 | 10917 | |
671aa708 | 10918 | # Host tools. |
ca9f4b81 AO |
10919 | ncn_tool_prefix= |
10920 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10921 | ncn_target_tool_prefix= | |
10922 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10923 | ||
278a7a38 AO |
10924 | |
10925 | ||
10926 | if test -n "$AR"; then | |
10927 | ac_cv_prog_AR=$AR | |
10928 | elif test -n "$ac_cv_prog_AR"; then | |
10929 | AR=$ac_cv_prog_AR | |
10930 | fi | |
10931 | ||
10932 | if test -n "$ac_cv_prog_AR"; then | |
10933 | for ncn_progname in ar; do | |
10934 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10935 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10937 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10938 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 10939 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10940 | else |
10941 | if test -n "$AR"; then | |
10942 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10943 | else | |
10944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10945 | for as_dir in $PATH | |
10946 | do | |
10947 | IFS=$as_save_IFS | |
10948 | test -z "$as_dir" && as_dir=. | |
5213506e | 10949 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10951 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 10952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10953 | break 2 |
10954 | fi | |
10955 | done | |
5213506e RW |
10956 | done |
10957 | IFS=$as_save_IFS | |
278a7a38 AO |
10958 | |
10959 | fi | |
10960 | fi | |
10961 | AR=$ac_cv_prog_AR | |
10962 | if test -n "$AR"; then | |
5213506e RW |
10963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10964 | $as_echo "$AR" >&6; } | |
278a7a38 | 10965 | else |
5213506e RW |
10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10967 | $as_echo "no" >&6; } | |
278a7a38 AO |
10968 | fi |
10969 | ||
5213506e | 10970 | |
278a7a38 AO |
10971 | done |
10972 | fi | |
10973 | ||
10974 | for ncn_progname in ar; do | |
2693c0b0 PB |
10975 | if test -n "$ncn_tool_prefix"; then |
10976 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10977 | set dummy ${ncn_tool_prefix}${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 AO |
10982 | else |
10983 | if test -n "$AR"; then | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
11010 | fi |
11011 | ||
5213506e | 11012 | |
2693c0b0 PB |
11013 | fi |
11014 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
11015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11016 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11018 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11019 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 11020 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11021 | else |
2693c0b0 | 11022 | if test -n "$AR"; then |
af71363e AS |
11023 | ac_cv_prog_AR="$AR" # Let the user override the test. |
11024 | else | |
1c710c3c DJ |
11025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11026 | for as_dir in $PATH | |
11027 | do | |
11028 | IFS=$as_save_IFS | |
11029 | test -z "$as_dir" && as_dir=. | |
5213506e | 11030 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11032 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 11033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11034 | break 2 |
11035 | fi | |
11036 | done | |
5213506e RW |
11037 | done |
11038 | IFS=$as_save_IFS | |
1c710c3c | 11039 | |
ca9f4b81 AO |
11040 | fi |
11041 | fi | |
1c710c3c | 11042 | AR=$ac_cv_prog_AR |
2693c0b0 | 11043 | if test -n "$AR"; then |
5213506e RW |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11045 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 11046 | else |
5213506e RW |
11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11048 | $as_echo "no" >&6; } | |
ca9f4b81 | 11049 | fi |
1c710c3c | 11050 | |
5213506e | 11051 | |
2693c0b0 PB |
11052 | fi |
11053 | test -n "$ac_cv_prog_AR" && break | |
11054 | done | |
11055 | ||
11056 | if test -z "$ac_cv_prog_AR" ; then | |
11057 | set dummy ar | |
11058 | if test $build = $host ; then | |
11059 | AR="$2" | |
ca9f4b81 | 11060 | else |
2693c0b0 | 11061 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 11062 | fi |
ca9f4b81 AO |
11063 | fi |
11064 | ||
278a7a38 AO |
11065 | |
11066 | ||
11067 | if test -n "$AS"; then | |
11068 | ac_cv_prog_AS=$AS | |
11069 | elif test -n "$ac_cv_prog_AS"; then | |
11070 | AS=$ac_cv_prog_AS | |
11071 | fi | |
11072 | ||
11073 | if test -n "$ac_cv_prog_AS"; then | |
11074 | for ncn_progname in as; do | |
11075 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11076 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11078 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11079 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11080 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11081 | else |
11082 | if test -n "$AS"; then | |
11083 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
11084 | else | |
11085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11086 | for as_dir in $PATH | |
11087 | do | |
11088 | IFS=$as_save_IFS | |
11089 | test -z "$as_dir" && as_dir=. | |
5213506e | 11090 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11092 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11094 | break 2 |
11095 | fi | |
11096 | done | |
5213506e RW |
11097 | done |
11098 | IFS=$as_save_IFS | |
278a7a38 AO |
11099 | |
11100 | fi | |
11101 | fi | |
11102 | AS=$ac_cv_prog_AS | |
11103 | if test -n "$AS"; then | |
5213506e RW |
11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11105 | $as_echo "$AS" >&6; } | |
278a7a38 | 11106 | else |
5213506e RW |
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11108 | $as_echo "no" >&6; } | |
278a7a38 AO |
11109 | fi |
11110 | ||
5213506e | 11111 | |
278a7a38 AO |
11112 | done |
11113 | fi | |
11114 | ||
11115 | for ncn_progname in as; do | |
2693c0b0 PB |
11116 | if test -n "$ncn_tool_prefix"; then |
11117 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11118 | set dummy ${ncn_tool_prefix}${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 AO |
11123 | else |
11124 | if test -n "$AS"; then | |
11125 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
11151 | fi |
11152 | ||
5213506e | 11153 | |
2693c0b0 PB |
11154 | fi |
11155 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11156 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11157 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11159 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11160 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 11161 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11162 | else |
2693c0b0 PB |
11163 | if test -n "$AS"; then |
11164 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 11165 | else |
1c710c3c DJ |
11166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11167 | for as_dir in $PATH | |
11168 | do | |
11169 | IFS=$as_save_IFS | |
11170 | test -z "$as_dir" && as_dir=. | |
5213506e | 11171 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11173 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 11174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11175 | break 2 |
11176 | fi | |
11177 | done | |
5213506e RW |
11178 | done |
11179 | IFS=$as_save_IFS | |
1c710c3c | 11180 | |
ca9f4b81 AO |
11181 | fi |
11182 | fi | |
1c710c3c | 11183 | AS=$ac_cv_prog_AS |
2693c0b0 | 11184 | if test -n "$AS"; then |
5213506e RW |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11186 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 11187 | else |
5213506e RW |
11188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11189 | $as_echo "no" >&6; } | |
ca9f4b81 | 11190 | fi |
1c710c3c | 11191 | |
5213506e | 11192 | |
2693c0b0 PB |
11193 | fi |
11194 | test -n "$ac_cv_prog_AS" && break | |
11195 | done | |
11196 | ||
11197 | if test -z "$ac_cv_prog_AS" ; then | |
11198 | set dummy as | |
11199 | if test $build = $host ; then | |
11200 | AS="$2" | |
ca9f4b81 | 11201 | else |
2693c0b0 | 11202 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 11203 | fi |
ca9f4b81 AO |
11204 | fi |
11205 | ||
278a7a38 AO |
11206 | |
11207 | ||
11208 | if test -n "$DLLTOOL"; then | |
11209 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11210 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11211 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11212 | fi | |
11213 | ||
11214 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11215 | for ncn_progname in dlltool; do | |
11216 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11217 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11219 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11220 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11221 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11222 | else |
11223 | if test -n "$DLLTOOL"; then | |
11224 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11225 | else | |
11226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11227 | for as_dir in $PATH | |
11228 | do | |
11229 | IFS=$as_save_IFS | |
11230 | test -z "$as_dir" && as_dir=. | |
5213506e | 11231 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11233 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11235 | break 2 |
11236 | fi | |
11237 | done | |
5213506e RW |
11238 | done |
11239 | IFS=$as_save_IFS | |
278a7a38 AO |
11240 | |
11241 | fi | |
11242 | fi | |
11243 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11244 | if test -n "$DLLTOOL"; then | |
5213506e RW |
11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11246 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 11247 | else |
5213506e RW |
11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11249 | $as_echo "no" >&6; } | |
278a7a38 AO |
11250 | fi |
11251 | ||
5213506e | 11252 | |
278a7a38 AO |
11253 | done |
11254 | fi | |
11255 | ||
11256 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
11257 | if test -n "$ncn_tool_prefix"; then |
11258 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11259 | set dummy ${ncn_tool_prefix}${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 AO |
11264 | else |
11265 | if test -n "$DLLTOOL"; then | |
11266 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
11292 | fi |
11293 | ||
5213506e | 11294 | |
2693c0b0 PB |
11295 | fi |
11296 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11297 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11298 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11300 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11301 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 11302 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11303 | else |
2693c0b0 PB |
11304 | if test -n "$DLLTOOL"; then |
11305 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 11306 | else |
1c710c3c DJ |
11307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11308 | for as_dir in $PATH | |
11309 | do | |
11310 | IFS=$as_save_IFS | |
11311 | test -z "$as_dir" && as_dir=. | |
5213506e | 11312 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11314 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 11315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11316 | break 2 |
11317 | fi | |
11318 | done | |
5213506e RW |
11319 | done |
11320 | IFS=$as_save_IFS | |
1c710c3c | 11321 | |
ca9f4b81 AO |
11322 | fi |
11323 | fi | |
1c710c3c | 11324 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 11325 | if test -n "$DLLTOOL"; then |
5213506e RW |
11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11327 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 11328 | else |
5213506e RW |
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11330 | $as_echo "no" >&6; } | |
ca9f4b81 | 11331 | fi |
1c710c3c | 11332 | |
5213506e | 11333 | |
2693c0b0 PB |
11334 | fi |
11335 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11336 | done | |
11337 | ||
11338 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11339 | set dummy dlltool | |
11340 | if test $build = $host ; then | |
11341 | DLLTOOL="$2" | |
ca9f4b81 | 11342 | else |
2693c0b0 | 11343 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 11344 | fi |
ca9f4b81 AO |
11345 | fi |
11346 | ||
278a7a38 AO |
11347 | |
11348 | ||
3b5e8ee4 IS |
11349 | if test -n "$DSYMUTIL"; then |
11350 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11351 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11352 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11353 | fi | |
11354 | ||
11355 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11356 | for ncn_progname in dsymutil; do | |
11357 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11358 | set dummy ${ncn_progname}; ac_word=$2 | |
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11360 | $as_echo_n "checking for $ac_word... " >&6; } | |
11361 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11362 | $as_echo_n "(cached) " >&6 | |
11363 | else | |
11364 | if test -n "$DSYMUTIL"; then | |
11365 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11366 | else | |
11367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11368 | for as_dir in $PATH | |
11369 | do | |
11370 | IFS=$as_save_IFS | |
11371 | test -z "$as_dir" && as_dir=. | |
11372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11374 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11376 | break 2 | |
11377 | fi | |
11378 | done | |
11379 | done | |
11380 | IFS=$as_save_IFS | |
11381 | ||
11382 | fi | |
11383 | fi | |
11384 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11385 | if test -n "$DSYMUTIL"; then | |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11387 | $as_echo "$DSYMUTIL" >&6; } | |
11388 | else | |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11390 | $as_echo "no" >&6; } | |
11391 | fi | |
11392 | ||
11393 | ||
11394 | done | |
11395 | fi | |
11396 | ||
11397 | for ncn_progname in dsymutil; do | |
11398 | if test -n "$ncn_tool_prefix"; then | |
11399 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11400 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11438 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11439 | set dummy ${ncn_progname}; ac_word=$2 | |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11441 | $as_echo_n "checking for $ac_word... " >&6; } | |
11442 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11443 | $as_echo_n "(cached) " >&6 | |
11444 | else | |
11445 | if test -n "$DSYMUTIL"; then | |
11446 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11447 | else | |
11448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11449 | for as_dir in $PATH | |
11450 | do | |
11451 | IFS=$as_save_IFS | |
11452 | test -z "$as_dir" && as_dir=. | |
11453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11455 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11457 | break 2 | |
11458 | fi | |
11459 | done | |
11460 | done | |
11461 | IFS=$as_save_IFS | |
11462 | ||
11463 | fi | |
11464 | fi | |
11465 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11466 | if test -n "$DSYMUTIL"; then | |
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11468 | $as_echo "$DSYMUTIL" >&6; } | |
11469 | else | |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11471 | $as_echo "no" >&6; } | |
11472 | fi | |
11473 | ||
11474 | ||
11475 | fi | |
11476 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11477 | done | |
11478 | ||
11479 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11480 | set dummy dsymutil | |
11481 | if test $build = $host ; then | |
11482 | DSYMUTIL="$2" | |
11483 | else | |
11484 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11485 | fi | |
11486 | fi | |
11487 | ||
11488 | ||
11489 | ||
278a7a38 AO |
11490 | if test -n "$LD"; then |
11491 | ac_cv_prog_LD=$LD | |
11492 | elif test -n "$ac_cv_prog_LD"; then | |
11493 | LD=$ac_cv_prog_LD | |
11494 | fi | |
11495 | ||
11496 | if test -n "$ac_cv_prog_LD"; then | |
11497 | for ncn_progname in ld; do | |
11498 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11499 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11502 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11503 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11504 | else |
11505 | if test -n "$LD"; then | |
11506 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11507 | else | |
11508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11509 | for as_dir in $PATH | |
11510 | do | |
11511 | IFS=$as_save_IFS | |
11512 | test -z "$as_dir" && as_dir=. | |
5213506e | 11513 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11515 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11517 | break 2 |
11518 | fi | |
11519 | done | |
5213506e RW |
11520 | done |
11521 | IFS=$as_save_IFS | |
278a7a38 AO |
11522 | |
11523 | fi | |
11524 | fi | |
11525 | LD=$ac_cv_prog_LD | |
11526 | if test -n "$LD"; then | |
5213506e RW |
11527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11528 | $as_echo "$LD" >&6; } | |
278a7a38 | 11529 | else |
5213506e RW |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11531 | $as_echo "no" >&6; } | |
278a7a38 AO |
11532 | fi |
11533 | ||
5213506e | 11534 | |
278a7a38 AO |
11535 | done |
11536 | fi | |
11537 | ||
11538 | for ncn_progname in ld; do | |
2693c0b0 PB |
11539 | if test -n "$ncn_tool_prefix"; then |
11540 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11541 | set dummy ${ncn_tool_prefix}${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 AO |
11546 | else |
11547 | if test -n "$LD"; then | |
11548 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
11574 | fi |
11575 | ||
5213506e | 11576 | |
2693c0b0 PB |
11577 | fi |
11578 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11579 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11580 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11582 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11583 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 11584 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11585 | else |
2693c0b0 PB |
11586 | if test -n "$LD"; then |
11587 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 11588 | else |
1c710c3c DJ |
11589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11590 | for as_dir in $PATH | |
11591 | do | |
11592 | IFS=$as_save_IFS | |
11593 | test -z "$as_dir" && as_dir=. | |
5213506e | 11594 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11596 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 11597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11598 | break 2 |
11599 | fi | |
11600 | done | |
5213506e RW |
11601 | done |
11602 | IFS=$as_save_IFS | |
1c710c3c | 11603 | |
ca9f4b81 AO |
11604 | fi |
11605 | fi | |
1c710c3c | 11606 | LD=$ac_cv_prog_LD |
2693c0b0 | 11607 | if test -n "$LD"; then |
5213506e RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11609 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 11610 | else |
5213506e RW |
11611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11612 | $as_echo "no" >&6; } | |
ca9f4b81 | 11613 | fi |
1c710c3c | 11614 | |
5213506e | 11615 | |
2693c0b0 PB |
11616 | fi |
11617 | test -n "$ac_cv_prog_LD" && break | |
11618 | done | |
11619 | ||
11620 | if test -z "$ac_cv_prog_LD" ; then | |
11621 | set dummy ld | |
11622 | if test $build = $host ; then | |
11623 | LD="$2" | |
ca9f4b81 | 11624 | else |
2693c0b0 | 11625 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 11626 | fi |
ca9f4b81 AO |
11627 | fi |
11628 | ||
278a7a38 AO |
11629 | |
11630 | ||
11631 | if test -n "$LIPO"; then | |
11632 | ac_cv_prog_LIPO=$LIPO | |
11633 | elif test -n "$ac_cv_prog_LIPO"; then | |
11634 | LIPO=$ac_cv_prog_LIPO | |
11635 | fi | |
11636 | ||
11637 | if test -n "$ac_cv_prog_LIPO"; then | |
11638 | for ncn_progname in lipo; do | |
11639 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11640 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11642 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11643 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11644 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11645 | else |
11646 | if test -n "$LIPO"; then | |
11647 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11648 | else | |
11649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11650 | for as_dir in $PATH | |
11651 | do | |
11652 | IFS=$as_save_IFS | |
11653 | test -z "$as_dir" && as_dir=. | |
5213506e | 11654 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11656 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11658 | break 2 |
11659 | fi | |
11660 | done | |
5213506e RW |
11661 | done |
11662 | IFS=$as_save_IFS | |
278a7a38 AO |
11663 | |
11664 | fi | |
11665 | fi | |
11666 | LIPO=$ac_cv_prog_LIPO | |
11667 | if test -n "$LIPO"; then | |
5213506e RW |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11669 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 11670 | else |
5213506e RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11672 | $as_echo "no" >&6; } | |
278a7a38 AO |
11673 | fi |
11674 | ||
5213506e | 11675 | |
278a7a38 AO |
11676 | done |
11677 | fi | |
11678 | ||
11679 | for ncn_progname in lipo; do | |
2abefe3d PB |
11680 | if test -n "$ncn_tool_prefix"; then |
11681 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11682 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 PB |
11715 | fi |
11716 | ||
5213506e | 11717 | |
2abefe3d PB |
11718 | fi |
11719 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11720 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11721 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11723 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11724 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 11725 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
11726 | else |
11727 | if test -n "$LIPO"; then | |
11728 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11729 | else | |
1c710c3c DJ |
11730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11731 | for as_dir in $PATH | |
11732 | do | |
11733 | IFS=$as_save_IFS | |
11734 | test -z "$as_dir" && as_dir=. | |
5213506e | 11735 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11737 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 11738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11739 | break 2 |
11740 | fi | |
11741 | done | |
5213506e RW |
11742 | done |
11743 | IFS=$as_save_IFS | |
1c710c3c | 11744 | |
2abefe3d PB |
11745 | fi |
11746 | fi | |
1c710c3c | 11747 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 11748 | if test -n "$LIPO"; then |
5213506e RW |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11750 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 11751 | else |
5213506e RW |
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11753 | $as_echo "no" >&6; } | |
2abefe3d | 11754 | fi |
1c710c3c | 11755 | |
5213506e | 11756 | |
2abefe3d PB |
11757 | fi |
11758 | test -n "$ac_cv_prog_LIPO" && break | |
11759 | done | |
11760 | ||
11761 | if test -z "$ac_cv_prog_LIPO" ; then | |
11762 | set dummy lipo | |
11763 | if test $build = $host ; then | |
11764 | LIPO="$2" | |
11765 | else | |
11766 | LIPO="${ncn_tool_prefix}$2" | |
11767 | fi | |
11768 | fi | |
11769 | ||
278a7a38 AO |
11770 | |
11771 | ||
11772 | if test -n "$NM"; then | |
11773 | ac_cv_prog_NM=$NM | |
11774 | elif test -n "$ac_cv_prog_NM"; then | |
11775 | NM=$ac_cv_prog_NM | |
11776 | fi | |
11777 | ||
11778 | if test -n "$ac_cv_prog_NM"; then | |
11779 | for ncn_progname in nm; do | |
11780 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11781 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11783 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11784 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11785 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
11786 | else |
11787 | if test -n "$NM"; then | |
11788 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11789 | else | |
1c710c3c DJ |
11790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11791 | for as_dir in $PATH | |
11792 | do | |
11793 | IFS=$as_save_IFS | |
11794 | test -z "$as_dir" && as_dir=. | |
5213506e | 11795 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11797 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11799 | break 2 |
11800 | fi | |
11801 | done | |
5213506e RW |
11802 | done |
11803 | IFS=$as_save_IFS | |
1c710c3c | 11804 | |
ca9f4b81 AO |
11805 | fi |
11806 | fi | |
1c710c3c | 11807 | NM=$ac_cv_prog_NM |
ca9f4b81 | 11808 | if test -n "$NM"; then |
5213506e RW |
11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11810 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11811 | else |
5213506e RW |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11813 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11814 | fi |
11815 | ||
5213506e | 11816 | |
278a7a38 AO |
11817 | done |
11818 | fi | |
11819 | ||
11820 | for ncn_progname in nm; do | |
11821 | if test -n "$ncn_tool_prefix"; then | |
11822 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11823 | set dummy ${ncn_tool_prefix}${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 |
ca9f4b81 | 11828 | else |
2693c0b0 PB |
11829 | if test -n "$NM"; then |
11830 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 11831 | else |
1c710c3c DJ |
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_tool_prefix}${ncn_progname}" |
5213506e | 11840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11841 | break 2 |
11842 | fi | |
11843 | done | |
5213506e RW |
11844 | done |
11845 | IFS=$as_save_IFS | |
1c710c3c | 11846 | |
ca9f4b81 AO |
11847 | fi |
11848 | fi | |
1c710c3c | 11849 | NM=$ac_cv_prog_NM |
2693c0b0 | 11850 | if test -n "$NM"; then |
5213506e RW |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11852 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 11853 | else |
5213506e RW |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11855 | $as_echo "no" >&6; } | |
ca9f4b81 | 11856 | fi |
1c710c3c | 11857 | |
5213506e | 11858 | |
2693c0b0 | 11859 | fi |
278a7a38 AO |
11860 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11861 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11862 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11864 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11865 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 11866 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11867 | else |
11868 | if test -n "$NM"; then | |
11869 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11870 | else | |
11871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11872 | for as_dir in $PATH | |
11873 | do | |
11874 | IFS=$as_save_IFS | |
11875 | test -z "$as_dir" && as_dir=. | |
5213506e | 11876 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11878 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 11879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11880 | break 2 |
11881 | fi | |
11882 | done | |
5213506e RW |
11883 | done |
11884 | IFS=$as_save_IFS | |
278a7a38 AO |
11885 | |
11886 | fi | |
11887 | fi | |
11888 | NM=$ac_cv_prog_NM | |
11889 | if test -n "$NM"; then | |
5213506e RW |
11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11891 | $as_echo "$NM" >&6; } | |
278a7a38 | 11892 | else |
5213506e RW |
11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11894 | $as_echo "no" >&6; } | |
278a7a38 AO |
11895 | fi |
11896 | ||
5213506e | 11897 | |
278a7a38 AO |
11898 | fi |
11899 | test -n "$ac_cv_prog_NM" && break | |
11900 | done | |
11901 | ||
11902 | if test -z "$ac_cv_prog_NM" ; then | |
11903 | set dummy nm | |
11904 | if test $build = $host ; then | |
11905 | NM="$2" | |
11906 | else | |
11907 | NM="${ncn_tool_prefix}$2" | |
11908 | fi | |
11909 | fi | |
11910 | ||
11911 | ||
11912 | ||
11913 | if test -n "$RANLIB"; then | |
11914 | ac_cv_prog_RANLIB=$RANLIB | |
11915 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11916 | RANLIB=$ac_cv_prog_RANLIB | |
11917 | fi | |
11918 | ||
11919 | if test -n "$ac_cv_prog_RANLIB"; then | |
11920 | for ncn_progname in ranlib; do | |
11921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11922 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11924 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11925 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 11926 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11927 | else |
11928 | if test -n "$RANLIB"; then | |
11929 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11930 | else | |
11931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11932 | for as_dir in $PATH | |
11933 | do | |
11934 | IFS=$as_save_IFS | |
11935 | test -z "$as_dir" && as_dir=. | |
5213506e | 11936 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11938 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 11939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11940 | break 2 |
11941 | fi | |
11942 | done | |
5213506e RW |
11943 | done |
11944 | IFS=$as_save_IFS | |
278a7a38 AO |
11945 | |
11946 | fi | |
11947 | fi | |
11948 | RANLIB=$ac_cv_prog_RANLIB | |
11949 | if test -n "$RANLIB"; then | |
5213506e RW |
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11951 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 11952 | else |
5213506e RW |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11954 | $as_echo "no" >&6; } | |
278a7a38 AO |
11955 | fi |
11956 | ||
5213506e | 11957 | |
278a7a38 AO |
11958 | done |
11959 | fi | |
ca9f4b81 | 11960 | |
278a7a38 | 11961 | for ncn_progname in ranlib; do |
2693c0b0 PB |
11962 | if test -n "$ncn_tool_prefix"; then |
11963 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11964 | set dummy ${ncn_tool_prefix}${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 AO |
11969 | else |
11970 | if test -n "$RANLIB"; then | |
11971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
11997 | fi |
11998 | ||
5213506e | 11999 | |
2693c0b0 PB |
12000 | fi |
12001 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
12002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12003 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12005 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12006 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 12007 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12008 | else |
2693c0b0 PB |
12009 | if test -n "$RANLIB"; then |
12010 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 12011 | else |
1c710c3c DJ |
12012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12013 | for as_dir in $PATH | |
12014 | do | |
12015 | IFS=$as_save_IFS | |
12016 | test -z "$as_dir" && as_dir=. | |
5213506e | 12017 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12019 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 12020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12021 | break 2 |
12022 | fi | |
12023 | done | |
5213506e RW |
12024 | done |
12025 | IFS=$as_save_IFS | |
1c710c3c | 12026 | |
ca9f4b81 AO |
12027 | fi |
12028 | fi | |
1c710c3c | 12029 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 12030 | if test -n "$RANLIB"; then |
5213506e RW |
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
12032 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 12033 | else |
5213506e RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12035 | $as_echo "no" >&6; } | |
ca9f4b81 | 12036 | fi |
1c710c3c | 12037 | |
5213506e | 12038 | |
ca9f4b81 | 12039 | fi |
2693c0b0 PB |
12040 | test -n "$ac_cv_prog_RANLIB" && break |
12041 | done | |
12042 | ||
12043 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 12044 | RANLIB="true" |
ca9f4b81 AO |
12045 | fi |
12046 | ||
278a7a38 AO |
12047 | |
12048 | ||
12049 | if test -n "$STRIP"; then | |
12050 | ac_cv_prog_STRIP=$STRIP | |
12051 | elif test -n "$ac_cv_prog_STRIP"; then | |
12052 | STRIP=$ac_cv_prog_STRIP | |
12053 | fi | |
12054 | ||
12055 | if test -n "$ac_cv_prog_STRIP"; then | |
12056 | for ncn_progname in strip; do | |
12057 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12058 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12060 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12061 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12062 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12063 | else |
12064 | if test -n "$STRIP"; then | |
12065 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12066 | else | |
12067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12068 | for as_dir in $PATH | |
12069 | do | |
12070 | IFS=$as_save_IFS | |
12071 | test -z "$as_dir" && as_dir=. | |
5213506e | 12072 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12073 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12074 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12076 | break 2 |
12077 | fi | |
12078 | done | |
5213506e RW |
12079 | done |
12080 | IFS=$as_save_IFS | |
278a7a38 AO |
12081 | |
12082 | fi | |
12083 | fi | |
12084 | STRIP=$ac_cv_prog_STRIP | |
12085 | if test -n "$STRIP"; then | |
5213506e RW |
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12087 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 12088 | else |
5213506e RW |
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12090 | $as_echo "no" >&6; } | |
278a7a38 AO |
12091 | fi |
12092 | ||
5213506e | 12093 | |
278a7a38 AO |
12094 | done |
12095 | fi | |
12096 | ||
12097 | for ncn_progname in strip; do | |
2abefe3d PB |
12098 | if test -n "$ncn_tool_prefix"; then |
12099 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12100 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 PB |
12133 | fi |
12134 | ||
5213506e | 12135 | |
2abefe3d PB |
12136 | fi |
12137 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12138 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12139 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12141 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12142 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 12143 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
12144 | else |
12145 | if test -n "$STRIP"; then | |
12146 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12147 | else | |
1c710c3c DJ |
12148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12149 | for as_dir in $PATH | |
12150 | do | |
12151 | IFS=$as_save_IFS | |
12152 | test -z "$as_dir" && as_dir=. | |
5213506e | 12153 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12155 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 12156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12157 | break 2 |
12158 | fi | |
12159 | done | |
5213506e RW |
12160 | done |
12161 | IFS=$as_save_IFS | |
1c710c3c | 12162 | |
2abefe3d PB |
12163 | fi |
12164 | fi | |
1c710c3c | 12165 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 12166 | if test -n "$STRIP"; then |
5213506e RW |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12168 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 12169 | else |
5213506e RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12171 | $as_echo "no" >&6; } | |
2abefe3d | 12172 | fi |
1c710c3c | 12173 | |
5213506e | 12174 | |
2abefe3d PB |
12175 | fi |
12176 | test -n "$ac_cv_prog_STRIP" && break | |
12177 | done | |
12178 | ||
12179 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 12180 | STRIP="true" |
2abefe3d PB |
12181 | fi |
12182 | ||
278a7a38 AO |
12183 | |
12184 | ||
12185 | if test -n "$WINDRES"; then | |
12186 | ac_cv_prog_WINDRES=$WINDRES | |
12187 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12188 | WINDRES=$ac_cv_prog_WINDRES | |
12189 | fi | |
12190 | ||
12191 | if test -n "$ac_cv_prog_WINDRES"; then | |
12192 | for ncn_progname in windres; do | |
12193 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12194 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12196 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12197 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12198 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12199 | else |
12200 | if test -n "$WINDRES"; then | |
12201 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12202 | else | |
12203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12204 | for as_dir in $PATH | |
12205 | do | |
12206 | IFS=$as_save_IFS | |
12207 | test -z "$as_dir" && as_dir=. | |
5213506e | 12208 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12210 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12212 | break 2 |
12213 | fi | |
12214 | done | |
5213506e RW |
12215 | done |
12216 | IFS=$as_save_IFS | |
278a7a38 AO |
12217 | |
12218 | fi | |
12219 | fi | |
12220 | WINDRES=$ac_cv_prog_WINDRES | |
12221 | if test -n "$WINDRES"; then | |
5213506e RW |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12223 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 12224 | else |
5213506e RW |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12226 | $as_echo "no" >&6; } | |
278a7a38 AO |
12227 | fi |
12228 | ||
5213506e | 12229 | |
278a7a38 AO |
12230 | done |
12231 | fi | |
12232 | ||
12233 | for ncn_progname in windres; do | |
2693c0b0 PB |
12234 | if test -n "$ncn_tool_prefix"; then |
12235 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12236 | set dummy ${ncn_tool_prefix}${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 AO |
12241 | else |
12242 | if test -n "$WINDRES"; then | |
12243 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
12269 | fi |
12270 | ||
5213506e | 12271 | |
2693c0b0 PB |
12272 | fi |
12273 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12274 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12275 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12277 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12278 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 12279 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12280 | else |
2693c0b0 PB |
12281 | if test -n "$WINDRES"; then |
12282 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 12283 | else |
1c710c3c DJ |
12284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12285 | for as_dir in $PATH | |
12286 | do | |
12287 | IFS=$as_save_IFS | |
12288 | test -z "$as_dir" && as_dir=. | |
5213506e | 12289 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12291 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 12292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12293 | break 2 |
12294 | fi | |
12295 | done | |
5213506e RW |
12296 | done |
12297 | IFS=$as_save_IFS | |
1c710c3c | 12298 | |
ca9f4b81 AO |
12299 | fi |
12300 | fi | |
1c710c3c | 12301 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 12302 | if test -n "$WINDRES"; then |
5213506e RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12304 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 12305 | else |
5213506e RW |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12307 | $as_echo "no" >&6; } | |
ca9f4b81 | 12308 | fi |
1c710c3c | 12309 | |
5213506e | 12310 | |
2693c0b0 PB |
12311 | fi |
12312 | test -n "$ac_cv_prog_WINDRES" && break | |
12313 | done | |
12314 | ||
12315 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12316 | set dummy windres | |
12317 | if test $build = $host ; then | |
12318 | WINDRES="$2" | |
ca9f4b81 | 12319 | else |
2693c0b0 | 12320 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 12321 | fi |
ca9f4b81 AO |
12322 | fi |
12323 | ||
278a7a38 AO |
12324 | |
12325 | ||
901119ae KT |
12326 | if test -n "$WINDMC"; then |
12327 | ac_cv_prog_WINDMC=$WINDMC | |
12328 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12329 | WINDMC=$ac_cv_prog_WINDMC | |
12330 | fi | |
12331 | ||
12332 | if test -n "$ac_cv_prog_WINDMC"; then | |
12333 | for ncn_progname in windmc; do | |
12334 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12335 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12337 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12338 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12339 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12340 | else |
12341 | if test -n "$WINDMC"; then | |
12342 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12343 | else | |
12344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12345 | for as_dir in $PATH | |
12346 | do | |
12347 | IFS=$as_save_IFS | |
12348 | test -z "$as_dir" && as_dir=. | |
5213506e | 12349 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12350 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12351 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12352 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12353 | break 2 |
12354 | fi | |
12355 | done | |
5213506e RW |
12356 | done |
12357 | IFS=$as_save_IFS | |
901119ae KT |
12358 | |
12359 | fi | |
12360 | fi | |
12361 | WINDMC=$ac_cv_prog_WINDMC | |
12362 | if test -n "$WINDMC"; then | |
5213506e RW |
12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12364 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12365 | else |
5213506e RW |
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12367 | $as_echo "no" >&6; } | |
901119ae KT |
12368 | fi |
12369 | ||
5213506e | 12370 | |
901119ae KT |
12371 | done |
12372 | fi | |
12373 | ||
12374 | for ncn_progname in windmc; do | |
12375 | if test -n "$ncn_tool_prefix"; then | |
12376 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12377 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12415 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12416 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12418 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12419 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 12420 | $as_echo_n "(cached) " >&6 |
901119ae KT |
12421 | else |
12422 | if test -n "$WINDMC"; then | |
12423 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12424 | else | |
12425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12426 | for as_dir in $PATH | |
12427 | do | |
12428 | IFS=$as_save_IFS | |
12429 | test -z "$as_dir" && as_dir=. | |
5213506e | 12430 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 12432 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 12433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12434 | break 2 |
12435 | fi | |
12436 | done | |
5213506e RW |
12437 | done |
12438 | IFS=$as_save_IFS | |
901119ae KT |
12439 | |
12440 | fi | |
12441 | fi | |
12442 | WINDMC=$ac_cv_prog_WINDMC | |
12443 | if test -n "$WINDMC"; then | |
5213506e RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12445 | $as_echo "$WINDMC" >&6; } | |
901119ae | 12446 | else |
5213506e RW |
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12448 | $as_echo "no" >&6; } | |
901119ae KT |
12449 | fi |
12450 | ||
5213506e | 12451 | |
901119ae KT |
12452 | fi |
12453 | test -n "$ac_cv_prog_WINDMC" && break | |
12454 | done | |
12455 | ||
12456 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12457 | set dummy windmc | |
12458 | if test $build = $host ; then | |
12459 | WINDMC="$2" | |
12460 | else | |
12461 | WINDMC="${ncn_tool_prefix}$2" | |
12462 | fi | |
12463 | fi | |
12464 | ||
12465 | ||
12466 | ||
278a7a38 AO |
12467 | if test -n "$OBJCOPY"; then |
12468 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12469 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12470 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12471 | fi | |
12472 | ||
12473 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12474 | for ncn_progname in objcopy; do | |
12475 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12476 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12478 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12479 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12480 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12481 | else |
12482 | if test -n "$OBJCOPY"; then | |
12483 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12484 | else | |
12485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12486 | for as_dir in $PATH | |
12487 | do | |
12488 | IFS=$as_save_IFS | |
12489 | test -z "$as_dir" && as_dir=. | |
5213506e | 12490 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12492 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12494 | break 2 |
12495 | fi | |
12496 | done | |
5213506e RW |
12497 | done |
12498 | IFS=$as_save_IFS | |
278a7a38 AO |
12499 | |
12500 | fi | |
12501 | fi | |
12502 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12503 | if test -n "$OBJCOPY"; then | |
5213506e RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12505 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 12506 | else |
5213506e RW |
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12508 | $as_echo "no" >&6; } | |
278a7a38 AO |
12509 | fi |
12510 | ||
5213506e | 12511 | |
278a7a38 AO |
12512 | done |
12513 | fi | |
12514 | ||
12515 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
12516 | if test -n "$ncn_tool_prefix"; then |
12517 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12518 | set dummy ${ncn_tool_prefix}${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 AO |
12523 | else |
12524 | if test -n "$OBJCOPY"; then | |
12525 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
12551 | fi |
12552 | ||
5213506e | 12553 | |
2693c0b0 PB |
12554 | fi |
12555 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12556 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12557 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12559 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12560 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 12561 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12562 | else |
2693c0b0 PB |
12563 | if test -n "$OBJCOPY"; then |
12564 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 12565 | else |
1c710c3c DJ |
12566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12567 | for as_dir in $PATH | |
12568 | do | |
12569 | IFS=$as_save_IFS | |
12570 | test -z "$as_dir" && as_dir=. | |
5213506e | 12571 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12572 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12573 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 12574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12575 | break 2 |
12576 | fi | |
12577 | done | |
5213506e RW |
12578 | done |
12579 | IFS=$as_save_IFS | |
1c710c3c | 12580 | |
ca9f4b81 AO |
12581 | fi |
12582 | fi | |
1c710c3c | 12583 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 12584 | if test -n "$OBJCOPY"; then |
5213506e RW |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
12586 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 12587 | else |
5213506e RW |
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12589 | $as_echo "no" >&6; } | |
ca9f4b81 | 12590 | fi |
1c710c3c | 12591 | |
5213506e | 12592 | |
2693c0b0 PB |
12593 | fi |
12594 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12595 | done | |
12596 | ||
12597 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12598 | set dummy objcopy | |
12599 | if test $build = $host ; then | |
12600 | OBJCOPY="$2" | |
ca9f4b81 | 12601 | else |
2693c0b0 | 12602 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 12603 | fi |
ca9f4b81 AO |
12604 | fi |
12605 | ||
278a7a38 AO |
12606 | |
12607 | ||
12608 | if test -n "$OBJDUMP"; then | |
12609 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12610 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12611 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12612 | fi | |
12613 | ||
12614 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12615 | for ncn_progname in objdump; do | |
12616 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12617 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12619 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12620 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12621 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12622 | else |
12623 | if test -n "$OBJDUMP"; then | |
12624 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12625 | else | |
12626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12627 | for as_dir in $PATH | |
12628 | do | |
12629 | IFS=$as_save_IFS | |
12630 | test -z "$as_dir" && as_dir=. | |
5213506e | 12631 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12633 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12635 | break 2 |
12636 | fi | |
12637 | done | |
5213506e RW |
12638 | done |
12639 | IFS=$as_save_IFS | |
278a7a38 AO |
12640 | |
12641 | fi | |
12642 | fi | |
12643 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12644 | if test -n "$OBJDUMP"; then | |
5213506e RW |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12646 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 12647 | else |
5213506e RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12649 | $as_echo "no" >&6; } | |
278a7a38 AO |
12650 | fi |
12651 | ||
5213506e | 12652 | |
278a7a38 AO |
12653 | done |
12654 | fi | |
12655 | ||
12656 | for ncn_progname in objdump; do | |
2693c0b0 PB |
12657 | if test -n "$ncn_tool_prefix"; then |
12658 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12659 | set dummy ${ncn_tool_prefix}${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 AO |
12664 | else |
12665 | if test -n "$OBJDUMP"; then | |
12666 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
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_tool_prefix}${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 |
ca9f4b81 | 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 AO |
12692 | fi |
12693 | ||
5213506e | 12694 | |
2693c0b0 PB |
12695 | fi |
12696 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
12697 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12698 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12700 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12701 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 12702 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 12703 | else |
2693c0b0 PB |
12704 | if test -n "$OBJDUMP"; then |
12705 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 12706 | else |
1c710c3c DJ |
12707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12708 | for as_dir in $PATH | |
12709 | do | |
12710 | IFS=$as_save_IFS | |
12711 | test -z "$as_dir" && as_dir=. | |
5213506e | 12712 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12714 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 12715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12716 | break 2 |
12717 | fi | |
12718 | done | |
5213506e RW |
12719 | done |
12720 | IFS=$as_save_IFS | |
1c710c3c | 12721 | |
ca9f4b81 AO |
12722 | fi |
12723 | fi | |
1c710c3c | 12724 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 12725 | if test -n "$OBJDUMP"; then |
5213506e RW |
12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
12727 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 12728 | else |
5213506e RW |
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12730 | $as_echo "no" >&6; } | |
ca9f4b81 | 12731 | fi |
1c710c3c | 12732 | |
5213506e | 12733 | |
2693c0b0 PB |
12734 | fi |
12735 | test -n "$ac_cv_prog_OBJDUMP" && break | |
12736 | done | |
12737 | ||
12738 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
12739 | set dummy objdump | |
12740 | if test $build = $host ; then | |
12741 | OBJDUMP="$2" | |
ca9f4b81 | 12742 | else |
2693c0b0 | 12743 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 12744 | fi |
ca9f4b81 AO |
12745 | fi |
12746 | ||
671aa708 NN |
12747 | |
12748 | ||
e4a9a572 IS |
12749 | if test -n "$OTOOL"; then |
12750 | ac_cv_prog_OTOOL=$OTOOL | |
12751 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12752 | OTOOL=$ac_cv_prog_OTOOL | |
12753 | fi | |
12754 | ||
12755 | if test -n "$ac_cv_prog_OTOOL"; then | |
12756 | for ncn_progname in otool; do | |
12757 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12758 | set dummy ${ncn_progname}; ac_word=$2 | |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12760 | $as_echo_n "checking for $ac_word... " >&6; } | |
12761 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12762 | $as_echo_n "(cached) " >&6 | |
12763 | else | |
12764 | if test -n "$OTOOL"; then | |
12765 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12766 | else | |
12767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12768 | for as_dir in $PATH | |
12769 | do | |
12770 | IFS=$as_save_IFS | |
12771 | test -z "$as_dir" && as_dir=. | |
12772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12773 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12774 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12776 | break 2 | |
12777 | fi | |
12778 | done | |
12779 | done | |
12780 | IFS=$as_save_IFS | |
12781 | ||
12782 | fi | |
12783 | fi | |
12784 | OTOOL=$ac_cv_prog_OTOOL | |
12785 | if test -n "$OTOOL"; then | |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12787 | $as_echo "$OTOOL" >&6; } | |
12788 | else | |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12790 | $as_echo "no" >&6; } | |
12791 | fi | |
12792 | ||
12793 | ||
12794 | done | |
12795 | fi | |
12796 | ||
12797 | for ncn_progname in otool; do | |
12798 | if test -n "$ncn_tool_prefix"; then | |
12799 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12800 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
12838 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12839 | set dummy ${ncn_progname}; ac_word=$2 | |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12841 | $as_echo_n "checking for $ac_word... " >&6; } | |
12842 | if ${ac_cv_prog_OTOOL+:} false; then : | |
12843 | $as_echo_n "(cached) " >&6 | |
12844 | else | |
12845 | if test -n "$OTOOL"; then | |
12846 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
12847 | else | |
12848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12849 | for as_dir in $PATH | |
12850 | do | |
12851 | IFS=$as_save_IFS | |
12852 | test -z "$as_dir" && as_dir=. | |
12853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12855 | ac_cv_prog_OTOOL="${ncn_progname}" | |
12856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12857 | break 2 | |
12858 | fi | |
12859 | done | |
12860 | done | |
12861 | IFS=$as_save_IFS | |
12862 | ||
12863 | fi | |
12864 | fi | |
12865 | OTOOL=$ac_cv_prog_OTOOL | |
12866 | if test -n "$OTOOL"; then | |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12868 | $as_echo "$OTOOL" >&6; } | |
12869 | else | |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12871 | $as_echo "no" >&6; } | |
12872 | fi | |
12873 | ||
12874 | ||
12875 | fi | |
12876 | test -n "$ac_cv_prog_OTOOL" && break | |
12877 | done | |
12878 | ||
12879 | if test -z "$ac_cv_prog_OTOOL" ; then | |
12880 | set dummy otool | |
12881 | if test $build = $host ; then | |
12882 | OTOOL="$2" | |
12883 | else | |
12884 | OTOOL="${ncn_tool_prefix}$2" | |
12885 | fi | |
12886 | fi | |
12887 | ||
12888 | ||
12889 | ||
e7a82751 RM |
12890 | if test -n "$READELF"; then |
12891 | ac_cv_prog_READELF=$READELF | |
12892 | elif test -n "$ac_cv_prog_READELF"; then | |
12893 | READELF=$ac_cv_prog_READELF | |
12894 | fi | |
12895 | ||
12896 | if test -n "$ac_cv_prog_READELF"; then | |
12897 | for ncn_progname in readelf; do | |
12898 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12899 | set dummy ${ncn_progname}; ac_word=$2 | |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12901 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12902 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12903 | $as_echo_n "(cached) " >&6 |
12904 | else | |
12905 | if test -n "$READELF"; then | |
12906 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12907 | else | |
12908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12909 | for as_dir in $PATH | |
12910 | do | |
12911 | IFS=$as_save_IFS | |
12912 | test -z "$as_dir" && as_dir=. | |
12913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12914 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12915 | ac_cv_prog_READELF="${ncn_progname}" |
12916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12917 | break 2 | |
12918 | fi | |
12919 | done | |
12920 | done | |
12921 | IFS=$as_save_IFS | |
12922 | ||
12923 | fi | |
12924 | fi | |
12925 | READELF=$ac_cv_prog_READELF | |
12926 | if test -n "$READELF"; then | |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12928 | $as_echo "$READELF" >&6; } | |
12929 | else | |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12931 | $as_echo "no" >&6; } | |
12932 | fi | |
12933 | ||
12934 | ||
12935 | done | |
12936 | fi | |
12937 | ||
12938 | for ncn_progname in readelf; do | |
12939 | if test -n "$ncn_tool_prefix"; then | |
12940 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12941 | set dummy ${ncn_tool_prefix}${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_tool_prefix}${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 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12980 | set dummy ${ncn_progname}; ac_word=$2 | |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12982 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12983 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
12984 | $as_echo_n "(cached) " >&6 |
12985 | else | |
12986 | if test -n "$READELF"; then | |
12987 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12988 | else | |
12989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12990 | for as_dir in $PATH | |
12991 | do | |
12992 | IFS=$as_save_IFS | |
12993 | test -z "$as_dir" && as_dir=. | |
12994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
12996 | ac_cv_prog_READELF="${ncn_progname}" |
12997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12998 | break 2 | |
12999 | fi | |
13000 | done | |
13001 | done | |
13002 | IFS=$as_save_IFS | |
13003 | ||
13004 | fi | |
13005 | fi | |
13006 | READELF=$ac_cv_prog_READELF | |
13007 | if test -n "$READELF"; then | |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
13009 | $as_echo "$READELF" >&6; } | |
13010 | else | |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13012 | $as_echo "no" >&6; } | |
13013 | fi | |
13014 | ||
13015 | ||
13016 | fi | |
13017 | test -n "$ac_cv_prog_READELF" && break | |
13018 | done | |
13019 | ||
13020 | if test -z "$ac_cv_prog_READELF" ; then | |
13021 | set dummy readelf | |
13022 | if test $build = $host ; then | |
13023 | READELF="$2" | |
13024 | else | |
13025 | READELF="${ncn_tool_prefix}$2" | |
13026 | fi | |
13027 | fi | |
13028 | ||
13029 | ||
13030 | ||
671aa708 NN |
13031 | |
13032 | ||
13033 | ||
5fee5ec3 | 13034 | |
1ed21e23 | 13035 | GDCFLAGS=${GDCFLAGS-${CFLAGS}} |
5fee5ec3 | 13036 | |
1ddd41fd | 13037 | |
126f707e L |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
13039 | $as_echo_n "checking for -plugin option... " >&6; } | |
13040 | ||
13041 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
13042 | plugin_option= | |
13043 | for plugin in $plugin_names; do | |
13044 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
13045 | if test x$plugin_so = x$plugin; then | |
13046 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
13047 | fi | |
13048 | if test x$plugin_so != x$plugin; then | |
13049 | plugin_option="--plugin $plugin_so" | |
13050 | break | |
13051 | fi | |
13052 | done | |
9c7797a8 L |
13053 | if test -n "$ac_tool_prefix"; then |
13054 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13055 | set dummy ${ac_tool_prefix}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_AR+:} false; then : | |
13059 | $as_echo_n "(cached) " >&6 | |
13060 | else | |
13061 | if test -n "$AR"; then | |
13062 | ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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 | AR=$ac_cv_prog_AR | |
13082 | if test -n "$AR"; then | |
13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13084 | $as_echo "$AR" >&6; } | |
13085 | else | |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13087 | $as_echo "no" >&6; } | |
13088 | fi | |
13089 | ||
13090 | ||
13091 | fi | |
13092 | if test -z "$ac_cv_prog_AR"; then | |
13093 | ac_ct_AR=$AR | |
13094 | # Extract the first word of "ar", so it can be a program name with args. | |
13095 | set dummy ar; ac_word=$2 | |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13097 | $as_echo_n "checking for $ac_word... " >&6; } | |
13098 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
13099 | $as_echo_n "(cached) " >&6 | |
13100 | else | |
13101 | if test -n "$ac_ct_AR"; then | |
13102 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13103 | else | |
13104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13105 | for as_dir in $PATH | |
13106 | do | |
13107 | IFS=$as_save_IFS | |
13108 | test -z "$as_dir" && as_dir=. | |
13109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13111 | ac_cv_prog_ac_ct_AR="ar" | |
13112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13113 | break 2 | |
13114 | fi | |
13115 | done | |
13116 | done | |
13117 | IFS=$as_save_IFS | |
13118 | ||
13119 | fi | |
13120 | fi | |
13121 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13122 | if test -n "$ac_ct_AR"; then | |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13124 | $as_echo "$ac_ct_AR" >&6; } | |
13125 | else | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13127 | $as_echo "no" >&6; } | |
13128 | fi | |
13129 | ||
13130 | if test "x$ac_ct_AR" = x; then | |
13131 | AR="" | |
13132 | else | |
13133 | case $cross_compiling:$ac_tool_warned in | |
13134 | yes:) | |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13137 | ac_tool_warned=yes ;; | |
13138 | esac | |
13139 | AR=$ac_ct_AR | |
13140 | fi | |
13141 | else | |
13142 | AR="$ac_cv_prog_AR" | |
13143 | fi | |
13144 | ||
13145 | if test "${AR}" = "" ; then | |
13146 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13147 | fi | |
13148 | touch conftest.c | |
13149 | ${AR} $plugin_option rc conftest.a conftest.c | |
13150 | if test "$?" != 0; then | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13152 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13153 | plugin_option= | |
13154 | fi | |
13155 | rm -f conftest.* | |
126f707e L |
13156 | if test -n "$plugin_option"; then |
13157 | PLUGIN_OPTION="$plugin_option" | |
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13159 | $as_echo "$plugin_option" >&6; } | |
13160 | else | |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13162 | $as_echo "no" >&6; } | |
13163 | fi | |
13164 | ||
13165 | AR_PLUGIN_OPTION= | |
13166 | RANLIB_PLUGIN_OPTION= | |
13167 | if test -n "$PLUGIN_OPTION"; then | |
13168 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13169 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13170 | fi | |
13171 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13172 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13173 | fi | |
13174 | fi | |
13175 | ||
13176 | ||
13177 | ||
2abefe3d | 13178 | # Target tools. |
1c710c3c | 13179 | |
5213506e RW |
13180 | # Check whether --with-build-time-tools was given. |
13181 | if test "${with_build_time_tools+set}" = set; then : | |
13182 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
13183 | x/*) ;; |
13184 | *) | |
13185 | with_build_time_tools= | |
5213506e RW |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13187 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
13188 | ;; |
13189 | esac | |
ca9f4b81 | 13190 | else |
e8b05380 | 13191 | with_build_time_tools= |
5213506e RW |
13192 | fi |
13193 | ||
ca9f4b81 | 13194 | |
278a7a38 AO |
13195 | |
13196 | ||
13197 | if test -n "$CC_FOR_TARGET"; then | |
13198 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13199 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13200 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13201 | fi | |
13202 | ||
13203 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13204 | for ncn_progname in cc gcc; do | |
13205 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13206 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13208 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13209 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13210 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13211 | else |
13212 | if test -n "$CC_FOR_TARGET"; then | |
13213 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13214 | else | |
13215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13216 | for as_dir in $PATH | |
13217 | do | |
13218 | IFS=$as_save_IFS | |
13219 | test -z "$as_dir" && as_dir=. | |
5213506e | 13220 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13222 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 13223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13224 | break 2 |
13225 | fi | |
13226 | done | |
5213506e RW |
13227 | done |
13228 | IFS=$as_save_IFS | |
278a7a38 AO |
13229 | |
13230 | fi | |
13231 | fi | |
13232 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13233 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13235 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 13236 | else |
5213506e RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13238 | $as_echo "no" >&6; } | |
278a7a38 AO |
13239 | fi |
13240 | ||
5213506e | 13241 | |
278a7a38 AO |
13242 | done |
13243 | fi | |
13244 | ||
13245 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13246 | for ncn_progname in cc gcc; do |
5213506e RW |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13248 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13249 | if test -x $with_build_time_tools/${ncn_progname}; then |
13250 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13252 | $as_echo "yes" >&6; } | |
72a7ab82 | 13253 | break |
e8b05380 | 13254 | else |
5213506e RW |
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13256 | $as_echo "no" >&6; } | |
72a7ab82 AP |
13257 | fi |
13258 | done | |
4de997d1 PB |
13259 | fi |
13260 | ||
e8b05380 PB |
13261 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13262 | for ncn_progname in cc gcc; do | |
13263 | if test -n "$ncn_target_tool_prefix"; then | |
13264 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13265 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13267 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13268 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13269 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13270 | else |
13271 | if test -n "$CC_FOR_TARGET"; then | |
13272 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13273 | else | |
1c710c3c DJ |
13274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13275 | for as_dir in $PATH | |
13276 | do | |
13277 | IFS=$as_save_IFS | |
13278 | test -z "$as_dir" && as_dir=. | |
5213506e | 13279 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13281 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13283 | break 2 |
13284 | fi | |
13285 | done | |
5213506e RW |
13286 | done |
13287 | IFS=$as_save_IFS | |
1c710c3c | 13288 | |
4de997d1 PB |
13289 | fi |
13290 | fi | |
1c710c3c | 13291 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 13292 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13294 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13295 | else |
5213506e RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13297 | $as_echo "no" >&6; } | |
4de997d1 PB |
13298 | fi |
13299 | ||
5213506e | 13300 | |
e8b05380 PB |
13301 | fi |
13302 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13303 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13304 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13306 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13307 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 13308 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13309 | else |
2693c0b0 PB |
13310 | if test -n "$CC_FOR_TARGET"; then |
13311 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13312 | else |
1c710c3c DJ |
13313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13314 | for as_dir in $PATH | |
13315 | do | |
13316 | IFS=$as_save_IFS | |
13317 | test -z "$as_dir" && as_dir=. | |
5213506e | 13318 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13320 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 13321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13322 | break 2 |
13323 | fi | |
13324 | done | |
5213506e RW |
13325 | done |
13326 | IFS=$as_save_IFS | |
1c710c3c | 13327 | |
4de997d1 PB |
13328 | fi |
13329 | fi | |
1c710c3c | 13330 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 13331 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13333 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 13334 | else |
5213506e RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13336 | $as_echo "no" >&6; } | |
4de997d1 | 13337 | fi |
1c710c3c | 13338 | |
5213506e | 13339 | |
e8b05380 PB |
13340 | fi |
13341 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13342 | done | |
13343 | fi | |
1c710c3c | 13344 | |
2693c0b0 PB |
13345 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13346 | set dummy cc gcc | |
13347 | if test $build = $target ; then | |
13348 | CC_FOR_TARGET="$2" | |
4de997d1 | 13349 | else |
2693c0b0 | 13350 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13351 | fi |
1c00b503 PB |
13352 | else |
13353 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
13354 | fi |
13355 | ||
278a7a38 AO |
13356 | |
13357 | ||
13358 | if test -n "$CXX_FOR_TARGET"; then | |
13359 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13360 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13361 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13362 | fi | |
13363 | ||
13364 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13365 | for ncn_progname in c++ g++ cxx gxx; do | |
13366 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13367 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13370 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13371 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13372 | else |
13373 | if test -n "$CXX_FOR_TARGET"; then | |
13374 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13375 | else | |
13376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13377 | for as_dir in $PATH | |
13378 | do | |
13379 | IFS=$as_save_IFS | |
13380 | test -z "$as_dir" && as_dir=. | |
5213506e | 13381 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13383 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13385 | break 2 |
13386 | fi | |
13387 | done | |
5213506e RW |
13388 | done |
13389 | IFS=$as_save_IFS | |
278a7a38 AO |
13390 | |
13391 | fi | |
13392 | fi | |
13393 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13394 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13396 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 13397 | else |
5213506e RW |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13399 | $as_echo "no" >&6; } | |
278a7a38 AO |
13400 | fi |
13401 | ||
5213506e | 13402 | |
278a7a38 AO |
13403 | done |
13404 | fi | |
13405 | ||
13406 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13407 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13409 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13410 | if test -x $with_build_time_tools/${ncn_progname}; then |
13411 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13413 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13414 | break |
13415 | else | |
5213506e RW |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13417 | $as_echo "no" >&6; } | |
e8b05380 PB |
13418 | fi |
13419 | done | |
13420 | fi | |
13421 | ||
13422 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13423 | for ncn_progname in c++ g++ cxx gxx; do | |
13424 | if test -n "$ncn_target_tool_prefix"; then | |
13425 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13426 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13428 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13429 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13430 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
13431 | else |
13432 | if test -n "$CXX_FOR_TARGET"; then | |
13433 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13434 | else | |
1c710c3c DJ |
13435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13436 | for as_dir in $PATH | |
13437 | do | |
13438 | IFS=$as_save_IFS | |
13439 | test -z "$as_dir" && as_dir=. | |
5213506e | 13440 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13442 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13444 | break 2 |
13445 | fi | |
13446 | done | |
5213506e RW |
13447 | done |
13448 | IFS=$as_save_IFS | |
1c710c3c | 13449 | |
4de997d1 PB |
13450 | fi |
13451 | fi | |
1c710c3c | 13452 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 13453 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13455 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13456 | else |
5213506e RW |
13457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13458 | $as_echo "no" >&6; } | |
4de997d1 PB |
13459 | fi |
13460 | ||
5213506e | 13461 | |
e8b05380 PB |
13462 | fi |
13463 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13464 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13465 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13467 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13468 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 13469 | $as_echo_n "(cached) " >&6 |
4de997d1 | 13470 | else |
2693c0b0 PB |
13471 | if test -n "$CXX_FOR_TARGET"; then |
13472 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 13473 | else |
1c710c3c DJ |
13474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13475 | for as_dir in $PATH | |
13476 | do | |
13477 | IFS=$as_save_IFS | |
13478 | test -z "$as_dir" && as_dir=. | |
5213506e | 13479 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13481 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 13482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13483 | break 2 |
13484 | fi | |
13485 | done | |
5213506e RW |
13486 | done |
13487 | IFS=$as_save_IFS | |
1c710c3c | 13488 | |
4de997d1 PB |
13489 | fi |
13490 | fi | |
1c710c3c | 13491 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 13492 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13494 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 13495 | else |
5213506e RW |
13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13497 | $as_echo "no" >&6; } | |
4de997d1 | 13498 | fi |
1c710c3c | 13499 | |
5213506e | 13500 | |
e8b05380 PB |
13501 | fi |
13502 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13503 | done | |
13504 | fi | |
1c710c3c | 13505 | |
2693c0b0 PB |
13506 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13507 | set dummy c++ g++ cxx gxx | |
13508 | if test $build = $target ; then | |
13509 | CXX_FOR_TARGET="$2" | |
4de997d1 | 13510 | else |
2693c0b0 | 13511 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 13512 | fi |
1c00b503 PB |
13513 | else |
13514 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
13515 | fi |
13516 | ||
278a7a38 AO |
13517 | |
13518 | ||
13519 | if test -n "$GCC_FOR_TARGET"; then | |
13520 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13521 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13522 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13523 | fi | |
13524 | ||
13525 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13526 | for ncn_progname in gcc; do | |
13527 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13528 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13530 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13531 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13532 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13533 | else |
13534 | if test -n "$GCC_FOR_TARGET"; then | |
13535 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13536 | else | |
13537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13538 | for as_dir in $PATH | |
13539 | do | |
13540 | IFS=$as_save_IFS | |
13541 | test -z "$as_dir" && as_dir=. | |
5213506e | 13542 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13544 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13546 | break 2 |
13547 | fi | |
13548 | done | |
5213506e RW |
13549 | done |
13550 | IFS=$as_save_IFS | |
278a7a38 AO |
13551 | |
13552 | fi | |
13553 | fi | |
13554 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13555 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13557 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 13558 | else |
5213506e RW |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13560 | $as_echo "no" >&6; } | |
278a7a38 AO |
13561 | fi |
13562 | ||
5213506e | 13563 | |
278a7a38 AO |
13564 | done |
13565 | fi | |
13566 | ||
13567 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13568 | for ncn_progname in gcc; do |
5213506e RW |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13570 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13571 | if test -x $with_build_time_tools/${ncn_progname}; then |
13572 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13574 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13575 | break |
13576 | else | |
5213506e RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13578 | $as_echo "no" >&6; } | |
e8b05380 PB |
13579 | fi |
13580 | done | |
13581 | fi | |
13582 | ||
13583 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13584 | for ncn_progname in gcc; do | |
13585 | if test -n "$ncn_target_tool_prefix"; then | |
13586 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13587 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13589 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13590 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13591 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13592 | else |
e8b05380 PB |
13593 | if test -n "$GCC_FOR_TARGET"; then |
13594 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13595 | else |
1c710c3c DJ |
13596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13597 | for as_dir in $PATH | |
13598 | do | |
13599 | IFS=$as_save_IFS | |
13600 | test -z "$as_dir" && as_dir=. | |
5213506e | 13601 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13603 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13605 | break 2 |
13606 | fi | |
13607 | done | |
5213506e RW |
13608 | done |
13609 | IFS=$as_save_IFS | |
1c710c3c | 13610 | |
ca9f4b81 AO |
13611 | fi |
13612 | fi | |
1c710c3c | 13613 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13614 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13616 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13617 | else |
5213506e RW |
13618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13619 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13620 | fi |
13621 | ||
5213506e | 13622 | |
e8b05380 PB |
13623 | fi |
13624 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13625 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13626 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13628 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13629 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 13630 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13631 | else |
e8b05380 PB |
13632 | if test -n "$GCC_FOR_TARGET"; then |
13633 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13634 | else |
1c710c3c DJ |
13635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13636 | for as_dir in $PATH | |
13637 | do | |
13638 | IFS=$as_save_IFS | |
13639 | test -z "$as_dir" && as_dir=. | |
5213506e | 13640 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13642 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 13643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13644 | break 2 |
13645 | fi | |
13646 | done | |
5213506e RW |
13647 | done |
13648 | IFS=$as_save_IFS | |
1c710c3c | 13649 | |
ca9f4b81 AO |
13650 | fi |
13651 | fi | |
1c710c3c | 13652 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 13653 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13655 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 13656 | else |
5213506e RW |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13658 | $as_echo "no" >&6; } | |
ca9f4b81 | 13659 | fi |
1c710c3c | 13660 | |
5213506e | 13661 | |
e8b05380 PB |
13662 | fi |
13663 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13664 | done | |
13665 | fi | |
1c710c3c | 13666 | |
e8b05380 PB |
13667 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13668 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
13669 | else |
13670 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
13671 | fi |
13672 | ||
278a7a38 AO |
13673 | |
13674 | ||
278a7a38 AO |
13675 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13676 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13677 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13678 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
13679 | fi |
13680 | ||
278a7a38 AO |
13681 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13682 | for ncn_progname in gfortran; do | |
13683 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 13684 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13686 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13687 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13688 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13689 | else |
278a7a38 AO |
13690 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13691 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 13692 | else |
1c710c3c DJ |
13693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13694 | for as_dir in $PATH | |
13695 | do | |
13696 | IFS=$as_save_IFS | |
13697 | test -z "$as_dir" && as_dir=. | |
5213506e | 13698 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13700 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13702 | break 2 |
13703 | fi | |
13704 | done | |
5213506e RW |
13705 | done |
13706 | IFS=$as_save_IFS | |
1c710c3c | 13707 | |
e8b05380 PB |
13708 | fi |
13709 | fi | |
278a7a38 AO |
13710 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13711 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13713 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13714 | else |
5213506e RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13716 | $as_echo "no" >&6; } | |
e8b05380 | 13717 | fi |
1c710c3c | 13718 | |
5213506e | 13719 | |
e8b05380 PB |
13720 | done |
13721 | fi | |
1c710c3c | 13722 | |
278a7a38 | 13723 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 13724 | for ncn_progname in gfortran; do |
5213506e RW |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13726 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13727 | if test -x $with_build_time_tools/${ncn_progname}; then |
13728 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13730 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13731 | break |
13732 | else | |
5213506e RW |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13734 | $as_echo "no" >&6; } | |
e8b05380 PB |
13735 | fi |
13736 | done | |
13737 | fi | |
13738 | ||
13739 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13740 | for ncn_progname in gfortran; do | |
13741 | if test -n "$ncn_target_tool_prefix"; then | |
13742 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13743 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13745 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13746 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13747 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13748 | else |
13749 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
13750 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
13751 | else | |
13752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13753 | for as_dir in $PATH | |
13754 | do | |
13755 | IFS=$as_save_IFS | |
13756 | test -z "$as_dir" && as_dir=. | |
5213506e | 13757 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13759 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13761 | break 2 |
13762 | fi | |
13763 | done | |
5213506e RW |
13764 | done |
13765 | IFS=$as_save_IFS | |
1c710c3c | 13766 | |
e8b05380 PB |
13767 | fi |
13768 | fi | |
1c710c3c | 13769 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13770 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13772 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13773 | else |
5213506e RW |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13775 | $as_echo "no" >&6; } | |
e8b05380 PB |
13776 | fi |
13777 | ||
5213506e | 13778 | |
e8b05380 PB |
13779 | fi |
13780 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13781 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13782 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13784 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13785 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 13786 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
13787 | else |
13788 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13789 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13790 | else | |
1c710c3c DJ |
13791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13792 | for as_dir in $PATH | |
13793 | do | |
13794 | IFS=$as_save_IFS | |
13795 | test -z "$as_dir" && as_dir=. | |
5213506e | 13796 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13798 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 13799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13800 | break 2 |
13801 | fi | |
13802 | done | |
5213506e RW |
13803 | done |
13804 | IFS=$as_save_IFS | |
1c710c3c | 13805 | |
e8b05380 PB |
13806 | fi |
13807 | fi | |
1c710c3c | 13808 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 13809 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13811 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 13812 | else |
5213506e RW |
13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13814 | $as_echo "no" >&6; } | |
e8b05380 | 13815 | fi |
1c710c3c | 13816 | |
5213506e | 13817 | |
e8b05380 PB |
13818 | fi |
13819 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13820 | done | |
13821 | fi | |
1c710c3c | 13822 | |
e8b05380 PB |
13823 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
13824 | set dummy gfortran | |
2693c0b0 | 13825 | if test $build = $target ; then |
e8b05380 | 13826 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 13827 | else |
e8b05380 PB |
13828 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
13829 | fi | |
1c00b503 PB |
13830 | else |
13831 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
13832 | fi |
13833 | ||
13834 | ||
13835 | ||
632e2a07 ILT |
13836 | if test -n "$GOC_FOR_TARGET"; then |
13837 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13838 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13839 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13840 | fi | |
13841 | ||
13842 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13843 | for ncn_progname in gccgo; do | |
13844 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13845 | set dummy ${ncn_progname}; ac_word=$2 | |
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13847 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13848 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13849 | $as_echo_n "(cached) " >&6 |
13850 | else | |
13851 | if test -n "$GOC_FOR_TARGET"; then | |
13852 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13853 | else | |
13854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13855 | for as_dir in $PATH | |
13856 | do | |
13857 | IFS=$as_save_IFS | |
13858 | test -z "$as_dir" && as_dir=. | |
13859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13861 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13863 | break 2 | |
13864 | fi | |
13865 | done | |
13866 | done | |
13867 | IFS=$as_save_IFS | |
13868 | ||
13869 | fi | |
13870 | fi | |
13871 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13872 | if test -n "$GOC_FOR_TARGET"; then | |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13874 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13875 | else | |
13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13877 | $as_echo "no" >&6; } | |
13878 | fi | |
13879 | ||
13880 | ||
13881 | done | |
13882 | fi | |
13883 | ||
13884 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13885 | for ncn_progname in gccgo; do | |
13886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13887 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13888 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13889 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13891 | $as_echo "yes" >&6; } | |
13892 | break | |
13893 | else | |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13895 | $as_echo "no" >&6; } | |
13896 | fi | |
13897 | done | |
13898 | fi | |
13899 | ||
13900 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13901 | for ncn_progname in gccgo; do | |
13902 | if test -n "$ncn_target_tool_prefix"; then | |
13903 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13904 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13906 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13907 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13908 | $as_echo_n "(cached) " >&6 |
13909 | else | |
13910 | if test -n "$GOC_FOR_TARGET"; then | |
13911 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13912 | else | |
13913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13914 | for as_dir in $PATH | |
13915 | do | |
13916 | IFS=$as_save_IFS | |
13917 | test -z "$as_dir" && as_dir=. | |
13918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13920 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13922 | break 2 | |
13923 | fi | |
13924 | done | |
13925 | done | |
13926 | IFS=$as_save_IFS | |
13927 | ||
13928 | fi | |
13929 | fi | |
13930 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13931 | if test -n "$GOC_FOR_TARGET"; then | |
13932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13933 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13934 | else | |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13936 | $as_echo "no" >&6; } | |
13937 | fi | |
13938 | ||
13939 | ||
13940 | fi | |
13941 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
13942 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13943 | set dummy ${ncn_progname}; ac_word=$2 | |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13945 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13946 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
13947 | $as_echo_n "(cached) " >&6 |
13948 | else | |
13949 | if test -n "$GOC_FOR_TARGET"; then | |
13950 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13951 | else | |
13952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13953 | for as_dir in $PATH | |
13954 | do | |
13955 | IFS=$as_save_IFS | |
13956 | test -z "$as_dir" && as_dir=. | |
13957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
13959 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
13960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13961 | break 2 | |
13962 | fi | |
13963 | done | |
13964 | done | |
13965 | IFS=$as_save_IFS | |
13966 | ||
13967 | fi | |
13968 | fi | |
13969 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13970 | if test -n "$GOC_FOR_TARGET"; then | |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13972 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13973 | else | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13975 | $as_echo "no" >&6; } | |
13976 | fi | |
13977 | ||
13978 | ||
13979 | fi | |
13980 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
13981 | done | |
13982 | fi | |
13983 | ||
13984 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
13985 | set dummy gccgo | |
13986 | if test $build = $target ; then | |
13987 | GOC_FOR_TARGET="$2" | |
13988 | else | |
13989 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13990 | fi | |
13991 | else | |
13992 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
13993 | fi | |
13994 | ||
13995 | ||
13996 | ||
b4c522fa IB |
13997 | if test -n "$GDC_FOR_TARGET"; then |
13998 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13999 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14000 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14001 | fi | |
14002 | ||
14003 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14004 | for ncn_progname in gdc; do | |
14005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14006 | set dummy ${ncn_progname}; ac_word=$2 | |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14009 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14010 | $as_echo_n "(cached) " >&6 |
14011 | else | |
14012 | if test -n "$GDC_FOR_TARGET"; then | |
14013 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14014 | else | |
14015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14016 | for as_dir in $PATH | |
14017 | do | |
14018 | IFS=$as_save_IFS | |
14019 | test -z "$as_dir" && as_dir=. | |
14020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14022 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
14023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14024 | break 2 | |
14025 | fi | |
14026 | done | |
14027 | done | |
14028 | IFS=$as_save_IFS | |
14029 | ||
14030 | fi | |
14031 | fi | |
14032 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14033 | if test -n "$GDC_FOR_TARGET"; then | |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14035 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14036 | else | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14038 | $as_echo "no" >&6; } | |
14039 | fi | |
14040 | ||
14041 | ||
14042 | done | |
14043 | fi | |
14044 | ||
14045 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14046 | for ncn_progname in gdc; do | |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14048 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14049 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14050 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14052 | $as_echo "yes" >&6; } | |
14053 | break | |
14054 | else | |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14056 | $as_echo "no" >&6; } | |
14057 | fi | |
14058 | done | |
14059 | fi | |
14060 | ||
14061 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
14062 | for ncn_progname in gdc; do | |
14063 | if test -n "$ncn_target_tool_prefix"; then | |
14064 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14065 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14068 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14069 | $as_echo_n "(cached) " >&6 |
14070 | else | |
14071 | if test -n "$GDC_FOR_TARGET"; then | |
14072 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14073 | else | |
14074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14075 | for as_dir in $PATH | |
14076 | do | |
14077 | IFS=$as_save_IFS | |
14078 | test -z "$as_dir" && as_dir=. | |
14079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14081 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14083 | break 2 | |
14084 | fi | |
14085 | done | |
14086 | done | |
14087 | IFS=$as_save_IFS | |
14088 | ||
14089 | fi | |
14090 | fi | |
14091 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14092 | if test -n "$GDC_FOR_TARGET"; then | |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14094 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14095 | else | |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14097 | $as_echo "no" >&6; } | |
14098 | fi | |
14099 | ||
14100 | ||
14101 | fi | |
14102 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
14103 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14104 | set dummy ${ncn_progname}; ac_word=$2 | |
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14106 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14107 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
14108 | $as_echo_n "(cached) " >&6 |
14109 | else | |
14110 | if test -n "$GDC_FOR_TARGET"; then | |
14111 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
14112 | else | |
14113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14114 | for as_dir in $PATH | |
14115 | do | |
14116 | IFS=$as_save_IFS | |
14117 | test -z "$as_dir" && as_dir=. | |
14118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
14120 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
14121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14122 | break 2 | |
14123 | fi | |
14124 | done | |
14125 | done | |
14126 | IFS=$as_save_IFS | |
14127 | ||
14128 | fi | |
14129 | fi | |
14130 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
14131 | if test -n "$GDC_FOR_TARGET"; then | |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14133 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
14134 | else | |
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14136 | $as_echo "no" >&6; } | |
14137 | fi | |
14138 | ||
14139 | ||
14140 | fi | |
14141 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
14142 | done | |
14143 | fi | |
14144 | ||
14145 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
14146 | set dummy gdc | |
14147 | if test $build = $target ; then | |
14148 | GDC_FOR_TARGET="$2" | |
14149 | else | |
14150 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14151 | fi | |
14152 | else | |
14153 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
14154 | fi | |
14155 | ||
14156 | ||
14157 | ||
1eee94d3 GM |
14158 | if test -n "$GM2_FOR_TARGET"; then |
14159 | ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET | |
14160 | elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14161 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14162 | fi | |
14163 | ||
14164 | if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14165 | for ncn_progname in gm2; do | |
14166 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14167 | set dummy ${ncn_progname}; ac_word=$2 | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14169 | $as_echo_n "checking for $ac_word... " >&6; } | |
14170 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14171 | $as_echo_n "(cached) " >&6 | |
14172 | else | |
14173 | if test -n "$GM2_FOR_TARGET"; then | |
14174 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14175 | else | |
14176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14177 | for as_dir in $PATH | |
14178 | do | |
14179 | IFS=$as_save_IFS | |
14180 | test -z "$as_dir" && as_dir=. | |
14181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14182 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14183 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14185 | break 2 | |
14186 | fi | |
14187 | done | |
14188 | done | |
14189 | IFS=$as_save_IFS | |
14190 | ||
14191 | fi | |
14192 | fi | |
14193 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14194 | if test -n "$GM2_FOR_TARGET"; then | |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14196 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14197 | else | |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14199 | $as_echo "no" >&6; } | |
14200 | fi | |
14201 | ||
14202 | ||
14203 | done | |
14204 | fi | |
14205 | ||
14206 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14207 | for ncn_progname in gm2; do | |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14209 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14210 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14211 | ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14213 | $as_echo "yes" >&6; } | |
14214 | break | |
14215 | else | |
14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14217 | $as_echo "no" >&6; } | |
14218 | fi | |
14219 | done | |
14220 | fi | |
14221 | ||
14222 | if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then | |
14223 | for ncn_progname in gm2; do | |
14224 | if test -n "$ncn_target_tool_prefix"; then | |
14225 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14226 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14228 | $as_echo_n "checking for $ac_word... " >&6; } | |
14229 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14230 | $as_echo_n "(cached) " >&6 | |
14231 | else | |
14232 | if test -n "$GM2_FOR_TARGET"; then | |
14233 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14234 | else | |
14235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14236 | for as_dir in $PATH | |
14237 | do | |
14238 | IFS=$as_save_IFS | |
14239 | test -z "$as_dir" && as_dir=. | |
14240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14242 | ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14244 | break 2 | |
14245 | fi | |
14246 | done | |
14247 | done | |
14248 | IFS=$as_save_IFS | |
14249 | ||
14250 | fi | |
14251 | fi | |
14252 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14253 | if test -n "$GM2_FOR_TARGET"; then | |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14255 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14256 | else | |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14258 | $as_echo "no" >&6; } | |
14259 | fi | |
14260 | ||
14261 | ||
14262 | fi | |
14263 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then | |
14264 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14265 | set dummy ${ncn_progname}; ac_word=$2 | |
14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14267 | $as_echo_n "checking for $ac_word... " >&6; } | |
14268 | if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then : | |
14269 | $as_echo_n "(cached) " >&6 | |
14270 | else | |
14271 | if test -n "$GM2_FOR_TARGET"; then | |
14272 | ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test. | |
14273 | else | |
14274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14275 | for as_dir in $PATH | |
14276 | do | |
14277 | IFS=$as_save_IFS | |
14278 | test -z "$as_dir" && as_dir=. | |
14279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14281 | ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}" | |
14282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14283 | break 2 | |
14284 | fi | |
14285 | done | |
14286 | done | |
14287 | IFS=$as_save_IFS | |
14288 | ||
14289 | fi | |
14290 | fi | |
14291 | GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET | |
14292 | if test -n "$GM2_FOR_TARGET"; then | |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5 | |
14294 | $as_echo "$GM2_FOR_TARGET" >&6; } | |
14295 | else | |
14296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14297 | $as_echo "no" >&6; } | |
14298 | fi | |
14299 | ||
14300 | ||
14301 | fi | |
14302 | test -n "$ac_cv_prog_GM2_FOR_TARGET" && break | |
14303 | done | |
14304 | fi | |
14305 | ||
14306 | if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then | |
14307 | set dummy gm2 | |
14308 | if test $build = $target ; then | |
14309 | GM2_FOR_TARGET="$2" | |
14310 | else | |
14311 | GM2_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14312 | fi | |
14313 | else | |
14314 | GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET" | |
14315 | fi | |
14316 | ||
14317 | ||
14318 | ||
e8b05380 PB |
14319 | cat > conftest.c << \EOF |
14320 | #ifdef __GNUC__ | |
14321 | gcc_yay; | |
14322 | #endif | |
14323 | EOF | |
14324 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14325 | have_gcc_for_target=yes | |
14326 | else | |
14327 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
14328 | have_gcc_for_target=no | |
14329 | fi | |
14330 | rm conftest.c | |
14331 | ||
14332 | ||
14333 | ||
14334 | ||
14335 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
14336 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14338 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14339 | if test -x $with_build_time_tools/ar; then |
14340 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14341 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14343 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 14344 | else |
5213506e RW |
14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14346 | $as_echo "no" >&6; } | |
d1f8db0c | 14347 | fi |
e8b05380 PB |
14348 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14349 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
14350 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14351 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
14352 | fi |
14353 | fi | |
3e19841a | 14354 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14355 | # Extract the first word of "ar", so it can be a program name with args. |
14356 | set dummy ar; ac_word=$2 | |
5213506e RW |
14357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14358 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14359 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 14360 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14361 | else |
1c710c3c DJ |
14362 | case $AR_FOR_TARGET in |
14363 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14364 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14365 | ;; | |
e8b05380 | 14366 | *) |
1c710c3c DJ |
14367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14368 | for as_dir in $gcc_cv_tool_dirs | |
14369 | do | |
14370 | IFS=$as_save_IFS | |
14371 | test -z "$as_dir" && as_dir=. | |
5213506e | 14372 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14374 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14376 | break 2 |
14377 | fi | |
14378 | done | |
5213506e RW |
14379 | done |
14380 | IFS=$as_save_IFS | |
1c710c3c | 14381 | |
e8b05380 PB |
14382 | ;; |
14383 | esac | |
14384 | fi | |
1c710c3c | 14385 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 14386 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14388 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14389 | else |
5213506e RW |
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14391 | $as_echo "no" >&6; } | |
4de997d1 PB |
14392 | fi |
14393 | ||
5213506e | 14394 | |
e8b05380 PB |
14395 | fi |
14396 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
14397 | |
14398 | ||
14399 | if test -n "$AR_FOR_TARGET"; then | |
14400 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14401 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14402 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14403 | fi | |
14404 | ||
14405 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14406 | for ncn_progname in ar; do | |
14407 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14408 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14410 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14411 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14412 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14413 | else |
14414 | if test -n "$AR_FOR_TARGET"; then | |
14415 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14416 | else | |
14417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14418 | for as_dir in $PATH | |
14419 | do | |
14420 | IFS=$as_save_IFS | |
14421 | test -z "$as_dir" && as_dir=. | |
5213506e | 14422 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14424 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14426 | break 2 |
14427 | fi | |
14428 | done | |
5213506e RW |
14429 | done |
14430 | IFS=$as_save_IFS | |
278a7a38 AO |
14431 | |
14432 | fi | |
14433 | fi | |
14434 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14435 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14437 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 14438 | else |
5213506e RW |
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14440 | $as_echo "no" >&6; } | |
278a7a38 AO |
14441 | fi |
14442 | ||
5213506e | 14443 | |
278a7a38 AO |
14444 | done |
14445 | fi | |
14446 | ||
14447 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14448 | for ncn_progname in ar; do |
5213506e RW |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14450 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14451 | if test -x $with_build_time_tools/${ncn_progname}; then |
14452 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14454 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14455 | break |
14456 | else | |
5213506e RW |
14457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14458 | $as_echo "no" >&6; } | |
e8b05380 PB |
14459 | fi |
14460 | done | |
14461 | fi | |
14462 | ||
14463 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
14464 | for ncn_progname in ar; do | |
14465 | if test -n "$ncn_target_tool_prefix"; then | |
14466 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14467 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14469 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14470 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14471 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14472 | else |
e8b05380 PB |
14473 | if test -n "$AR_FOR_TARGET"; then |
14474 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14475 | else |
1c710c3c DJ |
14476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14477 | for as_dir in $PATH | |
14478 | do | |
14479 | IFS=$as_save_IFS | |
14480 | test -z "$as_dir" && as_dir=. | |
5213506e | 14481 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14483 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14485 | break 2 |
14486 | fi | |
14487 | done | |
5213506e RW |
14488 | done |
14489 | IFS=$as_save_IFS | |
1c710c3c | 14490 | |
4de997d1 PB |
14491 | fi |
14492 | fi | |
1c710c3c | 14493 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14494 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14496 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 14497 | else |
5213506e RW |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14499 | $as_echo "no" >&6; } | |
4de997d1 PB |
14500 | fi |
14501 | ||
5213506e | 14502 | |
e8b05380 PB |
14503 | fi |
14504 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14505 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14506 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14508 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14509 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 14510 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14511 | else |
14512 | if test -n "$AR_FOR_TARGET"; then | |
14513 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14514 | else | |
1c710c3c DJ |
14515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14516 | for as_dir in $PATH | |
14517 | do | |
14518 | IFS=$as_save_IFS | |
14519 | test -z "$as_dir" && as_dir=. | |
5213506e | 14520 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14522 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 14523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14524 | break 2 |
14525 | fi | |
14526 | done | |
5213506e RW |
14527 | done |
14528 | IFS=$as_save_IFS | |
1c710c3c | 14529 | |
e8b05380 PB |
14530 | fi |
14531 | fi | |
1c710c3c | 14532 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 14533 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14535 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 14536 | else |
5213506e RW |
14537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14538 | $as_echo "no" >&6; } | |
e8b05380 | 14539 | fi |
1c710c3c | 14540 | |
5213506e | 14541 | |
e8b05380 PB |
14542 | fi |
14543 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14544 | done | |
14545 | fi | |
1c710c3c | 14546 | |
e8b05380 PB |
14547 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14548 | set dummy ar | |
14549 | if test $build = $target ; then | |
14550 | AR_FOR_TARGET="$2" | |
14551 | else | |
14552 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 14553 | fi |
1c00b503 PB |
14554 | else |
14555 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
14556 | fi |
14557 | ||
d1f8db0c PB |
14558 | else |
14559 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
14560 | fi |
14561 | ||
14562 | ||
14563 | ||
14564 | ||
14565 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14566 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14568 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14569 | if test -x $with_build_time_tools/as; then |
14570 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14571 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
14572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14573 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 14574 | else |
5213506e RW |
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14576 | $as_echo "no" >&6; } | |
d1f8db0c | 14577 | fi |
e8b05380 PB |
14578 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14579 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
14580 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14581 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
14582 | fi |
14583 | fi | |
3e19841a | 14584 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14585 | # Extract the first word of "as", so it can be a program name with args. |
14586 | set dummy as; ac_word=$2 | |
5213506e RW |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14588 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14589 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 14590 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14591 | else |
1c710c3c DJ |
14592 | case $AS_FOR_TARGET in |
14593 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14594 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14595 | ;; | |
e8b05380 | 14596 | *) |
1c710c3c DJ |
14597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14598 | for as_dir in $gcc_cv_tool_dirs | |
14599 | do | |
14600 | IFS=$as_save_IFS | |
14601 | test -z "$as_dir" && as_dir=. | |
5213506e | 14602 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14604 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14606 | break 2 |
14607 | fi | |
14608 | done | |
5213506e RW |
14609 | done |
14610 | IFS=$as_save_IFS | |
1c710c3c | 14611 | |
e8b05380 PB |
14612 | ;; |
14613 | esac | |
14614 | fi | |
1c710c3c | 14615 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 14616 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14618 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14619 | else |
5213506e RW |
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14621 | $as_echo "no" >&6; } | |
e8b05380 PB |
14622 | fi |
14623 | ||
5213506e | 14624 | |
e8b05380 PB |
14625 | fi |
14626 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
14627 | |
14628 | ||
14629 | if test -n "$AS_FOR_TARGET"; then | |
14630 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14631 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14632 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14633 | fi | |
14634 | ||
14635 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14636 | for ncn_progname in as; do | |
14637 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14638 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14640 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14641 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14642 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14643 | else |
14644 | if test -n "$AS_FOR_TARGET"; then | |
14645 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14646 | else | |
14647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14648 | for as_dir in $PATH | |
14649 | do | |
14650 | IFS=$as_save_IFS | |
14651 | test -z "$as_dir" && as_dir=. | |
5213506e | 14652 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14654 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14656 | break 2 |
14657 | fi | |
14658 | done | |
5213506e RW |
14659 | done |
14660 | IFS=$as_save_IFS | |
278a7a38 AO |
14661 | |
14662 | fi | |
14663 | fi | |
14664 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14665 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14667 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 14668 | else |
5213506e RW |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14670 | $as_echo "no" >&6; } | |
278a7a38 AO |
14671 | fi |
14672 | ||
5213506e | 14673 | |
278a7a38 AO |
14674 | done |
14675 | fi | |
14676 | ||
14677 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14678 | for ncn_progname in as; do |
5213506e RW |
14679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14680 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14681 | if test -x $with_build_time_tools/${ncn_progname}; then |
14682 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14684 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14685 | break |
14686 | else | |
5213506e RW |
14687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14688 | $as_echo "no" >&6; } | |
e8b05380 PB |
14689 | fi |
14690 | done | |
14691 | fi | |
14692 | ||
14693 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14694 | for ncn_progname in as; do | |
14695 | if test -n "$ncn_target_tool_prefix"; then | |
14696 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14697 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14700 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14701 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
14702 | else |
14703 | if test -n "$AS_FOR_TARGET"; then | |
14704 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14705 | else | |
1c710c3c DJ |
14706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14707 | for as_dir in $PATH | |
14708 | do | |
14709 | IFS=$as_save_IFS | |
14710 | test -z "$as_dir" && as_dir=. | |
5213506e | 14711 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14713 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14715 | break 2 |
14716 | fi | |
14717 | done | |
5213506e RW |
14718 | done |
14719 | IFS=$as_save_IFS | |
1c710c3c | 14720 | |
e8b05380 PB |
14721 | fi |
14722 | fi | |
1c710c3c | 14723 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14724 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14726 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 14727 | else |
5213506e RW |
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14729 | $as_echo "no" >&6; } | |
e8b05380 PB |
14730 | fi |
14731 | ||
5213506e | 14732 | |
e8b05380 PB |
14733 | fi |
14734 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14735 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14736 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14738 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14739 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 14740 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14741 | else |
e8b05380 PB |
14742 | if test -n "$AS_FOR_TARGET"; then |
14743 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14744 | else |
1c710c3c DJ |
14745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14746 | for as_dir in $PATH | |
14747 | do | |
14748 | IFS=$as_save_IFS | |
14749 | test -z "$as_dir" && as_dir=. | |
5213506e | 14750 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14752 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 14753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14754 | break 2 |
14755 | fi | |
14756 | done | |
5213506e RW |
14757 | done |
14758 | IFS=$as_save_IFS | |
1c710c3c | 14759 | |
4de997d1 PB |
14760 | fi |
14761 | fi | |
1c710c3c | 14762 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 14763 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14765 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 14766 | else |
5213506e RW |
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14768 | $as_echo "no" >&6; } | |
4de997d1 | 14769 | fi |
1c710c3c | 14770 | |
5213506e | 14771 | |
e8b05380 PB |
14772 | fi |
14773 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14774 | done | |
14775 | fi | |
1c710c3c | 14776 | |
e8b05380 PB |
14777 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14778 | set dummy as | |
14779 | if test $build = $target ; then | |
14780 | AS_FOR_TARGET="$2" | |
14781 | else | |
14782 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 14783 | fi |
1c00b503 PB |
14784 | else |
14785 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 14786 | fi |
2693c0b0 | 14787 | |
d1f8db0c PB |
14788 | else |
14789 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
14790 | fi |
14791 | ||
e8b05380 PB |
14792 | |
14793 | ||
14794 | ||
14795 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14796 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14798 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14799 | if test -x $with_build_time_tools/dlltool; then |
14800 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14801 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14803 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 14804 | else |
5213506e RW |
14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14806 | $as_echo "no" >&6; } | |
d1f8db0c | 14807 | fi |
e8b05380 PB |
14808 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14809 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
14810 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14811 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
14812 | fi |
14813 | fi | |
3e19841a | 14814 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14815 | # Extract the first word of "dlltool", so it can be a program name with args. |
14816 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
14817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14818 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14819 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14820 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14821 | else |
1c710c3c DJ |
14822 | case $DLLTOOL_FOR_TARGET in |
14823 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14824 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14825 | ;; | |
e8b05380 | 14826 | *) |
1c710c3c DJ |
14827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14828 | for as_dir in $gcc_cv_tool_dirs | |
14829 | do | |
14830 | IFS=$as_save_IFS | |
14831 | test -z "$as_dir" && as_dir=. | |
5213506e | 14832 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14834 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14836 | break 2 |
14837 | fi | |
14838 | done | |
5213506e RW |
14839 | done |
14840 | IFS=$as_save_IFS | |
1c710c3c | 14841 | |
e8b05380 PB |
14842 | ;; |
14843 | esac | |
4de997d1 | 14844 | fi |
1c710c3c | 14845 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 14846 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14848 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14849 | else |
5213506e RW |
14850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14851 | $as_echo "no" >&6; } | |
4de997d1 PB |
14852 | fi |
14853 | ||
5213506e | 14854 | |
e8b05380 PB |
14855 | fi |
14856 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
14857 | |
14858 | ||
14859 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14860 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14861 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14862 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14863 | fi | |
14864 | ||
14865 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14866 | for ncn_progname in dlltool; do | |
14867 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14868 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14870 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14871 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14872 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14873 | else |
14874 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14875 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14876 | else | |
14877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14878 | for as_dir in $PATH | |
14879 | do | |
14880 | IFS=$as_save_IFS | |
14881 | test -z "$as_dir" && as_dir=. | |
5213506e | 14882 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14884 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14886 | break 2 |
14887 | fi | |
14888 | done | |
5213506e RW |
14889 | done |
14890 | IFS=$as_save_IFS | |
278a7a38 AO |
14891 | |
14892 | fi | |
14893 | fi | |
14894 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14895 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14897 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 14898 | else |
5213506e RW |
14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14900 | $as_echo "no" >&6; } | |
278a7a38 AO |
14901 | fi |
14902 | ||
5213506e | 14903 | |
278a7a38 AO |
14904 | done |
14905 | fi | |
14906 | ||
14907 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14908 | for ncn_progname in dlltool; do |
5213506e RW |
14909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14910 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14911 | if test -x $with_build_time_tools/${ncn_progname}; then |
14912 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14914 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14915 | break |
14916 | else | |
5213506e RW |
14917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14918 | $as_echo "no" >&6; } | |
e8b05380 PB |
14919 | fi |
14920 | done | |
14921 | fi | |
14922 | ||
14923 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14924 | for ncn_progname in dlltool; do | |
14925 | if test -n "$ncn_target_tool_prefix"; then | |
14926 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14927 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
14928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14929 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14930 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14931 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14932 | else |
e8b05380 PB |
14933 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14934 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14935 | else |
1c710c3c DJ |
14936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14937 | for as_dir in $PATH | |
14938 | do | |
14939 | IFS=$as_save_IFS | |
14940 | test -z "$as_dir" && as_dir=. | |
5213506e | 14941 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14942 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14943 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14945 | break 2 |
14946 | fi | |
14947 | done | |
5213506e RW |
14948 | done |
14949 | IFS=$as_save_IFS | |
1c710c3c | 14950 | |
4de997d1 PB |
14951 | fi |
14952 | fi | |
1c710c3c | 14953 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14954 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14956 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14957 | else |
5213506e RW |
14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14959 | $as_echo "no" >&6; } | |
4de997d1 | 14960 | fi |
4de997d1 | 14961 | |
5213506e | 14962 | |
e8b05380 PB |
14963 | fi |
14964 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14965 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14966 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14968 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14969 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 14970 | $as_echo_n "(cached) " >&6 |
4de997d1 | 14971 | else |
e8b05380 PB |
14972 | if test -n "$DLLTOOL_FOR_TARGET"; then |
14973 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 14974 | else |
1c710c3c DJ |
14975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14976 | for as_dir in $PATH | |
14977 | do | |
14978 | IFS=$as_save_IFS | |
14979 | test -z "$as_dir" && as_dir=. | |
5213506e | 14980 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14982 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 14983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14984 | break 2 |
14985 | fi | |
14986 | done | |
5213506e RW |
14987 | done |
14988 | IFS=$as_save_IFS | |
1c710c3c | 14989 | |
4de997d1 PB |
14990 | fi |
14991 | fi | |
1c710c3c | 14992 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 14993 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14995 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 14996 | else |
5213506e RW |
14997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14998 | $as_echo "no" >&6; } | |
4de997d1 | 14999 | fi |
1c710c3c | 15000 | |
5213506e | 15001 | |
e8b05380 PB |
15002 | fi |
15003 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
15004 | done | |
15005 | fi | |
1c710c3c | 15006 | |
e8b05380 PB |
15007 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
15008 | set dummy dlltool | |
15009 | if test $build = $target ; then | |
15010 | DLLTOOL_FOR_TARGET="$2" | |
15011 | else | |
15012 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15013 | fi | |
1c00b503 PB |
15014 | else |
15015 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
15016 | fi |
15017 | ||
d1f8db0c PB |
15018 | else |
15019 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
15020 | fi |
15021 | ||
4de997d1 | 15022 | |
e8b05380 PB |
15023 | |
15024 | ||
3b5e8ee4 IS |
15025 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then |
15026 | if test -n "$with_build_time_tools"; then | |
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
15028 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
15029 | if test -x $with_build_time_tools/dsymutil; then | |
15030 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
15031 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
15033 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
15034 | else | |
15035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15036 | $as_echo "no" >&6; } | |
15037 | fi | |
15038 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15039 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
15040 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
15041 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15042 | fi | |
15043 | fi | |
15044 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15045 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
15046 | set dummy dsymutil; ac_word=$2 | |
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15048 | $as_echo_n "checking for $ac_word... " >&6; } | |
15049 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
15050 | $as_echo_n "(cached) " >&6 | |
15051 | else | |
15052 | case $DSYMUTIL_FOR_TARGET in | |
15053 | [\\/]* | ?:[\\/]*) | |
15054 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
15055 | ;; | |
15056 | *) | |
15057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15058 | for as_dir in $gcc_cv_tool_dirs | |
15059 | do | |
15060 | IFS=$as_save_IFS | |
15061 | test -z "$as_dir" && as_dir=. | |
15062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15064 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
15065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15066 | break 2 | |
15067 | fi | |
15068 | done | |
15069 | done | |
15070 | IFS=$as_save_IFS | |
15071 | ||
15072 | ;; | |
15073 | esac | |
15074 | fi | |
15075 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15076 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15078 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15079 | else | |
15080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15081 | $as_echo "no" >&6; } | |
15082 | fi | |
15083 | ||
15084 | ||
15085 | fi | |
15086 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
15087 | ||
15088 | ||
15089 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15090 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
15091 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15092 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15093 | fi | |
15094 | ||
15095 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15096 | for ncn_progname in dsymutil; do | |
15097 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15098 | set dummy ${ncn_progname}; ac_word=$2 | |
15099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15100 | $as_echo_n "checking for $ac_word... " >&6; } | |
15101 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15102 | $as_echo_n "(cached) " >&6 | |
15103 | else | |
15104 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15105 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15106 | else | |
15107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15108 | for as_dir in $PATH | |
15109 | do | |
15110 | IFS=$as_save_IFS | |
15111 | test -z "$as_dir" && as_dir=. | |
15112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15114 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15116 | break 2 | |
15117 | fi | |
15118 | done | |
15119 | done | |
15120 | IFS=$as_save_IFS | |
15121 | ||
15122 | fi | |
15123 | fi | |
15124 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15125 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15127 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15128 | else | |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15130 | $as_echo "no" >&6; } | |
15131 | fi | |
15132 | ||
15133 | ||
15134 | done | |
15135 | fi | |
15136 | ||
15137 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15138 | for ncn_progname in dsymutil; do | |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15140 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15141 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15142 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15144 | $as_echo "yes" >&6; } | |
15145 | break | |
15146 | else | |
15147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15148 | $as_echo "no" >&6; } | |
15149 | fi | |
15150 | done | |
15151 | fi | |
15152 | ||
15153 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
15154 | for ncn_progname in dsymutil; do | |
15155 | if test -n "$ncn_target_tool_prefix"; then | |
15156 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15157 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15159 | $as_echo_n "checking for $ac_word... " >&6; } | |
15160 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15161 | $as_echo_n "(cached) " >&6 | |
15162 | else | |
15163 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15164 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15165 | else | |
15166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15167 | for as_dir in $PATH | |
15168 | do | |
15169 | IFS=$as_save_IFS | |
15170 | test -z "$as_dir" && as_dir=. | |
15171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15173 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
15174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15175 | break 2 | |
15176 | fi | |
15177 | done | |
15178 | done | |
15179 | IFS=$as_save_IFS | |
15180 | ||
15181 | fi | |
15182 | fi | |
15183 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15184 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15186 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15187 | else | |
15188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15189 | $as_echo "no" >&6; } | |
15190 | fi | |
15191 | ||
15192 | ||
15193 | fi | |
15194 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
15195 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15196 | set dummy ${ncn_progname}; ac_word=$2 | |
15197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15198 | $as_echo_n "checking for $ac_word... " >&6; } | |
15199 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
15200 | $as_echo_n "(cached) " >&6 | |
15201 | else | |
15202 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15203 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
15204 | else | |
15205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15206 | for as_dir in $PATH | |
15207 | do | |
15208 | IFS=$as_save_IFS | |
15209 | test -z "$as_dir" && as_dir=. | |
15210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15212 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
15213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15214 | break 2 | |
15215 | fi | |
15216 | done | |
15217 | done | |
15218 | IFS=$as_save_IFS | |
15219 | ||
15220 | fi | |
15221 | fi | |
15222 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
15223 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
15224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
15225 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
15226 | else | |
15227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15228 | $as_echo "no" >&6; } | |
15229 | fi | |
15230 | ||
15231 | ||
15232 | fi | |
15233 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
15234 | done | |
15235 | fi | |
15236 | ||
15237 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then | |
15238 | set dummy dsymutil | |
15239 | if test $build = $target ; then | |
15240 | DSYMUTIL_FOR_TARGET="$2" | |
15241 | else | |
15242 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15243 | fi | |
15244 | else | |
15245 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" | |
15246 | fi | |
15247 | ||
15248 | else | |
15249 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
15250 | fi | |
15251 | ||
15252 | ||
15253 | ||
15254 | ||
e8b05380 PB |
15255 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then |
15256 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
15258 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15259 | if test -x $with_build_time_tools/ld; then |
15260 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
15261 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
15262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15263 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 15264 | else |
5213506e RW |
15265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15266 | $as_echo "no" >&6; } | |
d1f8db0c | 15267 | fi |
e8b05380 PB |
15268 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15269 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
15270 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15271 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 15272 | fi |
e8b05380 | 15273 | fi |
3e19841a | 15274 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15275 | # Extract the first word of "ld", so it can be a program name with args. |
15276 | set dummy ld; ac_word=$2 | |
5213506e RW |
15277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15278 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15279 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 15280 | $as_echo_n "(cached) " >&6 |
4de997d1 | 15281 | else |
1c710c3c DJ |
15282 | case $LD_FOR_TARGET in |
15283 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15284 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15285 | ;; | |
e8b05380 | 15286 | *) |
1c710c3c DJ |
15287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15288 | for as_dir in $gcc_cv_tool_dirs | |
15289 | do | |
15290 | IFS=$as_save_IFS | |
15291 | test -z "$as_dir" && as_dir=. | |
5213506e | 15292 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15294 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15296 | break 2 |
15297 | fi | |
15298 | done | |
5213506e RW |
15299 | done |
15300 | IFS=$as_save_IFS | |
1c710c3c | 15301 | |
e8b05380 PB |
15302 | ;; |
15303 | esac | |
4de997d1 | 15304 | fi |
1c710c3c | 15305 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 15306 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15308 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 15309 | else |
5213506e RW |
15310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15311 | $as_echo "no" >&6; } | |
4de997d1 | 15312 | fi |
2693c0b0 | 15313 | |
5213506e | 15314 | |
e8b05380 PB |
15315 | fi |
15316 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
15317 | |
15318 | ||
15319 | if test -n "$LD_FOR_TARGET"; then | |
15320 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15321 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15322 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15323 | fi | |
15324 | ||
15325 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15326 | for ncn_progname in ld; do | |
15327 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15328 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15330 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15331 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15332 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15333 | else |
15334 | if test -n "$LD_FOR_TARGET"; then | |
15335 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15336 | else | |
15337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15338 | for as_dir in $PATH | |
15339 | do | |
15340 | IFS=$as_save_IFS | |
15341 | test -z "$as_dir" && as_dir=. | |
5213506e | 15342 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15344 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15346 | break 2 |
15347 | fi | |
15348 | done | |
5213506e RW |
15349 | done |
15350 | IFS=$as_save_IFS | |
278a7a38 AO |
15351 | |
15352 | fi | |
15353 | fi | |
15354 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15355 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
15356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15357 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 15358 | else |
5213506e RW |
15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15360 | $as_echo "no" >&6; } | |
278a7a38 AO |
15361 | fi |
15362 | ||
5213506e | 15363 | |
278a7a38 AO |
15364 | done |
15365 | fi | |
15366 | ||
15367 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15368 | for ncn_progname in ld; do |
5213506e RW |
15369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15370 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15371 | if test -x $with_build_time_tools/${ncn_progname}; then |
15372 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15374 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15375 | break |
15376 | else | |
5213506e RW |
15377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15378 | $as_echo "no" >&6; } | |
e8b05380 PB |
15379 | fi |
15380 | done | |
ca9f4b81 AO |
15381 | fi |
15382 | ||
e8b05380 PB |
15383 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
15384 | for ncn_progname in ld; do | |
15385 | if test -n "$ncn_target_tool_prefix"; then | |
15386 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15387 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15389 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15390 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15391 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15392 | else |
4de997d1 PB |
15393 | if test -n "$LD_FOR_TARGET"; then |
15394 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15395 | else |
1c710c3c DJ |
15396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15397 | for as_dir in $PATH | |
15398 | do | |
15399 | IFS=$as_save_IFS | |
15400 | test -z "$as_dir" && as_dir=. | |
5213506e | 15401 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15402 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15403 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15405 | break 2 |
15406 | fi | |
15407 | done | |
5213506e RW |
15408 | done |
15409 | IFS=$as_save_IFS | |
1c710c3c | 15410 | |
ca9f4b81 AO |
15411 | fi |
15412 | fi | |
1c710c3c | 15413 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 15414 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15416 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15417 | else |
5213506e RW |
15418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15419 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15420 | fi |
15421 | ||
5213506e | 15422 | |
e8b05380 PB |
15423 | fi |
15424 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15425 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15426 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15428 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15429 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 15430 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15431 | else |
2693c0b0 PB |
15432 | if test -n "$LD_FOR_TARGET"; then |
15433 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15434 | else |
1c710c3c DJ |
15435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15436 | for as_dir in $PATH | |
15437 | do | |
15438 | IFS=$as_save_IFS | |
15439 | test -z "$as_dir" && as_dir=. | |
5213506e | 15440 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15442 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 15443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15444 | break 2 |
15445 | fi | |
15446 | done | |
5213506e RW |
15447 | done |
15448 | IFS=$as_save_IFS | |
1c710c3c | 15449 | |
ca9f4b81 AO |
15450 | fi |
15451 | fi | |
1c710c3c | 15452 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 15453 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
15454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15455 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 15456 | else |
5213506e RW |
15457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15458 | $as_echo "no" >&6; } | |
ca9f4b81 | 15459 | fi |
1c710c3c | 15460 | |
5213506e | 15461 | |
e8b05380 PB |
15462 | fi |
15463 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15464 | done | |
15465 | fi | |
1c710c3c | 15466 | |
2693c0b0 PB |
15467 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15468 | set dummy ld | |
15469 | if test $build = $target ; then | |
15470 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 15471 | else |
2693c0b0 | 15472 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15473 | fi |
1c00b503 PB |
15474 | else |
15475 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
15476 | fi |
15477 | ||
d1f8db0c PB |
15478 | else |
15479 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
15480 | fi |
15481 | ||
15482 | ||
15483 | ||
15484 | ||
15485 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15486 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15488 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15489 | if test -x $with_build_time_tools/lipo; then |
15490 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15491 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15493 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 15494 | else |
5213506e RW |
15495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15496 | $as_echo "no" >&6; } | |
d1f8db0c | 15497 | fi |
e8b05380 PB |
15498 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15499 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
15500 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15501 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
15502 | fi |
15503 | fi | |
278a7a38 AO |
15504 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15505 | # Extract the first word of "lipo", so it can be a program name with args. | |
15506 | set dummy lipo; ac_word=$2 | |
5213506e RW |
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15508 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15509 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15510 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15511 | else |
15512 | case $LIPO_FOR_TARGET in | |
15513 | [\\/]* | ?:[\\/]*) | |
15514 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15515 | ;; | |
15516 | *) | |
15517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15518 | for as_dir in $gcc_cv_tool_dirs | |
15519 | do | |
15520 | IFS=$as_save_IFS | |
15521 | test -z "$as_dir" && as_dir=. | |
5213506e | 15522 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15524 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15526 | break 2 |
15527 | fi | |
15528 | done | |
5213506e RW |
15529 | done |
15530 | IFS=$as_save_IFS | |
278a7a38 AO |
15531 | |
15532 | ;; | |
15533 | esac | |
15534 | fi | |
15535 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 15536 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15538 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 15539 | else |
5213506e RW |
15540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15541 | $as_echo "no" >&6; } | |
278a7a38 AO |
15542 | fi |
15543 | ||
5213506e | 15544 | |
278a7a38 AO |
15545 | fi |
15546 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15547 | ||
15548 | ||
15549 | if test -n "$LIPO_FOR_TARGET"; then | |
15550 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15551 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15552 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15553 | fi | |
15554 | ||
15555 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15556 | for ncn_progname in lipo; do | |
15557 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15558 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15560 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15561 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15562 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15563 | else |
278a7a38 AO |
15564 | if test -n "$LIPO_FOR_TARGET"; then |
15565 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15566 | else | |
15567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15568 | for as_dir in $PATH | |
1c710c3c DJ |
15569 | do |
15570 | IFS=$as_save_IFS | |
15571 | test -z "$as_dir" && as_dir=. | |
5213506e | 15572 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15574 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15576 | break 2 |
15577 | fi | |
15578 | done | |
5213506e RW |
15579 | done |
15580 | IFS=$as_save_IFS | |
1c710c3c | 15581 | |
e8b05380 | 15582 | fi |
278a7a38 AO |
15583 | fi |
15584 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 15585 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15587 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 15588 | else |
5213506e RW |
15589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15590 | $as_echo "no" >&6; } | |
e8b05380 PB |
15591 | fi |
15592 | ||
5213506e | 15593 | |
278a7a38 | 15594 | done |
e8b05380 | 15595 | fi |
278a7a38 AO |
15596 | |
15597 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15598 | for ncn_progname in lipo; do |
5213506e RW |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15600 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15601 | if test -x $with_build_time_tools/${ncn_progname}; then |
15602 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15604 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15605 | break |
15606 | else | |
5213506e RW |
15607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15608 | $as_echo "no" >&6; } | |
e8b05380 PB |
15609 | fi |
15610 | done | |
15611 | fi | |
15612 | ||
15613 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15614 | for ncn_progname in lipo; do | |
15615 | if test -n "$ncn_target_tool_prefix"; then | |
15616 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15617 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15619 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15620 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15621 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15622 | else |
15623 | if test -n "$LIPO_FOR_TARGET"; then | |
15624 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15625 | else | |
1c710c3c DJ |
15626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15627 | for as_dir in $PATH | |
15628 | do | |
15629 | IFS=$as_save_IFS | |
15630 | test -z "$as_dir" && as_dir=. | |
5213506e | 15631 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15633 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15635 | break 2 |
15636 | fi | |
15637 | done | |
5213506e RW |
15638 | done |
15639 | IFS=$as_save_IFS | |
1c710c3c | 15640 | |
040b1c5a GK |
15641 | fi |
15642 | fi | |
1c710c3c | 15643 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15644 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15646 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15647 | else |
5213506e RW |
15648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15649 | $as_echo "no" >&6; } | |
040b1c5a GK |
15650 | fi |
15651 | ||
5213506e | 15652 | |
e8b05380 PB |
15653 | fi |
15654 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15655 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15656 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15658 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15659 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 15660 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
15661 | else |
15662 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
15663 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
15664 | else | |
1c710c3c DJ |
15665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15666 | for as_dir in $PATH | |
15667 | do | |
15668 | IFS=$as_save_IFS | |
15669 | test -z "$as_dir" && as_dir=. | |
5213506e | 15670 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15672 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 15673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15674 | break 2 |
15675 | fi | |
15676 | done | |
5213506e RW |
15677 | done |
15678 | IFS=$as_save_IFS | |
1c710c3c | 15679 | |
040b1c5a GK |
15680 | fi |
15681 | fi | |
1c710c3c | 15682 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 15683 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
15684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15685 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 15686 | else |
5213506e RW |
15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15688 | $as_echo "no" >&6; } | |
040b1c5a | 15689 | fi |
1c710c3c | 15690 | |
5213506e | 15691 | |
e8b05380 PB |
15692 | fi |
15693 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15694 | done | |
15695 | fi | |
1c710c3c | 15696 | |
040b1c5a GK |
15697 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15698 | set dummy lipo | |
15699 | if test $build = $target ; then | |
15700 | LIPO_FOR_TARGET="$2" | |
15701 | else | |
15702 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15703 | fi | |
1c00b503 PB |
15704 | else |
15705 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
15706 | fi |
15707 | ||
d1f8db0c PB |
15708 | else |
15709 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
15710 | fi |
15711 | ||
15712 | ||
15713 | ||
15714 | ||
15715 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15716 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15718 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15719 | if test -x $with_build_time_tools/nm; then |
15720 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15721 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15723 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 15724 | else |
5213506e RW |
15725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15726 | $as_echo "no" >&6; } | |
d1f8db0c | 15727 | fi |
e8b05380 PB |
15728 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15729 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
15730 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15731 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
15732 | fi |
15733 | fi | |
3e19841a | 15734 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15735 | # Extract the first word of "nm", so it can be a program name with args. |
15736 | set dummy nm; ac_word=$2 | |
5213506e RW |
15737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15738 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15739 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 15740 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15741 | else |
1c710c3c DJ |
15742 | case $NM_FOR_TARGET in |
15743 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15744 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15745 | ;; | |
e8b05380 | 15746 | *) |
1c710c3c DJ |
15747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15748 | for as_dir in $gcc_cv_tool_dirs | |
15749 | do | |
15750 | IFS=$as_save_IFS | |
15751 | test -z "$as_dir" && as_dir=. | |
5213506e | 15752 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15754 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15756 | break 2 |
15757 | fi | |
15758 | done | |
5213506e RW |
15759 | done |
15760 | IFS=$as_save_IFS | |
1c710c3c | 15761 | |
e8b05380 PB |
15762 | ;; |
15763 | esac | |
15764 | fi | |
1c710c3c | 15765 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 15766 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15768 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 15769 | else |
5213506e RW |
15770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15771 | $as_echo "no" >&6; } | |
e8b05380 PB |
15772 | fi |
15773 | ||
5213506e | 15774 | |
e8b05380 PB |
15775 | fi |
15776 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
15777 | |
15778 | ||
15779 | if test -n "$NM_FOR_TARGET"; then | |
15780 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15781 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15782 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15783 | fi | |
15784 | ||
15785 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15786 | for ncn_progname in nm; do | |
15787 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15788 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15790 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15791 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15792 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15793 | else |
15794 | if test -n "$NM_FOR_TARGET"; then | |
15795 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15796 | else | |
15797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15798 | for as_dir in $PATH | |
15799 | do | |
15800 | IFS=$as_save_IFS | |
15801 | test -z "$as_dir" && as_dir=. | |
5213506e | 15802 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15804 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15806 | break 2 |
15807 | fi | |
15808 | done | |
5213506e RW |
15809 | done |
15810 | IFS=$as_save_IFS | |
278a7a38 AO |
15811 | |
15812 | fi | |
15813 | fi | |
15814 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15815 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15817 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 15818 | else |
5213506e RW |
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15820 | $as_echo "no" >&6; } | |
278a7a38 AO |
15821 | fi |
15822 | ||
5213506e | 15823 | |
278a7a38 AO |
15824 | done |
15825 | fi | |
15826 | ||
15827 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15828 | for ncn_progname in nm; do |
5213506e RW |
15829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15830 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15831 | if test -x $with_build_time_tools/${ncn_progname}; then |
15832 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15834 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15835 | break |
15836 | else | |
5213506e RW |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15838 | $as_echo "no" >&6; } | |
e8b05380 PB |
15839 | fi |
15840 | done | |
15841 | fi | |
15842 | ||
15843 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15844 | for ncn_progname in nm; do | |
15845 | if test -n "$ncn_target_tool_prefix"; then | |
15846 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 15847 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15849 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15850 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15851 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15852 | else |
4de997d1 PB |
15853 | if test -n "$NM_FOR_TARGET"; then |
15854 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15855 | else |
1c710c3c DJ |
15856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15857 | for as_dir in $PATH | |
15858 | do | |
15859 | IFS=$as_save_IFS | |
15860 | test -z "$as_dir" && as_dir=. | |
5213506e | 15861 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15863 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15865 | break 2 |
15866 | fi | |
15867 | done | |
5213506e RW |
15868 | done |
15869 | IFS=$as_save_IFS | |
1c710c3c | 15870 | |
ca9f4b81 AO |
15871 | fi |
15872 | fi | |
1c710c3c | 15873 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 15874 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15876 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15877 | else |
5213506e RW |
15878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15879 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15880 | fi |
15881 | ||
5213506e | 15882 | |
e8b05380 PB |
15883 | fi |
15884 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15885 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15886 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15888 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15889 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 15890 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15891 | else |
2693c0b0 PB |
15892 | if test -n "$NM_FOR_TARGET"; then |
15893 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15894 | else |
1c710c3c DJ |
15895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15896 | for as_dir in $PATH | |
15897 | do | |
15898 | IFS=$as_save_IFS | |
15899 | test -z "$as_dir" && as_dir=. | |
5213506e | 15900 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15902 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 15903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15904 | break 2 |
15905 | fi | |
15906 | done | |
5213506e RW |
15907 | done |
15908 | IFS=$as_save_IFS | |
1c710c3c | 15909 | |
ca9f4b81 AO |
15910 | fi |
15911 | fi | |
1c710c3c | 15912 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 15913 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15915 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 15916 | else |
5213506e RW |
15917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15918 | $as_echo "no" >&6; } | |
ca9f4b81 | 15919 | fi |
1c710c3c | 15920 | |
5213506e | 15921 | |
e8b05380 PB |
15922 | fi |
15923 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15924 | done | |
15925 | fi | |
1c710c3c | 15926 | |
2693c0b0 PB |
15927 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15928 | set dummy nm | |
15929 | if test $build = $target ; then | |
15930 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 15931 | else |
2693c0b0 | 15932 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15933 | fi |
1c00b503 PB |
15934 | else |
15935 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
15936 | fi |
15937 | ||
d1f8db0c PB |
15938 | else |
15939 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
15940 | fi |
15941 | ||
15942 | ||
15943 | ||
15944 | ||
9bccfdf5 AP |
15945 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15946 | if test -n "$with_build_time_tools"; then | |
15947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15948 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15949 | if test -x $with_build_time_tools/objcopy; then | |
15950 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15951 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15953 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15954 | else | |
15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15956 | $as_echo "no" >&6; } | |
15957 | fi | |
15958 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15959 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15960 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15961 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15962 | fi | |
15963 | fi | |
15964 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15965 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15966 | set dummy objcopy; ac_word=$2 | |
15967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15968 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15969 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
15970 | $as_echo_n "(cached) " >&6 |
15971 | else | |
15972 | case $OBJCOPY_FOR_TARGET in | |
15973 | [\\/]* | ?:[\\/]*) | |
15974 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15975 | ;; | |
15976 | *) | |
15977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15978 | for as_dir in $gcc_cv_tool_dirs | |
15979 | do | |
15980 | IFS=$as_save_IFS | |
15981 | test -z "$as_dir" && as_dir=. | |
15982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
15984 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15986 | break 2 | |
15987 | fi | |
15988 | done | |
15989 | done | |
15990 | IFS=$as_save_IFS | |
15991 | ||
15992 | ;; | |
15993 | esac | |
15994 | fi | |
15995 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15996 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15998 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15999 | else | |
16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16001 | $as_echo "no" >&6; } | |
16002 | fi | |
16003 | ||
16004 | ||
16005 | fi | |
16006 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
16007 | ||
16008 | ||
16009 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16010 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
16011 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16012 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16013 | fi | |
16014 | ||
16015 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16016 | for ncn_progname in objcopy; do | |
16017 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16018 | set dummy ${ncn_progname}; ac_word=$2 | |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16020 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16021 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16022 | $as_echo_n "(cached) " >&6 |
16023 | else | |
16024 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16025 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16026 | else | |
16027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16028 | for as_dir in $PATH | |
16029 | do | |
16030 | IFS=$as_save_IFS | |
16031 | test -z "$as_dir" && as_dir=. | |
16032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16034 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
16035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16036 | break 2 | |
16037 | fi | |
16038 | done | |
16039 | done | |
16040 | IFS=$as_save_IFS | |
16041 | ||
16042 | fi | |
16043 | fi | |
16044 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16045 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16047 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16048 | else | |
16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16050 | $as_echo "no" >&6; } | |
16051 | fi | |
16052 | ||
16053 | ||
16054 | done | |
16055 | fi | |
16056 | ||
16057 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16058 | for ncn_progname in objcopy; do | |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16060 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16061 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16062 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16064 | $as_echo "yes" >&6; } | |
16065 | break | |
16066 | else | |
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16068 | $as_echo "no" >&6; } | |
16069 | fi | |
16070 | done | |
16071 | fi | |
16072 | ||
16073 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
16074 | for ncn_progname in objcopy; do | |
16075 | if test -n "$ncn_target_tool_prefix"; then | |
16076 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16077 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16079 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16080 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16081 | $as_echo_n "(cached) " >&6 |
16082 | else | |
16083 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16084 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16085 | else | |
16086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16087 | for as_dir in $PATH | |
16088 | do | |
16089 | IFS=$as_save_IFS | |
16090 | test -z "$as_dir" && as_dir=. | |
16091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16093 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16095 | break 2 | |
16096 | fi | |
16097 | done | |
16098 | done | |
16099 | IFS=$as_save_IFS | |
16100 | ||
16101 | fi | |
16102 | fi | |
16103 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16104 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16106 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16107 | else | |
16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16109 | $as_echo "no" >&6; } | |
16110 | fi | |
16111 | ||
16112 | ||
16113 | fi | |
16114 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
16115 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16116 | set dummy ${ncn_progname}; ac_word=$2 | |
16117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16118 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16119 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
16120 | $as_echo_n "(cached) " >&6 |
16121 | else | |
16122 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16123 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
16124 | else | |
16125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16126 | for as_dir in $PATH | |
16127 | do | |
16128 | IFS=$as_save_IFS | |
16129 | test -z "$as_dir" && as_dir=. | |
16130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
16132 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
16133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16134 | break 2 | |
16135 | fi | |
16136 | done | |
16137 | done | |
16138 | IFS=$as_save_IFS | |
16139 | ||
16140 | fi | |
16141 | fi | |
16142 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
16143 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
16144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
16145 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
16146 | else | |
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16148 | $as_echo "no" >&6; } | |
16149 | fi | |
16150 | ||
16151 | ||
16152 | fi | |
16153 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
16154 | done | |
16155 | fi | |
16156 | ||
16157 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
16158 | set dummy objcopy | |
16159 | if test $build = $target ; then | |
16160 | OBJCOPY_FOR_TARGET="$2" | |
16161 | else | |
16162 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16163 | fi | |
16164 | else | |
16165 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
16166 | fi | |
16167 | ||
16168 | else | |
16169 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
16170 | fi | |
16171 | ||
16172 | ||
16173 | ||
16174 | ||
e8b05380 PB |
16175 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
16176 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
16178 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16179 | if test -x $with_build_time_tools/objdump; then |
16180 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
16181 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
16182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
16183 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 16184 | else |
5213506e RW |
16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16186 | $as_echo "no" >&6; } | |
d1f8db0c | 16187 | fi |
e8b05380 PB |
16188 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16189 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
16190 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
16191 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16192 | fi |
16193 | fi | |
3e19841a | 16194 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16195 | # Extract the first word of "objdump", so it can be a program name with args. |
16196 | set dummy objdump; ac_word=$2 | |
5213506e RW |
16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16198 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16199 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16200 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16201 | else |
1c710c3c DJ |
16202 | case $OBJDUMP_FOR_TARGET in |
16203 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16204 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
16205 | ;; | |
e8b05380 | 16206 | *) |
1c710c3c DJ |
16207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16208 | for as_dir in $gcc_cv_tool_dirs | |
16209 | do | |
16210 | IFS=$as_save_IFS | |
16211 | test -z "$as_dir" && as_dir=. | |
5213506e | 16212 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16214 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16216 | break 2 |
16217 | fi | |
16218 | done | |
5213506e RW |
16219 | done |
16220 | IFS=$as_save_IFS | |
1c710c3c | 16221 | |
e8b05380 PB |
16222 | ;; |
16223 | esac | |
16224 | fi | |
1c710c3c | 16225 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 16226 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16228 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 16229 | else |
5213506e RW |
16230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16231 | $as_echo "no" >&6; } | |
e8b05380 PB |
16232 | fi |
16233 | ||
5213506e | 16234 | |
e8b05380 PB |
16235 | fi |
16236 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
16237 | |
16238 | ||
16239 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16240 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
16241 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16242 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16243 | fi | |
16244 | ||
16245 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16246 | for ncn_progname in objdump; do | |
16247 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16248 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16250 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16251 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16252 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16253 | else |
16254 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16255 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16256 | else | |
16257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16258 | for as_dir in $PATH | |
16259 | do | |
16260 | IFS=$as_save_IFS | |
16261 | test -z "$as_dir" && as_dir=. | |
5213506e | 16262 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16264 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16266 | break 2 |
16267 | fi | |
16268 | done | |
5213506e RW |
16269 | done |
16270 | IFS=$as_save_IFS | |
278a7a38 AO |
16271 | |
16272 | fi | |
16273 | fi | |
16274 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16275 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
16276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16277 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 16278 | else |
5213506e RW |
16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16280 | $as_echo "no" >&6; } | |
278a7a38 AO |
16281 | fi |
16282 | ||
5213506e | 16283 | |
278a7a38 AO |
16284 | done |
16285 | fi | |
16286 | ||
16287 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16288 | for ncn_progname in objdump; do |
5213506e RW |
16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16290 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16291 | if test -x $with_build_time_tools/${ncn_progname}; then |
16292 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16294 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16295 | break |
16296 | else | |
5213506e RW |
16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16298 | $as_echo "no" >&6; } | |
e8b05380 PB |
16299 | fi |
16300 | done | |
16301 | fi | |
16302 | ||
16303 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16304 | for ncn_progname in objdump; do | |
16305 | if test -n "$ncn_target_tool_prefix"; then | |
16306 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16307 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16309 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16310 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16311 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16312 | else |
16313 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16314 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16315 | else | |
1c710c3c DJ |
16316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16317 | for as_dir in $PATH | |
16318 | do | |
16319 | IFS=$as_save_IFS | |
16320 | test -z "$as_dir" && as_dir=. | |
5213506e | 16321 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16322 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16323 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16325 | break 2 |
16326 | fi | |
16327 | done | |
5213506e RW |
16328 | done |
16329 | IFS=$as_save_IFS | |
1c710c3c | 16330 | |
d739199a DJ |
16331 | fi |
16332 | fi | |
1c710c3c | 16333 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16334 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16336 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16337 | else |
5213506e RW |
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16339 | $as_echo "no" >&6; } | |
d739199a DJ |
16340 | fi |
16341 | ||
5213506e | 16342 | |
e8b05380 PB |
16343 | fi |
16344 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16345 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 16346 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16348 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16349 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 16350 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
16351 | else |
16352 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16353 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16354 | else | |
1c710c3c DJ |
16355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16356 | for as_dir in $PATH | |
16357 | do | |
16358 | IFS=$as_save_IFS | |
16359 | test -z "$as_dir" && as_dir=. | |
5213506e | 16360 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16362 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 16363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16364 | break 2 |
16365 | fi | |
16366 | done | |
5213506e RW |
16367 | done |
16368 | IFS=$as_save_IFS | |
1c710c3c | 16369 | |
d739199a DJ |
16370 | fi |
16371 | fi | |
1c710c3c | 16372 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 16373 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
16374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16375 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 16376 | else |
5213506e RW |
16377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16378 | $as_echo "no" >&6; } | |
d739199a | 16379 | fi |
1c710c3c | 16380 | |
5213506e | 16381 | |
e8b05380 PB |
16382 | fi |
16383 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16384 | done | |
16385 | fi | |
1c710c3c | 16386 | |
d739199a DJ |
16387 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16388 | set dummy objdump | |
16389 | if test $build = $target ; then | |
16390 | OBJDUMP_FOR_TARGET="$2" | |
16391 | else | |
16392 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16393 | fi | |
1c00b503 PB |
16394 | else |
16395 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
16396 | fi |
16397 | ||
d1f8db0c PB |
16398 | else |
16399 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
16400 | fi |
16401 | ||
16402 | ||
16403 | ||
16404 | ||
e4a9a572 IS |
16405 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16406 | if test -n "$with_build_time_tools"; then | |
16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16408 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16409 | if test -x $with_build_time_tools/otool; then | |
16410 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16411 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16413 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16414 | else | |
16415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16416 | $as_echo "no" >&6; } | |
16417 | fi | |
16418 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16419 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16420 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16421 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16422 | fi | |
16423 | fi | |
16424 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16425 | # Extract the first word of "otool", so it can be a program name with args. | |
16426 | set dummy otool; ac_word=$2 | |
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16428 | $as_echo_n "checking for $ac_word... " >&6; } | |
16429 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16430 | $as_echo_n "(cached) " >&6 | |
16431 | else | |
16432 | case $OTOOL_FOR_TARGET in | |
16433 | [\\/]* | ?:[\\/]*) | |
16434 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16435 | ;; | |
16436 | *) | |
16437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16438 | for as_dir in $gcc_cv_tool_dirs | |
16439 | do | |
16440 | IFS=$as_save_IFS | |
16441 | test -z "$as_dir" && as_dir=. | |
16442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16444 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16446 | break 2 | |
16447 | fi | |
16448 | done | |
16449 | done | |
16450 | IFS=$as_save_IFS | |
16451 | ||
16452 | ;; | |
16453 | esac | |
16454 | fi | |
16455 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16456 | if test -n "$OTOOL_FOR_TARGET"; then | |
16457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16458 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16459 | else | |
16460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16461 | $as_echo "no" >&6; } | |
16462 | fi | |
16463 | ||
16464 | ||
16465 | fi | |
16466 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16467 | ||
16468 | ||
16469 | if test -n "$OTOOL_FOR_TARGET"; then | |
16470 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16471 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16472 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16473 | fi | |
16474 | ||
16475 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16476 | for ncn_progname in otool; do | |
16477 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16478 | set dummy ${ncn_progname}; ac_word=$2 | |
16479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16480 | $as_echo_n "checking for $ac_word... " >&6; } | |
16481 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16482 | $as_echo_n "(cached) " >&6 | |
16483 | else | |
16484 | if test -n "$OTOOL_FOR_TARGET"; then | |
16485 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16486 | else | |
16487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16488 | for as_dir in $PATH | |
16489 | do | |
16490 | IFS=$as_save_IFS | |
16491 | test -z "$as_dir" && as_dir=. | |
16492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16494 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16496 | break 2 | |
16497 | fi | |
16498 | done | |
16499 | done | |
16500 | IFS=$as_save_IFS | |
16501 | ||
16502 | fi | |
16503 | fi | |
16504 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16505 | if test -n "$OTOOL_FOR_TARGET"; then | |
16506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16507 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16508 | else | |
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16510 | $as_echo "no" >&6; } | |
16511 | fi | |
16512 | ||
16513 | ||
16514 | done | |
16515 | fi | |
16516 | ||
16517 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16518 | for ncn_progname in otool; do | |
16519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16520 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16521 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16522 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16524 | $as_echo "yes" >&6; } | |
16525 | break | |
16526 | else | |
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16528 | $as_echo "no" >&6; } | |
16529 | fi | |
16530 | done | |
16531 | fi | |
16532 | ||
16533 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16534 | for ncn_progname in otool; do | |
16535 | if test -n "$ncn_target_tool_prefix"; then | |
16536 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16537 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16539 | $as_echo_n "checking for $ac_word... " >&6; } | |
16540 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16541 | $as_echo_n "(cached) " >&6 | |
16542 | else | |
16543 | if test -n "$OTOOL_FOR_TARGET"; then | |
16544 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16545 | else | |
16546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16547 | for as_dir in $PATH | |
16548 | do | |
16549 | IFS=$as_save_IFS | |
16550 | test -z "$as_dir" && as_dir=. | |
16551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16553 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16555 | break 2 | |
16556 | fi | |
16557 | done | |
16558 | done | |
16559 | IFS=$as_save_IFS | |
16560 | ||
16561 | fi | |
16562 | fi | |
16563 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16564 | if test -n "$OTOOL_FOR_TARGET"; then | |
16565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16566 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16567 | else | |
16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16569 | $as_echo "no" >&6; } | |
16570 | fi | |
16571 | ||
16572 | ||
16573 | fi | |
16574 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16575 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16576 | set dummy ${ncn_progname}; ac_word=$2 | |
16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16578 | $as_echo_n "checking for $ac_word... " >&6; } | |
16579 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16580 | $as_echo_n "(cached) " >&6 | |
16581 | else | |
16582 | if test -n "$OTOOL_FOR_TARGET"; then | |
16583 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16584 | else | |
16585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16586 | for as_dir in $PATH | |
16587 | do | |
16588 | IFS=$as_save_IFS | |
16589 | test -z "$as_dir" && as_dir=. | |
16590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16591 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16592 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16594 | break 2 | |
16595 | fi | |
16596 | done | |
16597 | done | |
16598 | IFS=$as_save_IFS | |
16599 | ||
16600 | fi | |
16601 | fi | |
16602 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16603 | if test -n "$OTOOL_FOR_TARGET"; then | |
16604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16605 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16606 | else | |
16607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16608 | $as_echo "no" >&6; } | |
16609 | fi | |
16610 | ||
16611 | ||
16612 | fi | |
16613 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16614 | done | |
16615 | fi | |
16616 | ||
16617 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16618 | set dummy otool | |
16619 | if test $build = $target ; then | |
16620 | OTOOL_FOR_TARGET="$2" | |
16621 | else | |
16622 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16623 | fi | |
16624 | else | |
16625 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16626 | fi | |
16627 | ||
16628 | else | |
16629 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16630 | fi | |
16631 | ||
16632 | ||
16633 | ||
16634 | ||
e8b05380 PB |
16635 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16636 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16638 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16639 | if test -x $with_build_time_tools/ranlib; then |
16640 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16641 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
16642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16643 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 16644 | else |
5213506e RW |
16645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16646 | $as_echo "no" >&6; } | |
d1f8db0c | 16647 | fi |
e8b05380 PB |
16648 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16649 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
16650 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16651 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
16652 | fi |
16653 | fi | |
3e19841a | 16654 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
16655 | # Extract the first word of "ranlib", so it can be a program name with args. |
16656 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
16657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16658 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16659 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16660 | $as_echo_n "(cached) " >&6 |
e8b05380 | 16661 | else |
1c710c3c DJ |
16662 | case $RANLIB_FOR_TARGET in |
16663 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
16664 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16665 | ;; | |
e8b05380 | 16666 | *) |
1c710c3c DJ |
16667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16668 | for as_dir in $gcc_cv_tool_dirs | |
16669 | do | |
16670 | IFS=$as_save_IFS | |
16671 | test -z "$as_dir" && as_dir=. | |
5213506e | 16672 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16674 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 16675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16676 | break 2 |
16677 | fi | |
16678 | done | |
5213506e RW |
16679 | done |
16680 | IFS=$as_save_IFS | |
1c710c3c | 16681 | |
e8b05380 PB |
16682 | ;; |
16683 | esac | |
16684 | fi | |
1c710c3c | 16685 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 16686 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16688 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 16689 | else |
5213506e RW |
16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16691 | $as_echo "no" >&6; } | |
e8b05380 PB |
16692 | fi |
16693 | ||
5213506e | 16694 | |
e8b05380 PB |
16695 | fi |
16696 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
16697 | |
16698 | ||
16699 | if test -n "$RANLIB_FOR_TARGET"; then | |
16700 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16701 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16702 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16703 | fi | |
16704 | ||
16705 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16706 | for ncn_progname in ranlib; do | |
16707 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16708 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16710 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16711 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16712 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
16713 | else |
16714 | if test -n "$RANLIB_FOR_TARGET"; then | |
16715 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16716 | else | |
16717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16718 | for as_dir in $PATH | |
16719 | do | |
16720 | IFS=$as_save_IFS | |
16721 | test -z "$as_dir" && as_dir=. | |
5213506e | 16722 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 16724 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
16726 | break 2 |
16727 | fi | |
16728 | done | |
5213506e RW |
16729 | done |
16730 | IFS=$as_save_IFS | |
278a7a38 AO |
16731 | |
16732 | fi | |
16733 | fi | |
16734 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16735 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16737 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 16738 | else |
5213506e RW |
16739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16740 | $as_echo "no" >&6; } | |
278a7a38 AO |
16741 | fi |
16742 | ||
5213506e | 16743 | |
278a7a38 AO |
16744 | done |
16745 | fi | |
16746 | ||
16747 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 16748 | for ncn_progname in ranlib; do |
5213506e RW |
16749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16750 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
16751 | if test -x $with_build_time_tools/${ncn_progname}; then |
16752 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
16753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16754 | $as_echo "yes" >&6; } | |
e8b05380 PB |
16755 | break |
16756 | else | |
5213506e RW |
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16758 | $as_echo "no" >&6; } | |
e8b05380 PB |
16759 | fi |
16760 | done | |
16761 | fi | |
16762 | ||
16763 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16764 | for ncn_progname in ranlib; do | |
16765 | if test -n "$ncn_target_tool_prefix"; then | |
16766 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 16767 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16769 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16770 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16771 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16772 | else |
4de997d1 PB |
16773 | if test -n "$RANLIB_FOR_TARGET"; then |
16774 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16775 | else |
1c710c3c DJ |
16776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16777 | for as_dir in $PATH | |
16778 | do | |
16779 | IFS=$as_save_IFS | |
16780 | test -z "$as_dir" && as_dir=. | |
5213506e | 16781 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16782 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16783 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 16784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16785 | break 2 |
16786 | fi | |
16787 | done | |
5213506e RW |
16788 | done |
16789 | IFS=$as_save_IFS | |
1c710c3c | 16790 | |
ca9f4b81 AO |
16791 | fi |
16792 | fi | |
1c710c3c | 16793 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 16794 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16796 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16797 | else |
5213506e RW |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16799 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
16800 | fi |
16801 | ||
5213506e | 16802 | |
e8b05380 PB |
16803 | fi |
16804 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16805 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 16806 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16808 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16809 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 16810 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 16811 | else |
2693c0b0 PB |
16812 | if test -n "$RANLIB_FOR_TARGET"; then |
16813 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 16814 | else |
1c710c3c DJ |
16815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16816 | for as_dir in $PATH | |
16817 | do | |
16818 | IFS=$as_save_IFS | |
16819 | test -z "$as_dir" && as_dir=. | |
5213506e | 16820 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 16821 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 16822 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 16823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
16824 | break 2 |
16825 | fi | |
16826 | done | |
5213506e RW |
16827 | done |
16828 | IFS=$as_save_IFS | |
1c710c3c | 16829 | |
ca9f4b81 AO |
16830 | fi |
16831 | fi | |
1c710c3c | 16832 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 16833 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
16834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16835 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 16836 | else |
5213506e RW |
16837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16838 | $as_echo "no" >&6; } | |
ca9f4b81 | 16839 | fi |
1c710c3c | 16840 | |
5213506e | 16841 | |
e8b05380 PB |
16842 | fi |
16843 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16844 | done | |
16845 | fi | |
1c710c3c | 16846 | |
e8b05380 PB |
16847 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16848 | set dummy ranlib | |
16849 | if test $build = $target ; then | |
16850 | RANLIB_FOR_TARGET="$2" | |
16851 | else | |
16852 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 16853 | fi |
1c00b503 PB |
16854 | else |
16855 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 16856 | fi |
2693c0b0 | 16857 | |
d1f8db0c PB |
16858 | else |
16859 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
16860 | fi |
16861 | ||
e8b05380 PB |
16862 | |
16863 | ||
16864 | ||
e7a82751 RM |
16865 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16866 | if test -n "$with_build_time_tools"; then | |
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16868 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16869 | if test -x $with_build_time_tools/readelf; then | |
16870 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16871 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16873 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16874 | else | |
16875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16876 | $as_echo "no" >&6; } | |
16877 | fi | |
16878 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16879 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16880 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16881 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16882 | fi | |
16883 | fi | |
16884 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16885 | # Extract the first word of "readelf", so it can be a program name with args. | |
16886 | set dummy readelf; ac_word=$2 | |
16887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16888 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16889 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16890 | $as_echo_n "(cached) " >&6 |
16891 | else | |
16892 | case $READELF_FOR_TARGET in | |
16893 | [\\/]* | ?:[\\/]*) | |
16894 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16895 | ;; | |
16896 | *) | |
16897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16898 | for as_dir in $gcc_cv_tool_dirs | |
16899 | do | |
16900 | IFS=$as_save_IFS | |
16901 | test -z "$as_dir" && as_dir=. | |
16902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16904 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16906 | break 2 | |
16907 | fi | |
16908 | done | |
16909 | done | |
16910 | IFS=$as_save_IFS | |
16911 | ||
16912 | ;; | |
16913 | esac | |
16914 | fi | |
16915 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16916 | if test -n "$READELF_FOR_TARGET"; then | |
16917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16918 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16919 | else | |
16920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16921 | $as_echo "no" >&6; } | |
16922 | fi | |
16923 | ||
16924 | ||
16925 | fi | |
16926 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16927 | ||
16928 | ||
16929 | if test -n "$READELF_FOR_TARGET"; then | |
16930 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16931 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16932 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16933 | fi | |
16934 | ||
16935 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16936 | for ncn_progname in readelf; do | |
16937 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16938 | set dummy ${ncn_progname}; ac_word=$2 | |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16940 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 16941 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
16942 | $as_echo_n "(cached) " >&6 |
16943 | else | |
16944 | if test -n "$READELF_FOR_TARGET"; then | |
16945 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16946 | else | |
16947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16948 | for as_dir in $PATH | |
16949 | do | |
16950 | IFS=$as_save_IFS | |
16951 | test -z "$as_dir" && as_dir=. | |
16952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 16953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
16954 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16956 | break 2 | |
16957 | fi | |
16958 | done | |
16959 | done | |
16960 | IFS=$as_save_IFS | |
16961 | ||
16962 | fi | |
16963 | fi | |
16964 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16965 | if test -n "$READELF_FOR_TARGET"; then | |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16967 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16968 | else | |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16970 | $as_echo "no" >&6; } | |
16971 | fi | |
16972 | ||
16973 | ||
16974 | done | |
16975 | fi | |
16976 | ||
16977 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16978 | for ncn_progname in readelf; do | |
16979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16980 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16981 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16982 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16984 | $as_echo "yes" >&6; } | |
16985 | break | |
16986 | else | |
16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16988 | $as_echo "no" >&6; } | |
16989 | fi | |
16990 | done | |
16991 | fi | |
16992 | ||
16993 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16994 | for ncn_progname in readelf; do | |
16995 | if test -n "$ncn_target_tool_prefix"; then | |
16996 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16997 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16999 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17000 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
17001 | $as_echo_n "(cached) " >&6 |
17002 | else | |
17003 | if test -n "$READELF_FOR_TARGET"; then | |
17004 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
17005 | else | |
17006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17007 | for as_dir in $PATH | |
17008 | do | |
17009 | IFS=$as_save_IFS | |
17010 | test -z "$as_dir" && as_dir=. | |
17011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17013 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
17014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17015 | break 2 | |
17016 | fi | |
17017 | done | |
17018 | done | |
17019 | IFS=$as_save_IFS | |
17020 | ||
17021 | fi | |
17022 | fi | |
17023 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17024 | if test -n "$READELF_FOR_TARGET"; then | |
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17026 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17027 | else | |
17028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17029 | $as_echo "no" >&6; } | |
17030 | fi | |
17031 | ||
17032 | ||
17033 | fi | |
17034 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
17035 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17036 | set dummy ${ncn_progname}; ac_word=$2 | |
17037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17038 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17039 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
17040 | $as_echo_n "(cached) " >&6 |
17041 | else | |
17042 | if test -n "$READELF_FOR_TARGET"; then | |
17043 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
17044 | else | |
17045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17046 | for as_dir in $PATH | |
17047 | do | |
17048 | IFS=$as_save_IFS | |
17049 | test -z "$as_dir" && as_dir=. | |
17050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 17051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
17052 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
17053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17054 | break 2 | |
17055 | fi | |
17056 | done | |
17057 | done | |
17058 | IFS=$as_save_IFS | |
17059 | ||
17060 | fi | |
17061 | fi | |
17062 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
17063 | if test -n "$READELF_FOR_TARGET"; then | |
17064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
17065 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
17066 | else | |
17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17068 | $as_echo "no" >&6; } | |
17069 | fi | |
17070 | ||
17071 | ||
17072 | fi | |
17073 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
17074 | done | |
17075 | fi | |
17076 | ||
17077 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
17078 | set dummy readelf | |
17079 | if test $build = $target ; then | |
17080 | READELF_FOR_TARGET="$2" | |
17081 | else | |
17082 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17083 | fi | |
17084 | else | |
17085 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
17086 | fi | |
17087 | ||
17088 | else | |
17089 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
17090 | fi | |
17091 | ||
17092 | ||
17093 | ||
17094 | ||
e8b05380 PB |
17095 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
17096 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
17098 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17099 | if test -x $with_build_time_tools/strip; then |
17100 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
17101 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
17102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
17103 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 17104 | else |
5213506e RW |
17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17106 | $as_echo "no" >&6; } | |
d1f8db0c | 17107 | fi |
e8b05380 PB |
17108 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17109 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
17110 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
17111 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
17112 | fi |
17113 | fi | |
3e19841a | 17114 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17115 | # Extract the first word of "strip", so it can be a program name with args. |
17116 | set dummy strip; ac_word=$2 | |
5213506e RW |
17117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17118 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17119 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17120 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17121 | else |
1c710c3c DJ |
17122 | case $STRIP_FOR_TARGET in |
17123 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17124 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
17125 | ;; | |
e8b05380 | 17126 | *) |
1c710c3c DJ |
17127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17128 | for as_dir in $gcc_cv_tool_dirs | |
17129 | do | |
17130 | IFS=$as_save_IFS | |
17131 | test -z "$as_dir" && as_dir=. | |
5213506e | 17132 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17133 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17134 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17136 | break 2 |
17137 | fi | |
17138 | done | |
5213506e RW |
17139 | done |
17140 | IFS=$as_save_IFS | |
1c710c3c | 17141 | |
e8b05380 PB |
17142 | ;; |
17143 | esac | |
17144 | fi | |
1c710c3c | 17145 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 17146 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17148 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 17149 | else |
5213506e RW |
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17151 | $as_echo "no" >&6; } | |
e8b05380 PB |
17152 | fi |
17153 | ||
5213506e | 17154 | |
e8b05380 PB |
17155 | fi |
17156 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
17157 | |
17158 | ||
17159 | if test -n "$STRIP_FOR_TARGET"; then | |
17160 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
17161 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17162 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17163 | fi | |
17164 | ||
17165 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17166 | for ncn_progname in strip; do | |
17167 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17168 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17170 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17171 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17172 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17173 | else |
17174 | if test -n "$STRIP_FOR_TARGET"; then | |
17175 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17176 | else | |
17177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17178 | for as_dir in $PATH | |
17179 | do | |
17180 | IFS=$as_save_IFS | |
17181 | test -z "$as_dir" && as_dir=. | |
5213506e | 17182 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17184 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17186 | break 2 |
17187 | fi | |
17188 | done | |
5213506e RW |
17189 | done |
17190 | IFS=$as_save_IFS | |
278a7a38 AO |
17191 | |
17192 | fi | |
17193 | fi | |
17194 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
17195 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17197 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 17198 | else |
5213506e RW |
17199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17200 | $as_echo "no" >&6; } | |
278a7a38 AO |
17201 | fi |
17202 | ||
5213506e | 17203 | |
278a7a38 AO |
17204 | done |
17205 | fi | |
17206 | ||
17207 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17208 | for ncn_progname in strip; do |
5213506e RW |
17209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17210 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17211 | if test -x $with_build_time_tools/${ncn_progname}; then |
17212 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17214 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17215 | break |
17216 | else | |
5213506e RW |
17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17218 | $as_echo "no" >&6; } | |
e8b05380 PB |
17219 | fi |
17220 | done | |
17221 | fi | |
17222 | ||
17223 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
17224 | for ncn_progname in strip; do | |
17225 | if test -n "$ncn_target_tool_prefix"; then | |
17226 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17227 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17229 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17230 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17231 | $as_echo_n "(cached) " >&6 |
af71363e AS |
17232 | else |
17233 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
17234 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
17235 | else | |
17236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17237 | for as_dir in $PATH | |
17238 | do | |
17239 | IFS=$as_save_IFS | |
17240 | test -z "$as_dir" && as_dir=. | |
5213506e | 17241 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17243 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17245 | break 2 |
17246 | fi | |
17247 | done | |
5213506e RW |
17248 | done |
17249 | IFS=$as_save_IFS | |
1c710c3c | 17250 | |
040b1c5a GK |
17251 | fi |
17252 | fi | |
1c710c3c | 17253 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17254 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17256 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17257 | else |
5213506e RW |
17258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17259 | $as_echo "no" >&6; } | |
040b1c5a GK |
17260 | fi |
17261 | ||
5213506e | 17262 | |
e8b05380 PB |
17263 | fi |
17264 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17265 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 17266 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17268 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17269 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 17270 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
17271 | else |
17272 | if test -n "$STRIP_FOR_TARGET"; then | |
17273 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17274 | else | |
1c710c3c DJ |
17275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17276 | for as_dir in $PATH | |
17277 | do | |
17278 | IFS=$as_save_IFS | |
17279 | test -z "$as_dir" && as_dir=. | |
5213506e | 17280 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17282 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 17283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17284 | break 2 |
17285 | fi | |
17286 | done | |
5213506e RW |
17287 | done |
17288 | IFS=$as_save_IFS | |
1c710c3c | 17289 | |
040b1c5a GK |
17290 | fi |
17291 | fi | |
1c710c3c | 17292 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 17293 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17295 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 17296 | else |
5213506e RW |
17297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17298 | $as_echo "no" >&6; } | |
040b1c5a | 17299 | fi |
1c710c3c | 17300 | |
5213506e | 17301 | |
e8b05380 PB |
17302 | fi |
17303 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17304 | done | |
17305 | fi | |
1c710c3c | 17306 | |
040b1c5a GK |
17307 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17308 | set dummy strip | |
17309 | if test $build = $target ; then | |
17310 | STRIP_FOR_TARGET="$2" | |
17311 | else | |
17312 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17313 | fi | |
1c00b503 PB |
17314 | else |
17315 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
17316 | fi |
17317 | ||
d1f8db0c PB |
17318 | else |
17319 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
17320 | fi |
17321 | ||
17322 | ||
17323 | ||
17324 | ||
17325 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17326 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17328 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17329 | if test -x $with_build_time_tools/windres; then |
17330 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17331 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
17332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17333 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 17334 | else |
5213506e RW |
17335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17336 | $as_echo "no" >&6; } | |
d1f8db0c | 17337 | fi |
e8b05380 PB |
17338 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17339 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
17340 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17341 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
17342 | fi |
17343 | fi | |
3e19841a | 17344 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
17345 | # Extract the first word of "windres", so it can be a program name with args. |
17346 | set dummy windres; ac_word=$2 | |
5213506e RW |
17347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17348 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17349 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17350 | $as_echo_n "(cached) " >&6 |
e8b05380 | 17351 | else |
1c710c3c DJ |
17352 | case $WINDRES_FOR_TARGET in |
17353 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
17354 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17355 | ;; | |
e8b05380 | 17356 | *) |
1c710c3c DJ |
17357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17358 | for as_dir in $gcc_cv_tool_dirs | |
17359 | do | |
17360 | IFS=$as_save_IFS | |
17361 | test -z "$as_dir" && as_dir=. | |
5213506e | 17362 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17364 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17366 | break 2 |
17367 | fi | |
17368 | done | |
5213506e RW |
17369 | done |
17370 | IFS=$as_save_IFS | |
1c710c3c | 17371 | |
e8b05380 PB |
17372 | ;; |
17373 | esac | |
17374 | fi | |
1c710c3c | 17375 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 17376 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17378 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 17379 | else |
5213506e RW |
17380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17381 | $as_echo "no" >&6; } | |
e8b05380 PB |
17382 | fi |
17383 | ||
5213506e | 17384 | |
e8b05380 PB |
17385 | fi |
17386 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
17387 | |
17388 | ||
17389 | if test -n "$WINDRES_FOR_TARGET"; then | |
17390 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17391 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17392 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17393 | fi | |
17394 | ||
17395 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17396 | for ncn_progname in windres; do | |
17397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17398 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17400 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17401 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17402 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
17403 | else |
17404 | if test -n "$WINDRES_FOR_TARGET"; then | |
17405 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17406 | else | |
17407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17408 | for as_dir in $PATH | |
17409 | do | |
17410 | IFS=$as_save_IFS | |
17411 | test -z "$as_dir" && as_dir=. | |
5213506e | 17412 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 17414 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
17416 | break 2 |
17417 | fi | |
17418 | done | |
5213506e RW |
17419 | done |
17420 | IFS=$as_save_IFS | |
278a7a38 AO |
17421 | |
17422 | fi | |
17423 | fi | |
17424 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17425 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17427 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 17428 | else |
5213506e RW |
17429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17430 | $as_echo "no" >&6; } | |
278a7a38 AO |
17431 | fi |
17432 | ||
5213506e | 17433 | |
278a7a38 AO |
17434 | done |
17435 | fi | |
17436 | ||
17437 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 17438 | for ncn_progname in windres; do |
5213506e RW |
17439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17440 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
17441 | if test -x $with_build_time_tools/${ncn_progname}; then |
17442 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17444 | $as_echo "yes" >&6; } | |
e8b05380 PB |
17445 | break |
17446 | else | |
5213506e RW |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17448 | $as_echo "no" >&6; } | |
e8b05380 PB |
17449 | fi |
17450 | done | |
17451 | fi | |
17452 | ||
17453 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17454 | for ncn_progname in windres; do | |
17455 | if test -n "$ncn_target_tool_prefix"; then | |
17456 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17457 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
17458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17459 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17460 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17461 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17462 | else |
4de997d1 PB |
17463 | if test -n "$WINDRES_FOR_TARGET"; then |
17464 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17465 | else |
1c710c3c DJ |
17466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17467 | for as_dir in $PATH | |
17468 | do | |
17469 | IFS=$as_save_IFS | |
17470 | test -z "$as_dir" && as_dir=. | |
5213506e | 17471 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17473 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17475 | break 2 |
17476 | fi | |
17477 | done | |
5213506e RW |
17478 | done |
17479 | IFS=$as_save_IFS | |
1c710c3c | 17480 | |
ca9f4b81 AO |
17481 | fi |
17482 | fi | |
1c710c3c | 17483 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 17484 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17486 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17487 | else |
5213506e RW |
17488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17489 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
17490 | fi |
17491 | ||
5213506e | 17492 | |
e8b05380 PB |
17493 | fi |
17494 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17495 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 17496 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17498 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17499 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 17500 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 17501 | else |
2693c0b0 PB |
17502 | if test -n "$WINDRES_FOR_TARGET"; then |
17503 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 17504 | else |
1c710c3c DJ |
17505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17506 | for as_dir in $PATH | |
17507 | do | |
17508 | IFS=$as_save_IFS | |
17509 | test -z "$as_dir" && as_dir=. | |
5213506e | 17510 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 17512 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 17513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
17514 | break 2 |
17515 | fi | |
17516 | done | |
5213506e RW |
17517 | done |
17518 | IFS=$as_save_IFS | |
1c710c3c | 17519 | |
ca9f4b81 AO |
17520 | fi |
17521 | fi | |
1c710c3c | 17522 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 17523 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17525 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 17526 | else |
5213506e RW |
17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17528 | $as_echo "no" >&6; } | |
ca9f4b81 | 17529 | fi |
1c710c3c | 17530 | |
5213506e | 17531 | |
e8b05380 PB |
17532 | fi |
17533 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17534 | done | |
17535 | fi | |
1c710c3c | 17536 | |
2693c0b0 PB |
17537 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17538 | set dummy windres | |
17539 | if test $build = $target ; then | |
17540 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 17541 | else |
2693c0b0 | 17542 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 17543 | fi |
1c00b503 PB |
17544 | else |
17545 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
17546 | fi |
17547 | ||
d1f8db0c PB |
17548 | else |
17549 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
17550 | fi |
17551 | ||
4977bab6 | 17552 | |
901119ae KT |
17553 | |
17554 | ||
17555 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17556 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17558 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
17559 | if test -x $with_build_time_tools/windmc; then |
17560 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17561 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17563 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17564 | else |
5213506e RW |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17566 | $as_echo "no" >&6; } | |
901119ae KT |
17567 | fi |
17568 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17569 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
17570 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
17571 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
17572 | fi |
17573 | fi | |
17574 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17575 | # Extract the first word of "windmc", so it can be a program name with args. | |
17576 | set dummy windmc; ac_word=$2 | |
5213506e RW |
17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17578 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17579 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17580 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17581 | else |
17582 | case $WINDMC_FOR_TARGET in | |
17583 | [\\/]* | ?:[\\/]*) | |
17584 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17585 | ;; | |
17586 | *) | |
17587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17588 | for as_dir in $gcc_cv_tool_dirs | |
17589 | do | |
17590 | IFS=$as_save_IFS | |
17591 | test -z "$as_dir" && as_dir=. | |
5213506e | 17592 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17594 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 17595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17596 | break 2 |
17597 | fi | |
17598 | done | |
5213506e RW |
17599 | done |
17600 | IFS=$as_save_IFS | |
901119ae KT |
17601 | |
17602 | ;; | |
17603 | esac | |
17604 | fi | |
17605 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 17606 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17608 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17609 | else |
5213506e RW |
17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17611 | $as_echo "no" >&6; } | |
901119ae KT |
17612 | fi |
17613 | ||
5213506e | 17614 | |
901119ae KT |
17615 | fi |
17616 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17617 | ||
17618 | ||
17619 | if test -n "$WINDMC_FOR_TARGET"; then | |
17620 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17621 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17622 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17623 | fi | |
17624 | ||
17625 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17626 | for ncn_progname in windmc; do | |
17627 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17628 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17630 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17631 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17632 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17633 | else |
17634 | if test -n "$WINDMC_FOR_TARGET"; then | |
17635 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17636 | else | |
17637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17638 | for as_dir in $PATH | |
17639 | do | |
17640 | IFS=$as_save_IFS | |
17641 | test -z "$as_dir" && as_dir=. | |
5213506e | 17642 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17644 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17646 | break 2 |
17647 | fi | |
17648 | done | |
5213506e RW |
17649 | done |
17650 | IFS=$as_save_IFS | |
901119ae KT |
17651 | |
17652 | fi | |
17653 | fi | |
17654 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17655 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17657 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17658 | else |
5213506e RW |
17659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17660 | $as_echo "no" >&6; } | |
901119ae KT |
17661 | fi |
17662 | ||
5213506e | 17663 | |
901119ae KT |
17664 | done |
17665 | fi | |
17666 | ||
17667 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17668 | for ncn_progname in windmc; do | |
5213506e RW |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17670 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
17671 | if test -x $with_build_time_tools/${ncn_progname}; then |
17672 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17674 | $as_echo "yes" >&6; } | |
901119ae KT |
17675 | break |
17676 | else | |
5213506e RW |
17677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17678 | $as_echo "no" >&6; } | |
901119ae KT |
17679 | fi |
17680 | done | |
17681 | fi | |
17682 | ||
17683 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17684 | for ncn_progname in windmc; do | |
17685 | if test -n "$ncn_target_tool_prefix"; then | |
17686 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17687 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
17688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17689 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17690 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17691 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17692 | else |
17693 | if test -n "$WINDMC_FOR_TARGET"; then | |
17694 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17695 | else | |
17696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17697 | for as_dir in $PATH | |
17698 | do | |
17699 | IFS=$as_save_IFS | |
17700 | test -z "$as_dir" && as_dir=. | |
5213506e | 17701 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17703 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 17704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17705 | break 2 |
17706 | fi | |
17707 | done | |
5213506e RW |
17708 | done |
17709 | IFS=$as_save_IFS | |
901119ae KT |
17710 | |
17711 | fi | |
17712 | fi | |
17713 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17714 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17716 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17717 | else |
5213506e RW |
17718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17719 | $as_echo "no" >&6; } | |
901119ae KT |
17720 | fi |
17721 | ||
5213506e | 17722 | |
901119ae KT |
17723 | fi |
17724 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17725 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17726 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
17727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17728 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 17729 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 17730 | $as_echo_n "(cached) " >&6 |
901119ae KT |
17731 | else |
17732 | if test -n "$WINDMC_FOR_TARGET"; then | |
17733 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17734 | else | |
17735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17736 | for as_dir in $PATH | |
17737 | do | |
17738 | IFS=$as_save_IFS | |
17739 | test -z "$as_dir" && as_dir=. | |
5213506e | 17740 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 17741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 17742 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 17743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
17744 | break 2 |
17745 | fi | |
17746 | done | |
5213506e RW |
17747 | done |
17748 | IFS=$as_save_IFS | |
901119ae KT |
17749 | |
17750 | fi | |
17751 | fi | |
17752 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17753 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
17754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17755 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 17756 | else |
5213506e RW |
17757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17758 | $as_echo "no" >&6; } | |
901119ae KT |
17759 | fi |
17760 | ||
5213506e | 17761 | |
901119ae KT |
17762 | fi |
17763 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17764 | done | |
17765 | fi | |
17766 | ||
17767 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17768 | set dummy windmc | |
17769 | if test $build = $target ; then | |
17770 | WINDMC_FOR_TARGET="$2" | |
17771 | else | |
17772 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17773 | fi | |
1c00b503 PB |
17774 | else |
17775 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
17776 | fi |
17777 | ||
17778 | else | |
17779 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17780 | fi | |
17781 | ||
17782 | ||
2abefe3d PB |
17783 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17784 | ||
5213506e RW |
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17786 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 17787 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17788 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17789 | # We already found the complete path | |
172e41aa | 17790 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17792 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17793 | else |
17794 | # Canadian cross, just use what we found | |
5213506e RW |
17795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17796 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17797 | fi |
2abefe3d PB |
17798 | else |
17799 | ok=yes | |
17800 | case " ${configdirs} " in | |
17801 | *" binutils "*) ;; | |
17802 | *) ok=no ;; | |
17803 | esac | |
1c710c3c | 17804 | |
2abefe3d PB |
17805 | if test $ok = yes; then |
17806 | # An in-tree tool is available and we can use it | |
17807 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17809 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17810 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17811 | # We already found the complete path | |
172e41aa | 17812 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17814 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17815 | elif test "x$target" = "x$host"; then |
17816 | # We can use an host tool | |
17817 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17819 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17820 | else |
17821 | # We need a cross tool | |
5213506e RW |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17823 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17824 | fi |
17825 | fi | |
0b0dc272 | 17826 | |
5213506e RW |
17827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17828 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 17829 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17830 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17831 | # We already found the complete path | |
172e41aa | 17832 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17834 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17835 | else |
17836 | # Canadian cross, just use what we found | |
5213506e RW |
17837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17838 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17839 | fi |
2abefe3d PB |
17840 | else |
17841 | ok=yes | |
17842 | case " ${configdirs} " in | |
17843 | *" gas "*) ;; | |
17844 | *) ok=no ;; | |
17845 | esac | |
1c710c3c | 17846 | |
2abefe3d PB |
17847 | if test $ok = yes; then |
17848 | # An in-tree tool is available and we can use it | |
17849 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
17850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17851 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17852 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17853 | # We already found the complete path | |
172e41aa | 17854 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
17855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17856 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17857 | elif test "x$target" = "x$host"; then |
17858 | # We can use an host tool | |
17859 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17861 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17862 | else |
17863 | # We need a cross tool | |
5213506e RW |
17864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17865 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17866 | fi |
17867 | fi | |
0b0dc272 | 17868 | |
5213506e RW |
17869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17870 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 17871 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17872 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17873 | # We already found the complete path | |
172e41aa | 17874 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17876 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17877 | else |
17878 | # Canadian cross, just use what we found | |
5213506e RW |
17879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17880 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17881 | fi |
2abefe3d PB |
17882 | else |
17883 | ok=yes | |
17884 | case " ${configdirs} " in | |
17885 | *" gcc "*) ;; | |
17886 | *) ok=no ;; | |
17887 | esac | |
1c710c3c | 17888 | |
2abefe3d PB |
17889 | if test $ok = yes; then |
17890 | # An in-tree tool is available and we can use it | |
17891 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
17892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17893 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17894 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17895 | # We already found the complete path | |
172e41aa | 17896 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
17897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17898 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17899 | elif test "x$target" = "x$host"; then |
17900 | # We can use an host tool | |
17901 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
17902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17903 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17904 | else |
17905 | # We need a cross tool | |
5213506e RW |
17906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17907 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17908 | fi |
17909 | fi | |
0b0dc272 | 17910 | |
5213506e RW |
17911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17912 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 17913 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17914 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17915 | # We already found the complete path | |
172e41aa | 17916 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17918 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17919 | else |
17920 | # Canadian cross, just use what we found | |
5213506e RW |
17921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17922 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17923 | fi |
2abefe3d PB |
17924 | else |
17925 | ok=yes | |
17926 | case " ${configdirs} " in | |
17927 | *" gcc "*) ;; | |
17928 | *) ok=no ;; | |
17929 | esac | |
17930 | case ,${enable_languages}, in | |
17931 | *,c++,*) ;; | |
17932 | *) ok=no ;; | |
17933 | esac | |
17934 | if test $ok = yes; then | |
17935 | # An in-tree tool is available and we can use it | |
2077db1b | 17936 | 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 |
17937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17938 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17939 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17940 | # We already found the complete path | |
172e41aa | 17941 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17943 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17944 | elif test "x$target" = "x$host"; then |
17945 | # We can use an host tool | |
17946 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17948 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17949 | else |
17950 | # We need a cross tool | |
5213506e RW |
17951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17952 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17953 | fi |
17954 | fi | |
0b0dc272 | 17955 | |
5213506e RW |
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17957 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 17958 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
17959 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17960 | # We already found the complete path | |
172e41aa | 17961 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17963 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
17964 | else |
17965 | # Canadian cross, just use what we found | |
5213506e RW |
17966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17967 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 17968 | fi |
2abefe3d PB |
17969 | else |
17970 | ok=yes | |
17971 | case " ${configdirs} " in | |
17972 | *" gcc "*) ;; | |
17973 | *) ok=no ;; | |
17974 | esac | |
17975 | case ,${enable_languages}, in | |
17976 | *,c++,*) ;; | |
17977 | *) ok=no ;; | |
17978 | esac | |
17979 | if test $ok = yes; then | |
17980 | # An in-tree tool is available and we can use it | |
2077db1b | 17981 | 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 |
17982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17983 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
17984 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17985 | # We already found the complete path | |
172e41aa | 17986 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17988 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
17989 | elif test "x$target" = "x$host"; then |
17990 | # We can use an host tool | |
17991 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
17992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17993 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
17994 | else |
17995 | # We need a cross tool | |
5213506e RW |
17996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17997 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
17998 | fi |
17999 | fi | |
0b0dc272 | 18000 | |
5213506e RW |
18001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
18002 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 18003 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18004 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
18005 | # We already found the complete path | |
172e41aa | 18006 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
18007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18008 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18009 | else |
18010 | # Canadian cross, just use what we found | |
5213506e RW |
18011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18012 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18013 | fi |
2abefe3d PB |
18014 | else |
18015 | ok=yes | |
18016 | case " ${configdirs} " in | |
18017 | *" binutils "*) ;; | |
18018 | *) ok=no ;; | |
18019 | esac | |
1c710c3c | 18020 | |
2abefe3d PB |
18021 | if test $ok = yes; then |
18022 | # An in-tree tool is available and we can use it | |
18023 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
18024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18025 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18026 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
18027 | # We already found the complete path | |
172e41aa | 18028 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18030 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18031 | elif test "x$target" = "x$host"; then |
18032 | # We can use an host tool | |
18033 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
18034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18035 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18036 | else |
18037 | # We need a cross tool | |
5213506e RW |
18038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18039 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18040 | fi |
18041 | fi | |
0b0dc272 | 18042 | |
3b5e8ee4 IS |
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
18044 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
18045 | if test "x${build}" != "x${host}" ; then | |
18046 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18047 | # We already found the complete path | |
18048 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18050 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18051 | else | |
18052 | # Canadian cross, just use what we found | |
18053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18054 | $as_echo "pre-installed" >&6; } | |
18055 | fi | |
18056 | else | |
18057 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
18058 | # We already found the complete path | |
18059 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18061 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18062 | elif test "x$target" = "x$host"; then | |
18063 | # We can use an host tool | |
18064 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
18065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18066 | $as_echo "host tool" >&6; } | |
18067 | else | |
18068 | # We need a cross tool | |
18069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18070 | $as_echo "pre-installed" >&6; } | |
18071 | fi | |
18072 | fi | |
18073 | ||
5213506e RW |
18074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
18075 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 18076 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18077 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18078 | # We already found the complete path | |
172e41aa | 18079 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18081 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18082 | else |
18083 | # Canadian cross, just use what we found | |
5213506e RW |
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18085 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18086 | fi |
2abefe3d PB |
18087 | else |
18088 | ok=yes | |
18089 | case " ${configdirs} " in | |
18090 | *" gcc "*) ;; | |
18091 | *) ok=no ;; | |
18092 | esac | |
1c710c3c | 18093 | |
2abefe3d PB |
18094 | if test $ok = yes; then |
18095 | # An in-tree tool is available and we can use it | |
18096 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18098 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18099 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
18100 | # We already found the complete path | |
172e41aa | 18101 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18103 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18104 | elif test "x$target" = "x$host"; then |
18105 | # We can use an host tool | |
18106 | GCC_FOR_TARGET='$()' | |
5213506e RW |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18108 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18109 | else |
18110 | # We need a cross tool | |
5213506e RW |
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18112 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18113 | fi |
18114 | fi | |
0b0dc272 | 18115 | |
5213506e RW |
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
18117 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 18118 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18119 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18120 | # We already found the complete path | |
172e41aa | 18121 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18123 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18124 | else |
18125 | # Canadian cross, just use what we found | |
5213506e RW |
18126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18127 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18128 | fi |
2abefe3d PB |
18129 | else |
18130 | ok=yes | |
18131 | case " ${configdirs} " in | |
18132 | *" gcc "*) ;; | |
18133 | *) ok=no ;; | |
18134 | esac | |
18135 | case ,${enable_languages}, in | |
18136 | *,fortran,*) ;; | |
18137 | *) ok=no ;; | |
18138 | esac | |
18139 | if test $ok = yes; then | |
18140 | # An in-tree tool is available and we can use it | |
18141 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
18142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18143 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18144 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
18145 | # We already found the complete path | |
172e41aa | 18146 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18148 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18149 | elif test "x$target" = "x$host"; then |
18150 | # We can use an host tool | |
18151 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18153 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18154 | else |
18155 | # We need a cross tool | |
5213506e RW |
18156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18157 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18158 | fi |
18159 | fi | |
0b0dc272 | 18160 | |
632e2a07 ILT |
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
18162 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
18163 | if test "x${build}" != "x${host}" ; then | |
18164 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18165 | # We already found the complete path | |
18166 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18168 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18169 | else | |
18170 | # Canadian cross, just use what we found | |
18171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18172 | $as_echo "pre-installed" >&6; } | |
18173 | fi | |
18174 | else | |
18175 | ok=yes | |
18176 | case " ${configdirs} " in | |
18177 | *" gcc "*) ;; | |
18178 | *) ok=no ;; | |
18179 | esac | |
18180 | case ,${enable_languages}, in | |
18181 | *,go,*) ;; | |
18182 | *) ok=no ;; | |
18183 | esac | |
18184 | if test $ok = yes; then | |
18185 | # An in-tree tool is available and we can use it | |
18186 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
18187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18188 | $as_echo "just compiled" >&6; } | |
18189 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
18190 | # We already found the complete path | |
18191 | ac_dir=`dirname $GOC_FOR_TARGET` | |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18193 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18194 | elif test "x$target" = "x$host"; then | |
18195 | # We can use an host tool | |
18196 | GOC_FOR_TARGET='$(GOC)' | |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18198 | $as_echo "host tool" >&6; } | |
18199 | else | |
18200 | # We need a cross tool | |
18201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18202 | $as_echo "pre-installed" >&6; } | |
18203 | fi | |
18204 | fi | |
18205 | ||
b4c522fa IB |
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
18207 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
18208 | if test "x${build}" != "x${host}" ; then | |
18209 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18210 | # We already found the complete path | |
18211 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18213 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18214 | else | |
18215 | # Canadian cross, just use what we found | |
18216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18217 | $as_echo "pre-installed" >&6; } | |
18218 | fi | |
18219 | else | |
18220 | ok=yes | |
18221 | case " ${configdirs} " in | |
18222 | *" gcc "*) ;; | |
18223 | *) ok=no ;; | |
18224 | esac | |
18225 | case ,${enable_languages}, in | |
18226 | *,d,*) ;; | |
18227 | *) ok=no ;; | |
18228 | esac | |
18229 | if test $ok = yes; then | |
18230 | # An in-tree tool is available and we can use it | |
18231 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
18232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18233 | $as_echo "just compiled" >&6; } | |
18234 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
18235 | # We already found the complete path | |
18236 | ac_dir=`dirname $GDC_FOR_TARGET` | |
18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18238 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18239 | elif test "x$target" = "x$host"; then | |
18240 | # We can use an host tool | |
18241 | GDC_FOR_TARGET='$(GDC)' | |
18242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18243 | $as_echo "host tool" >&6; } | |
18244 | else | |
18245 | # We need a cross tool | |
18246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18247 | $as_echo "pre-installed" >&6; } | |
18248 | fi | |
18249 | fi | |
18250 | ||
1eee94d3 GM |
18251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5 |
18252 | $as_echo_n "checking where to find the target gm2... " >&6; } | |
18253 | if test "x${build}" != "x${host}" ; then | |
18254 | if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18255 | # We already found the complete path | |
18256 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18258 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18259 | else | |
18260 | # Canadian cross, just use what we found | |
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18262 | $as_echo "pre-installed" >&6; } | |
18263 | fi | |
18264 | else | |
18265 | ok=yes | |
18266 | case " ${configdirs} " in | |
18267 | *" gcc "*) ;; | |
18268 | *) ok=no ;; | |
18269 | esac | |
18270 | case ,${enable_languages}, in | |
18271 | *,m2,*) ;; | |
18272 | *) ok=no ;; | |
18273 | esac | |
18274 | if test $ok = yes; then | |
18275 | # An in-tree tool is available and we can use it | |
18276 | GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/' | |
18277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18278 | $as_echo "just compiled" >&6; } | |
18279 | elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then | |
18280 | # We already found the complete path | |
18281 | ac_dir=`dirname $GM2_FOR_TARGET` | |
18282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18283 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18284 | elif test "x$target" = "x$host"; then | |
18285 | # We can use an host tool | |
18286 | GM2_FOR_TARGET='$(GM2)' | |
18287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18288 | $as_echo "host tool" >&6; } | |
18289 | else | |
18290 | # We need a cross tool | |
18291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18292 | $as_echo "pre-installed" >&6; } | |
18293 | fi | |
18294 | fi | |
18295 | ||
5213506e RW |
18296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
18297 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 18298 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18299 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18300 | # We already found the complete path | |
172e41aa | 18301 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18303 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18304 | else |
18305 | # Canadian cross, just use what we found | |
5213506e RW |
18306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18307 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18308 | fi |
2abefe3d PB |
18309 | else |
18310 | ok=yes | |
18311 | case " ${configdirs} " in | |
18312 | *" ld "*) ;; | |
18313 | *) ok=no ;; | |
18314 | esac | |
1c710c3c | 18315 | |
2abefe3d PB |
18316 | if test $ok = yes; then |
18317 | # An in-tree tool is available and we can use it | |
18318 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18320 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18321 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18322 | # We already found the complete path | |
172e41aa | 18323 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18325 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18326 | elif test "x$target" = "x$host"; then |
18327 | # We can use an host tool | |
18328 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18330 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18331 | else |
18332 | # We need a cross tool | |
5213506e RW |
18333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18334 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18335 | fi |
18336 | fi | |
0b0dc272 | 18337 | |
5213506e RW |
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18339 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 18340 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18341 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18342 | # We already found the complete path | |
172e41aa | 18343 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18345 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18346 | else |
18347 | # Canadian cross, just use what we found | |
5213506e RW |
18348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18349 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18350 | fi |
2abefe3d | 18351 | else |
e8b05380 PB |
18352 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18353 | # We already found the complete path | |
172e41aa | 18354 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
18355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18356 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 18357 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
18358 | # We can use an host tool |
18359 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
18360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18361 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18362 | else |
18363 | # We need a cross tool | |
5213506e RW |
18364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18365 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18366 | fi |
18367 | fi | |
0b0dc272 | 18368 | |
5213506e RW |
18369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18370 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 18371 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18372 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18373 | # We already found the complete path | |
172e41aa | 18374 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18376 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18377 | else |
18378 | # Canadian cross, just use what we found | |
5213506e RW |
18379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18380 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18381 | fi |
2abefe3d PB |
18382 | else |
18383 | ok=yes | |
18384 | case " ${configdirs} " in | |
18385 | *" binutils "*) ;; | |
18386 | *) ok=no ;; | |
18387 | esac | |
1c710c3c | 18388 | |
2abefe3d PB |
18389 | if test $ok = yes; then |
18390 | # An in-tree tool is available and we can use it | |
18391 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
18392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18393 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18394 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18395 | # We already found the complete path | |
172e41aa | 18396 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
18397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18398 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18399 | elif test "x$target" = "x$host"; then |
18400 | # We can use an host tool | |
18401 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18403 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18404 | else |
18405 | # We need a cross tool | |
5213506e RW |
18406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18407 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18408 | fi |
18409 | fi | |
0b0dc272 | 18410 | |
9bccfdf5 AP |
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18412 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18413 | if test "x${build}" != "x${host}" ; then | |
18414 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18415 | # We already found the complete path | |
18416 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18418 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18419 | else | |
18420 | # Canadian cross, just use what we found | |
18421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18422 | $as_echo "pre-installed" >&6; } | |
18423 | fi | |
18424 | else | |
18425 | ok=yes | |
18426 | case " ${configdirs} " in | |
18427 | *" binutils "*) ;; | |
18428 | *) ok=no ;; | |
18429 | esac | |
18430 | ||
18431 | if test $ok = yes; then | |
18432 | # An in-tree tool is available and we can use it | |
18433 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18435 | $as_echo "just compiled" >&6; } | |
18436 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18437 | # We already found the complete path | |
18438 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18440 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18441 | elif test "x$target" = "x$host"; then | |
18442 | # We can use an host tool | |
ec8fd1c0 | 18443 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
18444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18445 | $as_echo "host tool" >&6; } | |
18446 | else | |
18447 | # We need a cross tool | |
18448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18449 | $as_echo "pre-installed" >&6; } | |
18450 | fi | |
18451 | fi | |
18452 | ||
5213506e RW |
18453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18454 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 18455 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18456 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18457 | # We already found the complete path | |
172e41aa | 18458 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18460 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18461 | else |
18462 | # Canadian cross, just use what we found | |
5213506e RW |
18463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18464 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18465 | fi |
2abefe3d PB |
18466 | else |
18467 | ok=yes | |
18468 | case " ${configdirs} " in | |
18469 | *" binutils "*) ;; | |
18470 | *) ok=no ;; | |
18471 | esac | |
1c710c3c | 18472 | |
2abefe3d PB |
18473 | if test $ok = yes; then |
18474 | # An in-tree tool is available and we can use it | |
18475 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
18476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18477 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18478 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18479 | # We already found the complete path | |
172e41aa | 18480 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
18481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18482 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18483 | elif test "x$target" = "x$host"; then |
18484 | # We can use an host tool | |
18485 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
18486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18487 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18488 | else |
18489 | # We need a cross tool | |
5213506e RW |
18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18491 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18492 | fi |
18493 | fi | |
0b0dc272 | 18494 | |
e4a9a572 IS |
18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18496 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18497 | if test "x${build}" != "x${host}" ; then | |
18498 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18499 | # We already found the complete path | |
18500 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18502 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18503 | else | |
18504 | # Canadian cross, just use what we found | |
18505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18506 | $as_echo "pre-installed" >&6; } | |
18507 | fi | |
18508 | else | |
18509 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18510 | # We already found the complete path | |
18511 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18513 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18514 | elif test "x$target" = "x$host"; then | |
18515 | # We can use an host tool | |
18516 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18518 | $as_echo "host tool" >&6; } | |
18519 | else | |
18520 | # We need a cross tool | |
18521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18522 | $as_echo "pre-installed" >&6; } | |
18523 | fi | |
18524 | fi | |
18525 | ||
5213506e RW |
18526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18527 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 18528 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18529 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18530 | # We already found the complete path | |
172e41aa | 18531 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18533 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18534 | else |
18535 | # Canadian cross, just use what we found | |
5213506e RW |
18536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18537 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18538 | fi |
2abefe3d PB |
18539 | else |
18540 | ok=yes | |
18541 | case " ${configdirs} " in | |
18542 | *" binutils "*) ;; | |
18543 | *) ok=no ;; | |
18544 | esac | |
1c710c3c | 18545 | |
2abefe3d PB |
18546 | if test $ok = yes; then |
18547 | # An in-tree tool is available and we can use it | |
18548 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
18549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18550 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18551 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18552 | # We already found the complete path | |
172e41aa | 18553 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
18554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18555 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18556 | elif test "x$target" = "x$host"; then |
18557 | # We can use an host tool | |
18558 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
18559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18560 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18561 | else |
18562 | # We need a cross tool | |
5213506e RW |
18563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18564 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18565 | fi |
18566 | fi | |
0b0dc272 | 18567 | |
e7a82751 RM |
18568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18569 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18570 | if test "x${build}" != "x${host}" ; then | |
18571 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18572 | # We already found the complete path | |
18573 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18575 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18576 | else | |
18577 | # Canadian cross, just use what we found | |
18578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18579 | $as_echo "pre-installed" >&6; } | |
18580 | fi | |
18581 | else | |
18582 | ok=yes | |
18583 | case " ${configdirs} " in | |
18584 | *" binutils "*) ;; | |
18585 | *) ok=no ;; | |
18586 | esac | |
18587 | ||
18588 | if test $ok = yes; then | |
18589 | # An in-tree tool is available and we can use it | |
18590 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18592 | $as_echo "just compiled" >&6; } | |
18593 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18594 | # We already found the complete path | |
18595 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18597 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18598 | elif test "x$target" = "x$host"; then | |
18599 | # We can use an host tool | |
18600 | READELF_FOR_TARGET='$(READELF)' | |
18601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18602 | $as_echo "host tool" >&6; } | |
18603 | else | |
18604 | # We need a cross tool | |
18605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18606 | $as_echo "pre-installed" >&6; } | |
18607 | fi | |
18608 | fi | |
18609 | ||
5213506e RW |
18610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18611 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 18612 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18613 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18614 | # We already found the complete path | |
172e41aa | 18615 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18617 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18618 | else |
18619 | # Canadian cross, just use what we found | |
5213506e RW |
18620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18621 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18622 | fi |
2abefe3d PB |
18623 | else |
18624 | ok=yes | |
18625 | case " ${configdirs} " in | |
18626 | *" binutils "*) ;; | |
18627 | *) ok=no ;; | |
18628 | esac | |
1c710c3c | 18629 | |
2abefe3d PB |
18630 | if test $ok = yes; then |
18631 | # An in-tree tool is available and we can use it | |
455c8f48 | 18632 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
18633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18634 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18635 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18636 | # We already found the complete path | |
172e41aa | 18637 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
18638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18639 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18640 | elif test "x$target" = "x$host"; then |
18641 | # We can use an host tool | |
18642 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
18643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18644 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18645 | else |
18646 | # We need a cross tool | |
5213506e RW |
18647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18648 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
18649 | fi |
18650 | fi | |
0b0dc272 | 18651 | |
5213506e RW |
18652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18653 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 18654 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
18655 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18656 | # We already found the complete path | |
172e41aa | 18657 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18659 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
18660 | else |
18661 | # Canadian cross, just use what we found | |
5213506e RW |
18662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18663 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 18664 | fi |
2abefe3d PB |
18665 | else |
18666 | ok=yes | |
18667 | case " ${configdirs} " in | |
18668 | *" binutils "*) ;; | |
18669 | *) ok=no ;; | |
18670 | esac | |
1c710c3c | 18671 | |
2abefe3d PB |
18672 | if test $ok = yes; then |
18673 | # An in-tree tool is available and we can use it | |
18674 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
18675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18676 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
18677 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18678 | # We already found the complete path | |
172e41aa | 18679 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
18680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
18682 | elif test "x$target" = "x$host"; then |
18683 | # We can use an host tool | |
18684 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
18685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18686 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
18687 | else |
18688 | # We need a cross tool | |
5213506e RW |
18689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18690 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 18691 | fi |
671aa708 | 18692 | fi |
be912515 | 18693 | |
5213506e RW |
18694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18695 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
18696 | if test "x${build}" != "x${host}" ; then |
18697 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18698 | # We already found the complete path | |
18699 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18702 | else |
18703 | # Canadian cross, just use what we found | |
5213506e RW |
18704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18705 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18706 | fi |
18707 | else | |
18708 | ok=yes | |
18709 | case " ${configdirs} " in | |
18710 | *" binutils "*) ;; | |
18711 | *) ok=no ;; | |
18712 | esac | |
18713 | ||
18714 | if test $ok = yes; then | |
18715 | # An in-tree tool is available and we can use it | |
18716 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
18717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18718 | $as_echo "just compiled" >&6; } | |
901119ae KT |
18719 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18720 | # We already found the complete path | |
18721 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
18722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18723 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
18724 | elif test "x$target" = "x$host"; then |
18725 | # We can use an host tool | |
18726 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
18727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18728 | $as_echo "host tool" >&6; } | |
901119ae KT |
18729 | else |
18730 | # We need a cross tool | |
5213506e RW |
18731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18732 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
18733 | fi |
18734 | fi | |
18735 | ||
be912515 NN |
18736 | |
18737 | ||
2abefe3d | 18738 | |
0b0dc272 | 18739 | |
671aa708 NN |
18740 | # Certain tools may need extra flags. |
18741 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18742 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18743 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18744 | ||
2abefe3d PB |
18745 | # When building target libraries, except in a Canadian cross, we use |
18746 | # the same toolchain as the compiler we just built. | |
18747 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18748 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18749 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18750 | if test $host = $build; then | |
18751 | case " $configdirs " in | |
18752 | *" gcc "*) | |
18753 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18754 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18755 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18756 | ;; | |
18757 | esac | |
18758 | fi | |
18759 | ||
18760 | ||
18761 | ||
18762 | ||
18763 | ||
5213506e RW |
18764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18765 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18766 | # Check whether --enable-maintainer-mode was given. | |
18767 | if test "${enable_maintainer_mode+set}" = set; then : | |
18768 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
18769 | else |
18770 | USE_MAINTAINER_MODE=no | |
5213506e RW |
18771 | fi |
18772 | ||
18773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18774 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
18775 | |
18776 | ||
18777 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18778 | MAINTAINER_MODE_TRUE= | |
18779 | MAINTAINER_MODE_FALSE='#' | |
18780 | else | |
18781 | MAINTAINER_MODE_TRUE='#' | |
18782 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 18783 | fi |
ee03dc5e AO |
18784 | MAINT=$MAINTAINER_MODE_TRUE |
18785 | ||
2805b53a NN |
18786 | # --------------------- |
18787 | # GCC bootstrap support | |
18788 | # --------------------- | |
18789 | ||
18790 | # Stage specific cflags for build. | |
18791 | stage1_cflags="-g" | |
18792 | case $build in | |
18793 | vax-*-*) | |
18794 | case ${GCC} in | |
18795 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18796 | *) stage1_cflags="-g -J" ;; | |
18797 | esac ;; | |
2805b53a NN |
18798 | esac |
18799 | ||
0b50988a | 18800 | |
2805b53a | 18801 | |
8efea775 | 18802 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
18803 | # Check whether --enable-stage1-checking was given. |
18804 | if test "${enable_stage1_checking+set}" = set; then : | |
18805 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 18806 | else |
e643dc23 | 18807 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
18808 | # For --disable-checking or implicit --enable-checking=release, avoid |
18809 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18810 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
18811 | case $BUILD_CONFIG in |
18812 | *lto*) | |
7db11a5a JJ |
18813 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18814 | *) | |
18815 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 18816 | esac |
7db11a5a JJ |
18817 | if test "x$enable_checking" = x && \ |
18818 | test -d ${srcdir}/gcc && \ | |
18819 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 18820 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 18821 | fi |
8efea775 | 18822 | else |
e643dc23 | 18823 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 18824 | fi |
5213506e | 18825 | fi |
8efea775 PB |
18826 | |
18827 | ||
2aeb72e9 | 18828 | |
5213506e RW |
18829 | # Enable -Werror in bootstrap stage2 and later. |
18830 | # Check whether --enable-werror was given. | |
18831 | if test "${enable_werror+set}" = set; then : | |
18832 | enableval=$enable_werror; | |
09a9c095 NN |
18833 | case ${enable_werror} in |
18834 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18835 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
18836 | esac |
18837 | ||
afd88efc ML |
18838 | else |
18839 | ||
01c712cb ML |
18840 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18841 | case $BUILD_CONFIG in | |
18842 | bootstrap-debug) | |
18843 | stage2_werror_flag="--enable-werror-always" ;; | |
18844 | "") | |
18845 | stage2_werror_flag="--enable-werror-always" ;; | |
18846 | esac | |
18847 | fi | |
18848 | ||
afd88efc ML |
18849 | fi |
18850 | ||
18851 | ||
01c712cb | 18852 | |
2805b53a | 18853 | |
f2689b09 SE |
18854 | # Specify what files to not compare during bootstrap. |
18855 | ||
18856 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
1eee94d3 GM |
18857 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*" |
18858 | compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*" | |
18859 | compare_exclusions="$compare_exclusions | gcc/m2/gm2version*" | |
f2689b09 SE |
18860 | case "$target" in |
18861 | hppa*64*-*-hpux*) ;; | |
4f943869 | 18862 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; |
f2689b09 SE |
18863 | esac |
18864 | ||
18865 | ||
5213506e RW |
18866 | ac_config_files="$ac_config_files Makefile" |
18867 | ||
1c710c3c | 18868 | cat >confcache <<\_ACEOF |
671aa708 NN |
18869 | # This file is a shell script that caches the results of configure |
18870 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
18871 | # scripts and configure runs, see configure's option --config-cache. |
18872 | # It is not useful on other systems. If it contains results you don't | |
18873 | # want to keep, you may remove or edit it. | |
671aa708 | 18874 | # |
1c710c3c DJ |
18875 | # config.status only pays attention to the cache file if you give it |
18876 | # the --recheck option to rerun configure. | |
671aa708 | 18877 | # |
1c710c3c DJ |
18878 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18879 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18880 | # following values. | |
18881 | ||
18882 | _ACEOF | |
18883 | ||
671aa708 NN |
18884 | # The following way of writing the cache mishandles newlines in values, |
18885 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 18886 | # So, we kill variables containing newlines. |
671aa708 NN |
18887 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18888 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
18889 | ( |
18890 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18891 | eval ac_val=\$$ac_var | |
18892 | case $ac_val in #( | |
18893 | *${as_nl}*) | |
18894 | case $ac_var in #( | |
18895 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18896 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18897 | esac | |
18898 | case $ac_var in #( | |
18899 | _ | IFS | as_nl) ;; #( | |
18900 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18901 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18902 | esac ;; | |
18903 | esac | |
18904 | done | |
18905 | ||
1c710c3c | 18906 | (set) 2>&1 | |
5213506e RW |
18907 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18908 | *${as_nl}ac_space=\ *) | |
18909 | # `set' does not quote correctly, so add quotes: double-quote | |
18910 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
18911 | sed -n \ |
18912 | "s/'/'\\\\''/g; | |
18913 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 18914 | ;; #( |
1c710c3c DJ |
18915 | *) |
18916 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 18917 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 18918 | ;; |
5213506e RW |
18919 | esac | |
18920 | sort | |
18921 | ) | | |
1c710c3c | 18922 | sed ' |
5213506e | 18923 | /^ac_cv_env_/b end |
1c710c3c | 18924 | t clear |
5213506e | 18925 | :clear |
1c710c3c DJ |
18926 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18927 | t end | |
5213506e RW |
18928 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18929 | :end' >>confcache | |
18930 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18931 | if test -w "$cache_file"; then | |
22e05272 | 18932 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
18933 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18934 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
18935 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18936 | cat confcache >"$cache_file" | |
18937 | else | |
18938 | case $cache_file in #( | |
18939 | */* | ?:*) | |
18940 | mv -f confcache "$cache_file"$$ && | |
18941 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18942 | *) | |
18943 | mv -f confcache "$cache_file" ;; | |
18944 | esac | |
18945 | fi | |
18946 | fi | |
671aa708 | 18947 | else |
5213506e RW |
18948 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18949 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 18950 | fi |
4977bab6 | 18951 | fi |
671aa708 | 18952 | rm -f confcache |
79c06341 | 18953 | |
671aa708 NN |
18954 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18955 | # Let make expand exec_prefix. | |
18956 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 18957 | |
671aa708 NN |
18958 | # Transform confdefs.h into DEFS. |
18959 | # Protect against shell expansion while executing Makefile rules. | |
18960 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
18961 | # |
18962 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 18963 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 18964 | # look for a macro that doesn't take arguments. |
5213506e RW |
18965 | ac_script=' |
18966 | :mline | |
18967 | /\\$/{ | |
18968 | N | |
18969 | s,\\\n,, | |
18970 | b mline | |
18971 | } | |
1c710c3c | 18972 | t clear |
5213506e RW |
18973 | :clear |
18974 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 18975 | t quote |
5213506e | 18976 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 18977 | t quote |
5213506e RW |
18978 | b any |
18979 | :quote | |
18980 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18981 | s/\[/\\&/g | |
18982 | s/\]/\\&/g | |
18983 | s/\$/$$/g | |
18984 | H | |
18985 | :any | |
18986 | ${ | |
18987 | g | |
18988 | s/^\n// | |
18989 | s/\n/ /g | |
18990 | p | |
18991 | } | |
18992 | ' | |
18993 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
18994 | |
18995 | ||
18996 | ac_libobjs= | |
18997 | ac_ltlibobjs= | |
22e05272 | 18998 | U= |
1c710c3c DJ |
18999 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19000 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
19001 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19002 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19003 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19004 | # will be set to the directory where LIBOBJS objects are built. | |
19005 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19006 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
19007 | done |
19008 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 19009 | |
1c710c3c | 19010 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 19011 | |
af71363e | 19012 | |
1c710c3c | 19013 | |
22e05272 | 19014 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 19015 | ac_write_fail=0 |
1c710c3c DJ |
19016 | ac_clean_files_save=$ac_clean_files |
19017 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
19018 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
19019 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19020 | as_write_fail=0 | |
19021 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
19022 | #! $SHELL |
19023 | # Generated by $as_me. | |
671aa708 | 19024 | # Run this file to recreate the current configuration. |
671aa708 | 19025 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 19026 | # configure, is in config.log if it exists. |
0b0dc272 | 19027 | |
1c710c3c DJ |
19028 | debug=false |
19029 | ac_cs_recheck=false | |
19030 | ac_cs_silent=false | |
1c710c3c | 19031 | |
5213506e RW |
19032 | SHELL=\${CONFIG_SHELL-$SHELL} |
19033 | export SHELL | |
19034 | _ASEOF | |
19035 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19036 | ## -------------------- ## | |
19037 | ## M4sh Initialization. ## | |
19038 | ## -------------------- ## | |
19039 | ||
19040 | # Be more Bourne compatible | |
19041 | DUALCASE=1; export DUALCASE # for MKS sh | |
19042 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
19043 | emulate sh |
19044 | NULLCMD=: | |
5213506e | 19045 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
19046 | # is contrary to our usage. Disable this feature. |
19047 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
19048 | setopt NO_GLOB_SUBST |
19049 | else | |
19050 | case `(set -o) 2>/dev/null` in #( | |
19051 | *posix*) : | |
19052 | set -o posix ;; #( | |
19053 | *) : | |
19054 | ;; | |
19055 | esac | |
1c710c3c | 19056 | fi |
1c710c3c | 19057 | |
5213506e RW |
19058 | |
19059 | as_nl=' | |
19060 | ' | |
19061 | export as_nl | |
19062 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19063 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19064 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19065 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19066 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19067 | # but without wasting forks for bash or zsh. | |
19068 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19069 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19070 | as_echo='print -r --' | |
19071 | as_echo_n='print -rn --' | |
19072 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19073 | as_echo='printf %s\n' | |
19074 | as_echo_n='printf %s' | |
19075 | else | |
19076 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19077 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19078 | as_echo_n='/usr/ucb/echo -n' | |
19079 | else | |
19080 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19081 | as_echo_n_body='eval | |
19082 | arg=$1; | |
19083 | case $arg in #( | |
19084 | *"$as_nl"*) | |
19085 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19086 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19087 | esac; | |
19088 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19089 | ' | |
19090 | export as_echo_n_body | |
19091 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19092 | fi | |
19093 | export as_echo_body | |
19094 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
19095 | fi |
19096 | ||
5213506e RW |
19097 | # The user is always right. |
19098 | if test "${PATH_SEPARATOR+set}" != set; then | |
19099 | PATH_SEPARATOR=: | |
19100 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19101 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19102 | PATH_SEPARATOR=';' | |
19103 | } | |
19104 | fi | |
19105 | ||
19106 | ||
19107 | # IFS | |
19108 | # We need space, tab and new line, in precisely that order. Quoting is | |
19109 | # there to prevent editors from complaining about space-tab. | |
19110 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19111 | # splitting by setting IFS to empty value.) | |
19112 | IFS=" "" $as_nl" | |
19113 | ||
19114 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 19115 | as_myself= |
5213506e RW |
19116 | case $0 in #(( |
19117 | *[\\/]* ) as_myself=$0 ;; | |
19118 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19119 | for as_dir in $PATH | |
19120 | do | |
19121 | IFS=$as_save_IFS | |
19122 | test -z "$as_dir" && as_dir=. | |
19123 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19124 | done | |
19125 | IFS=$as_save_IFS | |
19126 | ||
19127 | ;; | |
19128 | esac | |
19129 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19130 | # in which case we are not to be found in the path. | |
19131 | if test "x$as_myself" = x; then | |
19132 | as_myself=$0 | |
19133 | fi | |
19134 | if test ! -f "$as_myself"; then | |
19135 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19136 | exit 1 | |
19137 | fi | |
1c710c3c | 19138 | |
5213506e RW |
19139 | # Unset variables that we do not need and which cause bugs (e.g. in |
19140 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19141 | # suppresses any "Segmentation fault" message there. '((' could | |
19142 | # trigger a bug in pdksh 5.2.14. | |
19143 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19144 | do eval test x\${$as_var+set} = xset \ | |
19145 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19146 | done | |
1c710c3c DJ |
19147 | PS1='$ ' |
19148 | PS2='> ' | |
19149 | PS4='+ ' | |
19150 | ||
19151 | # NLS nuisances. | |
5213506e RW |
19152 | LC_ALL=C |
19153 | export LC_ALL | |
19154 | LANGUAGE=C | |
19155 | export LANGUAGE | |
19156 | ||
19157 | # CDPATH. | |
19158 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19159 | ||
19160 | ||
22e05272 JM |
19161 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
19162 | # ---------------------------------------- | |
5213506e RW |
19163 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
19164 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 19165 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
19166 | as_fn_error () |
19167 | { | |
22e05272 JM |
19168 | as_status=$1; test $as_status -eq 0 && as_status=1 |
19169 | if test "$4"; then | |
19170 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19171 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 19172 | fi |
22e05272 | 19173 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
19174 | as_fn_exit $as_status |
19175 | } # as_fn_error | |
19176 | ||
19177 | ||
19178 | # as_fn_set_status STATUS | |
19179 | # ----------------------- | |
19180 | # Set $? to STATUS, without forking. | |
19181 | as_fn_set_status () | |
19182 | { | |
19183 | return $1 | |
19184 | } # as_fn_set_status | |
19185 | ||
19186 | # as_fn_exit STATUS | |
19187 | # ----------------- | |
19188 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19189 | as_fn_exit () | |
19190 | { | |
19191 | set +e | |
19192 | as_fn_set_status $1 | |
19193 | exit $1 | |
19194 | } # as_fn_exit | |
19195 | ||
19196 | # as_fn_unset VAR | |
19197 | # --------------- | |
19198 | # Portably unset VAR. | |
19199 | as_fn_unset () | |
19200 | { | |
19201 | { eval $1=; unset $1;} | |
19202 | } | |
19203 | as_unset=as_fn_unset | |
19204 | # as_fn_append VAR VALUE | |
19205 | # ---------------------- | |
19206 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19207 | # advantage of any shell optimizations that allow amortized linear growth over | |
19208 | # repeated appends, instead of the typical quadratic growth present in naive | |
19209 | # implementations. | |
19210 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19211 | eval 'as_fn_append () | |
19212 | { | |
19213 | eval $1+=\$2 | |
19214 | }' | |
19215 | else | |
19216 | as_fn_append () | |
19217 | { | |
19218 | eval $1=\$$1\$2 | |
19219 | } | |
19220 | fi # as_fn_append | |
19221 | ||
19222 | # as_fn_arith ARG... | |
19223 | # ------------------ | |
19224 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19225 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19226 | # must be portable across $(()) and expr. | |
19227 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19228 | eval 'as_fn_arith () | |
19229 | { | |
19230 | as_val=$(( $* )) | |
19231 | }' | |
19232 | else | |
19233 | as_fn_arith () | |
19234 | { | |
19235 | as_val=`expr "$@" || test $? -eq 1` | |
19236 | } | |
19237 | fi # as_fn_arith | |
19238 | ||
1c710c3c | 19239 | |
5213506e RW |
19240 | if expr a : '\(a\)' >/dev/null 2>&1 && |
19241 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
19242 | as_expr=expr |
19243 | else | |
19244 | as_expr=false | |
19245 | fi | |
19246 | ||
5213506e | 19247 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
19248 | as_basename=basename |
19249 | else | |
19250 | as_basename=false | |
19251 | fi | |
19252 | ||
5213506e RW |
19253 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
19254 | as_dirname=dirname | |
19255 | else | |
19256 | as_dirname=false | |
19257 | fi | |
1c710c3c | 19258 | |
5213506e | 19259 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
19260 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19261 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
19262 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
19263 | $as_echo X/"$0" | | |
19264 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19265 | s//\1/ | |
19266 | q | |
19267 | } | |
19268 | /^X\/\(\/\/\)$/{ | |
19269 | s//\1/ | |
19270 | q | |
19271 | } | |
19272 | /^X\/\(\/\).*/{ | |
19273 | s//\1/ | |
19274 | q | |
19275 | } | |
19276 | s/.*/./; q'` | |
2aeb72e9 | 19277 | |
2aeb72e9 DD |
19278 | # Avoid depending upon Character Ranges. |
19279 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19280 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19281 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19282 | as_cr_digits='0123456789' | |
19283 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19284 | ||
5213506e RW |
19285 | ECHO_C= ECHO_N= ECHO_T= |
19286 | case `echo -n x` in #((((( | |
19287 | -n*) | |
19288 | case `echo 'xy\c'` in | |
19289 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19290 | xy) ECHO_C='\c';; | |
19291 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19292 | ECHO_T=' ';; | |
19293 | esac;; | |
19294 | *) | |
19295 | ECHO_N='-n';; | |
1c710c3c DJ |
19296 | esac |
19297 | ||
5213506e RW |
19298 | rm -f conf$$ conf$$.exe conf$$.file |
19299 | if test -d conf$$.dir; then | |
19300 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 19301 | else |
5213506e RW |
19302 | rm -f conf$$.dir |
19303 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 19304 | fi |
5213506e RW |
19305 | if (echo >conf$$.file) 2>/dev/null; then |
19306 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 19307 | as_ln_s='ln -s' |
5213506e RW |
19308 | # ... but there are two gotchas: |
19309 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19310 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 19311 | # In both cases, we have to default to `cp -pR'. |
5213506e | 19312 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 19313 | as_ln_s='cp -pR' |
5213506e RW |
19314 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19315 | as_ln_s=ln | |
19316 | else | |
22e05272 | 19317 | as_ln_s='cp -pR' |
2aeb72e9 | 19318 | fi |
1c710c3c | 19319 | else |
22e05272 | 19320 | as_ln_s='cp -pR' |
1c710c3c | 19321 | fi |
5213506e RW |
19322 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19323 | rmdir conf$$.dir 2>/dev/null | |
19324 | ||
19325 | ||
19326 | # as_fn_mkdir_p | |
19327 | # ------------- | |
19328 | # Create "$as_dir" as a directory, including parents if necessary. | |
19329 | as_fn_mkdir_p () | |
19330 | { | |
19331 | ||
19332 | case $as_dir in #( | |
19333 | -*) as_dir=./$as_dir;; | |
19334 | esac | |
19335 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19336 | as_dirs= | |
19337 | while :; do | |
19338 | case $as_dir in #( | |
19339 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19340 | *) as_qdir=$as_dir;; | |
19341 | esac | |
19342 | as_dirs="'$as_qdir' $as_dirs" | |
19343 | as_dir=`$as_dirname -- "$as_dir" || | |
19344 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19345 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19346 | X"$as_dir" : 'X\(//\)$' \| \ | |
19347 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19348 | $as_echo X"$as_dir" | | |
19349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19350 | s//\1/ | |
19351 | q | |
19352 | } | |
19353 | /^X\(\/\/\)[^/].*/{ | |
19354 | s//\1/ | |
19355 | q | |
19356 | } | |
19357 | /^X\(\/\/\)$/{ | |
19358 | s//\1/ | |
19359 | q | |
19360 | } | |
19361 | /^X\(\/\).*/{ | |
19362 | s//\1/ | |
19363 | q | |
19364 | } | |
19365 | s/.*/./; q'` | |
19366 | test -d "$as_dir" && break | |
19367 | done | |
19368 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 19369 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 19370 | |
1c710c3c | 19371 | |
5213506e | 19372 | } # as_fn_mkdir_p |
1c710c3c | 19373 | if mkdir -p . 2>/dev/null; then |
5213506e | 19374 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
19375 | else |
19376 | test -d ./-p && rmdir ./-p | |
19377 | as_mkdir_p=false | |
19378 | fi | |
19379 | ||
22e05272 JM |
19380 | |
19381 | # as_fn_executable_p FILE | |
19382 | # ----------------------- | |
19383 | # Test if FILE is an executable regular file. | |
19384 | as_fn_executable_p () | |
19385 | { | |
19386 | test -f "$1" && test -x "$1" | |
19387 | } # as_fn_executable_p | |
19388 | as_test_x='test -x' | |
19389 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
19390 | |
19391 | # Sed expression to map a string onto a valid CPP name. | |
19392 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19393 | ||
19394 | # Sed expression to map a string onto a valid variable name. | |
19395 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19396 | ||
19397 | ||
1c710c3c | 19398 | exec 6>&1 |
5213506e RW |
19399 | ## ----------------------------------- ## |
19400 | ## Main body of $CONFIG_STATUS script. ## | |
19401 | ## ----------------------------------- ## | |
19402 | _ASEOF | |
19403 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19404 | ||
19405 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19406 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 19407 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
19408 | # values after options handling. |
19409 | ac_log=" | |
1c710c3c | 19410 | This file was extended by $as_me, which was |
22e05272 | 19411 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
19412 | |
19413 | CONFIG_FILES = $CONFIG_FILES | |
19414 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19415 | CONFIG_LINKS = $CONFIG_LINKS | |
19416 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19417 | $ $0 $@ | |
19418 | ||
5213506e RW |
19419 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19420 | " | |
19421 | ||
1c710c3c DJ |
19422 | _ACEOF |
19423 | ||
5213506e RW |
19424 | case $ac_config_files in *" |
19425 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19426 | esac | |
1c710c3c | 19427 | |
2aeb72e9 | 19428 | |
2aeb72e9 | 19429 | |
5213506e RW |
19430 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19431 | # Files that config.status was made for. | |
19432 | config_files="$ac_config_files" | |
1c710c3c | 19433 | |
5213506e | 19434 | _ACEOF |
2aeb72e9 | 19435 | |
5213506e | 19436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 19437 | ac_cs_usage="\ |
5213506e RW |
19438 | \`$as_me' instantiates files and other configuration actions |
19439 | from templates according to the current configuration. Unless the files | |
19440 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 19441 | |
5213506e | 19442 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
19443 | |
19444 | -h, --help print this help, then exit | |
5213506e | 19445 | -V, --version print version number and configuration settings, then exit |
22e05272 | 19446 | --config print configuration, then exit |
5213506e RW |
19447 | -q, --quiet, --silent |
19448 | do not print progress messages | |
1c710c3c DJ |
19449 | -d, --debug don't remove temporary files |
19450 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
19451 | --file=FILE[:TEMPLATE] |
19452 | instantiate the configuration file FILE | |
1c710c3c DJ |
19453 | |
19454 | Configuration files: | |
19455 | $config_files | |
19456 | ||
5213506e | 19457 | Report bugs to the package provider." |
2aeb72e9 | 19458 | |
5213506e RW |
19459 | _ACEOF |
19460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19461 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
19462 | ac_cs_version="\\ |
19463 | config.status | |
22e05272 JM |
19464 | configured by $0, generated by GNU Autoconf 2.69, |
19465 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 19466 | |
22e05272 | 19467 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
19468 | This config.status script is free software; the Free Software Foundation |
19469 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
19470 | |
19471 | ac_pwd='$ac_pwd' | |
19472 | srcdir='$srcdir' | |
19473 | INSTALL='$INSTALL' | |
87264276 | 19474 | AWK='$AWK' |
5213506e | 19475 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
19476 | _ACEOF |
19477 | ||
5213506e RW |
19478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19479 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
19480 | ac_need_defaults=: |
19481 | while test $# != 0 | |
a4b9e93e | 19482 | do |
1c710c3c | 19483 | case $1 in |
22e05272 | 19484 | --*=?*) |
5213506e RW |
19485 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19486 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
19487 | ac_shift=: |
19488 | ;; | |
22e05272 JM |
19489 | --*=) |
19490 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19491 | ac_optarg= | |
19492 | ac_shift=: | |
19493 | ;; | |
5213506e | 19494 | *) |
1c710c3c DJ |
19495 | ac_option=$1 |
19496 | ac_optarg=$2 | |
19497 | ac_shift=shift | |
19498 | ;; | |
1c710c3c DJ |
19499 | esac |
19500 | ||
19501 | case $ac_option in | |
19502 | # Handling of the options. | |
671aa708 | 19503 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 19504 | ac_cs_recheck=: ;; |
5213506e RW |
19505 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19506 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
19507 | --config | --confi | --conf | --con | --co | --c ) |
19508 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 19509 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
19510 | debug=: ;; |
19511 | --file | --fil | --fi | --f ) | |
19512 | $ac_shift | |
5213506e RW |
19513 | case $ac_optarg in |
19514 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 19515 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
19516 | esac |
19517 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 19518 | ac_need_defaults=false;; |
5213506e RW |
19519 | --he | --h | --help | --hel | -h ) |
19520 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
19521 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19522 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19523 | ac_cs_silent=: ;; | |
19524 | ||
19525 | # This is an error. | |
22e05272 | 19526 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 19527 | Try \`$0 --help' for more information." ;; |
1c710c3c | 19528 | |
5213506e RW |
19529 | *) as_fn_append ac_config_targets " $1" |
19530 | ac_need_defaults=false ;; | |
1c710c3c | 19531 | |
0b0dc272 | 19532 | esac |
1c710c3c | 19533 | shift |
0b0dc272 AM |
19534 | done |
19535 | ||
1c710c3c | 19536 | ac_configure_extra_args= |
0b0dc272 | 19537 | |
1c710c3c DJ |
19538 | if $ac_cs_silent; then |
19539 | exec 6>/dev/null | |
19540 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19541 | fi | |
0b0dc272 | 19542 | |
1c710c3c | 19543 | _ACEOF |
5213506e | 19544 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 19545 | if \$ac_cs_recheck; then |
22e05272 | 19546 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
19547 | shift |
19548 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19549 | CONFIG_SHELL='$SHELL' | |
19550 | export CONFIG_SHELL | |
19551 | exec "\$@" | |
1c710c3c DJ |
19552 | fi |
19553 | ||
19554 | _ACEOF | |
5213506e RW |
19555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19556 | exec 5>>config.log | |
19557 | { | |
19558 | echo | |
19559 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19560 | ## Running $as_me. ## | |
19561 | _ASBOX | |
19562 | $as_echo "$ac_log" | |
19563 | } >&5 | |
1c710c3c | 19564 | |
5213506e RW |
19565 | _ACEOF |
19566 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
19567 | # |
19568 | # INIT-COMMANDS | |
19569 | # | |
19570 | extrasub_build="$extrasub_build" | |
19571 | extrasub_host="$extrasub_host" | |
19572 | extrasub_target="$extrasub_target" | |
19573 | ||
5213506e | 19574 | _ACEOF |
1c710c3c | 19575 | |
5213506e | 19576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 19577 | |
5213506e | 19578 | # Handling of arguments. |
1c710c3c DJ |
19579 | for ac_config_target in $ac_config_targets |
19580 | do | |
5213506e RW |
19581 | case $ac_config_target in |
19582 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19583 | ||
22e05272 | 19584 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
19585 | esac |
19586 | done | |
19587 | ||
5213506e | 19588 | |
1c710c3c DJ |
19589 | # If the user did not use the arguments to specify the items to instantiate, |
19590 | # then the envvar interface is used. Set only those that are not. | |
19591 | # We use the long form for the default assignment because of an extremely | |
19592 | # bizarre bug on SunOS 4.1.3. | |
19593 | if $ac_need_defaults; then | |
19594 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19595 | fi | |
19596 | ||
19597 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 19598 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 19599 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
19600 | # Hook for its removal unless debugging. |
19601 | # Note that there is a small window in which the directory will not be cleaned: | |
19602 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
19603 | $debug || |
19604 | { | |
22e05272 | 19605 | tmp= ac_tmp= |
5213506e | 19606 | trap 'exit_status=$? |
22e05272 JM |
19607 | : "${ac_tmp:=$tmp}" |
19608 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
19609 | ' 0 |
19610 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 19611 | } |
1c710c3c DJ |
19612 | # Create a (secure) tmp directory for tmp files. |
19613 | ||
19614 | { | |
5213506e | 19615 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 19616 | test -d "$tmp" |
1c710c3c DJ |
19617 | } || |
19618 | { | |
5213506e RW |
19619 | tmp=./conf$$-$RANDOM |
19620 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
19621 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19622 | ac_tmp=$tmp | |
5213506e RW |
19623 | |
19624 | # Set up the scripts for CONFIG_FILES section. | |
19625 | # No need to generate them if there are no CONFIG_FILES. | |
19626 | # This happens for instance with `./config.status config.h'. | |
19627 | if test -n "$CONFIG_FILES"; then | |
19628 | ||
19629 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19630 | ac_cs_awk_getline=: | |
19631 | ac_cs_awk_pipe_init= | |
19632 | ac_cs_awk_read_file=' | |
19633 | while ((getline aline < (F[key])) > 0) | |
19634 | print(aline) | |
19635 | close(F[key])' | |
19636 | ac_cs_awk_pipe_fini= | |
19637 | else | |
19638 | ac_cs_awk_getline=false | |
19639 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19640 | ac_cs_awk_read_file=' | |
19641 | print "|#_!!_#|" | |
19642 | print "cat " F[key] " &&" | |
19643 | '$ac_cs_awk_pipe_init | |
19644 | # The final `:' finishes the AND list. | |
19645 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19646 | fi | |
19647 | ac_cr=`echo X | tr X '\015'` | |
19648 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19649 | # But we know of no other shell where ac_cr would be empty at this | |
19650 | # point, so we can use a bashism as a fallback. | |
19651 | if test "x$ac_cr" = x; then | |
19652 | eval ac_cr=\$\'\\r\' | |
19653 | fi | |
19654 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19655 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 19656 | ac_cs_awk_cr='\\r' |
5213506e RW |
19657 | else |
19658 | ac_cs_awk_cr=$ac_cr | |
19659 | fi | |
19660 | ||
22e05272 | 19661 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
19662 | _ACEOF |
19663 | ||
19664 | # Create commands to substitute file output variables. | |
1c710c3c | 19665 | { |
5213506e | 19666 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 19667 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
19668 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19669 | echo "_ACAWK" && | |
19670 | echo "_ACEOF" | |
19671 | } >conf$$files.sh && | |
19672 | . ./conf$$files.sh || | |
22e05272 | 19673 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 19674 | rm -f conf$$files.sh |
1c710c3c | 19675 | |
5213506e RW |
19676 | { |
19677 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19678 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19679 | echo "_ACEOF" | |
19680 | } >conf$$subs.sh || | |
22e05272 JM |
19681 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19682 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
19683 | ac_delim='%!_!# ' |
19684 | for ac_last_try in false false false false false :; do | |
19685 | . ./conf$$subs.sh || | |
22e05272 | 19686 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19687 | |
19688 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19689 | if test $ac_delim_n = $ac_delim_num; then | |
19690 | break | |
19691 | elif $ac_last_try; then | |
22e05272 | 19692 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
19693 | else |
19694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19695 | fi | |
19696 | done | |
19697 | rm -f conf$$subs.sh | |
19698 | ||
19699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 19700 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 19701 | _ACEOF |
5213506e RW |
19702 | sed -n ' |
19703 | h | |
19704 | s/^/S["/; s/!.*/"]=/ | |
19705 | p | |
19706 | g | |
19707 | s/^[^!]*!// | |
19708 | :repl | |
19709 | t repl | |
19710 | s/'"$ac_delim"'$// | |
19711 | t delim | |
19712 | :nl | |
19713 | h | |
22e05272 | 19714 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19715 | t more1 |
19716 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19717 | p | |
19718 | n | |
19719 | b repl | |
19720 | :more1 | |
19721 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19722 | p | |
19723 | g | |
19724 | s/.\{148\}// | |
19725 | t nl | |
19726 | :delim | |
19727 | h | |
22e05272 | 19728 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
19729 | t more2 |
19730 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19731 | p | |
19732 | b | |
19733 | :more2 | |
19734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19735 | p | |
19736 | g | |
19737 | s/.\{148\}// | |
19738 | t delim | |
19739 | ' <conf$$subs.awk | sed ' | |
19740 | /^[^""]/{ | |
19741 | N | |
19742 | s/\n// | |
19743 | } | |
19744 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19745 | rm -f conf$$subs.awk | |
19746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19747 | _ACAWK | |
22e05272 | 19748 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
19749 | for (key in S) S_is_set[key] = 1 |
19750 | FS = "\a" | |
19751 | \$ac_cs_awk_pipe_init | |
19752 | } | |
19753 | { | |
19754 | line = $ 0 | |
19755 | nfields = split(line, field, "@") | |
19756 | substed = 0 | |
19757 | len = length(field[1]) | |
19758 | for (i = 2; i < nfields; i++) { | |
19759 | key = field[i] | |
19760 | keylen = length(key) | |
19761 | if (S_is_set[key]) { | |
19762 | value = S[key] | |
19763 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19764 | len += length(value) + length(field[++i]) | |
19765 | substed = 1 | |
19766 | } else | |
19767 | len += 1 + keylen | |
19768 | } | |
19769 | if (nfields == 3 && !substed) { | |
19770 | key = field[2] | |
19771 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19772 | \$ac_cs_awk_read_file | |
19773 | next | |
19774 | } | |
19775 | } | |
19776 | print line | |
19777 | } | |
19778 | \$ac_cs_awk_pipe_fini | |
19779 | _ACAWK | |
19780 | _ACEOF | |
19781 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19782 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19783 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19784 | else | |
19785 | cat | |
22e05272 JM |
19786 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19787 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
19788 | _ACEOF |
19789 | ||
22e05272 JM |
19790 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19791 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
19792 | # trailing colons and then remove the whole line if VPATH becomes empty |
19793 | # (actually we leave an empty line to preserve line numbers). | |
19794 | if test "x$srcdir" = x.; then | |
22e05272 JM |
19795 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19796 | h | |
19797 | s/// | |
19798 | s/^/:/ | |
19799 | s/[ ]*$/:/ | |
19800 | s/:\$(srcdir):/:/g | |
19801 | s/:\${srcdir}:/:/g | |
19802 | s/:@srcdir@:/:/g | |
19803 | s/^:*// | |
5213506e | 19804 | s/:*$// |
22e05272 JM |
19805 | x |
19806 | s/\(=[ ]*\).*/\1/ | |
19807 | G | |
19808 | s/\n// | |
5213506e RW |
19809 | s/^[^=]*=[ ]*$// |
19810 | }' | |
19811 | fi | |
2aeb72e9 | 19812 | |
5213506e RW |
19813 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19814 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 19815 | |
1c710c3c | 19816 | |
5213506e RW |
19817 | eval set X " :F $CONFIG_FILES " |
19818 | shift | |
19819 | for ac_tag | |
19820 | do | |
19821 | case $ac_tag in | |
19822 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19823 | esac | |
19824 | case $ac_mode$ac_tag in | |
19825 | :[FHL]*:*);; | |
22e05272 | 19826 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
19827 | :[FH]-) ac_tag=-:-;; |
19828 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19829 | esac | |
19830 | ac_save_IFS=$IFS | |
19831 | IFS=: | |
19832 | set x $ac_tag | |
19833 | IFS=$ac_save_IFS | |
19834 | shift | |
19835 | ac_file=$1 | |
19836 | shift | |
79c06341 | 19837 | |
5213506e RW |
19838 | case $ac_mode in |
19839 | :L) ac_source=$1;; | |
19840 | :[FH]) | |
19841 | ac_file_inputs= | |
19842 | for ac_f | |
19843 | do | |
19844 | case $ac_f in | |
22e05272 | 19845 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
19846 | *) # Look for the file first in the build tree, then in the source tree |
19847 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19848 | # because $ac_f cannot contain `:'. | |
19849 | test -f "$ac_f" || | |
19850 | case $ac_f in | |
19851 | [\\/$]*) false;; | |
19852 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19853 | esac || | |
22e05272 | 19854 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
19855 | esac |
19856 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19857 | as_fn_append ac_file_inputs " '$ac_f'" | |
19858 | done | |
1c710c3c | 19859 | |
5213506e RW |
19860 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19861 | # use $as_me), people would be surprised to read: | |
19862 | # /* config.h. Generated by config.status. */ | |
19863 | configure_input='Generated from '` | |
19864 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19865 | `' by configure.' | |
19866 | if test x"$ac_file" != x-; then | |
19867 | configure_input="$ac_file. $configure_input" | |
19868 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19869 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 19870 | fi |
5213506e RW |
19871 | # Neutralize special characters interpreted by sed in replacement strings. |
19872 | case $configure_input in #( | |
19873 | *\&* | *\|* | *\\* ) | |
19874 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19875 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19876 | *) ac_sed_conf_input=$configure_input;; | |
19877 | esac | |
11a67599 | 19878 | |
5213506e | 19879 | case $ac_tag in |
22e05272 JM |
19880 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19881 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
19882 | esac |
19883 | ;; | |
11a67599 ZW |
19884 | esac |
19885 | ||
5213506e | 19886 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
19887 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19888 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19889 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
19890 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19891 | $as_echo X"$ac_file" | | |
19892 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19893 | s//\1/ | |
19894 | q | |
19895 | } | |
19896 | /^X\(\/\/\)[^/].*/{ | |
19897 | s//\1/ | |
19898 | q | |
19899 | } | |
19900 | /^X\(\/\/\)$/{ | |
19901 | s//\1/ | |
19902 | q | |
19903 | } | |
19904 | /^X\(\/\).*/{ | |
19905 | s//\1/ | |
19906 | q | |
19907 | } | |
19908 | s/.*/./; q'` | |
19909 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 19910 | ac_builddir=. |
0b0dc272 | 19911 | |
5213506e RW |
19912 | case "$ac_dir" in |
19913 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19914 | *) | |
19915 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19916 | # A ".." for each directory in $ac_dir_suffix. | |
19917 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19918 | case $ac_top_builddir_sub in | |
19919 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19920 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19921 | esac ;; | |
19922 | esac | |
19923 | ac_abs_top_builddir=$ac_pwd | |
19924 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19925 | # for backward compatibility: | |
19926 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
19927 | |
19928 | case $srcdir in | |
5213506e | 19929 | .) # We are building in place. |
1c710c3c | 19930 | ac_srcdir=. |
5213506e RW |
19931 | ac_top_srcdir=$ac_top_builddir_sub |
19932 | ac_abs_top_srcdir=$ac_pwd ;; | |
19933 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 19934 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
19935 | ac_top_srcdir=$srcdir |
19936 | ac_abs_top_srcdir=$srcdir ;; | |
19937 | *) # Relative name. | |
19938 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19939 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19940 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 19941 | esac |
5213506e | 19942 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 19943 | |
0b0dc272 | 19944 | |
5213506e RW |
19945 | case $ac_mode in |
19946 | :F) | |
19947 | # | |
19948 | # CONFIG_FILE | |
19949 | # | |
1c710c3c DJ |
19950 | |
19951 | case $INSTALL in | |
19952 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 19953 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 19954 | esac |
5213506e | 19955 | _ACEOF |
11a67599 | 19956 | |
5213506e RW |
19957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19958 | # If the template does not know about datarootdir, expand it. | |
19959 | # FIXME: This hack should be removed a few years after 2.60. | |
19960 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19961 | ac_sed_dataroot=' | |
19962 | /datarootdir/ { | |
19963 | p | |
19964 | q | |
19965 | } | |
19966 | /@datadir@/p | |
19967 | /@docdir@/p | |
19968 | /@infodir@/p | |
19969 | /@localedir@/p | |
19970 | /@mandir@/p' | |
19971 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19972 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19973 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19975 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 19976 | _ACEOF |
5213506e RW |
19977 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19978 | ac_datarootdir_hack=' | |
19979 | s&@datadir@&$datadir&g | |
19980 | s&@docdir@&$docdir&g | |
19981 | s&@infodir@&$infodir&g | |
19982 | s&@localedir@&$localedir&g | |
19983 | s&@mandir@&$mandir&g | |
19984 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19985 | esac | |
19986 | _ACEOF | |
19987 | ||
19988 | # Neutralize VPATH when `$srcdir' = `.'. | |
19989 | # Shell code in configure.ac might set extrasub. | |
19990 | # FIXME: do we really want to maintain this feature? | |
19991 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19992 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
19993 | $extrasub |
19994 | _ACEOF | |
5213506e | 19995 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
19996 | :t |
19997 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
19998 | s|@configure_input@|$ac_sed_conf_input|;t t |
19999 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20000 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20001 | s&@srcdir@&$ac_srcdir&;t t | |
20002 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20003 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20004 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20005 | s&@builddir@&$ac_builddir&;t t | |
20006 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20007 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20008 | s&@INSTALL@&$ac_INSTALL&;t t | |
20009 | $ac_datarootdir_hack | |
20010 | " | |
20011 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
20012 | if $ac_cs_awk_getline; then | |
22e05272 | 20013 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 20014 | else |
22e05272 JM |
20015 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
20016 | fi \ | |
20017 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
20018 | |
20019 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
20020 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
20021 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20022 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 20023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 20024 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 20025 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 20026 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 20027 | |
22e05272 | 20028 | rm -f "$ac_tmp/stdin" |
5213506e | 20029 | case $ac_file in |
22e05272 JM |
20030 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
20031 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 20032 | esac \ |
22e05272 | 20033 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 20034 | ;; |
11a67599 | 20035 | |
11a67599 | 20036 | |
79c06341 | 20037 | |
5213506e RW |
20038 | esac |
20039 | ||
3e54529c RW |
20040 | |
20041 | case $ac_file$ac_mode in | |
20042 | "Makefile":F) sed "$extrasub_build" Makefile | | |
20043 | sed "$extrasub_host" | | |
20044 | sed "$extrasub_target" > mf$$ | |
20045 | mv -f mf$$ Makefile ;; | |
20046 | ||
20047 | esac | |
5213506e RW |
20048 | done # for ac_tag |
20049 | ||
20050 | ||
20051 | as_fn_exit 0 | |
1c710c3c | 20052 | _ACEOF |
1c710c3c DJ |
20053 | ac_clean_files=$ac_clean_files_save |
20054 | ||
5213506e | 20055 | test $ac_write_fail = 0 || |
22e05272 | 20056 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 20057 | |
1c710c3c DJ |
20058 | |
20059 | # configure is writing to config.log, and then calls config.status. | |
20060 | # config.status does its own redirection, appending to config.log. | |
20061 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20062 | # by configure, so config.status won't be able to write to it; its | |
20063 | # output is simply discarded. So we exec the FD to /dev/null, | |
20064 | # effectively closing config.log, so it can be properly (re)opened and | |
20065 | # appended to by config.status. When coming back to configure, we | |
20066 | # need to make the FD available again. | |
20067 | if test "$no_create" != yes; then | |
20068 | ac_cs_success=: | |
20069 | ac_config_status_args= | |
20070 | test "$silent" = yes && | |
20071 | ac_config_status_args="$ac_config_status_args --quiet" | |
20072 | exec 5>/dev/null | |
20073 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20074 | exec 5>>config.log | |
20075 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20076 | # would make configure fail if this is the last instruction. | |
22e05272 | 20077 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
20078 | fi |
20079 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20081 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 20082 | fi |
79c06341 | 20083 |