]>
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 | |
612 | DLLTOOL_FOR_TARGET | |
613 | AS_FOR_TARGET | |
614 | AR_FOR_TARGET | |
b4c522fa | 615 | GDC_FOR_TARGET |
632e2a07 | 616 | GOC_FOR_TARGET |
5213506e | 617 | GFORTRAN_FOR_TARGET |
5213506e RW |
618 | GCC_FOR_TARGET |
619 | CXX_FOR_TARGET | |
620 | CC_FOR_TARGET | |
e7a82751 | 621 | READELF |
e4a9a572 | 622 | OTOOL |
5213506e RW |
623 | OBJDUMP |
624 | OBJCOPY | |
625 | WINDMC | |
626 | WINDRES | |
627 | STRIP | |
628 | RANLIB | |
629 | NM | |
630 | LIPO | |
631 | LD | |
632 | DLLTOOL | |
633 | AS | |
634 | AR | |
635 | RUNTEST | |
636 | EXPECT | |
637 | MAKEINFO | |
638 | FLEX | |
639 | LEX | |
640 | M4 | |
641 | BISON | |
642 | YACC | |
5213506e RW |
643 | WINDRES_FOR_BUILD |
644 | WINDMC_FOR_BUILD | |
645 | RANLIB_FOR_BUILD | |
646 | NM_FOR_BUILD | |
647 | LD_FOR_BUILD | |
648 | LDFLAGS_FOR_BUILD | |
b4c522fa | 649 | GDC_FOR_BUILD |
632e2a07 | 650 | GOC_FOR_BUILD |
5213506e | 651 | GFORTRAN_FOR_BUILD |
5213506e RW |
652 | DLLTOOL_FOR_BUILD |
653 | CXX_FOR_BUILD | |
654 | CXXFLAGS_FOR_BUILD | |
655 | CFLAGS_FOR_BUILD | |
656 | CC_FOR_BUILD | |
657 | AS_FOR_BUILD | |
658 | AR_FOR_BUILD | |
aae29963 | 659 | target_configdirs |
5213506e | 660 | configdirs |
5213506e | 661 | build_configdirs |
5213506e RW |
662 | INSTALL_GDB_TK |
663 | GDB_TK | |
664 | CONFIGURE_GDB_TK | |
665 | build_tooldir | |
666 | tooldir | |
667 | GCC_SHLIB_SUBDIR | |
668 | RPATH_ENVVAR | |
ffedf511 RW |
669 | target_configargs |
670 | host_configargs | |
671 | build_configargs | |
e12c4094 | 672 | BUILD_CONFIG |
6f57bdf6 | 673 | LDFLAGS_FOR_TARGET |
5213506e RW |
674 | CXXFLAGS_FOR_TARGET |
675 | CFLAGS_FOR_TARGET | |
676 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
677 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 678 | get_gcc_base_ver |
1c01ebf6 | 679 | extra_host_zlib_configure_flags |
d7f09764 | 680 | extra_host_libiberty_configure_flags |
fca38047 | 681 | stage1_languages |
cdfee50a | 682 | host_shared |
45b3824d TS |
683 | extra_linker_plugin_flags |
684 | extra_linker_plugin_configure_flags | |
33ad93b9 | 685 | islinc |
eae1a5d4 | 686 | isllibs |
5213506e | 687 | poststage1_ldflags |
ed2eaa9f | 688 | poststage1_libs |
5213506e | 689 | stage1_ldflags |
0b21f5d3 | 690 | stage1_libs |
0ff2d841 | 691 | extra_isl_gmp_configure_flags |
5213506e RW |
692 | extra_mpc_mpfr_configure_flags |
693 | extra_mpc_gmp_configure_flags | |
694 | extra_mpfr_configure_flags | |
695 | gmpinc | |
696 | gmplibs | |
ffac9597 | 697 | HAVE_CXX11 |
5213506e RW |
698 | do_compare |
699 | GNATMAKE | |
700 | GNATBIND | |
701 | ac_ct_CXX | |
702 | CXXFLAGS | |
703 | CXX | |
704 | OBJEXT | |
705 | EXEEXT | |
706 | ac_ct_CC | |
707 | CPPFLAGS | |
708 | LDFLAGS | |
709 | CFLAGS | |
710 | CC | |
5f520819 | 711 | extra_liboffloadmic_configure_flags |
5213506e RW |
712 | target_subdir |
713 | host_subdir | |
714 | build_subdir | |
715 | build_libsubdir | |
87264276 PB |
716 | AWK |
717 | SED | |
5213506e RW |
718 | LN_S |
719 | LN | |
720 | INSTALL_DATA | |
721 | INSTALL_SCRIPT | |
722 | INSTALL_PROGRAM | |
723 | target_os | |
724 | target_vendor | |
725 | target_cpu | |
726 | target | |
727 | host_os | |
728 | host_vendor | |
729 | host_cpu | |
730 | host | |
731 | target_noncanonical | |
732 | host_noncanonical | |
733 | build_noncanonical | |
734 | build_os | |
735 | build_vendor | |
736 | build_cpu | |
737 | build | |
738 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
739 | target_alias | |
740 | host_alias | |
741 | build_alias | |
742 | LIBS | |
743 | ECHO_T | |
744 | ECHO_N | |
745 | ECHO_C | |
746 | DEFS | |
747 | mandir | |
748 | localedir | |
749 | libdir | |
750 | psdir | |
751 | pdfdir | |
752 | dvidir | |
753 | htmldir | |
754 | infodir | |
755 | docdir | |
756 | oldincludedir | |
757 | includedir | |
758 | localstatedir | |
759 | sharedstatedir | |
760 | sysconfdir | |
761 | datadir | |
762 | datarootdir | |
763 | libexecdir | |
764 | sbindir | |
765 | bindir | |
766 | program_transform_name | |
767 | prefix | |
768 | exec_prefix | |
769 | PACKAGE_URL | |
770 | PACKAGE_BUGREPORT | |
771 | PACKAGE_STRING | |
772 | PACKAGE_VERSION | |
773 | PACKAGE_TARNAME | |
774 | PACKAGE_NAME | |
775 | PATH_SEPARATOR | |
776 | SHELL' | |
777 | ac_subst_files='serialization_dependencies | |
778 | host_makefile_frag | |
779 | target_makefile_frag | |
780 | alphaieee_frag | |
781 | ospace_frag' | |
782 | ac_user_opts=' | |
783 | enable_option_checking | |
784 | with_build_libsubdir | |
a05c2c75 | 785 | with_system_zlib |
85c64bbe BS |
786 | enable_as_accelerator_for |
787 | enable_offload_targets | |
5213506e | 788 | enable_gold |
21539e2e | 789 | enable_ld |
78edb32f | 790 | enable_compressed_debug_sections |
87e6d9dc TB |
791 | enable_libquadmath |
792 | enable_libquadmath_support | |
5213506e RW |
793 | enable_libada |
794 | enable_libssp | |
1873ec0c | 795 | enable_libstdcxx |
5f520819 | 796 | enable_liboffloadmic |
ff3ac0f4 | 797 | enable_bootstrap |
5213506e RW |
798 | with_mpc |
799 | with_mpc_include | |
800 | with_mpc_lib | |
801 | with_mpfr_dir | |
802 | with_mpfr | |
803 | with_mpfr_include | |
804 | with_mpfr_lib | |
805 | with_gmp_dir | |
806 | with_gmp | |
807 | with_gmp_include | |
808 | with_gmp_lib | |
5213506e | 809 | with_stage1_libs |
aac9103b | 810 | with_static_standard_libraries |
0b21f5d3 | 811 | with_stage1_ldflags |
5213506e | 812 | with_boot_libs |
ed2eaa9f | 813 | with_boot_ldflags |
33ad93b9 RG |
814 | with_isl |
815 | with_isl_include | |
816 | with_isl_lib | |
817 | enable_isl_version_check | |
d7f09764 | 818 | enable_lto |
45b3824d TS |
819 | enable_linker_plugin_configure_flags |
820 | enable_linker_plugin_flags | |
cdfee50a | 821 | enable_host_shared |
5213506e | 822 | enable_stage1_languages |
43c40f3e | 823 | enable_objc_gc |
114bf3f1 MK |
824 | with_target_bdw_gc |
825 | with_target_bdw_gc_include | |
826 | with_target_bdw_gc_lib | |
3c36aa6b | 827 | with_gcc_major_version_only |
5213506e RW |
828 | with_build_sysroot |
829 | with_debug_prefix_map | |
5646b7b9 | 830 | with_build_config |
beeda1d9 | 831 | enable_vtable_verify |
5213506e RW |
832 | enable_serial_configure |
833 | with_build_time_tools | |
834 | enable_maintainer_mode | |
835 | enable_stage1_checking | |
836 | enable_werror | |
5213506e RW |
837 | ' |
838 | ac_precious_vars='build_alias | |
839 | host_alias | |
840 | target_alias | |
841 | CC | |
842 | CFLAGS | |
843 | LDFLAGS | |
844 | LIBS | |
845 | CPPFLAGS | |
846 | CXX | |
847 | CXXFLAGS | |
848 | CCC | |
ffedf511 RW |
849 | build_configargs |
850 | host_configargs | |
851 | target_configargs | |
5213506e RW |
852 | AR |
853 | AS | |
854 | DLLTOOL | |
855 | LD | |
856 | LIPO | |
857 | NM | |
858 | RANLIB | |
859 | STRIP | |
860 | WINDRES | |
861 | WINDMC | |
862 | OBJCOPY | |
863 | OBJDUMP | |
e4a9a572 | 864 | OTOOL |
e7a82751 | 865 | READELF |
5213506e RW |
866 | CC_FOR_TARGET |
867 | CXX_FOR_TARGET | |
868 | GCC_FOR_TARGET | |
5213506e | 869 | GFORTRAN_FOR_TARGET |
632e2a07 | 870 | GOC_FOR_TARGET |
b4c522fa | 871 | GDC_FOR_TARGET |
5213506e RW |
872 | AR_FOR_TARGET |
873 | AS_FOR_TARGET | |
874 | DLLTOOL_FOR_TARGET | |
875 | LD_FOR_TARGET | |
876 | LIPO_FOR_TARGET | |
877 | NM_FOR_TARGET | |
9bccfdf5 | 878 | OBJCOPY_FOR_TARGET |
5213506e | 879 | OBJDUMP_FOR_TARGET |
e4a9a572 | 880 | OTOOL_FOR_TARGET |
5213506e | 881 | RANLIB_FOR_TARGET |
e7a82751 | 882 | READELF_FOR_TARGET |
5213506e RW |
883 | STRIP_FOR_TARGET |
884 | WINDRES_FOR_TARGET | |
885 | WINDMC_FOR_TARGET' | |
886 | ||
671aa708 NN |
887 | |
888 | # Initialize some variables set by options. | |
1c710c3c DJ |
889 | ac_init_help= |
890 | ac_init_version=false | |
5213506e RW |
891 | ac_unrecognized_opts= |
892 | ac_unrecognized_sep= | |
671aa708 NN |
893 | # The variables have the same names as the options, with |
894 | # dashes changed to underlines. | |
1c710c3c | 895 | cache_file=/dev/null |
671aa708 | 896 | exec_prefix=NONE |
671aa708 | 897 | no_create= |
671aa708 NN |
898 | no_recursion= |
899 | prefix=NONE | |
900 | program_prefix=NONE | |
901 | program_suffix=NONE | |
902 | program_transform_name=s,x,x, | |
903 | silent= | |
904 | site= | |
905 | srcdir= | |
671aa708 NN |
906 | verbose= |
907 | x_includes=NONE | |
908 | x_libraries=NONE | |
1c710c3c DJ |
909 | |
910 | # Installation directory options. | |
911 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
912 | # and all the variables that are supposed to be based on exec_prefix | |
913 | # by default will actually change. | |
914 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 915 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
916 | bindir='${exec_prefix}/bin' |
917 | sbindir='${exec_prefix}/sbin' | |
918 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
919 | datarootdir='${prefix}/share' |
920 | datadir='${datarootdir}' | |
671aa708 NN |
921 | sysconfdir='${prefix}/etc' |
922 | sharedstatedir='${prefix}/com' | |
923 | localstatedir='${prefix}/var' | |
671aa708 NN |
924 | includedir='${prefix}/include' |
925 | oldincludedir='/usr/include' | |
5213506e RW |
926 | docdir='${datarootdir}/doc/${PACKAGE}' |
927 | infodir='${datarootdir}/info' | |
928 | htmldir='${docdir}' | |
929 | dvidir='${docdir}' | |
930 | pdfdir='${docdir}' | |
931 | psdir='${docdir}' | |
932 | libdir='${exec_prefix}/lib' | |
933 | localedir='${datarootdir}/locale' | |
934 | mandir='${datarootdir}/man' | |
79c06341 | 935 | |
671aa708 | 936 | ac_prev= |
5213506e | 937 | ac_dashdash= |
671aa708 NN |
938 | for ac_option |
939 | do | |
671aa708 NN |
940 | # If the previous option needs an argument, assign it. |
941 | if test -n "$ac_prev"; then | |
5213506e | 942 | eval $ac_prev=\$ac_option |
671aa708 NN |
943 | ac_prev= |
944 | continue | |
945 | fi | |
79c06341 | 946 | |
5213506e | 947 | case $ac_option in |
22e05272 JM |
948 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
949 | *=) ac_optarg= ;; | |
950 | *) ac_optarg=yes ;; | |
5213506e | 951 | esac |
671aa708 NN |
952 | |
953 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
954 | ||
5213506e RW |
955 | case $ac_dashdash$ac_option in |
956 | --) | |
957 | ac_dashdash=yes ;; | |
671aa708 NN |
958 | |
959 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
960 | ac_prev=bindir ;; | |
961 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 962 | bindir=$ac_optarg ;; |
671aa708 NN |
963 | |
964 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 965 | ac_prev=build_alias ;; |
671aa708 | 966 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 967 | build_alias=$ac_optarg ;; |
671aa708 NN |
968 | |
969 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
970 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
971 | ac_prev=cache_file ;; | |
972 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
973 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
974 | cache_file=$ac_optarg ;; |
975 | ||
976 | --config-cache | -C) | |
977 | cache_file=config.cache ;; | |
671aa708 | 978 | |
5213506e | 979 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 980 | ac_prev=datadir ;; |
5213506e | 981 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 982 | datadir=$ac_optarg ;; |
671aa708 | 983 | |
5213506e RW |
984 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
985 | | --dataroo | --dataro | --datar) | |
986 | ac_prev=datarootdir ;; | |
987 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
988 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
989 | datarootdir=$ac_optarg ;; | |
990 | ||
671aa708 | 991 | -disable-* | --disable-*) |
5213506e | 992 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 993 | # Reject names that are not valid shell variable names. |
5213506e | 994 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 995 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
996 | ac_useropt_orig=$ac_useropt |
997 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
998 | case $ac_user_opts in | |
999 | *" | |
1000 | "enable_$ac_useropt" | |
1001 | "*) ;; | |
1002 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1003 | ac_unrecognized_sep=', ';; | |
1004 | esac | |
1005 | eval enable_$ac_useropt=no ;; | |
1006 | ||
1007 | -docdir | --docdir | --docdi | --doc | --do) | |
1008 | ac_prev=docdir ;; | |
1009 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1010 | docdir=$ac_optarg ;; | |
1011 | ||
1012 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1013 | ac_prev=dvidir ;; | |
1014 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1015 | dvidir=$ac_optarg ;; | |
671aa708 NN |
1016 | |
1017 | -enable-* | --enable-*) | |
5213506e | 1018 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
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--enable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1030 | esac |
5213506e | 1031 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1032 | |
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1035 | | --exec | --exe | --ex) | |
1036 | ac_prev=exec_prefix ;; | |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1039 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1040 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1041 | |
1042 | -gas | --gas | --ga | --g) | |
1043 | # Obsolete; use --with-gas. | |
1044 | with_gas=yes ;; | |
1045 | ||
1c710c3c DJ |
1046 | -help | --help | --hel | --he | -h) |
1047 | ac_init_help=long ;; | |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1049 | ac_init_help=recursive ;; | |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1051 | ac_init_help=short ;; | |
671aa708 NN |
1052 | |
1053 | -host | --host | --hos | --ho) | |
1c710c3c | 1054 | ac_prev=host_alias ;; |
671aa708 | 1055 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1056 | host_alias=$ac_optarg ;; |
671aa708 | 1057 | |
5213506e RW |
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1059 | ac_prev=htmldir ;; | |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1061 | | --ht=*) | |
1062 | htmldir=$ac_optarg ;; | |
1063 | ||
671aa708 NN |
1064 | -includedir | --includedir | --includedi | --included | --include \ |
1065 | | --includ | --inclu | --incl | --inc) | |
1066 | ac_prev=includedir ;; | |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1069 | includedir=$ac_optarg ;; |
671aa708 NN |
1070 | |
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1072 | ac_prev=infodir ;; | |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1074 | infodir=$ac_optarg ;; |
671aa708 NN |
1075 | |
1076 | -libdir | --libdir | --libdi | --libd) | |
1077 | ac_prev=libdir ;; | |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1079 | libdir=$ac_optarg ;; |
671aa708 NN |
1080 | |
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1082 | | --libexe | --libex | --libe) | |
1083 | ac_prev=libexecdir ;; | |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1085 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1086 | libexecdir=$ac_optarg ;; |
671aa708 | 1087 | |
5213506e RW |
1088 | -localedir | --localedir | --localedi | --localed | --locale) |
1089 | ac_prev=localedir ;; | |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1091 | localedir=$ac_optarg ;; | |
1092 | ||
671aa708 | 1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1094 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1095 | ac_prev=localstatedir ;; |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1098 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1099 | |
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1101 | ac_prev=mandir ;; | |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1103 | mandir=$ac_optarg ;; |
671aa708 NN |
1104 | |
1105 | -nfp | --nfp | --nf) | |
1106 | # Obsolete; use --without-fp. | |
1107 | with_fp=no ;; | |
1108 | ||
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1110 | | --no-cr | --no-c | -n) |
671aa708 NN |
1111 | no_create=yes ;; |
1112 | ||
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1115 | no_recursion=yes ;; | |
1116 | ||
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1119 | | --oldin | --oldi | --old | --ol | --o) | |
1120 | ac_prev=oldincludedir ;; | |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1124 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1125 | |
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1127 | ac_prev=prefix ;; | |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1129 | prefix=$ac_optarg ;; |
671aa708 NN |
1130 | |
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1132 | | --program-pre | --program-pr | --program-p) | |
1133 | ac_prev=program_prefix ;; | |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1136 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1137 | |
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1139 | | --program-suf | --program-su | --program-s) | |
1140 | ac_prev=program_suffix ;; | |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1143 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1144 | |
1145 | -program-transform-name | --program-transform-name \ | |
1146 | | --program-transform-nam | --program-transform-na \ | |
1147 | | --program-transform-n | --program-transform- \ | |
1148 | | --program-transform | --program-transfor \ | |
1149 | | --program-transfo | --program-transf \ | |
1150 | | --program-trans | --program-tran \ | |
1151 | | --progr-tra | --program-tr | --program-t) | |
1152 | ac_prev=program_transform_name ;; | |
1153 | -program-transform-name=* | --program-transform-name=* \ | |
1154 | | --program-transform-nam=* | --program-transform-na=* \ | |
1155 | | --program-transform-n=* | --program-transform-=* \ | |
1156 | | --program-transform=* | --program-transfor=* \ | |
1157 | | --program-transfo=* | --program-transf=* \ | |
1158 | | --program-trans=* | --program-tran=* \ | |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1160 | program_transform_name=$ac_optarg ;; |
671aa708 | 1161 | |
5213506e RW |
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1163 | ac_prev=pdfdir ;; | |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1165 | pdfdir=$ac_optarg ;; | |
1166 | ||
1167 | -psdir | --psdir | --psdi | --psd | --ps) | |
1168 | ac_prev=psdir ;; | |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1170 | psdir=$ac_optarg ;; | |
1171 | ||
671aa708 NN |
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1173 | | -silent | --silent | --silen | --sile | --sil) | |
1174 | silent=yes ;; | |
1175 | ||
1176 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1177 | ac_prev=sbindir ;; | |
1178 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1179 | | --sbi=* | --sb=*) | |
1c710c3c | 1180 | sbindir=$ac_optarg ;; |
671aa708 NN |
1181 | |
1182 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1183 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1184 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1185 | | --sha | --sh) | |
1186 | ac_prev=sharedstatedir ;; | |
1187 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1188 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1189 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1190 | | --sha=* | --sh=*) | |
1c710c3c | 1191 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1192 | |
1193 | -site | --site | --sit) | |
1194 | ac_prev=site ;; | |
1195 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1196 | site=$ac_optarg ;; |
671aa708 NN |
1197 | |
1198 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1199 | ac_prev=srcdir ;; | |
1200 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1201 | srcdir=$ac_optarg ;; |
671aa708 NN |
1202 | |
1203 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1204 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1205 | ac_prev=sysconfdir ;; | |
1206 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1207 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1208 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1209 | |
1210 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1211 | ac_prev=target_alias ;; |
671aa708 | 1212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1213 | target_alias=$ac_optarg ;; |
671aa708 NN |
1214 | |
1215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1216 | verbose=yes ;; | |
1217 | ||
1c710c3c DJ |
1218 | -version | --version | --versio | --versi | --vers | -V) |
1219 | ac_init_version=: ;; | |
671aa708 NN |
1220 | |
1221 | -with-* | --with-*) | |
5213506e | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1223 | # Reject names that are not valid shell variable names. |
5213506e | 1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1225 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1226 | ac_useropt_orig=$ac_useropt |
1227 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1228 | case $ac_user_opts in | |
1229 | *" | |
1230 | "with_$ac_useropt" | |
1231 | "*) ;; | |
1232 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1233 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1234 | esac |
5213506e | 1235 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1236 | |
1237 | -without-* | --without-*) | |
5213506e | 1238 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1239 | # Reject names that are not valid shell variable names. |
5213506e | 1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1241 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1242 | ac_useropt_orig=$ac_useropt |
1243 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1244 | case $ac_user_opts in | |
1245 | *" | |
1246 | "with_$ac_useropt" | |
1247 | "*) ;; | |
1248 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1249 | ac_unrecognized_sep=', ';; | |
1250 | esac | |
1251 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1252 | |
1253 | --x) | |
1254 | # Obsolete; use --with-x. | |
1255 | with_x=yes ;; | |
1256 | ||
1257 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1258 | | --x-incl | --x-inc | --x-in | --x-i) | |
1259 | ac_prev=x_includes ;; | |
1260 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1261 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1262 | x_includes=$ac_optarg ;; |
671aa708 NN |
1263 | |
1264 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1265 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1266 | ac_prev=x_libraries ;; | |
1267 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1268 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1269 | x_libraries=$ac_optarg ;; |
671aa708 | 1270 | |
22e05272 JM |
1271 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1272 | Try \`$0 --help' for more information" | |
671aa708 NN |
1273 | ;; |
1274 | ||
1c710c3c DJ |
1275 | *=*) |
1276 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1277 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1278 | case $ac_envvar in #( |
1279 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1280 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1281 | esac |
1282 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1283 | export $ac_envvar ;; |
1284 | ||
671aa708 | 1285 | *) |
1c710c3c | 1286 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1287 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1288 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1289 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1290 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
671aa708 NN |
1291 | ;; |
1292 | ||
1293 | esac | |
1294 | done | |
1295 | ||
1296 | if test -n "$ac_prev"; then | |
1c710c3c | 1297 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
22e05272 | 1298 | as_fn_error $? "missing argument to $ac_option" |
af71363e | 1299 | fi |
af71363e | 1300 | |
5213506e RW |
1301 | if test -n "$ac_unrecognized_opts"; then |
1302 | case $enable_option_checking in | |
1303 | no) ;; | |
22e05272 | 1304 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1305 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2aeb72e9 | 1306 | esac |
5213506e | 1307 | fi |
2aeb72e9 | 1308 | |
5213506e RW |
1309 | # Check all directory arguments for consistency. |
1310 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1311 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1312 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1313 | libdir localedir mandir | |
2aeb72e9 | 1314 | do |
5213506e RW |
1315 | eval ac_val=\$$ac_var |
1316 | # Remove trailing slashes. | |
1317 | case $ac_val in | |
1318 | */ ) | |
1319 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1320 | eval $ac_var=\$ac_val;; | |
1321 | esac | |
1322 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1323 | case $ac_val in |
5213506e RW |
1324 | [\\/$]* | ?:[\\/]* ) continue;; |
1325 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1326 | esac |
22e05272 | 1327 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1328 | done |
1329 | ||
1c710c3c DJ |
1330 | # There might be people who depend on the old broken behavior: `$host' |
1331 | # used to hold the argument of --host etc. | |
1332 | # FIXME: To remove some day. | |
1333 | build=$build_alias | |
1334 | host=$host_alias | |
1335 | target=$target_alias | |
0b0dc272 | 1336 | |
1c710c3c DJ |
1337 | # FIXME: To remove some day. |
1338 | if test "x$host_alias" != x; then | |
1339 | if test "x$build_alias" = x; then | |
1340 | cross_compiling=maybe | |
1c710c3c DJ |
1341 | elif test "x$build_alias" != "x$host_alias"; then |
1342 | cross_compiling=yes | |
1343 | fi | |
1344 | fi | |
1345 | ||
1346 | ac_tool_prefix= | |
1347 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1348 | ||
1349 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1350 | |
671aa708 | 1351 | |
5213506e RW |
1352 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1353 | ac_ls_di=`ls -di .` && | |
1354 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1355 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1356 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1357 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1358 | |
1359 | ||
671aa708 NN |
1360 | # Find the source files, if location was not specified. |
1361 | if test -z "$srcdir"; then | |
1362 | ac_srcdir_defaulted=yes | |
5213506e RW |
1363 | # Try the directory containing this script, then the parent directory. |
1364 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1365 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1366 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1367 | X"$as_myself" : 'X\(//\)$' \| \ | |
1368 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1369 | $as_echo X"$as_myself" | | |
1370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\/\)[^/].*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)$/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\).*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | s/.*/./; q'` | |
671aa708 | 1387 | srcdir=$ac_confdir |
5213506e | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1389 | srcdir=.. |
1390 | fi | |
1391 | else | |
1392 | ac_srcdir_defaulted=no | |
1393 | fi | |
5213506e RW |
1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
1395 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1396 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1397 | fi |
1398 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1399 | ac_abs_confdir=`( | |
22e05272 | 1400 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1401 | pwd)` |
1402 | # When building in place, set srcdir=. | |
1403 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1404 | srcdir=. | |
1405 | fi | |
1406 | # Remove unnecessary trailing slashes from srcdir. | |
1407 | # Double slashes in file names in object file debugging info | |
1408 | # mess up M-x gdb in Emacs. | |
1409 | case $srcdir in | |
1410 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1411 | esac | |
87841584 AM |
1412 | case $srcdir in |
1413 | *" "*) | |
22e05272 | 1414 | as_fn_error $? "path to source, $srcdir, contains spaces" |
87841584 AM |
1415 | ;; |
1416 | esac | |
ac9e6043 RW |
1417 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1418 | ||
5213506e RW |
1419 | for ac_var in $ac_precious_vars; do |
1420 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1421 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1422 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1423 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1424 | done | |
1c710c3c DJ |
1425 | |
1426 | # | |
1427 | # Report the --help message. | |
1428 | # | |
1429 | if test "$ac_init_help" = "long"; then | |
1430 | # Omit some internal or obsolete options to make the list less imposing. | |
1431 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1432 | cat <<_ACEOF | |
1433 | \`configure' configures this package to adapt to many kinds of systems. | |
1434 | ||
1435 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1436 | ||
1437 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1438 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1439 | ||
1440 | Defaults for the options are specified in brackets. | |
1441 | ||
1442 | Configuration: | |
1443 | -h, --help display this help and exit | |
1444 | --help=short display options specific to this package | |
1445 | --help=recursive display the short help of all the included packages | |
1446 | -V, --version display version information and exit | |
22e05272 | 1447 | -q, --quiet, --silent do not print \`checking ...' messages |
1c710c3c DJ |
1448 | --cache-file=FILE cache test results in FILE [disabled] |
1449 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1450 | -n, --no-create do not create output files | |
1451 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1452 | ||
1c710c3c DJ |
1453 | Installation directories: |
1454 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1455 | [$ac_default_prefix] |
1c710c3c | 1456 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1457 | [PREFIX] |
1c710c3c DJ |
1458 | |
1459 | By default, \`make install' will install all the files in | |
1460 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1461 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1462 | for instance \`--prefix=\$HOME'. | |
1463 | ||
1464 | For better control, use the options below. | |
1465 | ||
1466 | Fine tuning of the installation directories: | |
5213506e RW |
1467 | --bindir=DIR user executables [EPREFIX/bin] |
1468 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1469 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1470 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1471 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1472 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1473 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1474 | --includedir=DIR C header files [PREFIX/include] | |
1475 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1476 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1477 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1478 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1479 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1480 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1481 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1482 | --htmldir=DIR html documentation [DOCDIR] | |
1483 | --dvidir=DIR dvi documentation [DOCDIR] | |
1484 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1485 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1486 | _ACEOF |
1487 | ||
1488 | cat <<\_ACEOF | |
1489 | ||
1490 | Program names: | |
1491 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1492 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1493 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1494 | ||
1495 | System types: | |
1496 | --build=BUILD configure for building on BUILD [guessed] | |
1497 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1498 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1499 | _ACEOF | |
1500 | fi | |
1501 | ||
1502 | if test -n "$ac_init_help"; then | |
1503 | ||
1504 | cat <<\_ACEOF | |
1505 | ||
1506 | Optional Features: | |
5213506e | 1507 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1508 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1509 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1510 | --enable-as-accelerator-for=ARG |
1511 | build as offload target compiler. Specify offload | |
1512 | host triple by ARG | |
1513 | --enable-offload-targets=LIST | |
1514 | enable offloading to devices from comma-separated | |
1515 | LIST of TARGET[=DIR]. Use optional path to find | |
1516 | offload target compiler during the build | |
21539e2e | 1517 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1518 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1519 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1520 | Enable compressed debug sections for gas, gold or ld |
1521 | by default | |
87e6d9dc TB |
1522 | --disable-libquadmath do not build libquadmath directory |
1523 | --disable-libquadmath-support | |
1524 | disable libquadmath support for Fortran | |
30b74385 RW |
1525 | --enable-libada build libada directory |
1526 | --enable-libssp build libssp directory | |
1873ec0c | 1527 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1528 | --enable-liboffloadmic=ARG |
1529 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1530 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1531 | --disable-isl-version-check |
560d18d3 | 1532 | disable check for isl version |
d7f09764 | 1533 | --enable-lto enable link time optimization support |
45b3824d TS |
1534 | --enable-linker-plugin-configure-flags=FLAGS |
1535 | additional flags for configuring linker plugins | |
1536 | [none] | |
1537 | --enable-linker-plugin-flags=FLAGS | |
1538 | additional flags for configuring and building linker | |
1539 | plugins [none] | |
cdfee50a | 1540 | --enable-host-shared build host code as shared libraries |
33e39b66 AS |
1541 | --enable-stage1-languages[=all] |
1542 | choose additional languages to build during stage1. | |
1543 | Mostly useful for compiler development | |
43c40f3e RO |
1544 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1545 | Objective-C runtime | |
318a4e6d | 1546 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1547 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1548 | force sequential configuration of sub-packages for |
1549 | the host, target or build machine, or all | |
1550 | sub-packages | |
1551 | --enable-maintainer-mode | |
1552 | enable make rules and dependencies not useful (and | |
1553 | sometimes confusing) to the casual installer | |
1554 | --enable-stage1-checking[=all] | |
1555 | choose additional checking for stage1 of the | |
1556 | compiler | |
1c710c3c DJ |
1557 | --enable-werror enable -Werror in bootstrap stage2 and later |
1558 | ||
1559 | Optional Packages: | |
1560 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1561 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1562 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1563 | --with-system-zlib use installed libz |
33e39b66 AS |
1564 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1565 | Equivalent to --with-mpc-include=PATH/include plus | |
1566 | --with-mpc-lib=PATH/lib | |
1567 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1568 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1569 | --with-mpfr-dir=PATH this option has been REMOVED |
1570 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1571 | Equivalent to --with-mpfr-include=PATH/include plus |
1572 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1573 | --with-mpfr-include=PATH |
30b74385 RW |
1574 | specify directory for installed MPFR include files |
1575 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1576 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1577 | --with-gmp=PATH specify prefix directory for the installed GMP |
1578 | package. Equivalent to | |
1579 | --with-gmp-include=PATH/include plus | |
1580 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1581 | --with-gmp-include=PATH specify directory for installed GMP include files |
1582 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1583 | --with-stage1-libs=LIBS libraries for stage1 |
aac9103b TT |
1584 | --with-static-standard-libraries |
1585 | use -static-libstdc++ and -static-libgcc | |
1586 | (default=auto) | |
33e39b66 AS |
1587 | --with-stage1-ldflags=FLAGS |
1588 | linker flags for stage1 | |
33e39b66 AS |
1589 | --with-boot-libs=LIBS libraries for stage2 and later |
1590 | --with-boot-ldflags=FLAGS | |
1591 | linker flags for stage2 and later | |
e357a5e0 | 1592 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1593 | package. Equivalent to |
33ad93b9 RG |
1594 | --with-isl-include=PATH/include plus |
1595 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1596 | --with-isl-include=PATH Specify directory for installed isl include files |
1597 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1598 | --with-target-bdw-gc=PATHLIST |
1599 | specify prefix directory for installed bdw-gc | |
1600 | package. Equivalent to | |
1601 | --with-target-bdw-gc-include=PATH/include plus | |
1602 | --with-target-bdw-gc-lib=PATH/lib | |
1603 | --with-target-bdw-gc-include=PATHLIST | |
1604 | specify directories for installed bdw-gc include | |
1605 | files | |
1606 | --with-target-bdw-gc-lib=PATHLIST | |
1607 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1608 | --with-gcc-major-version-only |
1609 | use only GCC major number in filesystem paths | |
30b74385 | 1610 | --with-build-sysroot=SYSROOT |
1c710c3c | 1611 | use sysroot as the system root during the build |
c8aea42c | 1612 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1613 | map A to B, C to D ... in debug information |
1614 | --with-build-config='NAME NAME2...' | |
1615 | use config/NAME.mk build configuration | |
30b74385 | 1616 | --with-build-time-tools=PATH |
1c710c3c | 1617 | use given path to find target tools during the build |
1c710c3c DJ |
1618 | |
1619 | Some influential environment variables: | |
1620 | CC C compiler command | |
1621 | CFLAGS C compiler flags | |
1622 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1623 | nonstandard directory <lib dir> | |
5213506e | 1624 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1625 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1626 | you have headers in a nonstandard directory <include dir> |
c3a86da9 DJ |
1627 | CXX C++ compiler command |
1628 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1629 | build_configargs |
1630 | additional configure arguments for build directories | |
1631 | host_configargs | |
1632 | additional configure arguments for host directories | |
1633 | target_configargs | |
1634 | additional configure arguments for target directories | |
278a7a38 AO |
1635 | AR AR for the host |
1636 | AS AS for the host | |
1637 | DLLTOOL DLLTOOL for the host | |
1638 | LD LD for the host | |
1639 | LIPO LIPO for the host | |
1640 | NM NM for the host | |
1641 | RANLIB RANLIB for the host | |
1642 | STRIP STRIP for the host | |
1643 | WINDRES WINDRES for the host | |
901119ae | 1644 | WINDMC WINDMC for the host |
278a7a38 AO |
1645 | OBJCOPY OBJCOPY for the host |
1646 | OBJDUMP OBJDUMP for the host | |
e4a9a572 | 1647 | OTOOL OTOOL for the host |
e7a82751 | 1648 | READELF READELF for the host |
278a7a38 AO |
1649 | CC_FOR_TARGET |
1650 | CC for the target | |
1651 | CXX_FOR_TARGET | |
1652 | CXX for the target | |
1653 | GCC_FOR_TARGET | |
1654 | GCC for the target | |
278a7a38 AO |
1655 | GFORTRAN_FOR_TARGET |
1656 | GFORTRAN for the target | |
632e2a07 ILT |
1657 | GOC_FOR_TARGET |
1658 | GOC for the target | |
b4c522fa IB |
1659 | GDC_FOR_TARGET |
1660 | GDC for the target | |
278a7a38 AO |
1661 | AR_FOR_TARGET |
1662 | AR for the target | |
1663 | AS_FOR_TARGET | |
1664 | AS for the target | |
1665 | DLLTOOL_FOR_TARGET | |
1666 | DLLTOOL for the target | |
1667 | LD_FOR_TARGET | |
1668 | LD for the target | |
1669 | LIPO_FOR_TARGET | |
1670 | LIPO for the target | |
1671 | NM_FOR_TARGET | |
1672 | NM for the target | |
9bccfdf5 AP |
1673 | OBJCOPY_FOR_TARGET |
1674 | OBJCOPY for the target | |
278a7a38 AO |
1675 | OBJDUMP_FOR_TARGET |
1676 | OBJDUMP for the target | |
e4a9a572 IS |
1677 | OTOOL_FOR_TARGET |
1678 | OTOOL for the target | |
278a7a38 AO |
1679 | RANLIB_FOR_TARGET |
1680 | RANLIB for the target | |
e7a82751 RM |
1681 | READELF_FOR_TARGET |
1682 | READELF for the target | |
278a7a38 AO |
1683 | STRIP_FOR_TARGET |
1684 | STRIP for the target | |
1685 | WINDRES_FOR_TARGET | |
1686 | WINDRES for the target | |
901119ae KT |
1687 | WINDMC_FOR_TARGET |
1688 | WINDMC for the target | |
1c710c3c DJ |
1689 | |
1690 | Use these variables to override the choices made by `configure' or to help | |
1691 | it to find libraries and programs with nonstandard names/locations. | |
1692 | ||
5213506e | 1693 | Report bugs to the package provider. |
1c710c3c | 1694 | _ACEOF |
5213506e | 1695 | ac_status=$? |
1c710c3c DJ |
1696 | fi |
1697 | ||
1698 | if test "$ac_init_help" = "recursive"; then | |
1699 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1700 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1701 | test -d "$ac_dir" || |
1702 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1703 | continue | |
1c710c3c DJ |
1704 | ac_builddir=. |
1705 | ||
5213506e RW |
1706 | case "$ac_dir" in |
1707 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1708 | *) | |
1709 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1710 | # A ".." for each directory in $ac_dir_suffix. | |
1711 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1712 | case $ac_top_builddir_sub in | |
1713 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1714 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1715 | esac ;; | |
1716 | esac | |
1717 | ac_abs_top_builddir=$ac_pwd | |
1718 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1719 | # for backward compatibility: | |
1720 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1721 | |
1722 | case $srcdir in | |
5213506e | 1723 | .) # We are building in place. |
1c710c3c | 1724 | ac_srcdir=. |
5213506e RW |
1725 | ac_top_srcdir=$ac_top_builddir_sub |
1726 | ac_abs_top_srcdir=$ac_pwd ;; | |
1727 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1728 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1729 | ac_top_srcdir=$srcdir |
1730 | ac_abs_top_srcdir=$srcdir ;; | |
1731 | *) # Relative name. | |
1732 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1733 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1734 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1735 | esac |
5213506e RW |
1736 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1737 | ||
1738 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1739 | # Check for guested configure. | |
1740 | if test -f "$ac_srcdir/configure.gnu"; then | |
1741 | echo && | |
1742 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1743 | elif test -f "$ac_srcdir/configure"; then | |
1744 | echo && | |
1745 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1746 | else |
5213506e RW |
1747 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1748 | fi || ac_status=$? | |
1749 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1750 | done |
1751 | fi | |
1752 | ||
5213506e | 1753 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1754 | if $ac_init_version; then |
1755 | cat <<\_ACEOF | |
5213506e | 1756 | configure |
22e05272 | 1757 | generated by GNU Autoconf 2.69 |
1c710c3c | 1758 | |
22e05272 | 1759 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
1760 | This configure script is free software; the Free Software Foundation |
1761 | gives unlimited permission to copy, distribute and modify it. | |
1762 | _ACEOF | |
5213506e | 1763 | exit |
0b0dc272 | 1764 | fi |
5213506e RW |
1765 | |
1766 | ## ------------------------ ## | |
1767 | ## Autoconf initialization. ## | |
1768 | ## ------------------------ ## | |
1769 | ||
1770 | # ac_fn_c_try_compile LINENO | |
1771 | # -------------------------- | |
1772 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1773 | ac_fn_c_try_compile () | |
1774 | { | |
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1776 | rm -f conftest.$ac_objext | |
1777 | if { { ac_try="$ac_compile" | |
1778 | case "(($ac_try" in | |
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1780 | *) ac_try_echo=$ac_try;; | |
1781 | esac | |
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1783 | $as_echo "$ac_try_echo"; } >&5 | |
1784 | (eval "$ac_compile") 2>conftest.err | |
1785 | ac_status=$? | |
1786 | if test -s conftest.err; then | |
1787 | grep -v '^ *+' conftest.err >conftest.er1 | |
1788 | cat conftest.er1 >&5 | |
1789 | mv -f conftest.er1 conftest.err | |
1790 | fi | |
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1792 | test $ac_status = 0; } && { | |
1793 | test -z "$ac_c_werror_flag" || | |
1794 | test ! -s conftest.err | |
1795 | } && test -s conftest.$ac_objext; then : | |
1796 | ac_retval=0 | |
1797 | else | |
1798 | $as_echo "$as_me: failed program was:" >&5 | |
1799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1800 | ||
1801 | ac_retval=1 | |
1802 | fi | |
22e05272 JM |
1803 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1804 | as_fn_set_status $ac_retval | |
5213506e RW |
1805 | |
1806 | } # ac_fn_c_try_compile | |
1807 | ||
1808 | # ac_fn_cxx_try_compile LINENO | |
1809 | # ---------------------------- | |
1810 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1811 | ac_fn_cxx_try_compile () | |
1812 | { | |
1813 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1814 | rm -f conftest.$ac_objext | |
1815 | if { { ac_try="$ac_compile" | |
1816 | case "(($ac_try" in | |
1817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1818 | *) ac_try_echo=$ac_try;; | |
1819 | esac | |
1820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1821 | $as_echo "$ac_try_echo"; } >&5 | |
1822 | (eval "$ac_compile") 2>conftest.err | |
1823 | ac_status=$? | |
1824 | if test -s conftest.err; then | |
1825 | grep -v '^ *+' conftest.err >conftest.er1 | |
1826 | cat conftest.er1 >&5 | |
1827 | mv -f conftest.er1 conftest.err | |
1828 | fi | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; } && { | |
1831 | test -z "$ac_cxx_werror_flag" || | |
1832 | test ! -s conftest.err | |
1833 | } && test -s conftest.$ac_objext; then : | |
1834 | ac_retval=0 | |
1835 | else | |
1836 | $as_echo "$as_me: failed program was:" >&5 | |
1837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1838 | ||
1839 | ac_retval=1 | |
1840 | fi | |
22e05272 JM |
1841 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1842 | as_fn_set_status $ac_retval | |
5213506e RW |
1843 | |
1844 | } # ac_fn_cxx_try_compile | |
1845 | ||
0b21f5d3 EB |
1846 | # ac_fn_cxx_try_link LINENO |
1847 | # ------------------------- | |
1848 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1849 | ac_fn_cxx_try_link () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1853 | if { { ac_try="$ac_link" | |
1854 | case "(($ac_try" in | |
1855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1856 | *) ac_try_echo=$ac_try;; | |
1857 | esac | |
1858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1859 | $as_echo "$ac_try_echo"; } >&5 | |
1860 | (eval "$ac_link") 2>conftest.err | |
1861 | ac_status=$? | |
1862 | if test -s conftest.err; then | |
1863 | grep -v '^ *+' conftest.err >conftest.er1 | |
1864 | cat conftest.er1 >&5 | |
1865 | mv -f conftest.er1 conftest.err | |
1866 | fi | |
1867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1868 | test $ac_status = 0; } && { | |
1869 | test -z "$ac_cxx_werror_flag" || | |
1870 | test ! -s conftest.err | |
1871 | } && test -s conftest$ac_exeext && { | |
1872 | test "$cross_compiling" = yes || | |
22e05272 | 1873 | test -x conftest$ac_exeext |
0b21f5d3 EB |
1874 | }; then : |
1875 | ac_retval=0 | |
1876 | else | |
1877 | $as_echo "$as_me: failed program was:" >&5 | |
1878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1879 | ||
1880 | ac_retval=1 | |
1881 | fi | |
1882 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1883 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1884 | # interfere with the next link command; also delete a directory that is | |
1885 | # left behind by Apple's compiler. We do this before executing the actions. | |
1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1887 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1888 | as_fn_set_status $ac_retval | |
0b21f5d3 EB |
1889 | |
1890 | } # ac_fn_cxx_try_link | |
1891 | ||
5213506e RW |
1892 | # ac_fn_c_try_link LINENO |
1893 | # ----------------------- | |
1894 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1895 | ac_fn_c_try_link () | |
1896 | { | |
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1899 | if { { ac_try="$ac_link" | |
1900 | case "(($ac_try" in | |
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1902 | *) ac_try_echo=$ac_try;; | |
1903 | esac | |
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1905 | $as_echo "$ac_try_echo"; } >&5 | |
1906 | (eval "$ac_link") 2>conftest.err | |
1907 | ac_status=$? | |
1908 | if test -s conftest.err; then | |
1909 | grep -v '^ *+' conftest.err >conftest.er1 | |
1910 | cat conftest.er1 >&5 | |
1911 | mv -f conftest.er1 conftest.err | |
1912 | fi | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; } && { | |
1915 | test -z "$ac_c_werror_flag" || | |
1916 | test ! -s conftest.err | |
1917 | } && test -s conftest$ac_exeext && { | |
1918 | test "$cross_compiling" = yes || | |
22e05272 | 1919 | test -x conftest$ac_exeext |
5213506e RW |
1920 | }; then : |
1921 | ac_retval=0 | |
1922 | else | |
1923 | $as_echo "$as_me: failed program was:" >&5 | |
1924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1925 | ||
1926 | ac_retval=1 | |
1927 | fi | |
1928 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1929 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1930 | # interfere with the next link command; also delete a directory that is | |
1931 | # left behind by Apple's compiler. We do this before executing the actions. | |
1932 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1934 | as_fn_set_status $ac_retval | |
5213506e RW |
1935 | |
1936 | } # ac_fn_c_try_link | |
1937 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1938 | This file contains any messages produced by compilers while |
1939 | running configure, to aid debugging if configure makes a mistake. | |
1940 | ||
1941 | It was created by $as_me, which was | |
22e05272 | 1942 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
1943 | |
1944 | $ $0 $@ | |
1945 | ||
1946 | _ACEOF | |
5213506e | 1947 | exec 5>>config.log |
1c710c3c DJ |
1948 | { |
1949 | cat <<_ASUNAME | |
1950 | ## --------- ## | |
1951 | ## Platform. ## | |
1952 | ## --------- ## | |
1953 | ||
1954 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1955 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1956 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1957 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1958 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1959 | ||
1960 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1961 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1962 | ||
1963 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1964 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1965 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1966 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1967 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1968 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1969 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1970 | ||
1971 | _ASUNAME | |
1972 | ||
1973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1974 | for as_dir in $PATH | |
1975 | do | |
1976 | IFS=$as_save_IFS | |
1977 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1978 | $as_echo "PATH: $as_dir" |
1979 | done | |
1980 | IFS=$as_save_IFS | |
1c710c3c DJ |
1981 | |
1982 | } >&5 | |
1983 | ||
1984 | cat >&5 <<_ACEOF | |
1985 | ||
1986 | ||
1987 | ## ----------- ## | |
1988 | ## Core tests. ## | |
1989 | ## ----------- ## | |
1990 | ||
1991 | _ACEOF | |
1992 | ||
1993 | ||
1994 | # Keep a trace of the command line. | |
1995 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1996 | # Strip out --silent because we don't want to record it for future runs. | |
1997 | # Also quote any args containing shell meta-characters. | |
1998 | # Make two passes to allow for proper duplicate-argument suppression. | |
1999 | ac_configure_args= | |
2000 | ac_configure_args0= | |
2001 | ac_configure_args1= | |
1c710c3c DJ |
2002 | ac_must_keep_next=false |
2003 | for ac_pass in 1 2 | |
2004 | do | |
2005 | for ac_arg | |
2006 | do | |
2007 | case $ac_arg in | |
2008 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2009 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2010 | | -silent | --silent | --silen | --sile | --sil) | |
2011 | continue ;; | |
5213506e RW |
2012 | *\'*) |
2013 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
2014 | esac |
2015 | case $ac_pass in | |
5213506e | 2016 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 2017 | 2) |
5213506e | 2018 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
2019 | if test $ac_must_keep_next = true; then |
2020 | ac_must_keep_next=false # Got value, back to normal. | |
2021 | else | |
2022 | case $ac_arg in | |
2023 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2024 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2025 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2026 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2027 | case "$ac_configure_args0 " in | |
2028 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2029 | esac | |
2030 | ;; | |
2031 | -* ) ac_must_keep_next=true ;; | |
2032 | esac | |
2033 | fi | |
5213506e | 2034 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
2035 | ;; |
2036 | esac | |
2037 | done | |
2038 | done | |
5213506e RW |
2039 | { ac_configure_args0=; unset ac_configure_args0;} |
2040 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
2041 | |
2042 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2043 | # config.log. We remove comments because anyway the quotes in there | |
2044 | # would cause problems or look ugly. | |
5213506e RW |
2045 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2046 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2047 | trap 'exit_status=$? |
2048 | # Save into config.log some information that might help in debugging. | |
2049 | { | |
2050 | echo | |
2051 | ||
22e05272 | 2052 | $as_echo "## ---------------- ## |
1c710c3c | 2053 | ## Cache variables. ## |
22e05272 | 2054 | ## ---------------- ##" |
1c710c3c DJ |
2055 | echo |
2056 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2057 | ( |
2058 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2059 | eval ac_val=\$$ac_var | |
2060 | case $ac_val in #( | |
2061 | *${as_nl}*) | |
2062 | case $ac_var in #( | |
2063 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2064 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2065 | esac | |
2066 | case $ac_var in #( | |
2067 | _ | IFS | as_nl) ;; #( | |
2068 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2069 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2070 | esac ;; | |
2071 | esac | |
2072 | done | |
1c710c3c | 2073 | (set) 2>&1 | |
5213506e RW |
2074 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2075 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2076 | sed -n \ |
5213506e RW |
2077 | "s/'\''/'\''\\\\'\'''\''/g; |
2078 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2079 | ;; #( | |
1c710c3c | 2080 | *) |
5213506e | 2081 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2082 | ;; |
5213506e RW |
2083 | esac | |
2084 | sort | |
2085 | ) | |
1c710c3c DJ |
2086 | echo |
2087 | ||
22e05272 | 2088 | $as_echo "## ----------------- ## |
1c710c3c | 2089 | ## Output variables. ## |
22e05272 | 2090 | ## ----------------- ##" |
1c710c3c DJ |
2091 | echo |
2092 | for ac_var in $ac_subst_vars | |
2093 | do | |
5213506e RW |
2094 | eval ac_val=\$$ac_var |
2095 | case $ac_val in | |
2096 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2097 | esac | |
2098 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2099 | done | sort |
2100 | echo | |
2101 | ||
2102 | if test -n "$ac_subst_files"; then | |
22e05272 | 2103 | $as_echo "## ------------------- ## |
5213506e | 2104 | ## File substitutions. ## |
22e05272 | 2105 | ## ------------------- ##" |
1c710c3c DJ |
2106 | echo |
2107 | for ac_var in $ac_subst_files | |
2108 | do | |
5213506e RW |
2109 | eval ac_val=\$$ac_var |
2110 | case $ac_val in | |
2111 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2112 | esac | |
2113 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2114 | done | sort |
2115 | echo | |
2116 | fi | |
2117 | ||
2118 | if test -s confdefs.h; then | |
22e05272 | 2119 | $as_echo "## ----------- ## |
1c710c3c | 2120 | ## confdefs.h. ## |
22e05272 | 2121 | ## ----------- ##" |
1c710c3c | 2122 | echo |
5213506e | 2123 | cat confdefs.h |
1c710c3c DJ |
2124 | echo |
2125 | fi | |
2126 | test "$ac_signal" != 0 && | |
5213506e RW |
2127 | $as_echo "$as_me: caught signal $ac_signal" |
2128 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2129 | } >&5 |
5213506e RW |
2130 | rm -f core *.core core.conftest.* && |
2131 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2132 | exit $exit_status |
5213506e | 2133 | ' 0 |
1c710c3c | 2134 | for ac_signal in 1 2 13 15; do |
5213506e | 2135 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2136 | done |
2137 | ac_signal=0 | |
2138 | ||
2139 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2140 | rm -f -r conftest* confdefs.h |
2141 | ||
2142 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2143 | |
2144 | # Predefined preprocessor variables. | |
2145 | ||
2146 | cat >>confdefs.h <<_ACEOF | |
2147 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2148 | _ACEOF | |
2149 | ||
1c710c3c DJ |
2150 | cat >>confdefs.h <<_ACEOF |
2151 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2152 | _ACEOF | |
2153 | ||
1c710c3c DJ |
2154 | cat >>confdefs.h <<_ACEOF |
2155 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2156 | _ACEOF | |
0b0dc272 | 2157 | |
1c710c3c DJ |
2158 | cat >>confdefs.h <<_ACEOF |
2159 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2160 | _ACEOF | |
2161 | ||
1c710c3c DJ |
2162 | cat >>confdefs.h <<_ACEOF |
2163 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2164 | _ACEOF | |
2165 | ||
5213506e RW |
2166 | cat >>confdefs.h <<_ACEOF |
2167 | #define PACKAGE_URL "$PACKAGE_URL" | |
2168 | _ACEOF | |
2169 | ||
1c710c3c DJ |
2170 | |
2171 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2172 | # Prefer an explicitly selected file to automatically selected ones. |
2173 | ac_site_file1=NONE | |
2174 | ac_site_file2=NONE | |
2175 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2176 | # We do not want a PATH search for config.site. |
2177 | case $CONFIG_SITE in #(( | |
2178 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2179 | */*) ac_site_file1=$CONFIG_SITE;; | |
2180 | *) ac_site_file1=./$CONFIG_SITE;; | |
2181 | esac | |
5213506e RW |
2182 | elif test "x$prefix" != xNONE; then |
2183 | ac_site_file1=$prefix/share/config.site | |
2184 | ac_site_file2=$prefix/etc/config.site | |
2185 | else | |
2186 | ac_site_file1=$ac_default_prefix/share/config.site | |
2187 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2188 | fi |
5213506e RW |
2189 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2190 | do | |
2191 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2192 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2194 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2195 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2196 | . "$ac_site_file" \ |
2197 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2199 | as_fn_error $? "failed to load site script $ac_site_file | |
2200 | See \`config.log' for more details" "$LINENO" 5; } | |
671aa708 NN |
2201 | fi |
2202 | done | |
2203 | ||
2204 | if test -r "$cache_file"; then | |
22e05272 JM |
2205 | # Some versions of bash will fail to source /dev/null (special files |
2206 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2207 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2209 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2210 | case $cache_file in |
5213506e RW |
2211 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2212 | *) . "./$cache_file";; | |
1c710c3c DJ |
2213 | esac |
2214 | fi | |
671aa708 | 2215 | else |
5213506e RW |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2217 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2218 | >$cache_file |
2219 | fi | |
2220 | ||
2221 | # Check that the precious variables saved in the cache have kept the same | |
2222 | # value. | |
2223 | ac_cache_corrupted=false | |
5213506e | 2224 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2225 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2226 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2227 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2228 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2229 | case $ac_old_set,$ac_new_set in |
2230 | set,) | |
5213506e RW |
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2232 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2233 | ac_cache_corrupted=: ;; |
2234 | ,set) | |
5213506e RW |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2236 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2237 | ac_cache_corrupted=: ;; |
2238 | ,);; | |
2239 | *) | |
2240 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2241 | # differences in whitespace do not lead to failure. |
2242 | ac_old_val_w=`echo x $ac_old_val` | |
2243 | ac_new_val_w=`echo x $ac_new_val` | |
2244 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2246 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2247 | ac_cache_corrupted=: | |
2248 | else | |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2250 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2251 | eval $ac_var=\$ac_old_val | |
2252 | fi | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2254 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2256 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2257 | fi;; |
2258 | esac | |
2259 | # Pass precious variables to config.status. | |
2260 | if test "$ac_new_set" = set; then | |
2261 | case $ac_new_val in | |
5213506e | 2262 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2263 | *) ac_arg=$ac_var=$ac_new_val ;; |
2264 | esac | |
2265 | case " $ac_configure_args " in | |
2266 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2267 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2268 | esac |
2269 | fi | |
2270 | done | |
2271 | if $ac_cache_corrupted; then | |
5213506e RW |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2273 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2275 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2276 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
671aa708 | 2277 | fi |
5213506e RW |
2278 | ## -------------------- ## |
2279 | ## Main body of script. ## | |
2280 | ## -------------------- ## | |
671aa708 | 2281 | |
2aeb72e9 DD |
2282 | ac_ext=c |
2283 | ac_cpp='$CPP $CPPFLAGS' | |
2284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2287 | ||
1c710c3c DJ |
2288 | |
2289 | ||
2290 | ||
1c710c3c DJ |
2291 | |
2292 | ||
0115d4a3 | 2293 | |
1c710c3c | 2294 | |
ad33ff57 RW |
2295 | progname=$0 |
2296 | # if PWD already has a value, it is probably wrong. | |
2297 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2298 | ||
2299 | # Export original configure arguments for use by sub-configures. | |
2300 | # Quote arguments with shell meta charatcers. | |
2301 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2302 | set -- "$progname" "$@" | |
2303 | for ac_arg | |
2304 | do | |
2305 | case "$ac_arg" in | |
2306 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2307 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2308 | # if the argument is of the form -foo=baz, quote the baz part only | |
2309 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2310 | *) ;; | |
2311 | esac | |
2312 | # Add the quoted argument to the list. | |
2313 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2314 | done | |
2315 | if test "$silent" = yes; then | |
2316 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2317 | fi | |
2318 | # Remove the initial space we just introduced and, as these will be | |
2319 | # expanded by make, quote '$'. | |
2320 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2321 | ||
1c710c3c DJ |
2322 | |
2323 | # Find the build, host, and target systems. | |
671aa708 | 2324 | ac_aux_dir= |
5213506e | 2325 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
22e05272 JM |
2326 | if test -f "$ac_dir/install-sh"; then |
2327 | ac_aux_dir=$ac_dir | |
2328 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2329 | break | |
2330 | elif test -f "$ac_dir/install.sh"; then | |
2331 | ac_aux_dir=$ac_dir | |
2332 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2333 | break | |
2334 | elif test -f "$ac_dir/shtool"; then | |
2335 | ac_aux_dir=$ac_dir | |
2336 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2337 | break | |
2338 | fi | |
671aa708 NN |
2339 | done |
2340 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2341 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2342 | fi |
5213506e RW |
2343 | |
2344 | # These three variables are undocumented and unsupported, | |
2345 | # and are intended to be withdrawn in a future Autoconf release. | |
2346 | # They can cause serious problems if a builder's source tree is in a directory | |
2347 | # whose full name contains unusual characters. | |
2348 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2349 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2350 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2351 | ||
671aa708 | 2352 | |
1c710c3c | 2353 | # Make sure we can run config.sub. |
5213506e | 2354 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
22e05272 | 2355 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2356 | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2358 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2359 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2360 | $as_echo_n "(cached) " >&6 |
2361 | else | |
2362 | ac_build_alias=$build_alias | |
2363 | test "x$ac_build_alias" = x && | |
2364 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2365 | test "x$ac_build_alias" = x && | |
22e05272 | 2366 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2367 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2368 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2369 | |
2370 | fi | |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2372 | $as_echo "$ac_cv_build" >&6; } | |
2373 | case $ac_cv_build in | |
2374 | *-*-*) ;; | |
22e05272 | 2375 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e | 2376 | esac |
1c710c3c | 2377 | build=$ac_cv_build |
5213506e RW |
2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_build | |
2380 | shift | |
2381 | build_cpu=$1 | |
2382 | build_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | build_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2389 | |
671aa708 | 2390 | |
1c710c3c DJ |
2391 | case ${build_alias} in |
2392 | "") build_noncanonical=${build} ;; | |
2393 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2394 | esac |
2395 | ||
2396 | ||
af71363e | 2397 | |
1c710c3c DJ |
2398 | case ${host_alias} in |
2399 | "") host_noncanonical=${build_noncanonical} ;; | |
2400 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2401 | esac |
2402 | ||
af71363e | 2403 | |
1c710c3c DJ |
2404 | |
2405 | case ${target_alias} in | |
2406 | "") target_noncanonical=${host_noncanonical} ;; | |
2407 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2408 | esac |
2409 | ||
af71363e | 2410 | |
1c710c3c DJ |
2411 | |
2412 | ||
2413 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2414 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2415 | NONENONEs,x,x, && | |
1c710c3c | 2416 | program_transform_name=s,y,y, |
af71363e | 2417 | |
5213506e RW |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2419 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2420 | if ${ac_cv_host+:} false; then : |
5213506e | 2421 | $as_echo_n "(cached) " >&6 |
af71363e | 2422 | else |
5213506e RW |
2423 | if test "x$host_alias" = x; then |
2424 | ac_cv_host=$ac_cv_build | |
2425 | else | |
2426 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2427 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e | 2428 | fi |
1c710c3c | 2429 | |
af71363e | 2430 | fi |
5213506e RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2432 | $as_echo "$ac_cv_host" >&6; } | |
2433 | case $ac_cv_host in | |
2434 | *-*-*) ;; | |
22e05272 | 2435 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2436 | esac |
1c710c3c | 2437 | host=$ac_cv_host |
5213506e RW |
2438 | ac_save_IFS=$IFS; IFS='-' |
2439 | set x $ac_cv_host | |
2440 | shift | |
2441 | host_cpu=$1 | |
2442 | host_vendor=$2 | |
2443 | shift; shift | |
2444 | # Remember, the first character of IFS is used to create $*, | |
2445 | # except with old shells: | |
2446 | host_os=$* | |
2447 | IFS=$ac_save_IFS | |
2448 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2449 | |
2450 | ||
5213506e RW |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2452 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2453 | if ${ac_cv_target+:} false; then : |
5213506e | 2454 | $as_echo_n "(cached) " >&6 |
1c710c3c | 2455 | else |
5213506e RW |
2456 | if test "x$target_alias" = x; then |
2457 | ac_cv_target=$ac_cv_host | |
2458 | else | |
2459 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2460 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2461 | fi |
1c710c3c DJ |
2462 | |
2463 | fi | |
5213506e RW |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2465 | $as_echo "$ac_cv_target" >&6; } | |
2466 | case $ac_cv_target in | |
2467 | *-*-*) ;; | |
22e05272 | 2468 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2469 | esac |
1c710c3c | 2470 | target=$ac_cv_target |
5213506e RW |
2471 | ac_save_IFS=$IFS; IFS='-' |
2472 | set x $ac_cv_target | |
2473 | shift | |
2474 | target_cpu=$1 | |
2475 | target_vendor=$2 | |
2476 | shift; shift | |
2477 | # Remember, the first character of IFS is used to create $*, | |
2478 | # except with old shells: | |
2479 | target_os=$* | |
2480 | IFS=$ac_save_IFS | |
2481 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2482 | |
2483 | ||
2484 | # The aliases save the names the user supplied, while $host etc. | |
2485 | # will get canonicalized. | |
2486 | test -n "$target_alias" && | |
2487 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2488 | NONENONEs,x,x, && | |
2489 | program_prefix=${target_alias}- | |
5213506e | 2490 | |
671aa708 | 2491 | test "$program_prefix" != NONE && |
5213506e | 2492 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2493 | # Use a double $ so make ignores it. |
2494 | test "$program_suffix" != NONE && | |
5213506e RW |
2495 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2496 | # Double any \ or $. | |
1c710c3c | 2497 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2498 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2499 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2500 | |
671aa708 NN |
2501 | |
2502 | ||
775956d0 NN |
2503 | # Get 'install' or 'install-sh' and its variants. |
2504 | # Find a good install program. We prefer a C program (faster), | |
2505 | # so one script is as good as another. But avoid the broken or | |
2506 | # incompatible versions: | |
2507 | # SysV /etc/install, /usr/sbin/install | |
2508 | # SunOS /usr/etc/install | |
2509 | # IRIX /sbin/install | |
2510 | # AIX /bin/install | |
1c710c3c | 2511 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2512 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2513 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2514 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2515 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2516 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2517 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2519 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2520 | if test -z "$INSTALL"; then |
22e05272 | 2521 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2522 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
2523 | else |
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2525 | for as_dir in $PATH | |
2526 | do | |
2527 | IFS=$as_save_IFS | |
2528 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2529 | # Account for people who put trailing slashes in PATH elements. |
2530 | case $as_dir/ in #(( | |
2531 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2532 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2533 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2534 | /usr/ucb/* ) ;; |
2535 | *) | |
2536 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2537 | # Don't use installbsd from OSF since it installs stuff as root | |
2538 | # by default. | |
2539 | for ac_prog in ginstall scoinst install; do | |
2540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2541 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
775956d0 | 2542 | if test $ac_prog = install && |
1c710c3c | 2543 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2544 | # AIX install. It has an incompatible calling convention. |
2545 | : | |
1c710c3c DJ |
2546 | elif test $ac_prog = install && |
2547 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2548 | # program-specific install script used by HP pwplus--don't use. | |
2549 | : | |
775956d0 | 2550 | else |
38d24731 RW |
2551 | rm -rf conftest.one conftest.two conftest.dir |
2552 | echo one > conftest.one | |
2553 | echo two > conftest.two | |
2554 | mkdir conftest.dir | |
2555 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2556 | test -s conftest.one && test -s conftest.two && | |
2557 | test -s conftest.dir/conftest.one && | |
2558 | test -s conftest.dir/conftest.two | |
2559 | then | |
2560 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2561 | break 3 | |
2562 | fi | |
775956d0 NN |
2563 | fi |
2564 | fi | |
2565 | done | |
1c710c3c DJ |
2566 | done |
2567 | ;; | |
2568 | esac | |
5213506e RW |
2569 | |
2570 | done | |
2571 | IFS=$as_save_IFS | |
1c710c3c | 2572 | |
38d24731 | 2573 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2574 | |
2575 | fi | |
2576 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2577 | INSTALL=$ac_cv_path_install |
775956d0 | 2578 | else |
38d24731 RW |
2579 | # As a last resort, use the slow shell script. Don't cache a |
2580 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2581 | # break other packages using the cache if that directory is |
38d24731 | 2582 | # removed, or if the value is a relative name. |
1c710c3c | 2583 | INSTALL=$ac_install_sh |
775956d0 NN |
2584 | fi |
2585 | fi | |
5213506e RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2587 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2588 | |
2589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2590 | # It thinks the first close brace ends the variable substitution. | |
2591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2592 | ||
1c710c3c | 2593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2594 | |
2595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2596 | ||
5213506e RW |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2598 | $as_echo_n "checking whether ln works... " >&6; } | |
22e05272 | 2599 | if ${acx_cv_prog_LN+:} false; then : |
5213506e | 2600 | $as_echo_n "(cached) " >&6 |
ad6717df PB |
2601 | else |
2602 | rm -f conftestdata_t | |
2603 | echo >conftestdata_f | |
2604 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2605 | then | |
2606 | acx_cv_prog_LN=ln | |
2607 | else | |
2608 | acx_cv_prog_LN=no | |
2609 | fi | |
2610 | rm -f conftestdata_f conftestdata_t | |
2611 | ||
2612 | fi | |
2613 | if test $acx_cv_prog_LN = no; then | |
2614 | LN="cp" | |
5213506e RW |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2616 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2617 | else |
2618 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2620 | $as_echo "yes" >&6; } | |
ad6717df PB |
2621 | fi |
2622 | ||
5213506e RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2624 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2625 | LN_S=$as_ln_s |
2626 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2628 | $as_echo "yes" >&6; } | |
fb0103e5 | 2629 | else |
5213506e RW |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2631 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2632 | fi |
2633 | ||
87264276 PB |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2635 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 2636 | if ${ac_cv_path_SED+:} false; then : |
87264276 PB |
2637 | $as_echo_n "(cached) " >&6 |
2638 | else | |
2639 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2640 | for ac_i in 1 2 3 4 5 6 7; do | |
2641 | ac_script="$ac_script$as_nl$ac_script" | |
2642 | done | |
2643 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2644 | { ac_script=; unset ac_script;} | |
2645 | if test -z "$SED"; then | |
2646 | ac_path_SED_found=false | |
2647 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2649 | for as_dir in $PATH | |
2650 | do | |
2651 | IFS=$as_save_IFS | |
2652 | test -z "$as_dir" && as_dir=. | |
2653 | for ac_prog in sed gsed; do | |
2654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2655 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 2656 | as_fn_executable_p "$ac_path_SED" || continue |
87264276 PB |
2657 | # Check for GNU ac_path_SED and select it if it is found. |
2658 | # Check for GNU $ac_path_SED | |
2659 | case `"$ac_path_SED" --version 2>&1` in | |
2660 | *GNU*) | |
2661 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2662 | *) | |
2663 | ac_count=0 | |
2664 | $as_echo_n 0123456789 >"conftest.in" | |
2665 | while : | |
2666 | do | |
2667 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2668 | mv "conftest.tmp" "conftest.in" | |
2669 | cp "conftest.in" "conftest.nl" | |
2670 | $as_echo '' >> "conftest.nl" | |
2671 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2672 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2673 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2674 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2675 | # Best one so far, save it but keep looking for a better one | |
2676 | ac_cv_path_SED="$ac_path_SED" | |
2677 | ac_path_SED_max=$ac_count | |
2678 | fi | |
2679 | # 10*(2^10) chars as input seems more than enough | |
2680 | test $ac_count -gt 10 && break | |
2681 | done | |
2682 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2683 | esac | |
2684 | ||
2685 | $ac_path_SED_found && break 3 | |
2686 | done | |
2687 | done | |
2688 | done | |
2689 | IFS=$as_save_IFS | |
2690 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 2691 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
87264276 PB |
2692 | fi |
2693 | else | |
2694 | ac_cv_path_SED=$SED | |
2695 | fi | |
2696 | ||
2697 | fi | |
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2699 | $as_echo "$ac_cv_path_SED" >&6; } | |
2700 | SED="$ac_cv_path_SED" | |
2701 | rm -f conftest.sed | |
2702 | ||
2703 | for ac_prog in gawk mawk nawk awk | |
2704 | do | |
2705 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2706 | set dummy $ac_prog; ac_word=$2 | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2708 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2709 | if ${ac_cv_prog_AWK+:} false; then : |
87264276 PB |
2710 | $as_echo_n "(cached) " >&6 |
2711 | else | |
2712 | if test -n "$AWK"; then | |
2713 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2714 | else | |
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2716 | for as_dir in $PATH | |
2717 | do | |
2718 | IFS=$as_save_IFS | |
2719 | test -z "$as_dir" && as_dir=. | |
2720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
87264276 PB |
2722 | ac_cv_prog_AWK="$ac_prog" |
2723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2724 | break 2 | |
2725 | fi | |
2726 | done | |
2727 | done | |
2728 | IFS=$as_save_IFS | |
2729 | ||
2730 | fi | |
2731 | fi | |
2732 | AWK=$ac_cv_prog_AWK | |
2733 | if test -n "$AWK"; then | |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2735 | $as_echo "$AWK" >&6; } | |
2736 | else | |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2738 | $as_echo "no" >&6; } | |
2739 | fi | |
2740 | ||
2741 | ||
2742 | test -n "$AWK" && break | |
2743 | done | |
2744 | ||
775956d0 | 2745 | |
ee6a22df L |
2746 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2747 | ||
2748 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2749 | # a relative path. | |
2750 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2751 | INSTALL="${srcpwd}/install-sh -c" | |
2752 | fi | |
2753 | ||
671aa708 NN |
2754 | # Set srcdir to "." if that's what it is. |
2755 | # This is important for multilib support. | |
2756 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2757 | if test "${pwd}" = "${srcpwd}" ; then |
2758 | srcdir=. | |
79c06341 JL |
2759 | fi |
2760 | ||
671aa708 | 2761 | topsrcdir=$srcpwd |
5d4a5ee6 | 2762 | |
671aa708 | 2763 | extra_host_args= |
afabd8e6 | 2764 | |
671aa708 NN |
2765 | ### To add a new directory to the tree, first choose whether it is a target |
2766 | ### or a host dependent tool. Then put it into the appropriate list | |
2767 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2768 | |
1c710c3c | 2769 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2770 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2771 | |
1c710c3c DJ |
2772 | # Dependency sorting is only needed when *configuration* must be done in |
2773 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2774 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2775 | |
671aa708 NN |
2776 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2777 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2778 | |
23f6b2f9 PB |
2779 | # these library is used by various programs built for the build |
2780 | # environment | |
2781 | # | |
929315a9 | 2782 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2783 | |
2784 | # these tools are built for the build environment | |
85bfb75e | 2785 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2786 | |
671aa708 | 2787 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2788 | #f |
de6abd85 | 2789 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf" |
671aa708 | 2790 | |
671aa708 NN |
2791 | # these tools are built for the host environment |
2792 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2793 | # know that we are building the simulator. | |
2794 | # binutils, gas and ld appear in that order because it makes sense to run | |
2795 | # "make check" in that particular order. | |
38e3d868 | 2796 | # If --enable-gold is used, "gold" may replace "ld". |
f9d09df0 | 2797 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 | 2798 | |
671aa708 NN |
2799 | # these libraries are built for the target environment, and are built after |
2800 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2801 | # Note that libiberty is not a target library. |
291f172e | 2802 | target_libraries="target-libgcc \ |
eff02e4f | 2803 | target-libbacktrace \ |
671aa708 NN |
2804 | target-libgloss \ |
2805 | target-newlib \ | |
6d3b5aea | 2806 | target-libgomp \ |
5f520819 | 2807 | target-liboffloadmic \ |
5fd1486c | 2808 | target-libhsail-rt \ |
48310492 | 2809 | target-libatomic \ |
0a35513e | 2810 | target-libitm \ |
cb543528 | 2811 | target-libstdc++-v3 \ |
f35db108 | 2812 | target-libsanitizer \ |
2077db1b | 2813 | target-libvtv \ |
77008252 | 2814 | target-libssp \ |
1ec601bf | 2815 | target-libquadmath \ |
6de9cd9a | 2816 | target-libgfortran \ |
012447ea | 2817 | target-libffi \ |
d9cdb878 | 2818 | target-libobjc \ |
632e2a07 | 2819 | target-libada \ |
b4c522fa | 2820 | target-libgo \ |
bb50312e IB |
2821 | target-libphobos \ |
2822 | target-zlib" | |
671aa708 | 2823 | |
4dbda6f0 NN |
2824 | # these tools are built using the target libraries, and are intended to |
2825 | # run only in the target environment | |
671aa708 | 2826 | # |
4dbda6f0 | 2827 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2828 | # list belongs in this list. |
671aa708 | 2829 | # |
85bfb75e | 2830 | target_tools="target-rda" |
79c06341 | 2831 | |
671aa708 | 2832 | ################################################################################ |
79c06341 | 2833 | |
671aa708 NN |
2834 | ## All tools belong in one of the four categories, and are assigned above |
2835 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2836 | ## is important because configure will choke if they ever get through. | |
2837 | ## ${configdirs} is directories we build using the host tools. | |
2838 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2839 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2840 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2841 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2842 | |
ac9e6043 RW |
2843 | |
2844 | ||
671aa708 | 2845 | ################################################################################ |
79c06341 | 2846 | |
671aa708 | 2847 | srcname="gnu development package" |
79c06341 | 2848 | |
671aa708 NN |
2849 | # This gets set non-empty for some net releases of packages. |
2850 | appdirs="" | |
79c06341 | 2851 | |
671aa708 NN |
2852 | # Define is_cross_compiler to save on calls to 'test'. |
2853 | is_cross_compiler= | |
2854 | if test x"${host}" = x"${target}" ; then | |
2855 | is_cross_compiler=no | |
79c06341 | 2856 | else |
671aa708 | 2857 | is_cross_compiler=yes |
1c710c3c | 2858 | fi |
79c06341 | 2859 | |
b4acb5ef | 2860 | # Find the build and target subdir names. |
8b87bb96 | 2861 | |
2e9e6f68 DJ |
2862 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2863 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2864 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2865 | # However, they still use the build modules, because the corresponding | |
2866 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2867 | # finishes. So: | |
2868 | # - build_subdir is where we find build modules, and never changes. | |
2869 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2870 | ||
2871 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2872 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2873 | |
5213506e RW |
2874 | # Check whether --with-build-libsubdir was given. |
2875 | if test "${with_build_libsubdir+set}" = set; then : | |
2876 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2877 | else |
2878 | build_libsubdir="$build_subdir" | |
5213506e RW |
2879 | fi |
2880 | ||
215c351a PB |
2881 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2882 | if ( test $srcdir = . && test -d gcc ) \ | |
2883 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2884 | host_subdir="host-${host_noncanonical}" | |
2885 | else | |
2886 | host_subdir=. | |
2887 | fi | |
8b87bb96 NN |
2888 | # No prefix. |
2889 | target_subdir=${target_noncanonical} | |
1c710c3c | 2890 | |
0db770bd RW |
2891 | # Be sure to cover against remnants of an in-tree build. |
2892 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
22e05272 | 2893 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
0db770bd RW |
2894 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2895 | fi | |
79c06341 | 2896 | |
671aa708 NN |
2897 | # Skipdirs are removed silently. |
2898 | skipdirs= | |
2899 | # Noconfigdirs are removed loudly. | |
2900 | noconfigdirs="" | |
79c06341 | 2901 | |
671aa708 NN |
2902 | use_gnu_ld= |
2903 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2904 | if test x$with_gnu_ld = xno ; then | |
2905 | use_gnu_ld=no | |
5afab7ad | 2906 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2907 | fi |
2908 | ||
671aa708 NN |
2909 | use_gnu_as= |
2910 | # Make sure we don't let GNU as be added if we didn't want it. | |
2911 | if test x$with_gnu_as = xno ; then | |
2912 | use_gnu_as=no | |
2913 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2914 | fi |
2915 | ||
d7f09764 | 2916 | use_included_zlib= |
a05c2c75 L |
2917 | |
2918 | # Check whether --with-system-zlib was given. | |
2919 | if test "${with_system_zlib+set}" = set; then : | |
2920 | withval=$with_system_zlib; | |
2921 | fi | |
2922 | ||
d7f09764 DN |
2923 | # Make sure we don't let ZLIB be added if we didn't want it. |
2924 | if test x$with_system_zlib = xyes ; then | |
2925 | use_included_zlib=no | |
2926 | noconfigdirs="$noconfigdirs zlib" | |
2927 | fi | |
2928 | ||
1c710c3c | 2929 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2930 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2931 | |
671aa708 NN |
2932 | case ${with_x} in |
2933 | yes | "") ;; # the default value for this tree is that X11 is available | |
2934 | no) | |
b4f96efe | 2935 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2936 | # We won't be able to build gdbtk without X. |
1c710c3c | 2937 | enable_gdbtk=no |
671aa708 NN |
2938 | ;; |
2939 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2940 | esac | |
79c06341 | 2941 | |
1bcce263 | 2942 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2943 | # Remove these if host=target. |
2944 | cross_only="target-libgloss target-newlib target-opcodes" | |
2945 | ||
2946 | case $is_cross_compiler in | |
2947 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2948 | esac |
79c06341 | 2949 | |
671aa708 NN |
2950 | # If both --with-headers and --with-libs are specified, default to |
2951 | # --without-newlib. | |
ee6a22df L |
2952 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2953 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2954 | if test x"${with_newlib}" = x ; then |
2955 | with_newlib=no | |
2956 | fi | |
79c06341 JL |
2957 | fi |
2958 | ||
671aa708 NN |
2959 | # Recognize --with-newlib/--without-newlib. |
2960 | case ${with_newlib} in | |
2961 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2962 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2963 | esac | |
79c06341 | 2964 | |
85c64bbe BS |
2965 | # Check whether --enable-as-accelerator-for was given. |
2966 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2967 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2968 | fi |
2969 | ||
2970 | ||
2971 | # Check whether --enable-offload-targets was given. | |
2972 | if test "${enable_offload_targets+set}" = set; then : | |
2973 | enableval=$enable_offload_targets; | |
2974 | if test x"$enable_offload_targets" = x; then | |
22e05272 | 2975 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
85c64bbe BS |
2976 | fi |
2977 | ||
2978 | else | |
2979 | enable_offload_targets= | |
2980 | fi | |
2981 | ||
2982 | ||
21539e2e MK |
2983 | # Handle --enable-gold, --enable-ld. |
2984 | # --disable-gold [--enable-ld] | |
2985 | # Build only ld. Default option. | |
9580395f L |
2986 | # --enable-gold [--enable-ld] |
2987 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2988 | # as "ld.bfd" and "ld". | |
2989 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2990 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2991 | # install ld as "ld.bfd". | |
2992 | # --enable-gold[=default] --disable-ld | |
2993 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2994 | # --enable-gold --enable-ld=default | |
9580395f L |
2995 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2996 | # and ld.bfd). | |
21539e2e MK |
2997 | # In other words, ld is default |
2998 | # --enable-gold=default --enable-ld=default | |
2999 | # Error. | |
3000 | ||
3001 | default_ld= | |
5213506e RW |
3002 | # Check whether --enable-gold was given. |
3003 | if test "${enable_gold+set}" = set; then : | |
3004 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
3005 | else |
3006 | ENABLE_GOLD=no | |
5213506e RW |
3007 | fi |
3008 | ||
21539e2e MK |
3009 | case "${ENABLE_GOLD}" in |
3010 | yes|default) | |
38e3d868 RM |
3011 | # Check for ELF target. |
3012 | is_elf=no | |
3013 | case "${target}" in | |
3014 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 3015 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 3016 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 3017 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
3018 | case "${target}" in |
3019 | *-*-linux*aout* | *-*-linux*oldld*) | |
3020 | ;; | |
3021 | *) | |
3022 | is_elf=yes | |
3023 | ;; | |
3024 | esac | |
3025 | esac | |
3026 | ||
3027 | if test "$is_elf" = "yes"; then | |
3028 | # Check for target supported by gold. | |
5afab7ad | 3029 | case "${target}" in |
7705dfd1 | 3030 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 3031 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
3032 | configdirs="$configdirs gold" |
3033 | if test x${ENABLE_GOLD} = xdefault; then | |
3034 | default_ld=gold | |
3035 | fi | |
38e3d868 | 3036 | ENABLE_GOLD=yes |
5afab7ad ILT |
3037 | ;; |
3038 | esac | |
38e3d868 RM |
3039 | fi |
3040 | ;; | |
3041 | no) | |
3042 | ;; | |
3043 | *) | |
22e05272 | 3044 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
38e3d868 | 3045 | ;; |
21539e2e MK |
3046 | esac |
3047 | ||
3048 | # Check whether --enable-ld was given. | |
3049 | if test "${enable_ld+set}" = set; then : | |
3050 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3051 | else | |
3052 | ENABLE_LD=yes | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | case "${ENABLE_LD}" in | |
3057 | default) | |
9580395f | 3058 | if test x${default_ld} != x; then |
22e05272 | 3059 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
21539e2e MK |
3060 | fi |
3061 | ;; | |
3062 | yes) | |
3063 | ;; | |
3064 | no) | |
3065 | if test x${ENABLE_GOLD} != xyes; then | |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3067 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3068 | fi | |
3069 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3070 | ;; | |
3071 | *) | |
22e05272 | 3072 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
21539e2e MK |
3073 | ;; |
3074 | esac | |
5afab7ad | 3075 | |
78edb32f L |
3076 | # PR gas/19109 |
3077 | # Decide the default method for compressing debug sections. | |
3078 | # Provide a configure time option to override our default. | |
3079 | # Check whether --enable-compressed_debug_sections was given. | |
3080 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3081 | enableval=$enable_compressed_debug_sections; | |
3082 | if test x"$enable_compressed_debug_sections" = xyes; then | |
22e05272 | 3083 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
78edb32f L |
3084 | fi |
3085 | ||
3086 | else | |
3087 | enable_compressed_debug_sections= | |
3088 | fi | |
3089 | ||
3090 | ||
671aa708 | 3091 | # Configure extra directories which are host specific |
79c06341 | 3092 | |
671aa708 NN |
3093 | case "${host}" in |
3094 | *-cygwin*) | |
3095 | configdirs="$configdirs libtermcap" ;; | |
3096 | esac | |
79c06341 | 3097 | |
4fab7234 HPN |
3098 | # A target can indicate whether a language isn't supported for some reason. |
3099 | # Only spaces may be used in this macro; not newlines or tabs. | |
3100 | unsupported_languages= | |
3101 | ||
1c710c3c | 3102 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3103 | # target this usually means that a port of the program doesn't |
3104 | # exist yet. | |
ec8d6ddc | 3105 | |
671aa708 | 3106 | case "${host}" in |
111eeb6e | 3107 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3108 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3109 | ;; |
671aa708 | 3110 | esac |
ec8d6ddc | 3111 | |
6de9cd9a | 3112 | |
87e6d9dc TB |
3113 | # Check whether --enable-libquadmath was given. |
3114 | if test "${enable_libquadmath+set}" = set; then : | |
3115 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3116 | else | |
3117 | ENABLE_LIBQUADMATH=yes | |
3118 | fi | |
3119 | ||
3120 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3121 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3122 | fi | |
3123 | ||
3124 | ||
3125 | # Check whether --enable-libquadmath-support was given. | |
3126 | if test "${enable_libquadmath_support+set}" = set; then : | |
3127 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3128 | else | |
3129 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3130 | fi | |
3131 | ||
3132 | enable_libquadmath_support= | |
3133 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3134 | enable_libquadmath_support=no | |
3135 | fi | |
3136 | ||
3137 | ||
5213506e RW |
3138 | # Check whether --enable-libada was given. |
3139 | if test "${enable_libada+set}" = set; then : | |
3140 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3141 | else |
3142 | ENABLE_LIBADA=yes | |
5213506e RW |
3143 | fi |
3144 | ||
d9cdb878 | 3145 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3146 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3147 | fi |
3148 | ||
5213506e RW |
3149 | # Check whether --enable-libssp was given. |
3150 | if test "${enable_libssp+set}" = set; then : | |
3151 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3152 | else |
3153 | ENABLE_LIBSSP=yes | |
5213506e RW |
3154 | fi |
3155 | ||
ef0087a7 | 3156 | |
1873ec0c L |
3157 | # Check whether --enable-libstdcxx was given. |
3158 | if test "${enable_libstdcxx+set}" = set; then : | |
3159 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3160 | else | |
3161 | ENABLE_LIBSTDCXX=default | |
3162 | fi | |
3163 | ||
3164 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3165 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3166 | fi |
3167 | ||
5f520819 KY |
3168 | # If this is accelerator compiler and its target is intelmic we enable |
3169 | # target liboffloadmic by default. If this is compiler with offloading | |
3170 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3171 | # liboffloadmic is disabled by default. | |
3172 | # Check whether --enable-liboffloadmic was given. | |
3173 | if test "${enable_liboffloadmic+set}" = set; then : | |
3174 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3175 | no | host | target) | |
3176 | enable_liboffloadmic=$enableval ;; | |
3177 | *) | |
22e05272 | 3178 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
5f520819 KY |
3179 | esac |
3180 | else | |
4b4f2e35 | 3181 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3182 | case "${target}" in |
3183 | *-intelmic-* | *-intelmicemul-*) | |
3184 | enable_liboffloadmic=target | |
3185 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3186 | ;; | |
3187 | *) | |
3188 | enable_liboffloadmic=no | |
3189 | ;; | |
3190 | esac | |
3191 | else | |
3192 | case "${enable_offload_targets}" in | |
3193 | *-intelmic-* | *-intelmicemul-*) | |
3194 | enable_liboffloadmic=host | |
3195 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3196 | ;; | |
3197 | *) | |
3198 | enable_liboffloadmic=no | |
3199 | ;; | |
3200 | esac | |
3201 | fi | |
3202 | fi | |
3203 | ||
3204 | ||
3205 | ||
44a7d18d | 3206 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3207 | if test x$enable_libgomp = x ; then |
953ff289 | 3208 | case "${target}" in |
416ac4d4 | 3209 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3210 | ;; |
8c6d158a | 3211 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3212 | ;; |
b24513a1 | 3213 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3214 | ;; |
cac90078 | 3215 | *-*-darwin* | *-*-aix*) |
953ff289 | 3216 | ;; |
29b1533a | 3217 | nvptx*-*-* | amdgcn*-*-*) |
44a7d18d | 3218 | ;; |
953ff289 DN |
3219 | *) |
3220 | noconfigdirs="$noconfigdirs target-libgomp" | |
3221 | ;; | |
3222 | esac | |
27079765 | 3223 | fi |
953ff289 | 3224 | |
48310492 RH |
3225 | # Disable libatomic on unsupported systems. |
3226 | if test -d ${srcdir}/libatomic; then | |
3227 | if test x$enable_libatomic = x; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3229 | $as_echo_n "checking for libatomic support... " >&6; } | |
3230 | if (srcdir=${srcdir}/libatomic; \ | |
3231 | . ${srcdir}/configure.tgt; \ | |
3232 | test -n "$UNSUPPORTED") | |
3233 | then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3235 | $as_echo "no" >&6; } | |
3236 | noconfigdirs="$noconfigdirs target-libatomic" | |
3237 | else | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3239 | $as_echo "yes" >&6; } | |
3240 | fi | |
3241 | fi | |
3242 | fi | |
3243 | ||
5f520819 KY |
3244 | # Disable liboffloadmic on unsupported systems. |
3245 | if test -d ${srcdir}/liboffloadmic; then | |
3246 | if test x$enable_liboffloadmic != xno; then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3248 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3249 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3250 | . ${srcdir}/configure.tgt; \ | |
3251 | test -n "$UNSUPPORTED") | |
3252 | then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3254 | $as_echo "no" >&6; } | |
3255 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3256 | else | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3258 | $as_echo "yes" >&6; } | |
3259 | fi | |
3260 | fi | |
3261 | fi | |
3262 | ||
e948157d RH |
3263 | # Disable libitm on unsupported systems. |
3264 | if test -d ${srcdir}/libitm; then | |
3265 | if test x$enable_libitm = x; then | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3267 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3268 | if (srcdir=${srcdir}/libitm; \ |
3269 | . ${srcdir}/configure.tgt; \ | |
3270 | test -n "$UNSUPPORTED") | |
3271 | then | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3273 | $as_echo "no" >&6; } |
e948157d RH |
3274 | noconfigdirs="$noconfigdirs target-libitm" |
3275 | else | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3277 | $as_echo "yes" >&6; } |
e948157d RH |
3278 | fi |
3279 | fi | |
0a35513e AH |
3280 | fi |
3281 | ||
93bf5390 RH |
3282 | # Disable libsanitizer on unsupported systems. |
3283 | if test -d ${srcdir}/libsanitizer; then | |
3284 | if test x$enable_libsanitizer = x; then | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3286 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3287 | if (srcdir=${srcdir}/libsanitizer; \ | |
3288 | . ${srcdir}/configure.tgt; \ | |
3289 | test -n "$UNSUPPORTED") | |
3290 | then | |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3292 | $as_echo "no" >&6; } | |
3293 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3294 | else | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3296 | $as_echo "yes" >&6; } | |
3297 | fi | |
3298 | fi | |
3299 | fi | |
3300 | ||
2077db1b CT |
3301 | # Disable libvtv on unsupported systems. |
3302 | if test -d ${srcdir}/libvtv; then | |
3303 | if test x$enable_libvtv = x; then | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3305 | $as_echo_n "checking for libvtv support... " >&6; } | |
3306 | if (srcdir=${srcdir}/libvtv; \ | |
3307 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3308 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3309 | then |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3311 | $as_echo "no" >&6; } | |
3312 | noconfigdirs="$noconfigdirs target-libvtv" | |
3313 | else | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3315 | $as_echo "yes" >&6; } | |
3316 | fi | |
3317 | fi | |
3318 | fi | |
3319 | ||
5373cd33 | 3320 | |
f6a24a94 MJ |
3321 | # Disable libhsail-rt on unsupported systems. |
3322 | if test -d ${srcdir}/libhsail-rt; then | |
3323 | if test x$enable_libhsail_rt = x; then | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5 | |
3325 | $as_echo_n "checking for libhsail-rt support... " >&6; } | |
3326 | if (srcdir=${srcdir}/libhsail-rt; \ | |
3327 | . ${srcdir}/configure.tgt; \ | |
3328 | test -n "$UNSUPPORTED") | |
3329 | then | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3331 | $as_echo "no" >&6; } | |
3332 | unsupported_languages="$unsupported_languages brig" | |
3333 | # This implicitly disables also target-libhsail-rt as it won't | |
3334 | # get added to the build without BRIG FE. | |
3335 | else | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3337 | $as_echo "yes" >&6; } | |
3338 | fi | |
3339 | fi | |
3340 | fi | |
5373cd33 IE |
3341 | |
3342 | ||
d91491e5 SE |
3343 | # Disable libquadmath for some systems. |
3344 | case "${target}" in | |
e7fae550 DE |
3345 | avr-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
d91491e5 SE |
3348 | # libquadmath is unused on AIX and libquadmath build process use of |
3349 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3350 | powerpc-*-aix* | rs6000-*-aix*) | |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
3353 | esac | |
3354 | ||
1e9e0e23 JM |
3355 | # Disable libssp for some systems. |
3356 | case "${target}" in | |
3357 | avr-*-*) | |
b318fb4b | 3358 | # No hosted I/O support. |
1e9e0e23 JM |
3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
91dfef96 JM |
3361 | bpf-*-*) |
3362 | noconfigdirs="$noconfigdirs target-libssp" | |
3363 | ;; | |
1e9e0e23 JM |
3364 | powerpc-*-aix* | rs6000-*-aix*) |
3365 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e | 3366 | ;; |
8d2af3a2 DD |
3367 | pru-*-*) |
3368 | # No hosted I/O support. | |
3369 | noconfigdirs="$noconfigdirs target-libssp" | |
3370 | ;; | |
85b8555e | 3371 | rl78-*-*) |
7cb62ef1 EB |
3372 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3373 | # doesn't fault for those - instead, it gives a build-time error | |
3374 | # for explicit misaligned loads. | |
85b8555e | 3375 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3376 | ;; |
0969ec7d EB |
3377 | visium-*-*) |
3378 | # No hosted I/O support. | |
3379 | noconfigdirs="$noconfigdirs target-libssp" | |
3380 | ;; | |
1e9e0e23 JM |
3381 | esac |
3382 | ||
1e9e0e23 | 3383 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3384 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3385 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3386 | case "${target}" in | |
3387 | *-*-vxworks*) | |
3388 | # VxWorks uses the Dinkumware C++ library. | |
3389 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3390 | ;; | |
afa3d80e TS |
3391 | amdgcn*-*-*) |
3392 | # Not ported/fails to build when using newlib. | |
3393 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3394 | ;; | |
1873ec0c L |
3395 | arm*-wince-pe*) |
3396 | # the C++ libraries don't build on top of CE's C libraries | |
3397 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3398 | ;; | |
3399 | avr-*-*) | |
3400 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3401 | ;; | |
91dfef96 JM |
3402 | bpf-*-*) |
3403 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3404 | ;; | |
fef939d6 JB |
3405 | ft32-*-*) |
3406 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3407 | ;; | |
1873ec0c L |
3408 | esac |
3409 | fi | |
1e9e0e23 | 3410 | |
91dfef96 JM |
3411 | # Disable C++ on systems where it is known to not work. |
3412 | # For testing, you can override this with --enable-languages=c++. | |
3413 | case ,${enable_languages}, in | |
3414 | *,c++,*) | |
3415 | ;; | |
3416 | *) | |
3417 | case "${target}" in | |
3418 | bpf-*-*) | |
3419 | unsupported_languages="$unsupported_languages c++" | |
3420 | ;; | |
3421 | esac | |
3422 | ;; | |
3423 | esac | |
3424 | ||
3425 | # Disable Objc on systems where it is known to not work. | |
3426 | # For testing, you can override this with --enable-languages=objc. | |
3427 | case ,${enable_languages}, in | |
3428 | *,objc,*) | |
3429 | ;; | |
3430 | *) | |
3431 | case "${target}" in | |
3432 | bpf-*-*) | |
3433 | unsupported_languages="$unsupported_languages objc" | |
3434 | ;; | |
3435 | esac | |
3436 | ;; | |
3437 | esac | |
3438 | ||
260eedb9 IB |
3439 | # Disable D on systems where it is known to not work. |
3440 | # For testing, you can override this with --enable-languages=d. | |
3441 | case ,${enable_languages}, in | |
3442 | *,d,*) | |
3443 | ;; | |
3444 | *) | |
3445 | case "${target}" in | |
4d024c32 | 3446 | *-*-darwin*) |
91dfef96 JM |
3447 | unsupported_languages="$unsupported_languages d" |
3448 | ;; | |
3449 | bpf-*-*) | |
260eedb9 IB |
3450 | unsupported_languages="$unsupported_languages d" |
3451 | ;; | |
3452 | esac | |
3453 | ;; | |
3454 | esac | |
3455 | ||
3456 | # Disable libphobos on unsupported systems. | |
3457 | # For testing, you can override this with --enable-libphobos. | |
3458 | if test -d ${srcdir}/libphobos; then | |
3459 | if test x$enable_libphobos = x; then | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3461 | $as_echo_n "checking for libphobos support... " >&6; } | |
3462 | if (srcdir=${srcdir}/libphobos; \ | |
3463 | . ${srcdir}/configure.tgt; \ | |
7d31d331 | 3464 | test "$LIBPHOBOS_SUPPORTED" != "yes") |
260eedb9 IB |
3465 | then |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3467 | $as_echo "no" >&6; } | |
3468 | noconfigdirs="$noconfigdirs target-libphobos" | |
3469 | else | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3471 | $as_echo "yes" >&6; } | |
3472 | fi | |
3473 | fi | |
3474 | fi | |
3475 | ||
1e9e0e23 JM |
3476 | # Disable Fortran for some systems. |
3477 | case "${target}" in | |
3478 | mmix-*-*) | |
3479 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3480 | unsupported_languages="$unsupported_languages fortran" | |
3481 | ;; | |
91dfef96 JM |
3482 | bpf-*-*) |
3483 | unsupported_languages="$unsupported_languages fortran" | |
3484 | ;; | |
1e9e0e23 JM |
3485 | esac |
3486 | ||
012447ea JJ |
3487 | # Disable libffi for some systems. |
3488 | case "${target}" in | |
3489 | powerpc-*-darwin*) | |
3490 | ;; | |
3491 | i[3456789]86-*-darwin*) | |
3492 | ;; | |
3493 | x86_64-*-darwin[912]*) | |
3494 | ;; | |
3495 | *-*-darwin*) | |
3496 | noconfigdirs="$noconfigdirs target-libffi" | |
3497 | ;; | |
3498 | *-*-netware*) | |
3499 | noconfigdirs="$noconfigdirs target-libffi" | |
3500 | ;; | |
3501 | *-*-phoenix*) | |
3502 | noconfigdirs="$noconfigdirs target-libffi" | |
3503 | ;; | |
3504 | *-*-rtems*) | |
3505 | noconfigdirs="$noconfigdirs target-libffi" | |
3506 | ;; | |
3507 | *-*-tpf*) | |
3508 | noconfigdirs="$noconfigdirs target-libffi" | |
3509 | ;; | |
3510 | *-*-uclinux*) | |
3511 | noconfigdirs="$noconfigdirs target-libffi" | |
3512 | ;; | |
3513 | *-*-vxworks*) | |
3514 | noconfigdirs="$noconfigdirs target-libffi" | |
3515 | ;; | |
b20e7532 AT |
3516 | aarch64*-*-freebsd*) |
3517 | noconfigdirs="$noconfigdirs target-libffi" | |
3518 | ;; | |
012447ea JJ |
3519 | alpha*-*-*vms*) |
3520 | noconfigdirs="$noconfigdirs target-libffi" | |
3521 | ;; | |
3522 | arm*-*-freebsd*) | |
3523 | noconfigdirs="$noconfigdirs target-libffi" | |
3524 | ;; | |
3525 | arm-wince-pe) | |
3526 | noconfigdirs="$noconfigdirs target-libffi" | |
3527 | ;; | |
3528 | arm*-*-symbianelf*) | |
3529 | noconfigdirs="$noconfigdirs target-libffi" | |
3530 | ;; | |
91dfef96 JM |
3531 | bpf-*-*) |
3532 | noconfigdirs="$noconfigdirs target-libffi" | |
3533 | ;; | |
012447ea JJ |
3534 | cris-*-* | crisv32-*-*) |
3535 | case "${target}" in | |
3536 | *-*-linux*) | |
3537 | ;; | |
3538 | *) # See PR46792 regarding target-libffi. | |
3539 | noconfigdirs="$noconfigdirs target-libffi";; | |
3540 | esac | |
3541 | ;; | |
3542 | hppa*64*-*-hpux*) | |
3543 | noconfigdirs="$noconfigdirs target-libffi" | |
3544 | ;; | |
3545 | hppa*-hp-hpux11*) | |
3546 | ;; | |
3547 | hppa*-*-hpux*) | |
3548 | noconfigdirs="$noconfigdirs target-libffi" | |
3549 | ;; | |
3550 | ia64*-*-*vms*) | |
3551 | noconfigdirs="$noconfigdirs target-libffi" | |
3552 | ;; | |
3553 | i[3456789]86-w64-mingw*) | |
3554 | noconfigdirs="$noconfigdirs target-libffi" | |
3555 | ;; | |
3556 | i[3456789]86-*-mingw*) | |
3557 | noconfigdirs="$noconfigdirs target-libffi" | |
3558 | ;; | |
3559 | x86_64-*-mingw*) | |
3560 | noconfigdirs="$noconfigdirs target-libffi" | |
3561 | ;; | |
3562 | mmix-*-*) | |
3563 | noconfigdirs="$noconfigdirs target-libffi" | |
3564 | ;; | |
3565 | powerpc-*-aix*) | |
012447ea JJ |
3566 | ;; |
3567 | rs6000-*-aix*) | |
012447ea JJ |
3568 | ;; |
3569 | ft32-*-*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
3571 | ;; | |
3572 | *-*-lynxos*) | |
3573 | noconfigdirs="$noconfigdirs target-libffi" | |
3574 | ;; | |
3575 | esac | |
3576 | ||
3577 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3578 | # this in sync with contrib/config-list.mk. | |
3579 | case "${target}" in | |
91dfef96 | 3580 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
012447ea JJ |
3581 | unsupported_languages="$unsupported_languages go" |
3582 | ;; | |
3583 | esac | |
3584 | ||
f9d09df0 TT |
3585 | # Only allow gdbserver on some systems. |
3586 | if test -d ${srcdir}/gdbserver; then | |
3587 | if test x$enable_gdbserver = x; then | |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3589 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3590 | if (srcdir=${srcdir}/gdbserver; \ | |
3591 | . ${srcdir}/configure.srv; \ | |
3592 | test -n "$UNSUPPORTED") | |
3593 | then | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3595 | $as_echo "no" >&6; } | |
3596 | noconfigdirs="$noconfigdirs gdbserver" | |
3597 | else | |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3599 | $as_echo "yes" >&6; } | |
3600 | fi | |
3601 | fi | |
3602 | fi | |
3603 | ||
cdbc9e92 ILT |
3604 | # Disable libgo for some systems where it is known to not work. |
3605 | # For testing, you can easily override this with --enable-libgo. | |
3606 | if test x$enable_libgo = x; then | |
3607 | case "${target}" in | |
3608 | *-*-darwin*) | |
3609 | # PR 46986 | |
3610 | noconfigdirs="$noconfigdirs target-libgo" | |
3611 | ;; | |
3612 | *-*-cygwin* | *-*-mingw*) | |
3613 | noconfigdirs="$noconfigdirs target-libgo" | |
3614 | ;; | |
91dfef96 JM |
3615 | bpf-*-*) |
3616 | noconfigdirs="$noconfigdirs target-libgo" | |
3617 | ;; | |
cdbc9e92 ILT |
3618 | esac |
3619 | fi | |
3620 | ||
c03353e2 RIL |
3621 | # Default libgloss CPU subdirectory. |
3622 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3623 | |
fbcf0dca JM |
3624 | case "${target}" in |
3625 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3626 | libgloss_dir=wince | |
3627 | ;; | |
4dddfc74 YZ |
3628 | aarch64*-*-* ) |
3629 | libgloss_dir=aarch64 | |
3630 | ;; | |
fbcf0dca JM |
3631 | arm*-*-*) |
3632 | libgloss_dir=arm | |
3633 | ;; | |
3634 | cris-*-* | crisv32-*-*) | |
3635 | libgloss_dir=cris | |
3636 | ;; | |
3637 | hppa*-*-*) | |
3638 | libgloss_dir=pa | |
3639 | ;; | |
3640 | i[3456789]86-*-*) | |
3641 | libgloss_dir=i386 | |
3642 | ;; | |
3643 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3644 | libgloss_dir=m68hc11 | |
3645 | ;; | |
3646 | m68*-*-* | fido-*-*) | |
3647 | libgloss_dir=m68k | |
3648 | ;; | |
3649 | mips*-*-*) | |
3650 | libgloss_dir=mips | |
3651 | ;; | |
3652 | powerpc*-*-*) | |
3653 | libgloss_dir=rs6000 | |
3654 | ;; | |
8d2af3a2 DD |
3655 | pru-*-*) |
3656 | libgloss_dir=pru | |
3657 | ;; | |
fbcf0dca JM |
3658 | sparc*-*-*) |
3659 | libgloss_dir=sparc | |
3660 | ;; | |
3661 | esac | |
3662 | ||
6a789d5e | 3663 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3664 | case "${target}" in |
6a789d5e JM |
3665 | alpha*-dec-osf*) |
3666 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3667 | ;; | |
3668 | i[3456789]86-*-linux*) | |
3669 | # This section makes it possible to build newlib natively on linux. | |
3670 | # If we are using a cross compiler then don't configure newlib. | |
3671 | if test x${is_cross_compiler} != xno ; then | |
3672 | noconfigdirs="$noconfigdirs target-newlib" | |
3673 | fi | |
3674 | noconfigdirs="$noconfigdirs target-libgloss" | |
3675 | # If we are not using a cross compiler, do configure newlib. | |
3676 | # Note however, that newlib will only be configured in this situation | |
3677 | # if the --with-newlib option has been given, because otherwise | |
3678 | # 'target-newlib' will appear in skipdirs. | |
3679 | ;; | |
3680 | i[3456789]86-*-rdos*) | |
3681 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3682 | ;; | |
3683 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3684 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3685 | ;; | |
3686 | sparc-*-sunos4*) | |
3687 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3688 | ;; | |
91dfef96 JM |
3689 | bpf-*-*) |
3690 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3691 | ;; | |
6a789d5e JM |
3692 | *-*-aix*) |
3693 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3694 | ;; | |
3695 | *-*-beos*) | |
3696 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3697 | ;; | |
671aa708 | 3698 | *-*-chorusos) |
0036370f | 3699 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3700 | ;; |
6a789d5e JM |
3701 | *-*-dragonfly*) |
3702 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3703 | ;; | |
3704 | *-*-freebsd*) | |
3705 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3706 | ;; | |
3707 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3708 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3709 | ;; | |
3710 | *-*-lynxos*) | |
3711 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3712 | ;; | |
3713 | *-*-mingw*) | |
3714 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3715 | ;; | |
3716 | *-*-netbsd*) | |
3717 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3718 | ;; | |
3719 | *-*-netware*) | |
3720 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3721 | ;; | |
3722 | *-*-tpf*) | |
3723 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3724 | ;; | |
3725 | *-*-uclinux*) | |
3726 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3727 | ;; | |
3728 | *-*-vxworks*) | |
3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3730 | ;; | |
3731 | esac | |
3732 | ||
3733 | case "${target}" in | |
3734 | *-*-chorusos) | |
3735 | ;; | |
3be96231 TG |
3736 | aarch64-*-darwin*) |
3737 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3738 | noconfigdirs="$noconfigdirs sim target-rda" | |
3739 | ;; | |
7431c1a1 AS |
3740 | amdgcn*-*-*) |
3741 | ;; | |
3be96231 TG |
3742 | arm-*-darwin*) |
3743 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3744 | noconfigdirs="$noconfigdirs sim target-rda" | |
3745 | ;; | |
75eeae1a | 3746 | powerpc-*-darwin*) |
e1514c3f | 3747 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3748 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3749 | ;; |
354ebf88 RW |
3750 | i[3456789]86-*-darwin*) |
3751 | noconfigdirs="$noconfigdirs ld gprof" | |
3752 | noconfigdirs="$noconfigdirs sim target-rda" | |
3753 | ;; | |
3754 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3755 | noconfigdirs="$noconfigdirs ld gas gprof" |
3756 | noconfigdirs="$noconfigdirs sim target-rda" | |
3757 | ;; | |
42c1cd8a AT |
3758 | *-*-darwin*) |
3759 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3760 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3761 | ;; |
8c6d158a | 3762 | *-*-dragonfly*) |
8c6d158a | 3763 | ;; |
c3f84f61 | 3764 | *-*-freebsd*) |
6de9cd9a DN |
3765 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3766 | && test -f /usr/local/include/gmp.h; then | |
3767 | with_gmp=/usr/local | |
3768 | fi | |
6de9cd9a | 3769 | ;; |
ef4e7569 US |
3770 | *-*-kaos*) |
3771 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3772 | noconfigdirs="$noconfigdirs target-libgloss" |
3773 | ;; | |
671aa708 | 3774 | *-*-netbsd*) |
671aa708 | 3775 | ;; |
61fec9ff | 3776 | *-*-netware*) |
671aa708 | 3777 | ;; |
fd6487af JS |
3778 | *-*-phoenix*) |
3779 | noconfigdirs="$noconfigdirs target-libgloss" | |
3780 | ;; | |
671aa708 | 3781 | *-*-rtems*) |
2909494b | 3782 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3783 | ;; |
a8ba31f2 EC |
3784 | # The tpf target doesn't support gdb yet. |
3785 | *-*-tpf*) | |
6a789d5e | 3786 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3787 | ;; |
5785c0ed | 3788 | *-*-uclinux*) |
6a789d5e | 3789 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3790 | ;; |
671aa708 | 3791 | *-*-vxworks*) |
671aa708 NN |
3792 | ;; |
3793 | alpha*-dec-osf*) | |
3794 | # ld works, but does not support shared libraries. | |
671aa708 | 3795 | # gas doesn't generate exception information. |
6a789d5e | 3796 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3797 | ;; |
3798 | alpha*-*-*vms*) | |
2909494b | 3799 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3800 | ;; |
671aa708 NN |
3801 | alpha*-*-*) |
3802 | # newlib is not 64 bit ready | |
2909494b | 3803 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3804 | ;; |
91dfef96 JM |
3805 | bpf-*-*) |
3806 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3807 | ;; | |
671aa708 | 3808 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3809 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3810 | ;; |
2fd88f4f AK |
3811 | arc*-*-*) |
3812 | noconfigdirs="$noconfigdirs sim" | |
3813 | ;; | |
671aa708 | 3814 | arm-*-pe*) |
2909494b | 3815 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3816 | ;; |
671aa708 | 3817 | arm-*-riscix*) |
0036370f | 3818 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3819 | ;; |
b588ae30 GJL |
3820 | avr-*-*) |
3821 | if test x${with_avrlibc} != xno; then | |
3822 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3823 | fi | |
3824 | ;; | |
671aa708 | 3825 | c4x-*-* | tic4x-*-*) |
0036370f | 3826 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3827 | ;; |
0036370f JM |
3828 | tic54x-*-*) |
3829 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3830 | ;; |
671aa708 | 3831 | d10v-*-*) |
0036370f | 3832 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3833 | ;; |
3834 | d30v-*-*) | |
0036370f | 3835 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3836 | ;; |
3837 | fr30-*-elf*) | |
2909494b | 3838 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3839 | ;; |
a05c2c75 L |
3840 | ft32-*-*) |
3841 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3842 | ;; | |
55f2d967 | 3843 | moxie-*-*) |
a05c2c75 | 3844 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3845 | ;; |
671aa708 | 3846 | h8300*-*-*) |
2909494b | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3848 | ;; |
3849 | h8500-*-*) | |
0036370f | 3850 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3851 | ;; |
ee6a22df | 3852 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3853 | ;; |
a05c2c75 L |
3854 | hppa*64*-*-hpux*) |
3855 | noconfigdirs="$noconfigdirs gdb" | |
3856 | ;; | |
3857 | hppa*-*-hpux11*) | |
3858 | noconfigdirs="$noconfigdirs gdb ld" | |
3859 | ;; | |
4569f85e | 3860 | hppa*64*-*-linux*) |
671aa708 | 3861 | ;; |
56f8587a | 3862 | hppa*-*-linux*) |
3e732ba0 | 3863 | ;; |
671aa708 | 3864 | hppa*-*-*elf* | \ |
671aa708 NN |
3865 | hppa*-*-lites* | \ |
3866 | hppa*-*-openbsd* | \ | |
3867 | hppa*64*-*-*) | |
671aa708 | 3868 | ;; |
c03353e2 | 3869 | hppa*-*-pro*) |
c03353e2 | 3870 | ;; |
671aa708 | 3871 | hppa*-*-*) |
2909494b | 3872 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3873 | ;; |
fb87ad5d | 3874 | i960-*-*) |
0036370f | 3875 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3876 | ;; |
671aa708 NN |
3877 | ia64*-*-elf*) |
3878 | # No gdb support yet. | |
1bcce263 | 3879 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3880 | ;; |
3881 | ia64*-**-hpux*) | |
5a2931d1 | 3882 | # No ld support yet. |
a05c2c75 | 3883 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3884 | ;; |
52535a64 | 3885 | ia64*-*-*vms*) |
091fe9ca TG |
3886 | # No ld support yet. |
3887 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3888 | ;; |
ef4c4300 | 3889 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3890 | ;; |
3891 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3892 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3893 | ;; |
671aa708 NN |
3894 | *-*-cygwin*) |
3895 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3896 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3897 | # always build newlib if winsup directory is present. |
b91f0a41 | 3898 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3899 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3900 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3901 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3902 | fi |
1c710c3c | 3903 | ;; |
f2a0e225 | 3904 | i[3456789]86-*-pe) |
ebb9f8b0 | 3905 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3906 | ;; |
f2a0e225 | 3907 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3908 | # The linker does not yet know about weak symbols in COFF, |
3909 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3910 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3911 | ;; |
f2a0e225 | 3912 | i[3456789]86-*-sco*) |
0036370f | 3913 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3914 | ;; |
fbdd5d87 | 3915 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3916 | noconfigdirs="$noconfigdirs target-libgloss" |
3917 | ;; | |
f2a0e225 | 3918 | i[3456789]86-*-sysv4*) |
0036370f | 3919 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3920 | ;; |
f2a0e225 | 3921 | i[3456789]86-*-beos*) |
6a789d5e | 3922 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3923 | ;; |
d1f8db0c | 3924 | i[3456789]86-*-rdos*) |
6a789d5e | 3925 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3926 | ;; |
671aa708 | 3927 | mmix-*-*) |
2909494b | 3928 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3929 | ;; |
ab34901f | 3930 | mt-*-*) |
79dd769c AH |
3931 | noconfigdirs="$noconfigdirs sim" |
3932 | ;; | |
58b40a67 FT |
3933 | nfp-*-*) |
3934 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
3935 | noconfigdirs="$noconfigdirs $target_libraries" | |
3936 | ;; | |
e6cbe965 SC |
3937 | pdp11-*-*) |
3938 | noconfigdirs="$noconfigdirs gdb gprof" | |
3939 | ;; | |
671aa708 NN |
3940 | powerpc-*-aix*) |
3941 | # copied from rs6000-*-* entry | |
6a789d5e | 3942 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3943 | ;; |
4569f85e | 3944 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3945 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3946 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3947 | # always build newlib. |
3948 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3949 | ;; | |
3950 | # This is temporary until we can link against shared libraries | |
3951 | powerpcle-*-solaris*) | |
0036370f | 3952 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3953 | ;; |
3954 | powerpc-*-beos*) | |
6a789d5e | 3955 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3956 | ;; |
671aa708 | 3957 | rs6000-*-lynxos*) |
6a789d5e | 3958 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3959 | ;; |
3960 | rs6000-*-aix*) | |
6a789d5e | 3961 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3962 | ;; |
3963 | rs6000-*-*) | |
2909494b | 3964 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3965 | ;; |
3966 | m68k-apollo-*) | |
0036370f | 3967 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3968 | ;; |
ca9fe997 | 3969 | microblaze*) |
2909494b | 3970 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3971 | ;; |
d896cc4d | 3972 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3973 | if test x$with_newlib = xyes; then |
3974 | noconfigdirs="$noconfigdirs gprof" | |
3975 | fi | |
d9dced13 | 3976 | ;; |
671aa708 | 3977 | mips*-*-irix5*) |
0036370f | 3978 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3979 | ;; |
3980 | mips*-*-irix6*) | |
2909494b | 3981 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3982 | ;; |
671aa708 | 3983 | mips*-*-bsd*) |
bc98bcc4 | 3984 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3985 | ;; |
671aa708 | 3986 | mips*-*-linux*) |
671aa708 | 3987 | ;; |
bc98bcc4 JBG |
3988 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3989 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3990 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3991 | ;; | |
671aa708 | 3992 | mips*-*-*) |
2909494b | 3993 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3994 | ;; |
738f2522 | 3995 | nvptx*-*-*) |
738f2522 BS |
3996 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3997 | ;; | |
bc6d9014 | 3998 | sh-*-*) |
ea2002ba CB |
3999 | case "${target}" in |
4000 | sh*-*-elf) | |
2909494b | 4001 | ;; |
ea2002ba | 4002 | *) |
2909494b | 4003 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 4004 | esac |
671aa708 | 4005 | ;; |
671aa708 | 4006 | sparc-*-sunos4*) |
6a789d5e | 4007 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
4008 | use_gnu_ld=no |
4009 | fi | |
4010 | ;; | |
b42f0d7e | 4011 | tic6x-*-*) |
0d557ff8 | 4012 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 4013 | ;; |
341c653c | 4014 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
4015 | noconfigdirs="$noconfigdirs sim" |
4016 | ;; | |
671aa708 | 4017 | v810-*-*) |
0036370f | 4018 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
4019 | ;; |
4020 | vax-*-*) | |
2909494b | 4021 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 4022 | ;; |
1fc1d82e MR |
4023 | wasm32-*-*) |
4024 | noconfigdirs="$noconfigdirs ld" | |
4025 | ;; | |
671aa708 | 4026 | esac |
79c06341 | 4027 | |
671aa708 NN |
4028 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4029 | # depends upon some newlib header files. | |
4030 | case "${noconfigdirs}" in | |
4031 | *target-libgloss*) ;; | |
4032 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4033 | esac | |
4034 | ||
671aa708 | 4035 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
4036 | host_makefile_frag=/dev/null |
4037 | if test -d ${srcdir}/config ; then | |
4038 | case "${host}" in | |
f2a0e225 | 4039 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
4040 | host_makefile_frag="config/mh-djgpp" |
4041 | ;; | |
4042 | *-cygwin*) | |
2a79c47f | 4043 | |
5213506e RW |
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4045 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 4046 | echo a >cygwin-cat-check |
e25a8c82 | 4047 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 4048 | rm cygwin-cat-check |
5213506e RW |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4050 | $as_echo "yes" >&6; } | |
2a79c47f NC |
4051 | else |
4052 | rm cygwin-cat-check | |
5213506e RW |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4054 | $as_echo "no" >&6; } | |
22e05272 | 4055 | as_fn_error $? "The cat command does not ignore carriage return characters. |
2a79c47f NC |
4056 | Please either mount the build directory in binary mode or run the following |
4057 | commands before running any configure script: | |
4058 | set -o igncr | |
4059 | export SHELLOPTS | |
5213506e | 4060 | " "$LINENO" 5 |
2a79c47f NC |
4061 | fi |
4062 | ||
671aa708 NN |
4063 | host_makefile_frag="config/mh-cygwin" |
4064 | ;; | |
c53a18d3 | 4065 | *-mingw*) |
1f5a6b84 | 4066 | host_makefile_frag="config/mh-mingw" |
95af8923 | 4067 | ;; |
cabb9d59 | 4068 | alpha*-linux*) |
13be44ed UB |
4069 | host_makefile_frag="config/mh-alpha-linux" |
4070 | ;; | |
efd41714 | 4071 | hppa*-hp-hpux10*) |
efd41714 | 4072 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 4073 | ;; |
111eeb6e | 4074 | hppa*-hp-hpux*) |
efd41714 PB |
4075 | host_makefile_frag="config/mh-pa" |
4076 | ;; | |
4077 | hppa*-*) | |
4078 | host_makefile_frag="config/mh-pa" | |
4079 | ;; | |
d8ed14ce IS |
4080 | *-*-darwin*) |
4081 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 4082 | ;; |
d19bca38 PB |
4083 | powerpc-*-aix*) |
4084 | host_makefile_frag="config/mh-ppc-aix" | |
4085 | ;; | |
4086 | rs6000-*-aix*) | |
4087 | host_makefile_frag="config/mh-ppc-aix" | |
4088 | ;; | |
671aa708 NN |
4089 | esac |
4090 | fi | |
4091 | ||
55ffb5ed | 4092 | if test "${build}" != "${host}" ; then |
0999159b PB |
4093 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4094 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 4095 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 4096 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
0999159b | 4097 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 4098 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
b4c522fa | 4099 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
0999159b PB |
4100 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4101 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4102 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4103 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4104 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4105 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4106 | else | |
4107 | AR_FOR_BUILD="\$(AR)" | |
4108 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 4109 | CC_FOR_BUILD="\$(CC)" |
0999159b | 4110 | CXX_FOR_BUILD="\$(CXX)" |
0999159b | 4111 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 4112 | GOC_FOR_BUILD="\$(GOC)" |
b4c522fa | 4113 | GDC_FOR_BUILD="\$(GDC)" |
0999159b PB |
4114 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4115 | LD_FOR_BUILD="\$(LD)" | |
4116 | NM_FOR_BUILD="\$(NM)" | |
4117 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4118 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4119 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
4120 | fi |
4121 | ||
4122 | ac_ext=c | |
1c710c3c DJ |
4123 | ac_cpp='$CPP $CPPFLAGS' |
4124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4127 | if test -n "$ac_tool_prefix"; then | |
4128 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4129 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4131 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4132 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4133 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4134 | else |
4135 | if test -n "$CC"; then | |
4136 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4137 | else | |
4138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4139 | for as_dir in $PATH | |
4140 | do | |
4141 | IFS=$as_save_IFS | |
4142 | test -z "$as_dir" && as_dir=. | |
5213506e | 4143 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4145 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 4146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4147 | break 2 |
4148 | fi | |
4149 | done | |
5213506e RW |
4150 | done |
4151 | IFS=$as_save_IFS | |
1c710c3c DJ |
4152 | |
4153 | fi | |
4154 | fi | |
4155 | CC=$ac_cv_prog_CC | |
4156 | if test -n "$CC"; then | |
5213506e RW |
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4158 | $as_echo "$CC" >&6; } | |
1c710c3c | 4159 | else |
5213506e RW |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4161 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4162 | fi |
4163 | ||
5213506e | 4164 | |
1c710c3c DJ |
4165 | fi |
4166 | if test -z "$ac_cv_prog_CC"; then | |
4167 | ac_ct_CC=$CC | |
fb0103e5 RG |
4168 | # Extract the first word of "gcc", so it can be a program name with args. |
4169 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4172 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4173 | $as_echo_n "(cached) " >&6 |
1c710c3c DJ |
4174 | else |
4175 | if test -n "$ac_ct_CC"; then | |
4176 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4177 | else | |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
5213506e | 4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4185 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4187 | break 2 |
4188 | fi | |
4189 | done | |
5213506e RW |
4190 | done |
4191 | IFS=$as_save_IFS | |
1c710c3c DJ |
4192 | |
4193 | fi | |
4194 | fi | |
4195 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4196 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4198 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4199 | else |
5213506e RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4202 | fi |
4203 | ||
5213506e RW |
4204 | if test "x$ac_ct_CC" = x; then |
4205 | CC="" | |
4206 | else | |
4207 | case $cross_compiling:$ac_tool_warned in | |
4208 | yes:) | |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4210 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4211 | ac_tool_warned=yes ;; | |
4212 | esac | |
4213 | CC=$ac_ct_CC | |
4214 | fi | |
1c710c3c DJ |
4215 | else |
4216 | CC="$ac_cv_prog_CC" | |
4217 | fi | |
4218 | ||
4219 | if test -z "$CC"; then | |
5213506e RW |
4220 | if test -n "$ac_tool_prefix"; then |
4221 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4222 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4224 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4225 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4226 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4227 | else |
4228 | if test -n "$CC"; then | |
4229 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4230 | else | |
1c710c3c DJ |
4231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4232 | for as_dir in $PATH | |
4233 | do | |
4234 | IFS=$as_save_IFS | |
4235 | test -z "$as_dir" && as_dir=. | |
5213506e | 4236 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4238 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4240 | break 2 |
4241 | fi | |
4242 | done | |
5213506e RW |
4243 | done |
4244 | IFS=$as_save_IFS | |
1c710c3c | 4245 | |
0b0dc272 | 4246 | fi |
0b0dc272 | 4247 | fi |
1c710c3c | 4248 | CC=$ac_cv_prog_CC |
af71363e | 4249 | if test -n "$CC"; then |
5213506e RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4251 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4252 | else |
5213506e RW |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4254 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4255 | fi |
4256 | ||
2aeb72e9 | 4257 | |
5213506e | 4258 | fi |
1c710c3c | 4259 | fi |
55ffb5ed NN |
4260 | if test -z "$CC"; then |
4261 | # Extract the first word of "cc", so it can be a program name with args. | |
4262 | set dummy cc; ac_word=$2 | |
5213506e RW |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4264 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4265 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4266 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4267 | else |
4268 | if test -n "$CC"; then | |
4269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4270 | else | |
0b0dc272 | 4271 | ac_prog_rejected=no |
1c710c3c DJ |
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4273 | for as_dir in $PATH | |
4274 | do | |
4275 | IFS=$as_save_IFS | |
4276 | test -z "$as_dir" && as_dir=. | |
5213506e | 4277 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c DJ |
4279 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4280 | ac_prog_rejected=yes | |
4281 | continue | |
4282 | fi | |
4283 | ac_cv_prog_CC="cc" | |
5213506e | 4284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4285 | break 2 |
4286 | fi | |
4287 | done | |
5213506e RW |
4288 | done |
4289 | IFS=$as_save_IFS | |
1c710c3c | 4290 | |
55ffb5ed NN |
4291 | if test $ac_prog_rejected = yes; then |
4292 | # We found a bogon in the path, so make sure we never use it. | |
4293 | set dummy $ac_cv_prog_CC | |
4294 | shift | |
1c710c3c | 4295 | if test $# != 0; then |
55ffb5ed NN |
4296 | # We chose a different compiler from the bogus one. |
4297 | # However, it has the same basename, so the bogon will be chosen | |
4298 | # first if we set CC to just the basename; use the full file name. | |
4299 | shift | |
1c710c3c | 4300 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4301 | fi |
4302 | fi | |
4303 | fi | |
4304 | fi | |
1c710c3c | 4305 | CC=$ac_cv_prog_CC |
55ffb5ed | 4306 | if test -n "$CC"; then |
5213506e RW |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4308 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4309 | else |
5213506e RW |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4311 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4312 | fi |
4313 | ||
5213506e | 4314 | |
1c710c3c DJ |
4315 | fi |
4316 | if test -z "$CC"; then | |
4317 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4318 | for ac_prog in cl.exe |
1c710c3c DJ |
4319 | do |
4320 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4321 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4324 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 4325 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
4326 | else |
4327 | if test -n "$CC"; then | |
4328 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4329 | else | |
1c710c3c DJ |
4330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4331 | for as_dir in $PATH | |
4332 | do | |
4333 | IFS=$as_save_IFS | |
4334 | test -z "$as_dir" && as_dir=. | |
5213506e | 4335 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4337 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4339 | break 2 |
4340 | fi | |
4341 | done | |
5213506e RW |
4342 | done |
4343 | IFS=$as_save_IFS | |
1c710c3c | 4344 | |
55ffb5ed NN |
4345 | fi |
4346 | fi | |
1c710c3c | 4347 | CC=$ac_cv_prog_CC |
55ffb5ed | 4348 | if test -n "$CC"; then |
5213506e RW |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4350 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4351 | else |
5213506e RW |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4353 | $as_echo "no" >&6; } | |
fb0103e5 | 4354 | fi |
af71363e | 4355 | |
5213506e | 4356 | |
1c710c3c DJ |
4357 | test -n "$CC" && break |
4358 | done | |
af71363e | 4359 | fi |
1c710c3c DJ |
4360 | if test -z "$CC"; then |
4361 | ac_ct_CC=$CC | |
5213506e | 4362 | for ac_prog in cl.exe |
1c710c3c DJ |
4363 | do |
4364 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4365 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4367 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4368 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 4369 | $as_echo_n "(cached) " >&6 |
0b0dc272 | 4370 | else |
1c710c3c DJ |
4371 | if test -n "$ac_ct_CC"; then |
4372 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4373 | else |
1c710c3c DJ |
4374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4375 | for as_dir in $PATH | |
4376 | do | |
4377 | IFS=$as_save_IFS | |
4378 | test -z "$as_dir" && as_dir=. | |
5213506e | 4379 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4380 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 4381 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4382 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4383 | break 2 |
4384 | fi | |
4385 | done | |
5213506e RW |
4386 | done |
4387 | IFS=$as_save_IFS | |
1c710c3c | 4388 | |
af71363e AS |
4389 | fi |
4390 | fi | |
1c710c3c DJ |
4391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4392 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4394 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4395 | else |
5213506e RW |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4397 | $as_echo "no" >&6; } | |
af71363e | 4398 | fi |
0b0dc272 | 4399 | |
5213506e | 4400 | |
1c710c3c DJ |
4401 | test -n "$ac_ct_CC" && break |
4402 | done | |
4403 | ||
5213506e RW |
4404 | if test "x$ac_ct_CC" = x; then |
4405 | CC="" | |
4406 | else | |
4407 | case $cross_compiling:$ac_tool_warned in | |
4408 | yes:) | |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4410 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4411 | ac_tool_warned=yes ;; | |
4412 | esac | |
4413 | CC=$ac_ct_CC | |
4414 | fi | |
1c710c3c DJ |
4415 | fi |
4416 | ||
4417 | fi | |
4418 | ||
4419 | ||
5213506e RW |
4420 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4421 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4422 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4423 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c DJ |
4424 | |
4425 | # Provide some information about the compiler. | |
5213506e RW |
4426 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4427 | set X $ac_compile | |
4428 | ac_compiler=$2 | |
4429 | for ac_option in --version -v -V -qversion; do | |
4430 | { { ac_try="$ac_compiler $ac_option >&5" | |
4431 | case "(($ac_try" in | |
4432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4433 | *) ac_try_echo=$ac_try;; | |
4434 | esac | |
4435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4436 | $as_echo "$ac_try_echo"; } >&5 | |
4437 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4438 | ac_status=$? |
5213506e RW |
4439 | if test -s conftest.err; then |
4440 | sed '10a\ | |
4441 | ... rest of stderr output deleted ... | |
4442 | 10q' conftest.err >conftest.er1 | |
4443 | cat conftest.er1 >&5 | |
5213506e | 4444 | fi |
22e05272 | 4445 | rm -f conftest.er1 conftest.err |
5213506e RW |
4446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4447 | test $ac_status = 0; } | |
4448 | done | |
1c710c3c | 4449 | |
5213506e | 4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4451 | /* end confdefs.h. */ |
4452 | ||
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | ||
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4462 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
1c710c3c DJ |
4463 | # Try to create an executable without -o first, disregard a.out. |
4464 | # It will help us diagnose broken compilers, and finding out an intuition | |
4465 | # of exeext. | |
22e05272 JM |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4467 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4468 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4469 | ||
4470 | # The possible output files: | |
4471 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4472 | ||
4473 | ac_rmfiles= | |
4474 | for ac_file in $ac_files | |
4475 | do | |
4476 | case $ac_file in | |
4477 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4478 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4479 | esac | |
4480 | done | |
4481 | rm -f $ac_rmfiles | |
4482 | ||
4483 | if { { ac_try="$ac_link_default" | |
4484 | case "(($ac_try" in | |
4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4486 | *) ac_try_echo=$ac_try;; | |
4487 | esac | |
4488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4489 | $as_echo "$ac_try_echo"; } >&5 | |
4490 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4491 | ac_status=$? |
5213506e RW |
4492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4493 | test $ac_status = 0; }; then : | |
4494 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4495 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4496 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4497 | # so that the user can short-circuit this test for compilers unknown to | |
4498 | # Autoconf. | |
4499 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4500 | do |
4501 | test -f "$ac_file" || continue | |
4502 | case $ac_file in | |
5213506e | 4503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4504 | ;; |
4505 | [ab].out ) | |
4506 | # We found the default executable, but exeext='' is most | |
4507 | # certainly right. | |
4508 | break;; | |
4509 | *.* ) | |
5213506e RW |
4510 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4511 | then :; else | |
4512 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4513 | fi | |
4514 | # We set ac_cv_exeext here because the later test for it is not | |
4515 | # safe: cross compilers may not add the suffix if given an `-o' | |
4516 | # argument, so we may need to know it at that point already. | |
4517 | # Even if this section looks crufty: it has the advantage of | |
4518 | # actually working. | |
1c710c3c DJ |
4519 | break;; |
4520 | * ) | |
4521 | break;; | |
4522 | esac | |
4523 | done | |
5213506e RW |
4524 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4525 | ||
1c710c3c | 4526 | else |
5213506e RW |
4527 | ac_file='' |
4528 | fi | |
5213506e | 4529 | if test -z "$ac_file"; then : |
22e05272 JM |
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4531 | $as_echo "no" >&6; } | |
4532 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4533 | sed 's/^/| /' conftest.$ac_ext >&5 |
4534 | ||
5213506e RW |
4535 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4536 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4537 | as_fn_error 77 "C compiler cannot create executables |
4538 | See \`config.log' for more details" "$LINENO" 5; } | |
4539 | else | |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4541 | $as_echo "yes" >&6; } | |
1c710c3c | 4542 | fi |
22e05272 JM |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4544 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4546 | $as_echo "$ac_file" >&6; } | |
1c710c3c | 4547 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4548 | |
22e05272 | 4549 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
1c710c3c | 4550 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4552 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4553 | if { { ac_try="$ac_link" | |
4554 | case "(($ac_try" in | |
4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4556 | *) ac_try_echo=$ac_try;; | |
4557 | esac | |
4558 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4559 | $as_echo "$ac_try_echo"; } >&5 | |
4560 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4561 | ac_status=$? |
5213506e RW |
4562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4563 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4564 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4565 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4566 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4567 | # `rm'. | |
4568 | for ac_file in conftest.exe conftest conftest.*; do | |
4569 | test -f "$ac_file" || continue | |
4570 | case $ac_file in | |
5213506e | 4571 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4572 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4573 | break;; |
4574 | * ) break;; | |
4575 | esac | |
4576 | done | |
af71363e | 4577 | else |
5213506e RW |
4578 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4579 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4580 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4581 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4582 | fi |
22e05272 | 4583 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4585 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4586 | |
4587 | rm -f conftest.$ac_ext | |
4588 | EXEEXT=$ac_cv_exeext | |
4589 | ac_exeext=$EXEEXT | |
22e05272 JM |
4590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4591 | /* end confdefs.h. */ | |
4592 | #include <stdio.h> | |
4593 | int | |
4594 | main () | |
4595 | { | |
4596 | FILE *f = fopen ("conftest.out", "w"); | |
4597 | return ferror (f) || fclose (f) != 0; | |
4598 | ||
4599 | ; | |
4600 | return 0; | |
4601 | } | |
4602 | _ACEOF | |
4603 | ac_clean_files="$ac_clean_files conftest.out" | |
4604 | # Check that the compiler produces executables we can run. If not, either | |
4605 | # the compiler is broken, or we cross compile. | |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4607 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4608 | if test "$cross_compiling" != yes; then | |
4609 | { { ac_try="$ac_link" | |
4610 | case "(($ac_try" in | |
4611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4612 | *) ac_try_echo=$ac_try;; | |
4613 | esac | |
4614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4615 | $as_echo "$ac_try_echo"; } >&5 | |
4616 | (eval "$ac_link") 2>&5 | |
4617 | ac_status=$? | |
4618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4619 | test $ac_status = 0; } | |
4620 | if { ac_try='./conftest$ac_cv_exeext' | |
4621 | { { case "(($ac_try" in | |
4622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4623 | *) ac_try_echo=$ac_try;; | |
4624 | esac | |
4625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4626 | $as_echo "$ac_try_echo"; } >&5 | |
4627 | (eval "$ac_try") 2>&5 | |
4628 | ac_status=$? | |
4629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4630 | test $ac_status = 0; }; }; then | |
4631 | cross_compiling=no | |
4632 | else | |
4633 | if test "$cross_compiling" = maybe; then | |
4634 | cross_compiling=yes | |
4635 | else | |
4636 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4637 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4638 | as_fn_error $? "cannot run C compiled programs. | |
4639 | If you meant to cross compile, use \`--host'. | |
4640 | See \`config.log' for more details" "$LINENO" 5; } | |
4641 | fi | |
4642 | fi | |
4643 | fi | |
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4645 | $as_echo "$cross_compiling" >&6; } | |
4646 | ||
4647 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4648 | ac_clean_files=$ac_clean_files_save | |
5213506e RW |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4650 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4651 | if ${ac_cv_objext+:} false; then : |
5213506e | 4652 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4653 | else |
5213506e | 4654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4655 | /* end confdefs.h. */ |
4656 | ||
4657 | int | |
4658 | main () | |
4659 | { | |
4660 | ||
4661 | ; | |
4662 | return 0; | |
4663 | } | |
4664 | _ACEOF | |
4665 | rm -f conftest.o conftest.obj | |
5213506e RW |
4666 | if { { ac_try="$ac_compile" |
4667 | case "(($ac_try" in | |
4668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4669 | *) ac_try_echo=$ac_try;; | |
4670 | esac | |
4671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4672 | $as_echo "$ac_try_echo"; } >&5 | |
4673 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4674 | ac_status=$? |
5213506e RW |
4675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4676 | test $ac_status = 0; }; then : | |
4677 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4678 | test -f "$ac_file" || continue; | |
1c710c3c | 4679 | case $ac_file in |
5213506e | 4680 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4681 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4682 | break;; | |
4683 | esac | |
4684 | done | |
4685 | else | |
5213506e | 4686 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
4688 | ||
5213506e RW |
4689 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4691 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4692 | See \`config.log' for more details" "$LINENO" 5; } | |
1c710c3c | 4693 | fi |
1c710c3c DJ |
4694 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4695 | fi | |
5213506e RW |
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4697 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4698 | OBJEXT=$ac_cv_objext |
4699 | ac_objext=$OBJEXT | |
5213506e RW |
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4701 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4702 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4703 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4704 | else |
5213506e | 4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4706 | /* end confdefs.h. */ |
4707 | ||
4708 | int | |
4709 | main () | |
4710 | { | |
4711 | #ifndef __GNUC__ | |
4712 | choke me | |
4713 | #endif | |
4714 | ||
4715 | ; | |
4716 | return 0; | |
4717 | } | |
4718 | _ACEOF | |
5213506e | 4719 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4720 | ac_compiler_gnu=yes |
4721 | else | |
5213506e | 4722 | ac_compiler_gnu=no |
1c710c3c | 4723 | fi |
5213506e | 4724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4725 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4726 | ||
4727 | fi | |
5213506e RW |
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4729 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4730 | if test $ac_compiler_gnu = yes; then | |
4731 | GCC=yes | |
4732 | else | |
4733 | GCC= | |
4734 | fi | |
1c710c3c DJ |
4735 | ac_test_CFLAGS=${CFLAGS+set} |
4736 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4738 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4739 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
4740 | $as_echo_n "(cached) " >&6 |
4741 | else | |
4742 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4743 | ac_c_werror_flag=yes | |
4744 | ac_cv_prog_cc_g=no | |
4745 | CFLAGS="-g" | |
4746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4747 | /* end confdefs.h. */ |
4748 | ||
4749 | int | |
4750 | main () | |
4751 | { | |
4752 | ||
4753 | ; | |
4754 | return 0; | |
4755 | } | |
4756 | _ACEOF | |
5213506e | 4757 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4758 | ac_cv_prog_cc_g=yes |
4759 | else | |
5213506e RW |
4760 | CFLAGS="" |
4761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4762 | /* end confdefs.h. */ | |
4763 | ||
4764 | int | |
4765 | main () | |
4766 | { | |
4767 | ||
4768 | ; | |
4769 | return 0; | |
4770 | } | |
4771 | _ACEOF | |
4772 | if ac_fn_c_try_compile "$LINENO"; then : | |
4773 | ||
4774 | else | |
4775 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4776 | CFLAGS="-g" | |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4778 | /* end confdefs.h. */ | |
af71363e | 4779 | |
5213506e RW |
4780 | int |
4781 | main () | |
4782 | { | |
4783 | ||
4784 | ; | |
4785 | return 0; | |
4786 | } | |
4787 | _ACEOF | |
4788 | if ac_fn_c_try_compile "$LINENO"; then : | |
4789 | ac_cv_prog_cc_g=yes | |
4790 | fi | |
4791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4792 | fi |
5213506e | 4793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4794 | fi |
5213506e RW |
4795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4796 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4797 | fi | |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4799 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4800 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4801 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4802 | elif test $ac_cv_prog_cc_g = yes; then |
4803 | if test "$GCC" = yes; then | |
4804 | CFLAGS="-g -O2" | |
4805 | else | |
4806 | CFLAGS="-g" | |
4807 | fi | |
4808 | else | |
4809 | if test "$GCC" = yes; then | |
4810 | CFLAGS="-O2" | |
4811 | else | |
4812 | CFLAGS= | |
4813 | fi | |
4814 | fi | |
5213506e RW |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4816 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4817 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4818 | $as_echo_n "(cached) " >&6 |
1c710c3c | 4819 | else |
5213506e | 4820 | ac_cv_prog_cc_c89=no |
1c710c3c | 4821 | ac_save_CC=$CC |
5213506e | 4822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4823 | /* end confdefs.h. */ |
4824 | #include <stdarg.h> | |
4825 | #include <stdio.h> | |
22e05272 | 4826 | struct stat; |
1c710c3c DJ |
4827 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4828 | struct buf { int x; }; | |
4829 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4830 | static char *e (p, i) | |
4831 | char **p; | |
4832 | int i; | |
4833 | { | |
4834 | return p[i]; | |
4835 | } | |
4836 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4837 | { | |
4838 | char *s; | |
4839 | va_list v; | |
4840 | va_start (v,p); | |
4841 | s = g (p, va_arg (v,int)); | |
4842 | va_end (v); | |
4843 | return s; | |
4844 | } | |
4845 | ||
4846 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4847 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4848 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4849 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4850 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4851 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4852 | that's true only with -std. */ |
1c710c3c DJ |
4853 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4854 | ||
5213506e RW |
4855 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4856 | inside strings and character constants. */ | |
4857 | #define FOO(x) 'x' | |
4858 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4859 | ||
1c710c3c DJ |
4860 | int test (int i, double x); |
4861 | struct s1 {int (*f) (int a);}; | |
4862 | struct s2 {int (*f) (double a);}; | |
4863 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4864 | int argc; | |
4865 | char **argv; | |
4866 | int | |
4867 | main () | |
4868 | { | |
4869 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4870 | ; | |
4871 | return 0; | |
4872 | } | |
4873 | _ACEOF | |
5213506e RW |
4874 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4875 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4876 | do |
4877 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4878 | if ac_fn_c_try_compile "$LINENO"; then : |
4879 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4880 | fi |
5213506e RW |
4881 | rm -f core conftest.err conftest.$ac_objext |
4882 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4883 | done |
5213506e | 4884 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4885 | CC=$ac_save_CC |
4886 | ||
4887 | fi | |
5213506e RW |
4888 | # AC_CACHE_VAL |
4889 | case "x$ac_cv_prog_cc_c89" in | |
4890 | x) | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4892 | $as_echo "none needed" >&6; } ;; | |
4893 | xno) | |
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4895 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4896 | *) |
5213506e RW |
4897 | CC="$CC $ac_cv_prog_cc_c89" |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4899 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4900 | esac |
5213506e | 4901 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4902 | |
2aeb72e9 DD |
4903 | fi |
4904 | ||
2aeb72e9 DD |
4905 | ac_ext=c |
4906 | ac_cpp='$CPP $CPPFLAGS' | |
4907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4910 | ||
5213506e | 4911 | ac_ext=cpp |
2aeb72e9 DD |
4912 | ac_cpp='$CXXCPP $CPPFLAGS' |
4913 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4914 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4915 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4916 | if test -z "$CXX"; then |
4917 | if test -n "$CCC"; then | |
4918 | CXX=$CCC | |
4919 | else | |
4920 | if test -n "$ac_tool_prefix"; then | |
4921 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4922 | do |
4923 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4924 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4926 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4927 | if ${ac_cv_prog_CXX+:} false; then : |
5213506e | 4928 | $as_echo_n "(cached) " >&6 |
2aeb72e9 DD |
4929 | else |
4930 | if test -n "$CXX"; then | |
4931 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4932 | else | |
4933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4934 | for as_dir in $PATH | |
4935 | do | |
4936 | IFS=$as_save_IFS | |
4937 | test -z "$as_dir" && as_dir=. | |
5213506e | 4938 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2aeb72e9 | 4940 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4942 | break 2 |
4943 | fi | |
4944 | done | |
5213506e RW |
4945 | done |
4946 | IFS=$as_save_IFS | |
55ffb5ed | 4947 | |
c3a86da9 DJ |
4948 | fi |
4949 | fi | |
4950 | CXX=$ac_cv_prog_CXX | |
4951 | if test -n "$CXX"; then | |
5213506e RW |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4953 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4954 | else |
5213506e RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4956 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4957 | fi |
4958 | ||
5213506e | 4959 | |
c3a86da9 DJ |
4960 | test -n "$CXX" && break |
4961 | done | |
4962 | fi | |
4963 | if test -z "$CXX"; then | |
4964 | ac_ct_CXX=$CXX | |
5213506e | 4965 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4966 | do |
4967 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4968 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4970 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4971 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
5213506e | 4972 | $as_echo_n "(cached) " >&6 |
c3a86da9 DJ |
4973 | else |
4974 | if test -n "$ac_ct_CXX"; then | |
4975 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4976 | else | |
4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4978 | for as_dir in $PATH | |
4979 | do | |
4980 | IFS=$as_save_IFS | |
4981 | test -z "$as_dir" && as_dir=. | |
5213506e | 4982 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c3a86da9 | 4984 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4986 | break 2 |
4987 | fi | |
4988 | done | |
5213506e RW |
4989 | done |
4990 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4991 | |
4992 | fi | |
4993 | fi | |
4994 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4995 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4997 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4998 | else |
5213506e RW |
4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5000 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
5001 | fi |
5002 | ||
5213506e | 5003 | |
c3a86da9 DJ |
5004 | test -n "$ac_ct_CXX" && break |
5005 | done | |
c3a86da9 | 5006 | |
5213506e RW |
5007 | if test "x$ac_ct_CXX" = x; then |
5008 | CXX="g++" | |
5009 | else | |
5010 | case $cross_compiling:$ac_tool_warned in | |
5011 | yes:) | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5013 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5014 | ac_tool_warned=yes ;; | |
5015 | esac | |
5016 | CXX=$ac_ct_CXX | |
5017 | fi | |
c3a86da9 DJ |
5018 | fi |
5019 | ||
5213506e RW |
5020 | fi |
5021 | fi | |
c3a86da9 | 5022 | # Provide some information about the compiler. |
5213506e RW |
5023 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5024 | set X $ac_compile | |
5025 | ac_compiler=$2 | |
5026 | for ac_option in --version -v -V -qversion; do | |
5027 | { { ac_try="$ac_compiler $ac_option >&5" | |
5028 | case "(($ac_try" in | |
5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5030 | *) ac_try_echo=$ac_try;; | |
5031 | esac | |
5032 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5033 | $as_echo "$ac_try_echo"; } >&5 | |
5034 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 5035 | ac_status=$? |
5213506e RW |
5036 | if test -s conftest.err; then |
5037 | sed '10a\ | |
5038 | ... rest of stderr output deleted ... | |
5039 | 10q' conftest.err >conftest.er1 | |
5040 | cat conftest.er1 >&5 | |
5213506e | 5041 | fi |
22e05272 | 5042 | rm -f conftest.er1 conftest.err |
5213506e RW |
5043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5044 | test $ac_status = 0; } | |
5045 | done | |
c3a86da9 | 5046 | |
5213506e RW |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5048 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5049 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
5213506e | 5050 | $as_echo_n "(cached) " >&6 |
c3a86da9 | 5051 | else |
5213506e | 5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
5053 | /* end confdefs.h. */ |
5054 | ||
5055 | int | |
5056 | main () | |
5057 | { | |
5058 | #ifndef __GNUC__ | |
5059 | choke me | |
5060 | #endif | |
5061 | ||
5062 | ; | |
5063 | return 0; | |
5064 | } | |
5065 | _ACEOF | |
5213506e | 5066 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5067 | ac_compiler_gnu=yes |
5068 | else | |
5213506e | 5069 | ac_compiler_gnu=no |
c3a86da9 | 5070 | fi |
5213506e | 5071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
5072 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5073 | ||
5074 | fi | |
5213506e RW |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5076 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5077 | if test $ac_compiler_gnu = yes; then | |
5078 | GXX=yes | |
5079 | else | |
5080 | GXX= | |
5081 | fi | |
c3a86da9 DJ |
5082 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5083 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5085 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5086 | if ${ac_cv_prog_cxx_g+:} false; then : |
5213506e RW |
5087 | $as_echo_n "(cached) " >&6 |
5088 | else | |
5089 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5090 | ac_cxx_werror_flag=yes | |
5091 | ac_cv_prog_cxx_g=no | |
5092 | CXXFLAGS="-g" | |
5093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
5094 | /* end confdefs.h. */ |
5095 | ||
5096 | int | |
5097 | main () | |
5098 | { | |
5099 | ||
5100 | ; | |
5101 | return 0; | |
5102 | } | |
5103 | _ACEOF | |
5213506e | 5104 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
5105 | ac_cv_prog_cxx_g=yes |
5106 | else | |
5213506e RW |
5107 | CXXFLAGS="" |
5108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5109 | /* end confdefs.h. */ |
5213506e | 5110 | |
c3a86da9 DJ |
5111 | int |
5112 | main () | |
5113 | { | |
5213506e | 5114 | |
c3a86da9 DJ |
5115 | ; |
5116 | return 0; | |
5117 | } | |
5118 | _ACEOF | |
5213506e | 5119 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 5120 | |
5213506e RW |
5121 | else |
5122 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5123 | CXXFLAGS="-g" | |
5124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 5125 | /* end confdefs.h. */ |
5213506e | 5126 | |
c3a86da9 DJ |
5127 | int |
5128 | main () | |
5129 | { | |
5213506e | 5130 | |
c3a86da9 DJ |
5131 | ; |
5132 | return 0; | |
5133 | } | |
5134 | _ACEOF | |
5213506e RW |
5135 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5136 | ac_cv_prog_cxx_g=yes | |
11a67599 | 5137 | fi |
5213506e RW |
5138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5139 | fi | |
5140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5141 | fi | |
5142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5143 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5144 | fi | |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5146 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5147 | if test "$ac_test_CXXFLAGS" = set; then | |
5148 | CXXFLAGS=$ac_save_CXXFLAGS | |
5149 | elif test $ac_cv_prog_cxx_g = yes; then | |
5150 | if test "$GXX" = yes; then | |
5151 | CXXFLAGS="-g -O2" | |
5152 | else | |
5153 | CXXFLAGS="-g" | |
5154 | fi | |
5155 | else | |
5156 | if test "$GXX" = yes; then | |
5157 | CXXFLAGS="-O2" | |
5158 | else | |
5159 | CXXFLAGS= | |
5160 | fi | |
c3a86da9 | 5161 | fi |
c3a86da9 DJ |
5162 | ac_ext=c |
5163 | ac_cpp='$CPP $CPPFLAGS' | |
5164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5167 | ||
5168 | ||
5169 | # We must set the default linker to the linker used by gcc for the correct | |
5170 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5171 | # set the LD default to the ld used by gcc. | |
5172 | if test -z "$LD"; then | |
5173 | if test "$GCC" = yes; then | |
5174 | case $build in | |
5175 | *-*-mingw*) | |
5176 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5177 | *) | |
5178 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5179 | esac | |
5180 | case $gcc_prog_ld in | |
5181 | # Accept absolute paths. | |
5182 | [\\/]* | [A-Za-z]:[\\/]*) | |
5183 | LD="$gcc_prog_ld" ;; | |
5184 | esac | |
5185 | fi | |
23f6b2f9 PB |
5186 | fi |
5187 | ||
0b21f5d3 EB |
5188 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5189 | have_static_libs=no | |
5190 | if test "$GCC" = yes; then | |
5191 | saved_LDFLAGS="$LDFLAGS" | |
5192 | ||
5193 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5195 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5196 | ac_ext=cpp | |
5197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5201 | ||
5202 | ||
5203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5204 | /* end confdefs.h. */ | |
0d6414b2 EB |
5205 | |
5206 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5207 | #error -static-libstdc++ not implemented | |
5208 | #endif | |
0b21f5d3 EB |
5209 | int main() {} |
5210 | _ACEOF | |
5211 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5213 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5214 | else | |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5216 | $as_echo "no" >&6; } | |
5217 | fi | |
5218 | rm -f core conftest.err conftest.$ac_objext \ | |
5219 | conftest$ac_exeext conftest.$ac_ext | |
5220 | ac_ext=c | |
5221 | ac_cpp='$CPP $CPPFLAGS' | |
5222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5225 | ||
5226 | ||
5227 | LDFLAGS="$saved_LDFLAGS" | |
5228 | fi | |
5229 | ||
23f6b2f9 PB |
5230 | |
5231 | ||
55ffb5ed | 5232 | |
1c710c3c DJ |
5233 | if test -n "$ac_tool_prefix"; then |
5234 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5235 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5237 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5238 | if ${ac_cv_prog_GNATBIND+:} false; then : |
5213506e | 5239 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5240 | else |
5241 | if test -n "$GNATBIND"; then | |
5242 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5243 | else | |
1c710c3c DJ |
5244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5245 | for as_dir in $PATH | |
5246 | do | |
5247 | IFS=$as_save_IFS | |
5248 | test -z "$as_dir" && as_dir=. | |
5213506e | 5249 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5251 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5253 | break 2 |
5254 | fi | |
5255 | done | |
5213506e RW |
5256 | done |
5257 | IFS=$as_save_IFS | |
1c710c3c | 5258 | |
55ffb5ed NN |
5259 | fi |
5260 | fi | |
1c710c3c | 5261 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5262 | if test -n "$GNATBIND"; then |
5213506e RW |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5264 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5265 | else |
5213506e RW |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5267 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5268 | fi |
5269 | ||
5213506e | 5270 | |
1c710c3c | 5271 | fi |
55ffb5ed | 5272 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5273 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5274 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5275 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5277 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5278 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
5213506e | 5279 | $as_echo_n "(cached) " >&6 |
55ffb5ed | 5280 | else |
1c710c3c DJ |
5281 | if test -n "$ac_ct_GNATBIND"; then |
5282 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5283 | else |
1c710c3c DJ |
5284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5285 | for as_dir in $PATH | |
5286 | do | |
5287 | IFS=$as_save_IFS | |
5288 | test -z "$as_dir" && as_dir=. | |
5213506e | 5289 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5291 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5293 | break 2 |
5294 | fi | |
5295 | done | |
5213506e RW |
5296 | done |
5297 | IFS=$as_save_IFS | |
1c710c3c | 5298 | |
55ffb5ed NN |
5299 | fi |
5300 | fi | |
1c710c3c DJ |
5301 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5302 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5304 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5305 | else |
5213506e RW |
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5307 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5308 | fi |
5309 | ||
5213506e RW |
5310 | if test "x$ac_ct_GNATBIND" = x; then |
5311 | GNATBIND="no" | |
5312 | else | |
5313 | case $cross_compiling:$ac_tool_warned in | |
5314 | yes:) | |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5317 | ac_tool_warned=yes ;; | |
5318 | esac | |
5319 | GNATBIND=$ac_ct_GNATBIND | |
5320 | fi | |
55ffb5ed | 5321 | else |
1c710c3c | 5322 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5323 | fi |
5324 | ||
1c710c3c DJ |
5325 | if test -n "$ac_tool_prefix"; then |
5326 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5327 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5329 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5330 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
5213506e | 5331 | $as_echo_n "(cached) " >&6 |
5305be7e RG |
5332 | else |
5333 | if test -n "$GNATMAKE"; then | |
5334 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5335 | else | |
1c710c3c DJ |
5336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5337 | for as_dir in $PATH | |
5338 | do | |
5339 | IFS=$as_save_IFS | |
5340 | test -z "$as_dir" && as_dir=. | |
5213506e | 5341 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5342 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5343 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5345 | break 2 |
5346 | fi | |
5347 | done | |
5213506e RW |
5348 | done |
5349 | IFS=$as_save_IFS | |
1c710c3c | 5350 | |
5305be7e RG |
5351 | fi |
5352 | fi | |
1c710c3c | 5353 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5354 | if test -n "$GNATMAKE"; then |
5213506e RW |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5356 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5357 | else |
5213506e RW |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5359 | $as_echo "no" >&6; } | |
5305be7e RG |
5360 | fi |
5361 | ||
5213506e | 5362 | |
1c710c3c | 5363 | fi |
5305be7e | 5364 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5365 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5366 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5367 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5370 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
5213506e | 5371 | $as_echo_n "(cached) " >&6 |
5305be7e | 5372 | else |
1c710c3c DJ |
5373 | if test -n "$ac_ct_GNATMAKE"; then |
5374 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5375 | else |
1c710c3c DJ |
5376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5377 | for as_dir in $PATH | |
5378 | do | |
5379 | IFS=$as_save_IFS | |
5380 | test -z "$as_dir" && as_dir=. | |
5213506e | 5381 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 5383 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5385 | break 2 |
5386 | fi | |
5387 | done | |
5213506e RW |
5388 | done |
5389 | IFS=$as_save_IFS | |
1c710c3c | 5390 | |
5305be7e RG |
5391 | fi |
5392 | fi | |
1c710c3c DJ |
5393 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5394 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5396 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5397 | else |
5213506e RW |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5399 | $as_echo "no" >&6; } | |
5305be7e RG |
5400 | fi |
5401 | ||
5213506e RW |
5402 | if test "x$ac_ct_GNATMAKE" = x; then |
5403 | GNATMAKE="no" | |
5404 | else | |
5405 | case $cross_compiling:$ac_tool_warned in | |
5406 | yes:) | |
5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5409 | ac_tool_warned=yes ;; | |
5410 | esac | |
5411 | GNATMAKE=$ac_ct_GNATMAKE | |
5412 | fi | |
5305be7e | 5413 | else |
1c710c3c | 5414 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5415 | fi |
5416 | ||
5213506e RW |
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5418 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
22e05272 | 5419 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
5213506e | 5420 | $as_echo_n "(cached) " >&6 |
55ffb5ed NN |
5421 | else |
5422 | cat >conftest.adb <<EOF | |
5423 | procedure conftest is begin null; end conftest; | |
5424 | EOF | |
5425 | acx_cv_cc_gcc_supports_ada=no | |
5426 | # There is a bug in old released versions of GCC which causes the | |
5427 | # driver to exit successfully when the appropriate language module | |
5428 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5429 | # Therefore we must check for the error message as well as an | |
5430 | # unsuccessful exit. | |
1db673ca RO |
5431 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5432 | # given a .adb file, but produce no object file. So we must check | |
5433 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5434 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5435 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5436 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5437 | fi |
5438 | rm -f conftest.* | |
5439 | fi | |
5213506e RW |
5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5441 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5442 | |
7cb62ef1 | 5443 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5444 | have_gnat=yes |
5445 | else | |
5446 | have_gnat=no | |
5447 | fi | |
5448 | ||
5213506e RW |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5450 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
22e05272 | 5451 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
5213506e | 5452 | $as_echo_n "(cached) " >&6 |
a76494aa PB |
5453 | else |
5454 | echo abfoo >t1 | |
5455 | echo cdfoo >t2 | |
b55e6680 | 5456 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5457 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5458 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5459 | : | |
5460 | else | |
5461 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5462 | fi | |
5463 | fi | |
a76494aa PB |
5464 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5465 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5466 | : |
a76494aa PB |
5467 | else |
5468 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5469 | fi | |
5470 | fi | |
5471 | rm t1 t2 | |
5472 | ||
5473 | fi | |
5213506e RW |
5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5475 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5476 | do_compare="$gcc_cv_prog_cmp_skip" |
5477 | ||
5478 | ||
55ffb5ed | 5479 | |
ff3ac0f4 ILT |
5480 | # Check whether --enable-bootstrap was given. |
5481 | if test "${enable_bootstrap+set}" = set; then : | |
5482 | enableval=$enable_bootstrap; | |
5483 | else | |
5484 | enable_bootstrap=default | |
5485 | fi | |
5486 | ||
5487 | ||
5488 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5489 | if test -r $srcdir/gcc/configure; then |
5490 | have_compiler=yes | |
5491 | else | |
5492 | have_compiler=no | |
5493 | fi | |
ff3ac0f4 ILT |
5494 | |
5495 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5496 | *:*:*:no) ;; | |
5497 | ||
5498 | # Default behavior. Enable bootstrap if we have a compiler | |
5499 | # and we are in a native configuration. | |
5500 | yes:$build:$build:default) | |
5501 | enable_bootstrap=yes ;; | |
5502 | ||
5503 | *:*:*:default) | |
5504 | enable_bootstrap=no ;; | |
5505 | ||
5506 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5507 | yes:$build:$build:yes) | |
5508 | ;; | |
5509 | ||
5510 | # Other configurations, but we have a compiler. Assume the user knows | |
5511 | # what he's doing. | |
5512 | yes:*:*:yes) | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5514 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5515 | ;; | |
5516 | ||
5517 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5518 | no:*:*:yes) | |
22e05272 | 5519 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ff3ac0f4 ILT |
5520 | |
5521 | # Fail if wrong command line | |
5522 | *) | |
22e05272 | 5523 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ff3ac0f4 ILT |
5524 | ;; |
5525 | esac | |
5526 | ||
5329b59a | 5527 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
ffac9597 JM |
5528 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, |
5529 | # require C++11 (or higher). | |
46070488 | 5530 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
5329b59a | 5531 | CXX="$CXX -std=c++11" |
ffac9597 JM |
5532 | elif test "$have_compiler" = yes; then |
5533 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5534 | ac_ext=cpp | |
5535 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5536 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5537 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5538 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5539 | ac_success=no | |
5540 | ||
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
5542 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5543 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5544 | $as_echo_n "(cached) " >&6 | |
5545 | else | |
5546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5547 | /* end confdefs.h. */ | |
5548 | ||
5549 | ||
5550 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5551 | // Hopefully, this will speed up the test. | |
5552 | ||
5553 | #ifndef __cplusplus | |
5554 | ||
5555 | #error "This is not a C++ compiler" | |
5556 | ||
5557 | #elif __cplusplus < 201103L | |
5558 | ||
5559 | #error "This is not a C++11 compiler" | |
5560 | ||
5561 | #else | |
5562 | ||
5563 | namespace cxx11 | |
5564 | { | |
5565 | ||
5566 | namespace test_static_assert | |
5567 | { | |
5568 | ||
5569 | template <typename T> | |
5570 | struct check | |
5571 | { | |
5572 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5573 | }; | |
5574 | ||
5575 | } | |
5576 | ||
5577 | namespace test_final_override | |
5578 | { | |
5579 | ||
5580 | struct Base | |
5581 | { | |
5582 | virtual ~Base() {} | |
5583 | virtual void f() {} | |
5584 | }; | |
5585 | ||
5586 | struct Derived : public Base | |
5587 | { | |
5588 | virtual ~Derived() override {} | |
5589 | virtual void f() override {} | |
5590 | }; | |
5591 | ||
5592 | } | |
5593 | ||
5594 | namespace test_double_right_angle_brackets | |
5595 | { | |
5596 | ||
5597 | template < typename T > | |
5598 | struct check {}; | |
5599 | ||
5600 | typedef check<void> single_type; | |
5601 | typedef check<check<void>> double_type; | |
5602 | typedef check<check<check<void>>> triple_type; | |
5603 | typedef check<check<check<check<void>>>> quadruple_type; | |
5604 | ||
5605 | } | |
5606 | ||
5607 | namespace test_decltype | |
5608 | { | |
5609 | ||
5610 | int | |
5611 | f() | |
5612 | { | |
5613 | int a = 1; | |
5614 | decltype(a) b = 2; | |
5615 | return a + b; | |
5616 | } | |
5617 | ||
5618 | } | |
5619 | ||
5620 | namespace test_type_deduction | |
5621 | { | |
5622 | ||
5623 | template < typename T1, typename T2 > | |
5624 | struct is_same | |
5625 | { | |
5626 | static const bool value = false; | |
5627 | }; | |
5628 | ||
5629 | template < typename T > | |
5630 | struct is_same<T, T> | |
5631 | { | |
5632 | static const bool value = true; | |
5633 | }; | |
5634 | ||
5635 | template < typename T1, typename T2 > | |
5636 | auto | |
5637 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5638 | { | |
5639 | return a1 + a2; | |
5640 | } | |
5641 | ||
5642 | int | |
5643 | test(const int c, volatile int v) | |
5644 | { | |
5645 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5646 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5647 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5648 | auto ac = c; | |
5649 | auto av = v; | |
5650 | auto sumi = ac + av + 'x'; | |
5651 | auto sumf = ac + av + 1.0; | |
5652 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5653 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5654 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5655 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5656 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5657 | return (sumf > 0.0) ? sumi : add(c, v); | |
5658 | } | |
5659 | ||
5660 | } | |
5661 | ||
5662 | namespace test_noexcept | |
5663 | { | |
5664 | ||
5665 | int f() { return 0; } | |
5666 | int g() noexcept { return 0; } | |
5667 | ||
5668 | static_assert(noexcept(f()) == false, ""); | |
5669 | static_assert(noexcept(g()) == true, ""); | |
5670 | ||
5671 | } | |
5672 | ||
5673 | namespace test_constexpr | |
5674 | { | |
5675 | ||
5676 | template < typename CharT > | |
5677 | unsigned long constexpr | |
5678 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5679 | { | |
5680 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5681 | } | |
5682 | ||
5683 | template < typename CharT > | |
5684 | unsigned long constexpr | |
5685 | strlen_c(const CharT *const s) noexcept | |
5686 | { | |
5687 | return strlen_c_r(s, 0UL); | |
5688 | } | |
5689 | ||
5690 | static_assert(strlen_c("") == 0UL, ""); | |
5691 | static_assert(strlen_c("1") == 1UL, ""); | |
5692 | static_assert(strlen_c("example") == 7UL, ""); | |
5693 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
5694 | ||
5695 | } | |
5696 | ||
5697 | namespace test_rvalue_references | |
5698 | { | |
5699 | ||
5700 | template < int N > | |
5701 | struct answer | |
5702 | { | |
5703 | static constexpr int value = N; | |
5704 | }; | |
5705 | ||
5706 | answer<1> f(int&) { return answer<1>(); } | |
5707 | answer<2> f(const int&) { return answer<2>(); } | |
5708 | answer<3> f(int&&) { return answer<3>(); } | |
5709 | ||
5710 | void | |
5711 | test() | |
5712 | { | |
5713 | int i = 0; | |
5714 | const int c = 0; | |
5715 | static_assert(decltype(f(i))::value == 1, ""); | |
5716 | static_assert(decltype(f(c))::value == 2, ""); | |
5717 | static_assert(decltype(f(0))::value == 3, ""); | |
5718 | } | |
5719 | ||
5720 | } | |
5721 | ||
5722 | namespace test_uniform_initialization | |
5723 | { | |
5724 | ||
5725 | struct test | |
5726 | { | |
5727 | static const int zero {}; | |
5728 | static const int one {1}; | |
5729 | }; | |
5730 | ||
5731 | static_assert(test::zero == 0, ""); | |
5732 | static_assert(test::one == 1, ""); | |
5733 | ||
5734 | } | |
5735 | ||
5736 | namespace test_lambdas | |
5737 | { | |
5738 | ||
5739 | void | |
5740 | test1() | |
5741 | { | |
5742 | auto lambda1 = [](){}; | |
5743 | auto lambda2 = lambda1; | |
5744 | lambda1(); | |
5745 | lambda2(); | |
5746 | } | |
5747 | ||
5748 | int | |
5749 | test2() | |
5750 | { | |
5751 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
5752 | auto b = []() -> int { return '0'; }(); | |
5753 | auto c = [=](){ return a + b; }(); | |
5754 | auto d = [&](){ return c; }(); | |
5755 | auto e = [a, &b](int x) mutable { | |
5756 | const auto identity = [](int y){ return y; }; | |
5757 | for (auto i = 0; i < a; ++i) | |
5758 | a += b--; | |
5759 | return x + identity(a + b); | |
5760 | }(0); | |
5761 | return a + b + c + d + e; | |
5762 | } | |
5763 | ||
5764 | int | |
5765 | test3() | |
5766 | { | |
5767 | const auto nullary = [](){ return 0; }; | |
5768 | const auto unary = [](int x){ return x; }; | |
5769 | using nullary_t = decltype(nullary); | |
5770 | using unary_t = decltype(unary); | |
5771 | const auto higher1st = [](nullary_t f){ return f(); }; | |
5772 | const auto higher2nd = [unary](nullary_t f1){ | |
5773 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
5774 | }; | |
5775 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
5776 | } | |
5777 | ||
5778 | } | |
5779 | ||
5780 | namespace test_variadic_templates | |
5781 | { | |
5782 | ||
5783 | template <int...> | |
5784 | struct sum; | |
5785 | ||
5786 | template <int N0, int... N1toN> | |
5787 | struct sum<N0, N1toN...> | |
5788 | { | |
5789 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
5790 | }; | |
5791 | ||
5792 | template <> | |
5793 | struct sum<> | |
5794 | { | |
5795 | static constexpr auto value = 0; | |
5796 | }; | |
5797 | ||
5798 | static_assert(sum<>::value == 0, ""); | |
5799 | static_assert(sum<1>::value == 1, ""); | |
5800 | static_assert(sum<23>::value == 23, ""); | |
5801 | static_assert(sum<1, 2>::value == 3, ""); | |
5802 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
5803 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
5804 | ||
5805 | } | |
5806 | ||
5807 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
5808 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
5809 | // because of this. | |
5810 | namespace test_template_alias_sfinae | |
5811 | { | |
5812 | ||
5813 | struct foo {}; | |
5814 | ||
5815 | template<typename T> | |
5816 | using member = typename T::member_type; | |
5817 | ||
5818 | template<typename T> | |
5819 | void func(...) {} | |
5820 | ||
5821 | template<typename T> | |
5822 | void func(member<T>*) {} | |
5823 | ||
5824 | void test(); | |
5825 | ||
5826 | void test() { func<foo>(0); } | |
5827 | ||
5828 | } | |
5829 | ||
5830 | } // namespace cxx11 | |
5831 | ||
5832 | #endif // __cplusplus >= 201103L | |
5833 | ||
5834 | ||
5835 | ||
5836 | _ACEOF | |
5837 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5838 | ax_cv_cxx_compile_cxx11=yes | |
5839 | else | |
5840 | ax_cv_cxx_compile_cxx11=no | |
5841 | fi | |
5842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5843 | fi | |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
5845 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
5846 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
5847 | ac_success=yes | |
5848 | fi | |
5849 | ||
5850 | if test x$ac_success = xno; then | |
5851 | for alternative in ${ax_cxx_compile_alternatives}; do | |
5852 | switch="-std=gnu++${alternative}" | |
5853 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
5855 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
5856 | if eval \${$cachevar+:} false; then : | |
5857 | $as_echo_n "(cached) " >&6 | |
5858 | else | |
5859 | ac_save_CXX="$CXX" | |
5860 | CXX="$CXX $switch" | |
5861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5862 | /* end confdefs.h. */ | |
5863 | ||
5864 | ||
5865 | // If the compiler admits that it is not ready for C++11, why torture it? | |
5866 | // Hopefully, this will speed up the test. | |
5867 | ||
5868 | #ifndef __cplusplus | |
5869 | ||
5870 | #error "This is not a C++ compiler" | |
5871 | ||
5872 | #elif __cplusplus < 201103L | |
5873 | ||
5874 | #error "This is not a C++11 compiler" | |
5875 | ||
5876 | #else | |
5877 | ||
5878 | namespace cxx11 | |
5879 | { | |
5880 | ||
5881 | namespace test_static_assert | |
5882 | { | |
5883 | ||
5884 | template <typename T> | |
5885 | struct check | |
5886 | { | |
5887 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5888 | }; | |
5889 | ||
5890 | } | |
5891 | ||
5892 | namespace test_final_override | |
5893 | { | |
5894 | ||
5895 | struct Base | |
5896 | { | |
5897 | virtual ~Base() {} | |
5898 | virtual void f() {} | |
5899 | }; | |
5900 | ||
5901 | struct Derived : public Base | |
5902 | { | |
5903 | virtual ~Derived() override {} | |
5904 | virtual void f() override {} | |
5905 | }; | |
5906 | ||
5907 | } | |
5908 | ||
5909 | namespace test_double_right_angle_brackets | |
5910 | { | |
5911 | ||
5912 | template < typename T > | |
5913 | struct check {}; | |
5914 | ||
5915 | typedef check<void> single_type; | |
5916 | typedef check<check<void>> double_type; | |
5917 | typedef check<check<check<void>>> triple_type; | |
5918 | typedef check<check<check<check<void>>>> quadruple_type; | |
5919 | ||
5920 | } | |
5921 | ||
5922 | namespace test_decltype | |
5923 | { | |
5924 | ||
5925 | int | |
5926 | f() | |
5927 | { | |
5928 | int a = 1; | |
5929 | decltype(a) b = 2; | |
5930 | return a + b; | |
5931 | } | |
5932 | ||
5933 | } | |
5934 | ||
5935 | namespace test_type_deduction | |
5936 | { | |
5937 | ||
5938 | template < typename T1, typename T2 > | |
5939 | struct is_same | |
5940 | { | |
5941 | static const bool value = false; | |
5942 | }; | |
5943 | ||
5944 | template < typename T > | |
5945 | struct is_same<T, T> | |
5946 | { | |
5947 | static const bool value = true; | |
5948 | }; | |
5949 | ||
5950 | template < typename T1, typename T2 > | |
5951 | auto | |
5952 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
5953 | { | |
5954 | return a1 + a2; | |
5955 | } | |
5956 | ||
5957 | int | |
5958 | test(const int c, volatile int v) | |
5959 | { | |
5960 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
5961 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
5962 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
5963 | auto ac = c; | |
5964 | auto av = v; | |
5965 | auto sumi = ac + av + 'x'; | |
5966 | auto sumf = ac + av + 1.0; | |
5967 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
5968 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
5969 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
5970 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
5971 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
5972 | return (sumf > 0.0) ? sumi : add(c, v); | |
5973 | } | |
5974 | ||
5975 | } | |
5976 | ||
5977 | namespace test_noexcept | |
5978 | { | |
5979 | ||
5980 | int f() { return 0; } | |
5981 | int g() noexcept { return 0; } | |
5982 | ||
5983 | static_assert(noexcept(f()) == false, ""); | |
5984 | static_assert(noexcept(g()) == true, ""); | |
5985 | ||
5986 | } | |
5987 | ||
5988 | namespace test_constexpr | |
5989 | { | |
5990 | ||
5991 | template < typename CharT > | |
5992 | unsigned long constexpr | |
5993 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
5994 | { | |
5995 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
5996 | } | |
5997 | ||
5998 | template < typename CharT > | |
5999 | unsigned long constexpr | |
6000 | strlen_c(const CharT *const s) noexcept | |
6001 | { | |
6002 | return strlen_c_r(s, 0UL); | |
6003 | } | |
6004 | ||
6005 | static_assert(strlen_c("") == 0UL, ""); | |
6006 | static_assert(strlen_c("1") == 1UL, ""); | |
6007 | static_assert(strlen_c("example") == 7UL, ""); | |
6008 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6009 | ||
6010 | } | |
6011 | ||
6012 | namespace test_rvalue_references | |
6013 | { | |
6014 | ||
6015 | template < int N > | |
6016 | struct answer | |
6017 | { | |
6018 | static constexpr int value = N; | |
6019 | }; | |
6020 | ||
6021 | answer<1> f(int&) { return answer<1>(); } | |
6022 | answer<2> f(const int&) { return answer<2>(); } | |
6023 | answer<3> f(int&&) { return answer<3>(); } | |
6024 | ||
6025 | void | |
6026 | test() | |
6027 | { | |
6028 | int i = 0; | |
6029 | const int c = 0; | |
6030 | static_assert(decltype(f(i))::value == 1, ""); | |
6031 | static_assert(decltype(f(c))::value == 2, ""); | |
6032 | static_assert(decltype(f(0))::value == 3, ""); | |
6033 | } | |
6034 | ||
6035 | } | |
6036 | ||
6037 | namespace test_uniform_initialization | |
6038 | { | |
6039 | ||
6040 | struct test | |
6041 | { | |
6042 | static const int zero {}; | |
6043 | static const int one {1}; | |
6044 | }; | |
6045 | ||
6046 | static_assert(test::zero == 0, ""); | |
6047 | static_assert(test::one == 1, ""); | |
6048 | ||
6049 | } | |
6050 | ||
6051 | namespace test_lambdas | |
6052 | { | |
6053 | ||
6054 | void | |
6055 | test1() | |
6056 | { | |
6057 | auto lambda1 = [](){}; | |
6058 | auto lambda2 = lambda1; | |
6059 | lambda1(); | |
6060 | lambda2(); | |
6061 | } | |
6062 | ||
6063 | int | |
6064 | test2() | |
6065 | { | |
6066 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6067 | auto b = []() -> int { return '0'; }(); | |
6068 | auto c = [=](){ return a + b; }(); | |
6069 | auto d = [&](){ return c; }(); | |
6070 | auto e = [a, &b](int x) mutable { | |
6071 | const auto identity = [](int y){ return y; }; | |
6072 | for (auto i = 0; i < a; ++i) | |
6073 | a += b--; | |
6074 | return x + identity(a + b); | |
6075 | }(0); | |
6076 | return a + b + c + d + e; | |
6077 | } | |
6078 | ||
6079 | int | |
6080 | test3() | |
6081 | { | |
6082 | const auto nullary = [](){ return 0; }; | |
6083 | const auto unary = [](int x){ return x; }; | |
6084 | using nullary_t = decltype(nullary); | |
6085 | using unary_t = decltype(unary); | |
6086 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6087 | const auto higher2nd = [unary](nullary_t f1){ | |
6088 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6089 | }; | |
6090 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6091 | } | |
6092 | ||
6093 | } | |
6094 | ||
6095 | namespace test_variadic_templates | |
6096 | { | |
6097 | ||
6098 | template <int...> | |
6099 | struct sum; | |
6100 | ||
6101 | template <int N0, int... N1toN> | |
6102 | struct sum<N0, N1toN...> | |
6103 | { | |
6104 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6105 | }; | |
6106 | ||
6107 | template <> | |
6108 | struct sum<> | |
6109 | { | |
6110 | static constexpr auto value = 0; | |
6111 | }; | |
6112 | ||
6113 | static_assert(sum<>::value == 0, ""); | |
6114 | static_assert(sum<1>::value == 1, ""); | |
6115 | static_assert(sum<23>::value == 23, ""); | |
6116 | static_assert(sum<1, 2>::value == 3, ""); | |
6117 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6118 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6119 | ||
6120 | } | |
6121 | ||
6122 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6123 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6124 | // because of this. | |
6125 | namespace test_template_alias_sfinae | |
6126 | { | |
6127 | ||
6128 | struct foo {}; | |
6129 | ||
6130 | template<typename T> | |
6131 | using member = typename T::member_type; | |
6132 | ||
6133 | template<typename T> | |
6134 | void func(...) {} | |
6135 | ||
6136 | template<typename T> | |
6137 | void func(member<T>*) {} | |
6138 | ||
6139 | void test(); | |
6140 | ||
6141 | void test() { func<foo>(0); } | |
6142 | ||
6143 | } | |
6144 | ||
6145 | } // namespace cxx11 | |
6146 | ||
6147 | #endif // __cplusplus >= 201103L | |
6148 | ||
6149 | ||
6150 | ||
6151 | _ACEOF | |
6152 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6153 | eval $cachevar=yes | |
6154 | else | |
6155 | eval $cachevar=no | |
6156 | fi | |
6157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6158 | CXX="$ac_save_CXX" | |
6159 | fi | |
6160 | eval ac_res=\$$cachevar | |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6162 | $as_echo "$ac_res" >&6; } | |
6163 | if eval test x\$$cachevar = xyes; then | |
6164 | CXX="$CXX $switch" | |
6165 | if test -n "$CXXCPP" ; then | |
6166 | CXXCPP="$CXXCPP $switch" | |
6167 | fi | |
6168 | ac_success=yes | |
6169 | break | |
6170 | fi | |
6171 | done | |
6172 | fi | |
6173 | ||
6174 | if test x$ac_success = xno; then | |
6175 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6176 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6177 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6179 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6180 | if eval \${$cachevar+:} false; then : | |
6181 | $as_echo_n "(cached) " >&6 | |
6182 | else | |
6183 | ac_save_CXX="$CXX" | |
6184 | CXX="$CXX $switch" | |
6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6186 | /* end confdefs.h. */ | |
6187 | ||
6188 | ||
6189 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6190 | // Hopefully, this will speed up the test. | |
6191 | ||
6192 | #ifndef __cplusplus | |
6193 | ||
6194 | #error "This is not a C++ compiler" | |
6195 | ||
6196 | #elif __cplusplus < 201103L | |
6197 | ||
6198 | #error "This is not a C++11 compiler" | |
6199 | ||
6200 | #else | |
6201 | ||
6202 | namespace cxx11 | |
6203 | { | |
6204 | ||
6205 | namespace test_static_assert | |
6206 | { | |
6207 | ||
6208 | template <typename T> | |
6209 | struct check | |
6210 | { | |
6211 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6212 | }; | |
6213 | ||
6214 | } | |
6215 | ||
6216 | namespace test_final_override | |
6217 | { | |
6218 | ||
6219 | struct Base | |
6220 | { | |
6221 | virtual ~Base() {} | |
6222 | virtual void f() {} | |
6223 | }; | |
6224 | ||
6225 | struct Derived : public Base | |
6226 | { | |
6227 | virtual ~Derived() override {} | |
6228 | virtual void f() override {} | |
6229 | }; | |
6230 | ||
6231 | } | |
6232 | ||
6233 | namespace test_double_right_angle_brackets | |
6234 | { | |
6235 | ||
6236 | template < typename T > | |
6237 | struct check {}; | |
6238 | ||
6239 | typedef check<void> single_type; | |
6240 | typedef check<check<void>> double_type; | |
6241 | typedef check<check<check<void>>> triple_type; | |
6242 | typedef check<check<check<check<void>>>> quadruple_type; | |
6243 | ||
6244 | } | |
6245 | ||
6246 | namespace test_decltype | |
6247 | { | |
6248 | ||
6249 | int | |
6250 | f() | |
6251 | { | |
6252 | int a = 1; | |
6253 | decltype(a) b = 2; | |
6254 | return a + b; | |
6255 | } | |
6256 | ||
6257 | } | |
6258 | ||
6259 | namespace test_type_deduction | |
6260 | { | |
6261 | ||
6262 | template < typename T1, typename T2 > | |
6263 | struct is_same | |
6264 | { | |
6265 | static const bool value = false; | |
6266 | }; | |
6267 | ||
6268 | template < typename T > | |
6269 | struct is_same<T, T> | |
6270 | { | |
6271 | static const bool value = true; | |
6272 | }; | |
6273 | ||
6274 | template < typename T1, typename T2 > | |
6275 | auto | |
6276 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6277 | { | |
6278 | return a1 + a2; | |
6279 | } | |
6280 | ||
6281 | int | |
6282 | test(const int c, volatile int v) | |
6283 | { | |
6284 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6285 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6286 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6287 | auto ac = c; | |
6288 | auto av = v; | |
6289 | auto sumi = ac + av + 'x'; | |
6290 | auto sumf = ac + av + 1.0; | |
6291 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6292 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6293 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6294 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6295 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6296 | return (sumf > 0.0) ? sumi : add(c, v); | |
6297 | } | |
6298 | ||
6299 | } | |
6300 | ||
6301 | namespace test_noexcept | |
6302 | { | |
6303 | ||
6304 | int f() { return 0; } | |
6305 | int g() noexcept { return 0; } | |
6306 | ||
6307 | static_assert(noexcept(f()) == false, ""); | |
6308 | static_assert(noexcept(g()) == true, ""); | |
6309 | ||
6310 | } | |
6311 | ||
6312 | namespace test_constexpr | |
6313 | { | |
6314 | ||
6315 | template < typename CharT > | |
6316 | unsigned long constexpr | |
6317 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6318 | { | |
6319 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6320 | } | |
6321 | ||
6322 | template < typename CharT > | |
6323 | unsigned long constexpr | |
6324 | strlen_c(const CharT *const s) noexcept | |
6325 | { | |
6326 | return strlen_c_r(s, 0UL); | |
6327 | } | |
6328 | ||
6329 | static_assert(strlen_c("") == 0UL, ""); | |
6330 | static_assert(strlen_c("1") == 1UL, ""); | |
6331 | static_assert(strlen_c("example") == 7UL, ""); | |
6332 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6333 | ||
6334 | } | |
6335 | ||
6336 | namespace test_rvalue_references | |
6337 | { | |
6338 | ||
6339 | template < int N > | |
6340 | struct answer | |
6341 | { | |
6342 | static constexpr int value = N; | |
6343 | }; | |
6344 | ||
6345 | answer<1> f(int&) { return answer<1>(); } | |
6346 | answer<2> f(const int&) { return answer<2>(); } | |
6347 | answer<3> f(int&&) { return answer<3>(); } | |
6348 | ||
6349 | void | |
6350 | test() | |
6351 | { | |
6352 | int i = 0; | |
6353 | const int c = 0; | |
6354 | static_assert(decltype(f(i))::value == 1, ""); | |
6355 | static_assert(decltype(f(c))::value == 2, ""); | |
6356 | static_assert(decltype(f(0))::value == 3, ""); | |
6357 | } | |
6358 | ||
6359 | } | |
6360 | ||
6361 | namespace test_uniform_initialization | |
6362 | { | |
6363 | ||
6364 | struct test | |
6365 | { | |
6366 | static const int zero {}; | |
6367 | static const int one {1}; | |
6368 | }; | |
6369 | ||
6370 | static_assert(test::zero == 0, ""); | |
6371 | static_assert(test::one == 1, ""); | |
6372 | ||
6373 | } | |
6374 | ||
6375 | namespace test_lambdas | |
6376 | { | |
6377 | ||
6378 | void | |
6379 | test1() | |
6380 | { | |
6381 | auto lambda1 = [](){}; | |
6382 | auto lambda2 = lambda1; | |
6383 | lambda1(); | |
6384 | lambda2(); | |
6385 | } | |
6386 | ||
6387 | int | |
6388 | test2() | |
6389 | { | |
6390 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6391 | auto b = []() -> int { return '0'; }(); | |
6392 | auto c = [=](){ return a + b; }(); | |
6393 | auto d = [&](){ return c; }(); | |
6394 | auto e = [a, &b](int x) mutable { | |
6395 | const auto identity = [](int y){ return y; }; | |
6396 | for (auto i = 0; i < a; ++i) | |
6397 | a += b--; | |
6398 | return x + identity(a + b); | |
6399 | }(0); | |
6400 | return a + b + c + d + e; | |
6401 | } | |
6402 | ||
6403 | int | |
6404 | test3() | |
6405 | { | |
6406 | const auto nullary = [](){ return 0; }; | |
6407 | const auto unary = [](int x){ return x; }; | |
6408 | using nullary_t = decltype(nullary); | |
6409 | using unary_t = decltype(unary); | |
6410 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6411 | const auto higher2nd = [unary](nullary_t f1){ | |
6412 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6413 | }; | |
6414 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6415 | } | |
6416 | ||
6417 | } | |
6418 | ||
6419 | namespace test_variadic_templates | |
6420 | { | |
6421 | ||
6422 | template <int...> | |
6423 | struct sum; | |
6424 | ||
6425 | template <int N0, int... N1toN> | |
6426 | struct sum<N0, N1toN...> | |
6427 | { | |
6428 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6429 | }; | |
6430 | ||
6431 | template <> | |
6432 | struct sum<> | |
6433 | { | |
6434 | static constexpr auto value = 0; | |
6435 | }; | |
6436 | ||
6437 | static_assert(sum<>::value == 0, ""); | |
6438 | static_assert(sum<1>::value == 1, ""); | |
6439 | static_assert(sum<23>::value == 23, ""); | |
6440 | static_assert(sum<1, 2>::value == 3, ""); | |
6441 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6442 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6443 | ||
6444 | } | |
6445 | ||
6446 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6447 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6448 | // because of this. | |
6449 | namespace test_template_alias_sfinae | |
6450 | { | |
6451 | ||
6452 | struct foo {}; | |
6453 | ||
6454 | template<typename T> | |
6455 | using member = typename T::member_type; | |
6456 | ||
6457 | template<typename T> | |
6458 | void func(...) {} | |
6459 | ||
6460 | template<typename T> | |
6461 | void func(member<T>*) {} | |
6462 | ||
6463 | void test(); | |
6464 | ||
6465 | void test() { func<foo>(0); } | |
6466 | ||
6467 | } | |
6468 | ||
6469 | } // namespace cxx11 | |
6470 | ||
6471 | #endif // __cplusplus >= 201103L | |
6472 | ||
6473 | ||
6474 | ||
6475 | _ACEOF | |
6476 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6477 | eval $cachevar=yes | |
6478 | else | |
6479 | eval $cachevar=no | |
6480 | fi | |
6481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6482 | CXX="$ac_save_CXX" | |
6483 | fi | |
6484 | eval ac_res=\$$cachevar | |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6486 | $as_echo "$ac_res" >&6; } | |
6487 | if eval test x\$$cachevar = xyes; then | |
6488 | CXX="$CXX $switch" | |
6489 | if test -n "$CXXCPP" ; then | |
6490 | CXXCPP="$CXXCPP $switch" | |
6491 | fi | |
6492 | ac_success=yes | |
6493 | break | |
6494 | fi | |
6495 | done | |
6496 | if test x$ac_success = xyes; then | |
6497 | break | |
6498 | fi | |
6499 | done | |
6500 | fi | |
6501 | ac_ext=c | |
6502 | ac_cpp='$CPP $CPPFLAGS' | |
6503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6506 | ||
6507 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6508 | if test x$ac_success = xno; then | |
6509 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6510 | fi | |
6511 | fi | |
6512 | if test x$ac_success = xno; then | |
6513 | HAVE_CXX11=0 | |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6515 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6516 | else | |
6517 | HAVE_CXX11=1 | |
6518 | ||
6519 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6520 | ||
6521 | fi | |
6522 | ||
6523 | ||
46070488 JM |
6524 | fi |
6525 | ||
592c90ff KG |
6526 | # Used for setting $lt_cv_objdir |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6528 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 6529 | if ${lt_cv_objdir+:} false; then : |
592c90ff KG |
6530 | $as_echo_n "(cached) " >&6 |
6531 | else | |
6532 | rm -f .libs 2>/dev/null | |
6533 | mkdir .libs 2>/dev/null | |
6534 | if test -d .libs; then | |
6535 | lt_cv_objdir=.libs | |
6536 | else | |
6537 | # MS-DOS does not allow filenames that begin with a dot. | |
6538 | lt_cv_objdir=_libs | |
6539 | fi | |
6540 | rmdir .libs 2>/dev/null | |
6541 | fi | |
6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6543 | $as_echo "$lt_cv_objdir" >&6; } | |
6544 | objdir=$lt_cv_objdir | |
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | cat >>confdefs.h <<_ACEOF | |
6551 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6552 | _ACEOF | |
6553 | ||
6554 | ||
6555 | ||
acd26225 | 6556 | # Check for GMP, MPFR and MPC |
3a5729ea | 6557 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 6558 | gmpinc= |
e69bf64b | 6559 | have_gmp=no |
acd26225 KG |
6560 | |
6561 | # Specify a location for mpc | |
6562 | # check for this first so it ends up on the link line before mpfr. | |
6563 | ||
5213506e RW |
6564 | # Check whether --with-mpc was given. |
6565 | if test "${with_mpc+set}" = set; then : | |
6566 | withval=$with_mpc; | |
6567 | fi | |
acd26225 | 6568 | |
acd26225 | 6569 | |
9965e3cd | 6570 | # Check whether --with-mpc-include was given. |
5213506e RW |
6571 | if test "${with_mpc_include+set}" = set; then : |
6572 | withval=$with_mpc_include; | |
6573 | fi | |
acd26225 | 6574 | |
acd26225 | 6575 | |
9965e3cd | 6576 | # Check whether --with-mpc-lib was given. |
5213506e RW |
6577 | if test "${with_mpc_lib+set}" = set; then : |
6578 | withval=$with_mpc_lib; | |
6579 | fi | |
acd26225 | 6580 | |
acd26225 KG |
6581 | |
6582 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
6583 | gmplibs="-L$with_mpc/lib $gmplibs" |
6584 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
6585 | fi |
6586 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 6587 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
6588 | fi |
6589 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 6590 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
6591 | fi |
6592 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 6593 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 6594 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
6595 | # Do not test the mpc version. Assume that it is sufficient, since |
6596 | # it is in the source tree, and the library has not been built yet | |
6597 | # but it would be included on the link line in the version check below | |
6598 | # hence making the test fail. | |
3a5729ea | 6599 | have_gmp=yes |
acd26225 | 6600 | fi |
e69bf64b | 6601 | |
bebf829d PB |
6602 | # Specify a location for mpfr |
6603 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 6604 | |
5213506e RW |
6605 | # Check whether --with-mpfr-dir was given. |
6606 | if test "${with_mpfr_dir+set}" = set; then : | |
22e05272 | 6607 | withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed. |
5213506e RW |
6608 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 |
6609 | fi | |
6610 | ||
bebf829d PB |
6611 | |
6612 | ||
5213506e RW |
6613 | # Check whether --with-mpfr was given. |
6614 | if test "${with_mpfr+set}" = set; then : | |
6615 | withval=$with_mpfr; | |
6616 | fi | |
1c710c3c | 6617 | |
bebf829d | 6618 | |
9965e3cd | 6619 | # Check whether --with-mpfr-include was given. |
5213506e RW |
6620 | if test "${with_mpfr_include+set}" = set; then : |
6621 | withval=$with_mpfr_include; | |
6622 | fi | |
1c710c3c | 6623 | |
8a877c9c | 6624 | |
9965e3cd | 6625 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
6626 | if test "${with_mpfr_lib+set}" = set; then : |
6627 | withval=$with_mpfr_lib; | |
6628 | fi | |
8a877c9c | 6629 | |
bebf829d PB |
6630 | |
6631 | if test "x$with_mpfr" != x; then | |
6632 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 6633 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 6634 | fi |
8a877c9c | 6635 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 6636 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
6637 | fi |
6638 | if test "x$with_mpfr_lib" != x; then | |
6639 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
6640 | fi | |
e69bf64b | 6641 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
6642 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
6643 | if ! test -d ${srcdir}/mpfr/src; then | |
22e05272 | 6644 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
8f3675f8 | 6645 | fi |
00f35794 BE |
6646 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
6647 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
6648 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
6649 | # Do not test the mpfr version. Assume that it is sufficient, since |
6650 | # it is in the source tree, and the library has not been built yet | |
6651 | # but it would be included on the link line in the version check below | |
6652 | # hence making the test fail. | |
6653 | have_gmp=yes | |
6654 | fi | |
bebf829d | 6655 | |
6de9cd9a | 6656 | # Specify a location for gmp |
1c710c3c | 6657 | |
5213506e RW |
6658 | # Check whether --with-gmp-dir was given. |
6659 | if test "${with_gmp_dir+set}" = set; then : | |
22e05272 | 6660 | withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed. |
5213506e RW |
6661 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 |
6662 | fi | |
6663 | ||
6de9cd9a | 6664 | |
6de9cd9a | 6665 | |
5213506e RW |
6666 | # Check whether --with-gmp was given. |
6667 | if test "${with_gmp+set}" = set; then : | |
6668 | withval=$with_gmp; | |
6669 | fi | |
1c710c3c | 6670 | |
6de9cd9a | 6671 | |
9965e3cd | 6672 | # Check whether --with-gmp-include was given. |
5213506e RW |
6673 | if test "${with_gmp_include+set}" = set; then : |
6674 | withval=$with_gmp_include; | |
6675 | fi | |
1c710c3c | 6676 | |
8a877c9c | 6677 | |
9965e3cd | 6678 | # Check whether --with-gmp-lib was given. |
5213506e RW |
6679 | if test "${with_gmp_lib+set}" = set; then : |
6680 | withval=$with_gmp_lib; | |
6681 | fi | |
8a877c9c KG |
6682 | |
6683 | ||
6de9cd9a | 6684 | |
bebf829d PB |
6685 | if test "x$with_gmp" != x; then |
6686 | gmplibs="-L$with_gmp/lib $gmplibs" | |
6687 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 6688 | fi |
8a877c9c KG |
6689 | if test "x$with_gmp_include" != x; then |
6690 | gmpinc="-I$with_gmp_include $gmpinc" | |
6691 | fi | |
6692 | if test "x$with_gmp_lib" != x; then | |
6693 | gmplibs="-L$with_gmp_lib $gmplibs" | |
6694 | fi | |
e69bf64b | 6695 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 6696 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 6697 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 6698 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 6699 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 6700 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
6701 | # Do not test the gmp version. Assume that it is sufficient, since |
6702 | # it is in the source tree, and the library has not been built yet | |
6703 | # but it would be included on the link line in the version check below | |
6704 | # hence making the test fail. | |
6705 | have_gmp=yes | |
6706 | fi | |
6de9cd9a | 6707 | |
d943d7c4 | 6708 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
6709 | have_gmp=yes |
6710 | saved_CFLAGS="$CFLAGS" | |
6711 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
6712 | # Check for the recommended and required versions of GMP. |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
6714 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
6715 | |
6716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
6717 | /* end confdefs.h. */ |
6718 | #include "gmp.h" | |
6719 | int | |
6720 | main () | |
6721 | { | |
6722 | ||
6723 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
6724 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 6725 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
6726 | choke me |
6727 | #endif | |
6728 | ||
6729 | ; | |
6730 | return 0; | |
6731 | } | |
6732 | _ACEOF | |
6733 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 6734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 6735 | /* end confdefs.h. */ |
362c6d2f | 6736 | #include <gmp.h> |
1c710c3c DJ |
6737 | int |
6738 | main () | |
6739 | { | |
6de9cd9a | 6740 | |
362c6d2f KG |
6741 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
6742 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
6743 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
6744 | choke me |
6745 | #endif | |
1c710c3c DJ |
6746 | |
6747 | ; | |
6748 | return 0; | |
6749 | } | |
6750 | _ACEOF | |
5213506e RW |
6751 | if ac_fn_c_try_compile "$LINENO"; then : |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6753 | $as_echo "yes" >&6; } | |
362c6d2f KG |
6754 | else |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
6756 | $as_echo "buggy but acceptable" >&6; } | |
6757 | fi | |
6758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 6759 | else |
5213506e RW |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6761 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 6762 | fi |
5213506e | 6763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 6764 | |
acd26225 | 6765 | # If we have GMP, check the MPFR version. |
e69bf64b | 6766 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
6767 | # Check for the recommended and required versions of MPFR. |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
6769 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 6770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 6771 | /* end confdefs.h. */ |
70ec446f | 6772 | #include <gmp.h> |
e69bf64b | 6773 | #include <mpfr.h> |
1c710c3c DJ |
6774 | int |
6775 | main () | |
6776 | { | |
e48d66a9 | 6777 | |
8be34204 | 6778 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
e69bf64b PB |
6779 | choke me |
6780 | #endif | |
1c710c3c DJ |
6781 | |
6782 | ; | |
6783 | return 0; | |
6784 | } | |
6785 | _ACEOF | |
5213506e RW |
6786 | if ac_fn_c_try_compile "$LINENO"; then : |
6787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 6788 | /* end confdefs.h. */ |
a3993f33 | 6789 | #include <gmp.h> |
e69bf64b | 6790 | #include <mpfr.h> |
1c710c3c DJ |
6791 | int |
6792 | main () | |
6793 | { | |
a3993f33 | 6794 | |
8be34204 | 6795 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
e69bf64b PB |
6796 | choke me |
6797 | #endif | |
acd26225 KG |
6798 | |
6799 | ; | |
6800 | return 0; | |
6801 | } | |
6802 | _ACEOF | |
5213506e RW |
6803 | if ac_fn_c_try_compile "$LINENO"; then : |
6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6805 | $as_echo "yes" >&6; } | |
acd26225 | 6806 | else |
5213506e RW |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
6808 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 6809 | fi |
5213506e | 6810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 6811 | else |
5213506e RW |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6813 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 6814 | fi |
5213506e | 6815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
6816 | fi |
6817 | ||
6818 | # Check for the MPC header version. | |
3a5729ea | 6819 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 6820 | # Check for the recommended and required versions of MPC. |
5213506e RW |
6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
6822 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
6823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
6824 | /* end confdefs.h. */ |
6825 | #include <mpc.h> | |
6826 | int | |
6827 | main () | |
6828 | { | |
6829 | ||
362c6d2f KG |
6830 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
6831 | choke me | |
6832 | #endif | |
6833 | ||
6834 | ; | |
6835 | return 0; | |
6836 | } | |
6837 | _ACEOF | |
6838 | if ac_fn_c_try_compile "$LINENO"; then : | |
6839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6840 | /* end confdefs.h. */ | |
6841 | #include <mpc.h> | |
6842 | int | |
6843 | main () | |
6844 | { | |
6845 | ||
6846 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
6847 | choke me |
6848 | #endif | |
6849 | ||
6850 | ; | |
6851 | return 0; | |
6852 | } | |
6853 | _ACEOF | |
5213506e RW |
6854 | if ac_fn_c_try_compile "$LINENO"; then : |
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 6856 | $as_echo "yes" >&6; } |
362c6d2f KG |
6857 | else |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
6859 | $as_echo "buggy but acceptable" >&6; } | |
6860 | fi | |
6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 6862 | else |
5213506e | 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 6864 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 6865 | fi |
5213506e | 6866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
6867 | fi |
6868 | ||
6869 | # Now check the MPFR library. | |
6870 | if test x"$have_gmp" = xyes; then | |
6871 | saved_LIBS="$LIBS" | |
6872 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
6874 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 6875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 6876 | /* end confdefs.h. */ |
3a5729ea | 6877 | #include <mpc.h> |
acd26225 KG |
6878 | int |
6879 | main () | |
6880 | { | |
6881 | ||
6882 | mpfr_t n; | |
6883 | mpfr_t x; | |
3a5729ea | 6884 | mpc_t c; |
acd26225 KG |
6885 | int t; |
6886 | mpfr_init (n); | |
6887 | mpfr_init (x); | |
90ca6847 TB |
6888 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
6889 | mpfr_erfc (n, x, MPFR_RNDN); | |
6890 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
3a5729ea KG |
6891 | mpfr_clear(n); |
6892 | mpfr_clear(x); | |
6893 | mpc_init2 (c, 53); | |
6894 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
6895 | mpc_cosh (c, c, MPC_RNDNN); | |
6896 | mpc_pow (c, c, c, MPC_RNDNN); | |
6897 | mpc_acosh (c, c, MPC_RNDNN); | |
6898 | mpc_clear (c); | |
1c710c3c DJ |
6899 | |
6900 | ; | |
6901 | return 0; | |
6902 | } | |
6903 | _ACEOF | |
5213506e RW |
6904 | if ac_fn_c_try_link "$LINENO"; then : |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6906 | $as_echo "yes" >&6; } | |
1c710c3c | 6907 | else |
5213506e RW |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6909 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 6910 | fi |
5213506e RW |
6911 | rm -f core conftest.err conftest.$ac_objext \ |
6912 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
6913 | LIBS="$saved_LIBS" |
6914 | fi | |
6915 | ||
e69bf64b | 6916 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 6917 | |
362c6d2f KG |
6918 | # The library versions listed in the error message below should match |
6919 | # the HARD-minimums enforced above. | |
e69bf64b | 6920 | if test x$have_gmp != xyes; then |
8be34204 | 6921 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
3a5729ea KG |
6922 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
6923 | their locations. Source code for these libraries can be found at | |
6924 | their respective hosting sites as well as at | |
aeebd94c | 6925 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
3a5729ea KG |
6926 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
6927 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
6928 | make sure that you have installed both the libraries and the header | |
6929 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 6930 | fi |
70ec446f KG |
6931 | fi |
6932 | ||
acd26225 KG |
6933 | # Flags needed for both GMP, MPFR and/or MPC. |
6934 | ||
6935 | ||
6de9cd9a DN |
6936 | |
6937 | ||
6938 | ||
9e3eba15 | 6939 | |
0ff2d841 | 6940 | |
0b21f5d3 | 6941 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 6942 | |
0b21f5d3 EB |
6943 | # Check whether --with-stage1-libs was given. |
6944 | if test "${with_stage1_libs+set}" = set; then : | |
6945 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6946 | stage1_libs= | |
00020c16 | 6947 | else |
0b21f5d3 | 6948 | stage1_libs=$withval |
00020c16 ILT |
6949 | fi |
6950 | else | |
5dc85f7e | 6951 | stage1_libs= |
5213506e RW |
6952 | fi |
6953 | ||
00020c16 ILT |
6954 | |
6955 | ||
aac9103b TT |
6956 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
6957 | # default is yes if gcc is being built; no otherwise. The reason for | |
6958 | # this default is that gdb is sometimes linked against GNU Source | |
6959 | # Highlight, which is a shared library that uses C++ exceptions. In | |
6960 | # this case, -static-libstdc++ will cause crashes. | |
6961 | ||
6962 | # Check whether --with-static-standard-libraries was given. | |
6963 | if test "${with_static_standard_libraries+set}" = set; then : | |
6964 | withval=$with_static_standard_libraries; | |
6965 | else | |
6966 | with_static_standard_libraries=auto | |
6967 | fi | |
6968 | ||
6969 | if test "$with_static_standard_libraries" = auto; then | |
6970 | with_static_standard_libraries=$have_compiler | |
6971 | fi | |
6972 | ||
0b21f5d3 | 6973 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 6974 | |
0b21f5d3 EB |
6975 | # Check whether --with-stage1-ldflags was given. |
6976 | if test "${with_stage1_ldflags+set}" = set; then : | |
6977 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
6978 | stage1_ldflags= | |
00020c16 | 6979 | else |
0b21f5d3 | 6980 | stage1_ldflags=$withval |
00020c16 ILT |
6981 | fi |
6982 | else | |
0b21f5d3 EB |
6983 | stage1_ldflags= |
6984 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
6985 | # if supported. But if the user explicitly specified the libraries to use, | |
6986 | # trust that they are doing what they want. | |
aac9103b TT |
6987 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
6988 | -a "$have_static_libs" = yes; then | |
0b21f5d3 EB |
6989 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
6990 | fi | |
5213506e RW |
6991 | fi |
6992 | ||
00020c16 ILT |
6993 | |
6994 | ||
5dc85f7e | 6995 | # Libraries to use for stage2 and later builds. |
00020c16 | 6996 | |
5213506e RW |
6997 | # Check whether --with-boot-libs was given. |
6998 | if test "${with_boot_libs+set}" = set; then : | |
6999 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
7000 | poststage1_libs= |
7001 | else | |
7002 | poststage1_libs=$withval | |
7003 | fi | |
7004 | else | |
5dc85f7e | 7005 | poststage1_libs= |
5213506e RW |
7006 | fi |
7007 | ||
00020c16 ILT |
7008 | |
7009 | ||
ed2eaa9f ILT |
7010 | # Linker flags to use for stage2 and later builds. |
7011 | ||
7012 | # Check whether --with-boot-ldflags was given. | |
7013 | if test "${with_boot_ldflags+set}" = set; then : | |
7014 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
7015 | poststage1_ldflags= | |
7016 | else | |
7017 | poststage1_ldflags=$withval | |
7018 | fi | |
7019 | else | |
7020 | poststage1_ldflags= | |
bec93d73 ILT |
7021 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
7022 | # statically. But if the user explicitly specified the libraries to | |
7023 | # use, trust that they are doing what they want. | |
7024 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
7025 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
7026 | fi | |
7027 | fi | |
7028 | ||
7029 | ||
7030 | ||
e357a5e0 | 7031 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 7032 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
7033 | |
7034 | ||
33ad93b9 RG |
7035 | # Check whether --with-isl was given. |
7036 | if test "${with_isl+set}" = set; then : | |
7037 | withval=$with_isl; | |
5213506e | 7038 | fi |
f8bf9252 | 7039 | |
f8bf9252 | 7040 | |
eae1a5d4 | 7041 | # Treat --without-isl as a request to disable |
625afa23 | 7042 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 7043 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 7044 | # Check for isl |
625afa23 RG |
7045 | |
7046 | ||
33ad93b9 RG |
7047 | # Check whether --with-isl-include was given. |
7048 | if test "${with_isl_include+set}" = set; then : | |
7049 | withval=$with_isl_include; | |
5213506e RW |
7050 | fi |
7051 | ||
f8bf9252 | 7052 | |
33ad93b9 RG |
7053 | # Check whether --with-isl-lib was given. |
7054 | if test "${with_isl_lib+set}" = set; then : | |
7055 | withval=$with_isl_lib; | |
5213506e | 7056 | fi |
f8bf9252 | 7057 | |
f8bf9252 | 7058 | |
33ad93b9 RG |
7059 | # Check whether --enable-isl-version-check was given. |
7060 | if test "${enable_isl_version_check+set}" = set; then : | |
7061 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
7062 | else | |
7063 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
7064 | fi |
7065 | ||
7066 | ||
33ad93b9 RG |
7067 | # Initialize isllibs and islinc. |
7068 | case $with_isl in | |
7069 | no) | |
7070 | isllibs= | |
7071 | islinc= | |
7072 | ;; | |
7073 | "" | yes) | |
7074 | ;; | |
7075 | *) | |
7076 | isllibs="-L$with_isl/lib" | |
7077 | islinc="-I$with_isl/include" | |
7078 | ;; | |
7079 | esac | |
7080 | if test "x${with_isl_include}" != x ; then | |
7081 | islinc="-I$with_isl_include" | |
7082 | fi | |
7083 | if test "x${with_isl_lib}" != x; then | |
7084 | isllibs="-L$with_isl_lib" | |
7085 | fi | |
7086 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
7087 | && test -d ${srcdir}/isl; then | |
7088 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
7089 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
7090 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
7092 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 7093 | fi |
7d32a440 | 7094 | |
eae1a5d4 RG |
7095 | isllibs="${isllibs} -lisl" |
7096 | ||
7d32a440 | 7097 | |
7d32a440 | 7098 | |
9847828b RB |
7099 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
7100 | _isl_saved_CFLAGS=$CFLAGS | |
7101 | _isl_saved_LDFLAGS=$LDFLAGS | |
7102 | _isl_saved_LIBS=$LIBS | |
7103 | ||
7104 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
7105 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
7106 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 7107 | |
f877b3ad RB |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
7109 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
e0c0c325 | 7110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 7111 | /* end confdefs.h. */ |
f877b3ad | 7112 | #include <isl/schedule.h> |
622dbadf BC |
7113 | int |
7114 | main () | |
7115 | { | |
f877b3ad | 7116 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
622dbadf BC |
7117 | ; |
7118 | return 0; | |
7119 | } | |
7120 | _ACEOF | |
7121 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 7122 | gcc_cv_isl=yes |
622dbadf BC |
7123 | else |
7124 | gcc_cv_isl=no | |
7125 | fi | |
7126 | rm -f core conftest.err conftest.$ac_objext \ | |
7127 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
7129 | $as_echo "$gcc_cv_isl" >&6; } | |
7130 | ||
560d18d3 | 7131 | if test "${gcc_cv_isl}" = no ; then |
f877b3ad RB |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
7133 | $as_echo "required isl version is 0.15 or later" >&6; } | |
1e050c90 AK |
7134 | fi |
7135 | ||
9847828b RB |
7136 | CFLAGS=$_isl_saved_CFLAGS |
7137 | LDFLAGS=$_isl_saved_LDFLAGS | |
7138 | LIBS=$_isl_saved_LIBS | |
7139 | fi | |
7140 | ||
7141 | ||
f8bf9252 | 7142 | |
f8bf9252 | 7143 | |
33ad93b9 RG |
7144 | |
7145 | ||
33ad93b9 RG |
7146 | if test "x${with_isl}" = xno; then |
7147 | graphite_requested=no | |
7148 | elif test "x${with_isl}" != x \ | |
7149 | || test "x${with_isl_include}" != x \ | |
7150 | || test "x${with_isl_lib}" != x ; then | |
7151 | graphite_requested=yes | |
7152 | else | |
7153 | graphite_requested=no | |
7d32a440 | 7154 | fi |
d789184e | 7155 | |
d789184e SP |
7156 | |
7157 | ||
33ad93b9 RG |
7158 | if test "${gcc_cv_isl}" = no ; then |
7159 | isllibs= | |
7160 | islinc= | |
7161 | fi | |
7162 | ||
7163 | if test "${graphite_requested}" = yes \ | |
7164 | && test "x${isllibs}" = x \ | |
7165 | && test "x${islinc}" = x ; then | |
f8bf9252 | 7166 | |
22e05272 | 7167 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 7168 | fi |
f8bf9252 | 7169 | |
d32ef397 | 7170 | |
d32ef397 AS |
7171 | fi |
7172 | ||
e357a5e0 | 7173 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 7174 | if test "x$with_isl" = xno || |
625afa23 | 7175 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 7176 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 7177 | islinc= |
32d024bf RG |
7178 | fi |
7179 | ||
625afa23 RG |
7180 | |
7181 | ||
7182 | ||
d7f09764 DN |
7183 | # Check for LTO support. |
7184 | # Check whether --enable-lto was given. | |
7185 | if test "${enable_lto+set}" = set; then : | |
7186 | enableval=$enable_lto; enable_lto=$enableval | |
7187 | else | |
7188 | enable_lto=yes; default_enable_lto=yes | |
7189 | fi | |
7190 | ||
7191 | ||
7413962d | 7192 | |
9a02962b DK |
7193 | |
7194 | ||
7195 | target_elf=no | |
7196 | case $target in | |
7197 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 7198 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 7199 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 7200 | nvptx-*-none) |
9a02962b DK |
7201 | target_elf=no |
7202 | ;; | |
7203 | *) | |
7204 | target_elf=yes | |
7205 | ;; | |
7206 | esac | |
7207 | ||
7208 | if test $target_elf = yes; then : | |
48215350 DK |
7209 | # ELF platforms build the lto-plugin always. |
7210 | build_lto_plugin=yes | |
9a02962b | 7211 | |
9a02962b DK |
7212 | else |
7213 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 7214 | case $target in |
deeba76a | 7215 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 7216 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
7217 | *) enable_lto=no ;; |
7218 | esac | |
9a02962b | 7219 | else |
db50fe7d IS |
7220 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
7221 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
7222 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
7223 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
7224 | # -flto it won't be needed until after installation anyway. | |
7225 | case $target in | |
9e530bcd | 7226 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b | 7227 | *) if test x"$enable_lto" = x"yes"; then |
22e05272 | 7228 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
9a02962b DK |
7229 | fi |
7230 | ;; | |
7231 | esac | |
7232 | fi | |
1cd0b716 | 7233 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 7234 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 7235 | case $target in |
48215350 | 7236 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
7237 | *) ;; |
7238 | esac | |
48215350 | 7239 | |
9a02962b DK |
7240 | fi |
7241 | ||
d7f09764 | 7242 | |
45b3824d TS |
7243 | # Check whether --enable-linker-plugin-configure-flags was given. |
7244 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
7245 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
7246 | else | |
7247 | extra_linker_plugin_configure_flags= | |
7248 | fi | |
7249 | ||
7250 | ||
7251 | # Check whether --enable-linker-plugin-flags was given. | |
7252 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
7253 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
7254 | else | |
7255 | extra_linker_plugin_flags= | |
7256 | fi | |
7257 | ||
7258 | ||
7259 | ||
cdfee50a NS |
7260 | # Enable --enable-host-shared. |
7261 | # Checked early to determine whether jit is an 'all' language | |
7262 | # Check whether --enable-host-shared was given. | |
7263 | if test "${enable_host_shared+set}" = set; then : | |
7264 | enableval=$enable_host_shared; host_shared=$enableval | |
7265 | else | |
7266 | host_shared=no | |
7267 | fi | |
7268 | ||
7269 | ||
f8bf9252 | 7270 | |
0823efed | 7271 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 7272 | stage1_languages=,c, |
2805b53a | 7273 | |
00020c16 | 7274 | # Target libraries that we bootstrap. |
ad1e5170 | 7275 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 7276 | |
55ffb5ed NN |
7277 | # Figure out what language subdirectories are present. |
7278 | # Look if the user specified --enable-languages="..."; if not, use | |
7279 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
7280 | # go away some day. | |
7281 | # NB: embedded tabs in this IF block -- do not untabify | |
7282 | if test -d ${srcdir}/gcc; then | |
7283 | if test x"${enable_languages+set}" != xset; then | |
7284 | if test x"${LANGUAGES+set}" = xset; then | |
7285 | enable_languages="${LANGUAGES}" | |
6b1786aa | 7286 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed | 7287 | else |
cdfee50a | 7288 | enable_languages=default |
55ffb5ed NN |
7289 | fi |
7290 | else | |
7291 | if test x"${enable_languages}" = x || | |
7292 | test x"${enable_languages}" = xyes; | |
7293 | then | |
6b1786aa | 7294 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
7295 | exit 1 |
7296 | fi | |
7297 | fi | |
7298 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
7299 | ||
7f26dfa3 FXC |
7300 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
7301 | # and make the substitution. | |
7302 | case ,${enable_languages}, in | |
7303 | *,f95,*) | |
6b1786aa | 7304 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
7305 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
7306 | ;; | |
7307 | esac | |
7308 | ||
0823efed DN |
7309 | # If bootstrapping, C++ must be enabled. |
7310 | case ",$enable_languages,:$enable_bootstrap" in | |
7311 | *,c++,*:*) ;; | |
7312 | *:yes) | |
ff3ac0f4 ILT |
7313 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
7314 | enable_languages="${enable_languages},c++" | |
7315 | else | |
22e05272 | 7316 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
7317 | fi |
7318 | ;; | |
7319 | esac | |
7320 | ||
55ffb5ed NN |
7321 | # First scan to see if an enabled language requires some other language. |
7322 | # We assume that a given config-lang.in will list all the language | |
7323 | # front ends it requires, even if some are required indirectly. | |
7324 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
7325 | case ${lang_frag} in | |
7326 | ..) ;; | |
7327 | # The odd quoting in the next line works around | |
7328 | # an apparent bug in bash 1.12 on linux. | |
7329 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
7330 | *) | |
69ecd18f ILT |
7331 | # From the config-lang.in, get $language, $lang_requires, and |
7332 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
7333 | language= |
7334 | lang_requires= | |
69ecd18f | 7335 | lang_requires_boot_languages= |
d4360477 NS |
7336 | # set srcdir during sourcing lang_frag to the gcc dir. |
7337 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
7338 | # polutes this shell | |
7339 | saved_srcdir=${srcdir} | |
7340 | srcdir=${srcdir}/gcc . ${lang_frag} | |
7341 | srcdir=${saved_srcdir} | |
69ecd18f | 7342 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
7343 | case ,${enable_languages}, in |
7344 | *,$other,*) ;; | |
cdfee50a | 7345 | *,default,*) ;; |
55ffb5ed NN |
7346 | *,all,*) ;; |
7347 | *,$language,*) | |
7348 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
7349 | enable_languages="${enable_languages},${other}" | |
7350 | ;; | |
7351 | esac | |
7352 | done | |
69ecd18f ILT |
7353 | for other in ${lang_requires_boot_languages} ; do |
7354 | if test "$other" != "c"; then | |
7355 | case ,${enable_stage1_languages}, in | |
7356 | *,$other,*) ;; | |
cdfee50a | 7357 | *,default,*) ;; |
69ecd18f ILT |
7358 | *,all,*) ;; |
7359 | *) | |
7360 | case ,${enable_languages}, in | |
7361 | *,$language,*) | |
7362 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
7363 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
7364 | ;; | |
7365 | esac | |
7366 | ;; | |
7367 | esac | |
7368 | fi | |
7369 | done | |
55ffb5ed NN |
7370 | ;; |
7371 | esac | |
7372 | done | |
7373 | ||
e1888513 | 7374 | new_enable_languages=,c, |
d7f09764 DN |
7375 | |
7376 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 7377 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
7378 | case ,${enable_languages}, in |
7379 | *,lto,*) ;; | |
7380 | *) enable_languages="${enable_languages},lto" ;; | |
7381 | esac | |
1cd0b716 | 7382 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 7383 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
7384 | fi |
7385 | fi | |
7386 | ||
426c1eb0 TS |
7387 | # If we're building an offloading compiler, add the LTO front end. |
7388 | if test x"$enable_as_accelerator_for" != x ; then | |
7389 | case ,${enable_languages}, in | |
7390 | *,lto,*) ;; | |
7391 | *) enable_languages="${enable_languages},lto" ;; | |
7392 | esac | |
7393 | fi | |
7394 | ||
cdfee50a | 7395 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 7396 | potential_languages=,c, |
55ffb5ed | 7397 | |
4da3b0f8 ILT |
7398 | enabled_target_libs= |
7399 | disabled_target_libs= | |
7400 | ||
55ffb5ed NN |
7401 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
7402 | case ${lang_frag} in | |
7403 | ..) ;; | |
7404 | # The odd quoting in the next line works around | |
7405 | # an apparent bug in bash 1.12 on linux. | |
7406 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
7407 | *) | |
1c710c3c | 7408 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 7409 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
7410 | language= |
7411 | target_libs= | |
7412 | lang_dirs= | |
1546bb64 | 7413 | subdir_requires= |
e1888513 PB |
7414 | boot_language=no |
7415 | build_by_default=yes | |
d4360477 NS |
7416 | # set srcdir during sourcing. See above about save & restore |
7417 | saved_srcdir=${srcdir} | |
7418 | srcdir=${srcdir}/gcc . ${lang_frag} | |
7419 | srcdir=${saved_srcdir} | |
e1888513 PB |
7420 | if test x${language} = x; then |
7421 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
7422 | exit 1 | |
7423 | fi | |
7424 | ||
78767fd9 | 7425 | if test "$language" = "c++"; then |
0823efed | 7426 | boot_language=yes |
00020c16 ILT |
7427 | fi |
7428 | ||
178f875a | 7429 | add_this_lang=no |
cdfee50a NS |
7430 | # C is always enabled, so no need to add it again |
7431 | if test "$language" != "c"; then | |
7432 | case ,${enable_languages}, in | |
7433 | *,${language},*) | |
7434 | # Language was explicitly selected; include it | |
d4a10d0a | 7435 | add_this_lang=yes |
cdfee50a NS |
7436 | ;; |
7437 | *,all,*) | |
7438 | # All languages are enabled | |
7439 | add_this_lang=all | |
7440 | ;; | |
7441 | *,default,*) | |
7442 | # 'default' was selected, select it if it is a default language | |
178f875a | 7443 | add_this_lang=${build_by_default} |
cdfee50a NS |
7444 | ;; |
7445 | esac | |
7446 | fi | |
6de9cd9a | 7447 | |
1546bb64 | 7448 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 7449 | for i in $subdir_requires; do |
b6348cb3 | 7450 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
cdfee50a NS |
7451 | case ${add_this_lang} in |
7452 | yes) | |
1546bb64 | 7453 | # Specifically requested language; tell them. |
22e05272 | 7454 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 | 7455 | ;; |
cdfee50a NS |
7456 | all) |
7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
7458 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
7459 | add_this_lang=unsupported | |
7460 | ;; | |
1546bb64 PB |
7461 | *) |
7462 | # Silently disable. | |
e1888513 | 7463 | add_this_lang=unsupported |
1546bb64 PB |
7464 | ;; |
7465 | esac | |
7466 | done | |
7467 | ||
e1888513 | 7468 | # Disable Ada if no preexisting GNAT is available. |
cdfee50a NS |
7469 | case ${add_this_lang}:${language}:${have_gnat} in |
7470 | yes:ada:no) | |
e1888513 | 7471 | # Specifically requested language; tell them. |
22e05272 | 7472 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
e1888513 | 7473 | ;; |
cdfee50a NS |
7474 | all:ada:no) |
7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
7476 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
7477 | add_this_lang=unsupported | |
7478 | ;; | |
e1888513 PB |
7479 | *:ada:no) |
7480 | # Silently disable. | |
7481 | add_this_lang=unsupported | |
7482 | ;; | |
7483 | esac | |
7484 | ||
cdfee50a | 7485 | # Disable jit if -enable-host-shared not specified |
ffac9597 JM |
7486 | # but not if building for Mingw. All code in Windows |
7487 | # is position independent code (PIC). | |
c83027f3 NB |
7488 | case $target in |
7489 | *mingw*) ;; | |
7490 | *) | |
7491 | case ${add_this_lang}:${language}:${host_shared} in | |
7492 | yes:jit:no) | |
7493 | # PR jit/64780: explicitly specify --enable-host-shared | |
22e05272 | 7494 | as_fn_error $? " |
cdfee50a NS |
7495 | Enabling language \"jit\" requires --enable-host-shared. |
7496 | ||
7497 | --enable-host-shared typically slows the rest of the compiler down by | |
7498 | a few %, so you must explicitly enable it. | |
7499 | ||
7500 | If you want to build both the jit and the regular compiler, it is often | |
7501 | best to do this via two separate configure/builds, in separate | |
7502 | directories, to avoid imposing the performance cost of | |
7503 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
c83027f3 NB |
7504 | ;; |
7505 | all:jit:no) | |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
cdfee50a | 7507 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
c83027f3 NB |
7508 | add_this_lang=unsupported |
7509 | ;; | |
7510 | *:jit:no) | |
7511 | # Silently disable. | |
7512 | add_this_lang=unsupported | |
7513 | ;; | |
7514 | esac | |
7515 | ;; | |
7516 | esac | |
cdfee50a NS |
7517 | |
7518 | # Disable a language that is unsupported by the target. | |
7519 | case "${add_this_lang}: $unsupported_languages " in | |
7520 | no:*) ;; | |
7521 | unsupported:*) ;; | |
7522 | *:*" $language "*) | |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
7524 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
e1888513 | 7525 | add_this_lang=unsupported |
4fab7234 HPN |
7526 | ;; |
7527 | esac | |
7528 | ||
6de9cd9a | 7529 | case $add_this_lang in |
e1888513 | 7530 | unsupported) |
55ffb5ed | 7531 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
7532 | disabled_target_libs="$disabled_target_libs $target_libs" |
7533 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 7534 | ;; |
e1888513 PB |
7535 | no) |
7536 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
7537 | disabled_target_libs="$disabled_target_libs $target_libs" |
7538 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
7539 | potential_languages="${potential_languages}${language}," |
7540 | ;; | |
cdfee50a | 7541 | all|yes) |
e1888513 PB |
7542 | new_enable_languages="${new_enable_languages}${language}," |
7543 | potential_languages="${potential_languages}${language}," | |
2805b53a | 7544 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 7545 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
7546 | case "${boot_language}:,$enable_stage1_languages," in |
7547 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 7548 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
7549 | case ",$stage1_languages," in |
7550 | *,$language,* | ,yes, | ,all,) ;; | |
7551 | *) stage1_languages="${stage1_languages}${language}," ;; | |
7552 | esac | |
00020c16 ILT |
7553 | # We need to bootstrap any supporting libraries. |
7554 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
7555 | ;; |
7556 | esac | |
7557 | ;; | |
55ffb5ed NN |
7558 | esac |
7559 | ;; | |
7560 | esac | |
7561 | done | |
7562 | ||
4da3b0f8 ILT |
7563 | # Add target libraries which are only needed for disabled languages |
7564 | # to noconfigdirs. | |
7565 | if test -n "$disabled_target_libs"; then | |
7566 | for dir in $disabled_target_libs; do | |
7567 | case " $enabled_target_libs " in | |
7568 | *" ${dir} "*) ;; | |
7569 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
7570 | esac | |
7571 | done | |
7572 | fi | |
7573 | ||
5213506e RW |
7574 | # Check whether --enable-stage1-languages was given. |
7575 | if test "${enable_stage1_languages+set}" = set; then : | |
7576 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
7577 | ,no,|,,) |
7578 | # Set it to something that will have no effect in the loop below | |
7579 | enable_stage1_languages=c ;; | |
7580 | ,yes,) | |
7581 | enable_stage1_languages=`echo $new_enable_languages | \ | |
7582 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
7583 | *,all,*) | |
7584 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
7585 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
7586 | esac | |
7587 | ||
7588 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
7589 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
7590 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
7591 | case $potential_languages in | |
7592 | *,$i,*) | |
7593 | case $stage1_languages in | |
7594 | *,$i,*) ;; | |
7595 | *) stage1_languages="$stage1_languages$i," ;; | |
7596 | esac ;; | |
7597 | *) | |
7598 | case $missing_languages in | |
7599 | *,$i,*) ;; | |
7600 | *) missing_languages="$missing_languages$i," ;; | |
7601 | esac ;; | |
7602 | esac | |
7603 | done | |
5213506e RW |
7604 | fi |
7605 | ||
e1888513 PB |
7606 | |
7607 | # Remove leading/trailing commas that were added for simplicity | |
7608 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 7609 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
7610 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
7611 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
7612 | ||
55ffb5ed | 7613 | if test "x$missing_languages" != x; then |
22e05272 | 7614 | as_fn_error $? " |
0cf085e4 | 7615 | The following requested languages could not be built: ${missing_languages} |
5213506e | 7616 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 7617 | fi |
55ffb5ed NN |
7618 | if test "x$new_enable_languages" != "x$enable_languages"; then |
7619 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 7620 | enable_languages="$new_enable_languages" |
55ffb5ed | 7621 | fi |
e1888513 | 7622 | |
1c710c3c | 7623 | |
b2eaac4a | 7624 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
7625 | fi |
7626 | ||
27079765 AH |
7627 | # Handle --disable-<component> generically. |
7628 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
7629 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
7630 | varname=`echo $dirname | sed -e s/+/_/g` |
7631 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
7632 | noconfigdirs="$noconfigdirs $dir" |
7633 | fi | |
7634 | done | |
7635 | ||
43c40f3e RO |
7636 | # Check for Boehm's garbage collector |
7637 | # Check whether --enable-objc-gc was given. | |
7638 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
7639 | enableval=$enable_objc_gc; |
7640 | fi | |
7641 | ||
7642 | ||
7643 | # Check whether --with-target-bdw-gc was given. | |
7644 | if test "${with_target_bdw_gc+set}" = set; then : | |
7645 | withval=$with_target_bdw_gc; | |
7646 | fi | |
7647 | ||
7648 | ||
7649 | # Check whether --with-target-bdw-gc-include was given. | |
7650 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
7651 | withval=$with_target_bdw_gc_include; | |
7652 | fi | |
7653 | ||
7654 | ||
7655 | # Check whether --with-target-bdw-gc-lib was given. | |
7656 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
7657 | withval=$with_target_bdw_gc_lib; | |
7658 | fi | |
7659 | ||
7660 | ||
7661 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
7663 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
7664 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
7665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
7666 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
7667 | else |
7668 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
22e05272 | 7669 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
114bf3f1 | 7670 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
22e05272 | 7671 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
114bf3f1 MK |
7672 | else |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
7674 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
7675 | fi | |
7676 | fi | |
43c40f3e RO |
7677 | esac |
7678 | ||
5e9d6aa4 | 7679 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 7680 | case ,${enable_languages}, in |
1007a55c | 7681 | *,c++,*) |
5e9d6aa4 | 7682 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1007a55c JW |
7683 | case "${noconfigdirs}" in |
7684 | *target-libstdc++-v3*) | |
5e9d6aa4 | 7685 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1007a55c JW |
7686 | ;; |
7687 | *) ;; | |
7688 | esac | |
7689 | ;; | |
99776ebd | 7690 | *) |
5e9d6aa4 | 7691 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
7692 | ;; |
7693 | esac | |
7694 | ||
ee6a22df L |
7695 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
7696 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
7697 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
7698 | ||
7699 | notsupp="" | |
7700 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 7701 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
7702 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
7703 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
7704 | if test -r $srcdir/$dirname/configure ; then | |
7705 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
7706 | true | |
7707 | else | |
7708 | notsupp="$notsupp $dir" | |
7709 | fi | |
7710 | fi | |
7711 | fi | |
ee6a22df L |
7712 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
7713 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
7714 | if test -r $srcdir/$dirname/configure ; then | |
7715 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
7716 | true | |
7717 | else | |
7718 | notsupp="$notsupp $dir" | |
7719 | fi | |
7720 | fi | |
7721 | fi | |
55ffb5ed NN |
7722 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
7723 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
7724 | if test -r $srcdir/$dirname/configure ; then | |
7725 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
7726 | true | |
7727 | else | |
7728 | notsupp="$notsupp $dir" | |
7729 | fi | |
7730 | fi | |
7731 | fi | |
7732 | done | |
7733 | ||
55ffb5ed NN |
7734 | # Quietly strip out all directories which aren't configurable in this tree. |
7735 | # This relies on all configurable subdirectories being autoconfiscated, which | |
7736 | # is now the case. | |
23f6b2f9 PB |
7737 | build_configdirs_all="$build_configdirs" |
7738 | build_configdirs= | |
7739 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 7740 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
7741 | if test -f ${srcdir}/$j/configure ; then |
7742 | build_configdirs="${build_configdirs} $i" | |
7743 | fi | |
7744 | done | |
7745 | ||
55ffb5ed NN |
7746 | configdirs_all="$configdirs" |
7747 | configdirs= | |
7748 | for i in ${configdirs_all} ; do | |
7749 | if test -f ${srcdir}/$i/configure ; then | |
7750 | configdirs="${configdirs} $i" | |
7751 | fi | |
7752 | done | |
23f6b2f9 | 7753 | |
55ffb5ed NN |
7754 | target_configdirs_all="$target_configdirs" |
7755 | target_configdirs= | |
7756 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 7757 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
7758 | if test -f ${srcdir}/$j/configure ; then |
7759 | target_configdirs="${target_configdirs} $i" | |
7760 | fi | |
7761 | done | |
7762 | ||
45b3824d TS |
7763 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
7764 | # so we have to add it after the preceding checks. | |
7765 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
7766 | then | |
7767 | case " $configdirs " in | |
7768 | *" libiberty "*) | |
7769 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
7770 | configdirs="$configdirs libiberty-linker-plugin" | |
7771 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
7772 | --with-libiberty=../libiberty-linker-plugin";; | |
7773 | *) | |
22e05272 | 7774 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
45b3824d TS |
7775 | esac |
7776 | fi | |
7777 | ||
fca38047 TS |
7778 | # Sometimes we have special requirements for the host libiberty. |
7779 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 7780 | extra_host_zlib_configure_flags= |
fca38047 TS |
7781 | case " $configdirs " in |
7782 | *" lto-plugin "* | *" libcc1 "*) | |
7783 | # When these are to be built as shared libraries, the same applies to | |
7784 | # libiberty. | |
7785 | extra_host_libiberty_configure_flags=--enable-shared | |
7786 | ;; | |
1c01ebf6 L |
7787 | *" bfd "*) |
7788 | # When bfd is to be built as a shared library, the same applies to | |
7789 | # zlib. | |
7790 | if test "$enable_shared" = "yes"; then | |
7791 | extra_host_zlib_configure_flags=--enable-host-shared | |
7792 | fi | |
7793 | ;; | |
fca38047 TS |
7794 | esac |
7795 | ||
7796 | ||
1c01ebf6 | 7797 | |
55ffb5ed NN |
7798 | # Produce a warning message for the subdirs we can't configure. |
7799 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
7800 | # FSF releases, it's important to let people know when their machine isn't | |
7801 | # supported by the one or two programs in a package. | |
7802 | ||
7803 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
7804 | # If $appdirs is non-empty, at least one of those directories must still | |
7805 | # be configured, or we error out. (E.g., if the gas release supports a | |
7806 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
7807 | # pretend that all is well.) | |
7808 | if test -n "$appdirs" ; then | |
7809 | for dir in $appdirs ; do | |
7810 | if test -r $dir/Makefile.in ; then | |
7811 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
7812 | appdirs="" | |
7813 | break | |
7814 | fi | |
23f6b2f9 | 7815 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
7816 | appdirs="" |
7817 | break | |
7818 | fi | |
7819 | fi | |
7820 | done | |
7821 | if test -n "$appdirs" ; then | |
7822 | echo "*** This configuration is not supported by this package." 1>&2 | |
7823 | exit 1 | |
7824 | fi | |
7825 | fi | |
7826 | # Okay, some application will build, or we don't care to check. Still | |
7827 | # notify of subdirs not getting built. | |
7828 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
7829 | echo " ${notsupp}" 1>&2 | |
7830 | echo " (Any other directories should still work fine.)" 1>&2 | |
7831 | fi | |
7832 | ||
7833 | case "$host" in | |
7834 | *msdosdjgpp*) | |
7835 | enable_gdbtk=no ;; | |
7836 | esac | |
7837 | ||
c3a86da9 DJ |
7838 | # To find our prefix, in gcc_cv_tool_prefix. |
7839 | ||
7840 | # The user is always right. | |
7841 | if test "${PATH_SEPARATOR+set}" != set; then | |
7842 | echo "#! /bin/sh" >conf$$.sh | |
7843 | echo "exit 0" >>conf$$.sh | |
7844 | chmod +x conf$$.sh | |
7845 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7846 | PATH_SEPARATOR=';' | |
7847 | else | |
7848 | PATH_SEPARATOR=: | |
7849 | fi | |
7850 | rm -f conf$$.sh | |
7851 | fi | |
7852 | ||
7853 | ||
3c36aa6b JJ |
7854 | get_gcc_base_ver="cat" |
7855 | ||
7856 | # Check whether --with-gcc-major-version-only was given. | |
7857 | if test "${with_gcc_major_version_only+set}" = set; then : | |
7858 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
31db0fe0 | 7859 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
7860 | fi |
7861 | ||
7862 | fi | |
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
c3a86da9 DJ |
7868 | |
7869 | if test "x$exec_prefix" = xNONE; then | |
7870 | if test "x$prefix" = xNONE; then | |
7871 | gcc_cv_tool_prefix=$ac_default_prefix | |
7872 | else | |
7873 | gcc_cv_tool_prefix=$prefix | |
7874 | fi | |
7875 | else | |
7876 | gcc_cv_tool_prefix=$exec_prefix | |
7877 | fi | |
7878 | ||
7879 | # If there is no compiler in the tree, use the PATH only. In any | |
7880 | # case, if there is no compiler in the tree nobody should use | |
7881 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
7882 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
7883 | if test x$with_gcc_major_version_only = xyes ; then |
7884 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
7885 | else | |
7886 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
7887 | fi | |
c3a86da9 DJ |
7888 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
7889 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
7890 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
7891 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
7892 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
7893 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
7894 | else | |
7895 | gcc_cv_tool_dirs= | |
7896 | fi | |
7897 | ||
7898 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
7899 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
7900 | fi | |
7901 | ||
7902 | ||
7903 | ||
55ffb5ed NN |
7904 | copy_dirs= |
7905 | ||
1c710c3c | 7906 | |
5213506e RW |
7907 | # Check whether --with-build-sysroot was given. |
7908 | if test "${with_build_sysroot+set}" = set; then : | |
7909 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
7910 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
7911 | fi | |
7912 | else | |
7913 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 7914 | fi |
526635cb MM |
7915 | |
7916 | ||
c8aea42c | 7917 | |
5213506e RW |
7918 | |
7919 | # Check whether --with-debug-prefix-map was given. | |
7920 | if test "${with_debug_prefix_map+set}" = set; then : | |
7921 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
7922 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
7923 | for debug_map in $withval; do | |
7924 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
7925 | done | |
7926 | fi | |
7927 | else | |
7928 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
7929 | fi |
7930 | ||
c8aea42c PB |
7931 | |
7932 | ||
1c8bd6a3 PB |
7933 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
7934 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
7935 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
7936 | # We want to ensure that TARGET libraries (which we know are built with | |
7937 | # gcc) are built with "-O2 -g", so include those options when setting | |
7938 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
7939 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
7940 | if test "x${is_cross_compiler}" = xyes; then |
7941 | CFLAGS_FOR_TARGET="-g -O2" | |
7942 | else | |
7943 | CFLAGS_FOR_TARGET=$CFLAGS | |
7944 | case " $CFLAGS " in | |
7945 | *" -O2 "*) ;; | |
7946 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
7947 | esac | |
7948 | case " $CFLAGS " in | |
7949 | *" -g "* | *" -g3 "*) ;; | |
7950 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
7951 | esac | |
7952 | fi | |
1c8bd6a3 PB |
7953 | fi |
7954 | ||
7955 | ||
7956 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
7957 | if test "x${is_cross_compiler}" = xyes; then |
7958 | CXXFLAGS_FOR_TARGET="-g -O2" | |
7959 | else | |
7960 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
7961 | case " $CXXFLAGS " in | |
7962 | *" -O2 "*) ;; | |
7963 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
7964 | esac | |
7965 | case " $CXXFLAGS " in | |
7966 | *" -g "* | *" -g3 "*) ;; | |
7967 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
7968 | esac | |
7969 | fi | |
1c8bd6a3 PB |
7970 | fi |
7971 | ||
7972 | ||
6f57bdf6 DK |
7973 | |
7974 | ||
55ffb5ed NN |
7975 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
7976 | # the named directory are copied to $(tooldir)/sys-include. | |
7977 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
7978 | if test x${is_cross_compiler} = xno ; then | |
7979 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
7980 | exit 1 | |
7981 | fi | |
7982 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 7983 | x=${gcc_cv_tool_prefix} |
1c710c3c | 7984 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
7985 | fi |
7986 | fi | |
7987 | ||
7988 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
7989 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
7990 | # are permitted. | |
7991 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
7992 | if test x${is_cross_compiler} = xno ; then | |
7993 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
7994 | exit 1 | |
7995 | fi | |
7996 | if test x"${with_libs}" != xyes ; then | |
7997 | # Copy the libraries in reverse order, so that files in the first named | |
7998 | # library override files in subsequent libraries. | |
c3a86da9 | 7999 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 8000 | for l in ${with_libs}; do |
1c710c3c | 8001 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
8002 | done |
8003 | fi | |
8004 | fi | |
8005 | ||
d7f09764 | 8006 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
8007 | # |
8008 | # This is done by determining whether or not the appropriate directory | |
8009 | # is available, and by checking whether or not specific configurations | |
8010 | # have requested that this magic not happen. | |
1c710c3c DJ |
8011 | # |
8012 | # The command line options always override the explicit settings in | |
6b1786aa | 8013 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 8014 | # |
1c710c3c | 8015 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 8016 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
8017 | # --without-gnu-ld options for the configure script. Similarly, if |
8018 | # the default is to use the included zlib and you don't want to do that, | |
8019 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
8020 | |
8021 | if test x${use_gnu_as} = x && | |
8022 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
8023 | with_gnu_as=yes | |
8024 | extra_host_args="$extra_host_args --with-gnu-as" | |
8025 | fi | |
8026 | ||
8027 | if test x${use_gnu_ld} = x && | |
5afab7ad | 8028 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
8029 | with_gnu_ld=yes |
8030 | extra_host_args="$extra_host_args --with-gnu-ld" | |
8031 | fi | |
8032 | ||
d7f09764 DN |
8033 | if test x${use_included_zlib} = x && |
8034 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
8035 | : | |
8036 | else | |
8037 | with_system_zlib=yes | |
8038 | extra_host_args="$extra_host_args --with-system-zlib" | |
8039 | fi | |
8040 | ||
e8b05380 PB |
8041 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
8042 | # can detect this case. | |
8043 | ||
8044 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
8045 | with_newlib=yes | |
8046 | extra_host_args="$extra_host_args --with-newlib" | |
8047 | fi | |
8048 | ||
55ffb5ed NN |
8049 | # Handle ${copy_dirs} |
8050 | set fnord ${copy_dirs} | |
8051 | shift | |
8052 | while test $# != 0 ; do | |
8053 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
8054 | : | |
8055 | else | |
8056 | echo Copying $1 to $2 | |
8057 | ||
8058 | # Use the install script to create the directory and all required | |
8059 | # parent directories. | |
8060 | if test -d $2 ; then | |
8061 | : | |
8062 | else | |
8063 | echo >config.temp | |
8064 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
8065 | fi | |
8066 | ||
8067 | # Copy the directory, assuming we have tar. | |
8068 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
8069 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
8070 | ||
8071 | # It is the responsibility of the user to correctly adjust all | |
8072 | # symlinks. If somebody can figure out how to handle them correctly | |
8073 | # here, feel free to add the code. | |
8074 | ||
8075 | echo $1 > $2/COPIED | |
8076 | fi | |
8077 | shift; shift | |
8078 | done | |
8079 | ||
e8b05380 PB |
8080 | # Determine a target-dependent exec_prefix that the installed |
8081 | # gcc will search in. Keep this list sorted by triplet, with | |
8082 | # the *-*-osname triplets last. | |
8083 | md_exec_prefix= | |
8084 | case "${target}" in | |
30b74385 | 8085 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
8086 | md_exec_prefix=/dev/env/DJDIR/bin |
8087 | ;; | |
e8b05380 | 8088 | *-*-hpux* | \ |
e8b05380 | 8089 | *-*-nto-qnx* | \ |
6de66370 | 8090 | *-*-solaris2*) |
e8b05380 PB |
8091 | md_exec_prefix=/usr/ccs/bin |
8092 | ;; | |
8093 | esac | |
8094 | ||
671aa708 NN |
8095 | extra_arflags_for_target= |
8096 | extra_nmflags_for_target= | |
8097 | extra_ranlibflags_for_target= | |
8098 | target_makefile_frag=/dev/null | |
8099 | case "${target}" in | |
58e24147 AM |
8100 | spu-*-*) |
8101 | target_makefile_frag="config/mt-spu" | |
8102 | ;; | |
d896cc4d | 8103 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
8104 | target_makefile_frag="config/mt-sde" |
8105 | ;; | |
1ec3b87b RS |
8106 | mipsisa*-*-elfoabi*) |
8107 | target_makefile_frag="config/mt-mips-elfoabi" | |
8108 | ;; | |
08d0963a RS |
8109 | mips*-*-*linux* | mips*-*-gnu*) |
8110 | target_makefile_frag="config/mt-mips-gnu" | |
8111 | ;; | |
707f1839 SL |
8112 | nios2-*-elf*) |
8113 | target_makefile_frag="config/mt-nios2-elf" | |
8114 | ;; | |
76052545 EB |
8115 | *-*-linux-android*) |
8116 | target_makefile_frag="config/mt-android" | |
8117 | ;; | |
416ac4d4 | 8118 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 8119 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
8120 | ;; |
8121 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 8122 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
8123 | # commands to handle both 32-bit and 64-bit objects. These flags are |
8124 | # harmless if we're using GNU nm or ar. | |
8125 | extra_arflags_for_target=" -X32_64" | |
8126 | extra_nmflags_for_target=" -B -X32_64" | |
8127 | ;; | |
671aa708 NN |
8128 | esac |
8129 | ||
8130 | alphaieee_frag=/dev/null | |
8131 | case $target in | |
8132 | alpha*-*-*) | |
8133 | # This just makes sure to use the -mieee option to build target libs. | |
8134 | # This should probably be set individually by each library. | |
8135 | alphaieee_frag="config/mt-alphaieee" | |
8136 | ;; | |
8137 | esac | |
8138 | ||
8139 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
8140 | # the target libraries, similarly if it is not specified, use -Os | |
8141 | # on selected platforms. | |
8142 | ospace_frag=/dev/null | |
8143 | case "${enable_target_optspace}:${target}" in | |
8144 | yes:*) | |
8145 | ospace_frag="config/mt-ospace" | |
8146 | ;; | |
8147 | :d30v-*) | |
8148 | ospace_frag="config/mt-d30v" | |
8149 | ;; | |
d9063947 | 8150 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
8151 | ospace_frag="config/mt-ospace" |
8152 | ;; | |
8153 | no:* | :*) | |
8154 | ;; | |
8155 | *) | |
8156 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
8157 | ;; | |
8158 | esac | |
8159 | ||
671aa708 NN |
8160 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
8161 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 8162 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
8163 | build_tooldir=${tooldir} |
8164 | ||
671aa708 NN |
8165 | # Create a .gdbinit file which runs the one in srcdir |
8166 | # and tells GDB to look there for source files. | |
8167 | ||
8168 | if test -r ${srcdir}/.gdbinit ; then | |
8169 | case ${srcdir} in | |
8170 | .) ;; | |
8171 | *) cat > ./.gdbinit <<EOF | |
8172 | # ${NO_EDIT} | |
8173 | dir ${srcdir} | |
8174 | dir . | |
8175 | source ${srcdir}/.gdbinit | |
8176 | EOF | |
8177 | ;; | |
8178 | esac | |
8179 | fi | |
8180 | ||
671aa708 NN |
8181 | # Make sure that the compiler is able to generate an executable. If it |
8182 | # can't, we are probably in trouble. We don't care whether we can run the | |
8183 | # executable--we might be using a cross compiler--we only care whether it | |
8184 | # can be created. At this point the main configure script has set CC. | |
8185 | we_are_ok=no | |
8186 | echo "int main () { return 0; }" > conftest.c | |
8187 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
8188 | if test $? = 0 ; then | |
8189 | if test -s conftest || test -s conftest.exe ; then | |
8190 | we_are_ok=yes | |
8191 | fi | |
1c710c3c | 8192 | fi |
671aa708 NN |
8193 | case $we_are_ok in |
8194 | no) | |
8195 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
8196 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
8197 | rm -f conftest* | |
8198 | exit 1 | |
8199 | ;; | |
8200 | esac | |
8201 | rm -f conftest* | |
8202 | ||
d89f0ad6 | 8203 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
8204 | case "${host}" in |
8205 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 8206 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 8207 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
8208 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
8209 | esac | |
8210 | ||
d89f0ad6 AL |
8211 | # On systems where the dynamic library environment variable is PATH, |
8212 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
8213 | # built executables to PATH. | |
8214 | if test "$RPATH_ENVVAR" = PATH; then | |
8215 | GCC_SHLIB_SUBDIR=/shlib | |
8216 | else | |
8217 | GCC_SHLIB_SUBDIR= | |
8218 | fi | |
8219 | ||
beeda1d9 JJ |
8220 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
8221 | case $enable_bootstrap in | |
8222 | yes) | |
8223 | bootstrap_suffix=bootstrap | |
8224 | BUILD_CONFIG=bootstrap-debug | |
8225 | ;; | |
8226 | no) | |
8227 | bootstrap_suffix=no-bootstrap | |
8228 | BUILD_CONFIG= | |
8229 | ;; | |
8230 | esac | |
8231 | ||
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
8233 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
8234 | ||
8235 | ||
8236 | # Check whether --with-build-config was given. | |
8237 | if test "${with_build_config+set}" = set; then : | |
8238 | withval=$with_build_config; case $with_build_config in | |
8239 | yes) with_build_config= ;; | |
8240 | no) with_build_config= BUILD_CONFIG= ;; | |
8241 | esac | |
8242 | fi | |
8243 | ||
8244 | ||
8245 | if test "x${with_build_config}" != x; then | |
8246 | BUILD_CONFIG=$with_build_config | |
8247 | else | |
8248 | case $BUILD_CONFIG in | |
8249 | bootstrap-debug) | |
8250 | if echo "int f (void) { return 0; }" > conftest.c && | |
8251 | ${CC} -c conftest.c && | |
8252 | mv conftest.o conftest.o.g0 && | |
8253 | ${CC} -c -g conftest.c && | |
8254 | mv conftest.o conftest.o.g && | |
8255 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
8256 | : | |
8257 | else | |
8258 | BUILD_CONFIG= | |
8259 | fi | |
8260 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
8261 | ;; | |
8262 | esac | |
8263 | fi | |
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
8265 | $as_echo "$BUILD_CONFIG" >&6; } | |
8266 | ||
8267 | ||
8268 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
8270 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
8271 | # Check whether --enable-vtable-verify was given. | |
8272 | if test "${enable_vtable_verify+set}" = set; then : | |
8273 | enableval=$enable_vtable_verify; case "$enableval" in | |
8274 | yes) enable_vtable_verify=yes ;; | |
8275 | no) enable_vtable_verify=no ;; | |
8276 | *) enable_vtable_verify=no;; | |
8277 | esac | |
8278 | else | |
8279 | enable_vtable_verify=no | |
8280 | fi | |
8281 | ||
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
8283 | $as_echo "$enable_vtable_verify" >&6; } | |
8284 | ||
671aa708 NN |
8285 | # Record target_configdirs and the configure arguments for target and |
8286 | # build configuration in Makefile. | |
8287 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 8288 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 8289 | bootstrap_fixincludes=no |
671aa708 | 8290 | |
ad1e5170 JR |
8291 | # If we are building libgomp, bootstrap it. |
8292 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
8293 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
8294 | fi | |
8295 | ||
beeda1d9 JJ |
8296 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
8297 | # or bootstrap-ubsan, bootstrap it. | |
8298 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
8299 | case "$BUILD_CONFIG" in | |
8300 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
8301 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 8302 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
8303 | ;; |
8304 | esac | |
ac8701fe L |
8305 | fi |
8306 | ||
beeda1d9 JJ |
8307 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
8308 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
8309 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
8310 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
8311 | fi | |
8312 | ||
671aa708 NN |
8313 | # Determine whether gdb needs tk/tcl or not. |
8314 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
8315 | # and in that case we want gdb to be built without tk. Ugh! | |
8316 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
8317 | # so we should be able to put the 'maybe's in unconditionally and | |
8318 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
8319 | # 100% sure that that's safe though. | |
e914a571 | 8320 | |
b4f96efe | 8321 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
8322 | case "$enable_gdbtk" in |
8323 | no) | |
8324 | GDB_TK="" ;; | |
e914a571 AC |
8325 | yes) |
8326 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 8327 | *) |
e914a571 AC |
8328 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
8329 | # distro. Eventually someone will fix this and move Insight, nee | |
8330 | # gdbtk to a separate directory. | |
8331 | if test -d ${srcdir}/gdb/gdbtk ; then | |
8332 | GDB_TK="${gdb_tk}" | |
8333 | else | |
8334 | GDB_TK="" | |
8335 | fi | |
8336 | ;; | |
671aa708 | 8337 | esac |
ef9db8d5 DJ |
8338 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
8339 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 8340 | |
f9d09df0 TT |
8341 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
8342 | # else does, only include them if one of these is built. The Makefile | |
8343 | # provides the ordering, so it's enough here to add to the list. | |
8344 | case " ${configdirs} " in | |
8345 | *\ gdb\ *) | |
8346 | configdirs="${configdirs} gnulib gdbsupport" | |
8347 | ;; | |
8348 | *\ gdbserver\ *) | |
8349 | configdirs="${configdirs} gnulib gdbsupport" | |
8350 | ;; | |
8351 | esac | |
98e5be21 | 8352 | |
60975492 | 8353 | # Strip out unwanted targets. |
8b87bb96 NN |
8354 | |
8355 | # While at that, we remove Makefiles if we were started for recursive | |
8356 | # configuration, so that the top-level Makefile reconfigures them, | |
8357 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 8358 | |
3e54529c RW |
8359 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
8360 | # but now we're fixing up the Makefile ourselves with the additional | |
8361 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
8362 | # extrasub-{build,host,target} not because there is any reason to split | |
8363 | # the substitutions up that way, but only to remain below the limit of | |
8364 | # 99 commands in a script, for HP-UX sed. | |
da34ca3f AO |
8365 | |
8366 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
8367 | # configure will not warn you at all. | |
8b87bb96 | 8368 | |
79cd2b23 RW |
8369 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
8370 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
8371 | yes:yes:*\ gold\ *:*) | |
22e05272 | 8372 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
79cd2b23 RW |
8373 | ;; |
8374 | esac | |
8375 | ||
3e54529c | 8376 | extrasub_build= |
23f6b2f9 | 8377 | for module in ${build_configdirs} ; do |
5607edfd PB |
8378 | if test -z "${no_recursion}" \ |
8379 | && test -f ${build_subdir}/${module}/Makefile; then | |
8380 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
8381 | rm -f ${build_subdir}/${module}/Makefile | |
8382 | fi | |
3e54529c | 8383 | extrasub_build="$extrasub_build |
5607edfd PB |
8384 | /^@if build-$module\$/d |
8385 | /^@endif build-$module\$/d | |
da34ca3f | 8386 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
5607edfd | 8387 | /^@if build-$module-$bootstrap_suffix\$/d |
da34ca3f AO |
8388 | /^@endif build-$module-$bootstrap_suffix\$/d |
8389 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
5607edfd | 8390 | done |
3e54529c | 8391 | extrasub_host= |
5607edfd | 8392 | for module in ${configdirs} ; do |
a6fbc1e2 | 8393 | if test -z "${no_recursion}"; then |
f063a9ed | 8394 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
8395 | if test -f ${file}; then |
8396 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
8397 | rm -f ${file} | |
8398 | fi | |
8399 | done | |
5607edfd | 8400 | fi |
9e1c8fc1 JJ |
8401 | case ${module},${bootstrap_fixincludes} in |
8402 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
8403 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
8404 | esac | |
3e54529c | 8405 | extrasub_host="$extrasub_host |
5607edfd PB |
8406 | /^@if $module\$/d |
8407 | /^@endif $module\$/d | |
da34ca3f | 8408 | /^@unless $module\$/,/^@endunless $module\$/d |
9e1c8fc1 | 8409 | /^@if $module-$host_bootstrap_suffix\$/d |
da34ca3f AO |
8410 | /^@endif $module-$host_bootstrap_suffix\$/d |
8411 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 8412 | done |
3e54529c | 8413 | extrasub_target= |
5607edfd PB |
8414 | for module in ${target_configdirs} ; do |
8415 | if test -z "${no_recursion}" \ | |
8416 | && test -f ${target_subdir}/${module}/Makefile; then | |
8417 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
8418 | rm -f ${target_subdir}/${module}/Makefile | |
8419 | fi | |
00020c16 ILT |
8420 | |
8421 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
8422 | case $bootstrap_target_libs in | |
8423 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
8424 | *) target_bootstrap_suffix=no-bootstrap ;; | |
8425 | esac | |
8426 | ||
3e54529c | 8427 | extrasub_target="$extrasub_target |
5607edfd PB |
8428 | /^@if target-$module\$/d |
8429 | /^@endif target-$module\$/d | |
da34ca3f | 8430 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
00020c16 | 8431 | /^@if target-$module-$target_bootstrap_suffix\$/d |
da34ca3f AO |
8432 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
8433 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
8434 | done |
8435 | ||
3e54529c RW |
8436 | # Do the final fixup along with target modules. |
8437 | extrasub_target="$extrasub_target | |
da34ca3f AO |
8438 | /^@if /,/^@endif /d |
8439 | /^@unless /d | |
8440 | /^@endunless /d" | |
671aa708 NN |
8441 | |
8442 | # Create the serialization dependencies. This uses a temporary file. | |
8443 | ||
5213506e RW |
8444 | # Check whether --enable-serial-configure was given. |
8445 | if test "${enable_serial_configure+set}" = set; then : | |
8446 | enableval=$enable_serial_configure; | |
8447 | fi | |
ade82b16 AO |
8448 | |
8449 | ||
bf1d3e81 NN |
8450 | case ${enable_serial_configure} in |
8451 | yes) | |
8452 | enable_serial_build_configure=yes | |
8453 | enable_serial_host_configure=yes | |
8454 | enable_serial_target_configure=yes | |
8455 | ;; | |
8456 | esac | |
8457 | ||
671aa708 NN |
8458 | # These force 'configure's to be done one at a time, to avoid problems |
8459 | # with contention over a shared config.cache. | |
8460 | rm -f serdep.tmp | |
ade82b16 | 8461 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 8462 | olditem= |
bf1d3e81 | 8463 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
8464 | for item in ${build_configdirs} ; do |
8465 | case ${olditem} in | |
8466 | "") ;; | |
ade82b16 | 8467 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
8468 | esac |
8469 | olditem=${item} | |
8470 | done | |
8471 | olditem= | |
bf1d3e81 | 8472 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
8473 | for item in ${configdirs} ; do |
8474 | case ${olditem} in | |
8475 | "") ;; | |
ade82b16 | 8476 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
8477 | esac |
8478 | olditem=${item} | |
8479 | done | |
8480 | olditem= | |
bf1d3e81 | 8481 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
8482 | for item in ${target_configdirs} ; do |
8483 | case ${olditem} in | |
8484 | "") ;; | |
ade82b16 | 8485 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
8486 | esac |
8487 | olditem=${item} | |
8488 | done | |
8489 | serialization_dependencies=serdep.tmp | |
8490 | ||
8491 | ||
ade82b16 | 8492 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 8493 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
8494 | # might not want to pass down to subconfigures. The exception being |
8495 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
8496 | # files altogether, and which should be passed on to subconfigures. | |
8497 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
8498 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 8499 | baseargs= |
29a63921 | 8500 | tbaseargs= |
1c710c3c DJ |
8501 | keep_next=no |
8502 | skip_next=no | |
8503 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
8504 | for ac_arg |
8505 | do | |
1c710c3c DJ |
8506 | if test X"$skip_next" = X"yes"; then |
8507 | skip_next=no | |
8508 | continue | |
8509 | fi | |
8510 | if test X"$keep_next" = X"yes"; then | |
8511 | case $ac_arg in | |
8512 | *\'*) | |
8513 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8514 | esac | |
8515 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 8516 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
8517 | keep_next=no |
8518 | continue | |
8519 | fi | |
8520 | ||
8521 | # Handle separated arguments. Based on the logic generated by | |
8522 | # autoconf 2.59. | |
8523 | case $ac_arg in | |
8524 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
8525 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
8526 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
8527 | | -with-* | --with-* | -without-* | --without-* | --x) | |
8528 | separate_arg=no | |
8529 | ;; | |
8530 | -*) | |
8531 | separate_arg=yes | |
8532 | ;; | |
8533 | *) | |
8534 | separate_arg=no | |
8535 | ;; | |
8536 | esac | |
8537 | ||
29a63921 AO |
8538 | skip_targ=no |
8539 | case $ac_arg in | |
8540 | ||
8541 | --with-* | --without-*) | |
8542 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
8543 | ||
8544 | case $libopt in | |
8545 | *[-_]include) | |
8546 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
8547 | ;; | |
8548 | *[-_]lib) | |
8549 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
8550 | ;; | |
8551 | *) | |
8552 | lib=$libopt | |
8553 | ;; | |
8554 | esac | |
8555 | ||
8556 | ||
8557 | case $lib in | |
4a9bb2aa | 8558 | mpc | mpfr | gmp | isl) |
29a63921 AO |
8559 | # If we're processing --with-$lib, --with-$lib-include or |
8560 | # --with-$lib-lib, for one of the libs above, and target is | |
8561 | # different from host, don't pass the current argument to any | |
8562 | # target library's configure. | |
8563 | if test x$is_cross_compiler = xyes; then | |
8564 | skip_targ=yes | |
8565 | fi | |
8566 | ;; | |
8567 | esac | |
8568 | ;; | |
8569 | esac | |
8570 | ||
1c710c3c | 8571 | case "$ac_arg" in |
f1a036e4 NC |
8572 | --cache-file=/dev/null | \ |
8573 | -cache-file=/dev/null ) | |
8574 | # Handled here to avoid the test to skip args below. | |
8575 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 8576 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
8577 | # Assert: $separate_arg should always be no. |
8578 | keep_next=$separate_arg | |
8579 | ;; | |
1c710c3c DJ |
8580 | --no*) |
8581 | continue | |
8582 | ;; | |
8583 | --c* | \ | |
8584 | --sr* | \ | |
8585 | --ho* | \ | |
8586 | --bu* | \ | |
8587 | --t* | \ | |
8588 | --program-* | \ | |
8589 | -cache_file* | \ | |
8590 | -srcdir* | \ | |
8591 | -host* | \ | |
8592 | -build* | \ | |
8593 | -target* | \ | |
8594 | -program-prefix* | \ | |
8595 | -program-suffix* | \ | |
8596 | -program-transform-name* ) | |
8597 | skip_next=$separate_arg | |
8598 | continue | |
8599 | ;; | |
8600 | -*) | |
8601 | # An option. Add it. | |
8602 | case $ac_arg in | |
8603 | *\'*) | |
8604 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8605 | esac | |
8606 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
8607 | if test X"$skip_targ" = Xno; then |
8608 | tbaseargs="$tbaseargs '$ac_arg'" | |
8609 | fi | |
1c710c3c DJ |
8610 | keep_next=$separate_arg |
8611 | ;; | |
8612 | *) | |
8613 | # Either a variable assignment, or a nonopt (triplet). Don't | |
8614 | # pass it down; let the Makefile handle this. | |
8615 | continue | |
8616 | ;; | |
8617 | esac | |
8618 | done | |
8619 | # Remove the initial space we just introduced and, as these will be | |
8620 | # expanded by make, quote '$'. | |
8621 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 8622 | |
43bb47c2 DJ |
8623 | # Add in --program-transform-name, after --program-prefix and |
8624 | # --program-suffix have been applied to it. Autoconf has already | |
8625 | # doubled dollar signs and backslashes in program_transform_name; we want | |
8626 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 8627 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
8628 | # Also, because we want to override the logic in subdir configure scripts to |
8629 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
8630 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
8631 | ${program_transform_name} | |
8632 | EOF_SED | |
8633 | gcc_transform_name=`cat conftestsed.out` | |
8634 | rm -f conftestsed.out | |
8635 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 8636 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
8637 | if test "$silent" = yes; then |
8638 | baseargs="$baseargs --silent" | |
29a63921 | 8639 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 8640 | fi |
0115d4a3 | 8641 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 8642 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 8643 | |
ffedf511 RW |
8644 | # Record and document user additions to sub configure arguments. |
8645 | ||
8646 | ||
8647 | ||
8648 | ||
671aa708 NN |
8649 | # For the build-side libraries, we just need to pretend we're native, |
8650 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
8651 | # desired. We can't even use the same cache file for all build-side |
8652 | # libraries, as they're compiled differently; some with C, some with | |
8653 | # C++ or with different feature-enabling options. | |
8654 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
8655 | |
8656 | # For host modules, accept cache file option, or specification as blank. | |
8657 | case "${cache_file}" in | |
8658 | "") # empty | |
8659 | cache_file_option="" ;; | |
8660 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
8661 | cache_file_option="--cache-file=${cache_file}" ;; | |
8662 | *) # relative path | |
8663 | cache_file_option="--cache-file=../${cache_file}" ;; | |
8664 | esac | |
8665 | ||
09438bde NN |
8666 | # Host dirs don't like to share a cache file either, horribly enough. |
8667 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 8668 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 8669 | |
29a63921 | 8670 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
8671 | |
8672 | # Passing a --with-cross-host argument lets the target libraries know | |
8673 | # whether they are being built with a cross-compiler or being built | |
8674 | # native. However, it would be better to use other mechanisms to make the | |
8675 | # sorts of decisions they want to make on this basis. Please consider | |
8676 | # this option to be deprecated. FIXME. | |
8677 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 8678 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
8679 | fi |
8680 | ||
79e0604d FXC |
8681 | # Special user-friendly check for native x86_64-linux build, if |
8682 | # multilib is not explicitly enabled. | |
8683 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
8684 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 8685 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
8686 | dev64=no |
8687 | echo "int main () { return 0; }" > conftest.c | |
8688 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
8689 | if test $? = 0 ; then | |
8690 | if test -s conftest || test -s conftest.exe ; then | |
8691 | dev64=yes | |
8692 | fi | |
8693 | fi | |
8694 | rm -f conftest* | |
8695 | if test x${dev64} != xyes ; then | |
22e05272 | 8696 | 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 |
8697 | fi |
8698 | ;; | |
8699 | esac | |
8700 | ||
dc683a3f RW |
8701 | # Default to --enable-multilib. |
8702 | if test x${enable_multilib} = x ; then | |
671aa708 | 8703 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 8704 | fi |
671aa708 NN |
8705 | |
8706 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
8707 | # changed from the earlier setting of with_newlib. | |
8708 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
8709 | target_configargs="--with-newlib ${target_configargs}" | |
8710 | fi | |
8711 | ||
6b9eb62c NN |
8712 | # Different target subdirs use different values of certain variables |
8713 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
8714 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
8715 | # it doesn't automatically accept command-line overrides of them. | |
8716 | # This means it's not safe for target subdirs to share a cache file, | |
8717 | # which is disgusting, but there you have it. Hopefully this can be | |
8718 | # fixed in future. It's still worthwhile to use a cache file for each | |
8719 | # directory. I think. | |
8720 | ||
bebcd931 MS |
8721 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
8722 | # We need to pass --target, as newer autoconf's requires consistency | |
8723 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 8724 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 8725 | |
671aa708 NN |
8726 | FLAGS_FOR_TARGET= |
8727 | case " $target_configdirs " in | |
8728 | *" newlib "*) | |
8729 | case " $target_configargs " in | |
8730 | *" --with-newlib "*) | |
8731 | case "$target" in | |
5d571eaa | 8732 | *-cygwin*) |
443e6238 | 8733 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 8734 | ;; |
671aa708 NN |
8735 | esac |
8736 | ||
8737 | # If we're not building GCC, don't discard standard headers. | |
8738 | if test -d ${srcdir}/gcc; then | |
8739 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
8740 | ||
8741 | if test "${build}" != "${host}"; then | |
8742 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
8743 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
8744 | # to it. This is right: we don't want to search that directory | |
8745 | # for binaries, but we want the header files in there, so add | |
8746 | # them explicitly. | |
0463992b | 8747 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
8748 | |
8749 | # Someone might think of using the pre-installed headers on | |
8750 | # Canadian crosses, in case the installed compiler is not fully | |
8751 | # compatible with the compiler being built. In this case, it | |
8752 | # would be better to flag an error than risking having | |
8753 | # incompatible object files being constructed. We can't | |
8754 | # guarantee that an error will be flagged, but let's hope the | |
8755 | # compiler will do it, when presented with incompatible header | |
8756 | # files. | |
8757 | fi | |
8758 | fi | |
8759 | ||
8760 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 8761 | i[3456789]86-*-linux*-no) |
671aa708 NN |
8762 | # Here host == target, so we don't need to build gcc, |
8763 | # so we don't want to discard standard headers. | |
8764 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
8765 | ;; | |
8766 | *) | |
8767 | # If we're building newlib, use its generic headers last, but search | |
8768 | # for any libc-related directories first (so make it the last -B | |
8769 | # switch). | |
8770 | 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 |
8771 | |
8772 | # If we're building libgloss, find the startup file, simulator library | |
8773 | # and linker script. | |
8774 | case " $target_configdirs " in | |
8775 | *" libgloss "*) | |
8776 | # Look for startup file, simulator library and maybe linker script. | |
8777 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
8778 | # Look for libnosys.a in case the target needs it. | |
8779 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
8780 | # Most targets have the linker script in the source directory. | |
8781 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
8782 | ;; | |
8783 | esac | |
671aa708 NN |
8784 | ;; |
8785 | esac | |
8786 | ;; | |
8787 | esac | |
8788 | ;; | |
8789 | esac | |
5d571eaa | 8790 | |
b91f0a41 | 8791 | case "$target" in |
5d571eaa OS |
8792 | x86_64-*mingw* | *-w64-mingw*) |
8793 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
8794 | # however, use a symlink named 'mingw' in ${prefix} . | |
8795 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
8796 | ;; | |
8797 | *-mingw*) | |
8798 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
8799 | 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' | |
8800 | ;; | |
b91f0a41 | 8801 | esac |
671aa708 | 8802 | |
6691a79e ME |
8803 | # Allow the user to override the flags for |
8804 | # our build compiler if desired. | |
f019adc1 MF |
8805 | if test x"${build}" = x"${host}" ; then |
8806 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
8807 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
8808 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
8809 | fi | |
6691a79e | 8810 | |
671aa708 NN |
8811 | # On Canadian crosses, we'll be searching the right directories for |
8812 | # the previously-installed cross compiler, so don't bother to add | |
8813 | # flags for directories within the install tree of the compiler | |
8814 | # being built; programs in there won't even run. | |
8815 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
8816 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 8817 | 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 |
8818 | fi |
8819 | ||
8820 | if test "x${use_gnu_ld}" = x && | |
8821 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
8822 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 8823 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
8824 | fi |
8825 | ||
e88a2c09 DD |
8826 | # Search for other target-specific linker scripts and such. |
8827 | case "${target}" in | |
3e19841a PB |
8828 | mep*) |
8829 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
8830 | ;; | |
e88a2c09 DD |
8831 | esac |
8832 | ||
671aa708 | 8833 | # Makefile fragments. |
7b61653a PE |
8834 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
8835 | do | |
8836 | eval fragval=\$$frag | |
8837 | if test $fragval != /dev/null; then | |
8838 | eval $frag=${srcdir}/$fragval | |
8839 | fi | |
8840 | done | |
671aa708 NN |
8841 | |
8842 | ||
8843 | ||
8844 | ||
8845 | ||
8846 | # Miscellanea: directories, flags, etc. | |
8847 | ||
8848 | ||
8849 | ||
8850 | ||
8851 | ||
8852 | ||
8853 | ||
d89f0ad6 | 8854 | |
23f6b2f9 | 8855 | # Build module lists & subconfigure args. |
671aa708 NN |
8856 | |
8857 | ||
8858 | ||
2abefe3d PB |
8859 | # Host module lists & subconfigure args. |
8860 | ||
8861 | ||
8862 | ||
aae29963 | 8863 | |
2abefe3d PB |
8864 | # Target module lists & subconfigure args. |
8865 | ||
8866 | ||
8867 | ||
8868 | # Build tools. | |
8869 | ||
8870 | ||
8871 | ||
0999159b PB |
8872 | |
8873 | ||
8874 | ||
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
b4c522fa | 8885 | |
2abefe3d PB |
8886 | # Generate default definitions for YACC, M4, LEX and other programs that run |
8887 | # on the build machine. These are used if the Makefile can't locate these | |
8888 | # programs in objdir. | |
8889 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
8890 | ||
8891 | for ac_prog in 'bison -y' byacc yacc | |
8892 | do | |
1c710c3c | 8893 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8894 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8896 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8897 | if ${ac_cv_prog_YACC+:} false; then : |
5213506e | 8898 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8899 | else |
8900 | if test -n "$YACC"; then | |
8901 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8902 | else | |
1c710c3c DJ |
8903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8904 | for as_dir in $PATH | |
8905 | do | |
8906 | IFS=$as_save_IFS | |
8907 | test -z "$as_dir" && as_dir=. | |
5213506e | 8908 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8910 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 8911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8912 | break 2 |
8913 | fi | |
8914 | done | |
5213506e RW |
8915 | done |
8916 | IFS=$as_save_IFS | |
1c710c3c | 8917 | |
2abefe3d PB |
8918 | fi |
8919 | fi | |
1c710c3c | 8920 | YACC=$ac_cv_prog_YACC |
2abefe3d | 8921 | if test -n "$YACC"; then |
5213506e RW |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
8923 | $as_echo "$YACC" >&6; } | |
2abefe3d | 8924 | else |
5213506e RW |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8926 | $as_echo "no" >&6; } | |
2abefe3d PB |
8927 | fi |
8928 | ||
5213506e | 8929 | |
1c710c3c | 8930 | test -n "$YACC" && break |
2abefe3d PB |
8931 | done |
8932 | test -n "$YACC" || YACC="$MISSING bison -y" | |
8933 | ||
8934 | case " $build_configdirs " in | |
8935 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
8936 | esac |
8937 | ||
8938 | for ac_prog in bison | |
8939 | do | |
1c710c3c | 8940 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8941 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8944 | if ${ac_cv_prog_BISON+:} false; then : |
5213506e | 8945 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8946 | else |
8947 | if test -n "$BISON"; then | |
8948 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
8949 | else | |
1c710c3c DJ |
8950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8951 | for as_dir in $PATH | |
8952 | do | |
8953 | IFS=$as_save_IFS | |
8954 | test -z "$as_dir" && as_dir=. | |
5213506e | 8955 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 8957 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 8958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8959 | break 2 |
8960 | fi | |
8961 | done | |
5213506e RW |
8962 | done |
8963 | IFS=$as_save_IFS | |
1c710c3c | 8964 | |
2abefe3d PB |
8965 | fi |
8966 | fi | |
1c710c3c | 8967 | BISON=$ac_cv_prog_BISON |
2abefe3d | 8968 | if test -n "$BISON"; then |
5213506e RW |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
8970 | $as_echo "$BISON" >&6; } | |
2abefe3d | 8971 | else |
5213506e RW |
8972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8973 | $as_echo "no" >&6; } | |
2abefe3d PB |
8974 | fi |
8975 | ||
5213506e | 8976 | |
1c710c3c | 8977 | test -n "$BISON" && break |
2abefe3d PB |
8978 | done |
8979 | test -n "$BISON" || BISON="$MISSING bison" | |
8980 | ||
8981 | case " $build_configdirs " in | |
8982 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
8983 | esac | |
8984 | ||
8985 | for ac_prog in gm4 gnum4 m4 | |
8986 | do | |
1c710c3c | 8987 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 8988 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8990 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8991 | if ${ac_cv_prog_M4+:} false; then : |
5213506e | 8992 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
8993 | else |
8994 | if test -n "$M4"; then | |
8995 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
8996 | else | |
1c710c3c DJ |
8997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8998 | for as_dir in $PATH | |
8999 | do | |
9000 | IFS=$as_save_IFS | |
9001 | test -z "$as_dir" && as_dir=. | |
5213506e | 9002 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9004 | ac_cv_prog_M4="$ac_prog" |
5213506e | 9005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9006 | break 2 |
9007 | fi | |
9008 | done | |
5213506e RW |
9009 | done |
9010 | IFS=$as_save_IFS | |
1c710c3c | 9011 | |
2abefe3d PB |
9012 | fi |
9013 | fi | |
1c710c3c | 9014 | M4=$ac_cv_prog_M4 |
2abefe3d | 9015 | if test -n "$M4"; then |
5213506e RW |
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
9017 | $as_echo "$M4" >&6; } | |
2abefe3d | 9018 | else |
5213506e RW |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9020 | $as_echo "no" >&6; } | |
2abefe3d PB |
9021 | fi |
9022 | ||
5213506e | 9023 | |
1c710c3c | 9024 | test -n "$M4" && break |
2abefe3d PB |
9025 | done |
9026 | test -n "$M4" || M4="$MISSING m4" | |
9027 | ||
9028 | case " $build_configdirs " in | |
9029 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
9030 | esac | |
9031 | ||
9032 | for ac_prog in flex lex | |
9033 | do | |
1c710c3c | 9034 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9035 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9037 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9038 | if ${ac_cv_prog_LEX+:} false; then : |
5213506e | 9039 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9040 | else |
9041 | if test -n "$LEX"; then | |
9042 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9043 | else | |
1c710c3c DJ |
9044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9045 | for as_dir in $PATH | |
9046 | do | |
9047 | IFS=$as_save_IFS | |
9048 | test -z "$as_dir" && as_dir=. | |
5213506e | 9049 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9051 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 9052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9053 | break 2 |
9054 | fi | |
9055 | done | |
5213506e RW |
9056 | done |
9057 | IFS=$as_save_IFS | |
1c710c3c | 9058 | |
2abefe3d PB |
9059 | fi |
9060 | fi | |
1c710c3c | 9061 | LEX=$ac_cv_prog_LEX |
2abefe3d | 9062 | if test -n "$LEX"; then |
5213506e RW |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
9064 | $as_echo "$LEX" >&6; } | |
2abefe3d | 9065 | else |
5213506e RW |
9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9067 | $as_echo "no" >&6; } | |
2abefe3d PB |
9068 | fi |
9069 | ||
5213506e | 9070 | |
1c710c3c | 9071 | test -n "$LEX" && break |
2abefe3d PB |
9072 | done |
9073 | test -n "$LEX" || LEX="$MISSING flex" | |
9074 | ||
9075 | case " $build_configdirs " in | |
9076 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
9077 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
9078 | esac | |
9079 | ||
9080 | for ac_prog in flex | |
9081 | do | |
1c710c3c | 9082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9083 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9085 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9086 | if ${ac_cv_prog_FLEX+:} false; then : |
5213506e | 9087 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9088 | else |
9089 | if test -n "$FLEX"; then | |
9090 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
9091 | else | |
1c710c3c DJ |
9092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9093 | for as_dir in $PATH | |
9094 | do | |
9095 | IFS=$as_save_IFS | |
9096 | test -z "$as_dir" && as_dir=. | |
5213506e | 9097 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9098 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9099 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 9100 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9101 | break 2 |
9102 | fi | |
9103 | done | |
5213506e RW |
9104 | done |
9105 | IFS=$as_save_IFS | |
1c710c3c | 9106 | |
2abefe3d PB |
9107 | fi |
9108 | fi | |
1c710c3c | 9109 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 9110 | if test -n "$FLEX"; then |
5213506e RW |
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
9112 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 9113 | else |
5213506e RW |
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9115 | $as_echo "no" >&6; } | |
2abefe3d PB |
9116 | fi |
9117 | ||
5213506e | 9118 | |
1c710c3c | 9119 | test -n "$FLEX" && break |
2abefe3d PB |
9120 | done |
9121 | test -n "$FLEX" || FLEX="$MISSING flex" | |
9122 | ||
9123 | case " $build_configdirs " in | |
9124 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
9125 | esac | |
9126 | ||
9127 | for ac_prog in makeinfo | |
9128 | do | |
1c710c3c | 9129 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9130 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9132 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9133 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
5213506e | 9134 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9135 | else |
9136 | if test -n "$MAKEINFO"; then | |
9137 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
9138 | else | |
1c710c3c DJ |
9139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9140 | for as_dir in $PATH | |
9141 | do | |
9142 | IFS=$as_save_IFS | |
9143 | test -z "$as_dir" && as_dir=. | |
5213506e | 9144 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9146 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 9147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9148 | break 2 |
9149 | fi | |
9150 | done | |
5213506e RW |
9151 | done |
9152 | IFS=$as_save_IFS | |
1c710c3c | 9153 | |
2abefe3d PB |
9154 | fi |
9155 | fi | |
1c710c3c | 9156 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 9157 | if test -n "$MAKEINFO"; then |
5213506e RW |
9158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
9159 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 9160 | else |
5213506e RW |
9161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9162 | $as_echo "no" >&6; } | |
2abefe3d PB |
9163 | fi |
9164 | ||
5213506e | 9165 | |
1c710c3c | 9166 | test -n "$MAKEINFO" && break |
2abefe3d PB |
9167 | done |
9168 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
9169 | ||
9170 | case " $build_configdirs " in | |
9171 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
9172 | *) | |
9173 | ||
d18ff35a | 9174 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
9175 | # higher, else we use the "missing" dummy. |
9176 | if ${MAKEINFO} --version \ | |
d18ff35a | 9177 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
9178 | : |
9179 | else | |
9180 | MAKEINFO="$MISSING makeinfo" | |
9181 | fi | |
9182 | ;; | |
9183 | ||
9184 | esac | |
671aa708 | 9185 | |
2abefe3d | 9186 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 9187 | |
2abefe3d PB |
9188 | for ac_prog in expect |
9189 | do | |
1c710c3c | 9190 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9191 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9193 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9194 | if ${ac_cv_prog_EXPECT+:} false; then : |
5213506e | 9195 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9196 | else |
9197 | if test -n "$EXPECT"; then | |
9198 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
9199 | else | |
1c710c3c DJ |
9200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9201 | for as_dir in $PATH | |
9202 | do | |
9203 | IFS=$as_save_IFS | |
9204 | test -z "$as_dir" && as_dir=. | |
5213506e | 9205 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9207 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 9208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9209 | break 2 |
9210 | fi | |
9211 | done | |
5213506e RW |
9212 | done |
9213 | IFS=$as_save_IFS | |
1c710c3c | 9214 | |
2abefe3d PB |
9215 | fi |
9216 | fi | |
1c710c3c | 9217 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 9218 | if test -n "$EXPECT"; then |
5213506e RW |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
9220 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 9221 | else |
5213506e RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9223 | $as_echo "no" >&6; } | |
2abefe3d | 9224 | fi |
671aa708 | 9225 | |
5213506e | 9226 | |
1c710c3c | 9227 | test -n "$EXPECT" && break |
2abefe3d PB |
9228 | done |
9229 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 9230 | |
2abefe3d PB |
9231 | case " $configdirs " in |
9232 | *" expect "*) | |
9233 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
9234 | ;; | |
9235 | esac | |
671aa708 | 9236 | |
2abefe3d PB |
9237 | for ac_prog in runtest |
9238 | do | |
1c710c3c | 9239 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 9240 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9242 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9243 | if ${ac_cv_prog_RUNTEST+:} false; then : |
5213506e | 9244 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9245 | else |
9246 | if test -n "$RUNTEST"; then | |
9247 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 9248 | else |
1c710c3c DJ |
9249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9250 | for as_dir in $PATH | |
9251 | do | |
9252 | IFS=$as_save_IFS | |
9253 | test -z "$as_dir" && as_dir=. | |
5213506e | 9254 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9256 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 9257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9258 | break 2 |
9259 | fi | |
9260 | done | |
5213506e RW |
9261 | done |
9262 | IFS=$as_save_IFS | |
1c710c3c | 9263 | |
2abefe3d PB |
9264 | fi |
9265 | fi | |
1c710c3c | 9266 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 9267 | if test -n "$RUNTEST"; then |
5213506e RW |
9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
9269 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 9270 | else |
5213506e RW |
9271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9272 | $as_echo "no" >&6; } | |
2abefe3d | 9273 | fi |
671aa708 | 9274 | |
5213506e | 9275 | |
1c710c3c | 9276 | test -n "$RUNTEST" && break |
2abefe3d PB |
9277 | done |
9278 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 9279 | |
2abefe3d PB |
9280 | case " $configdirs " in |
9281 | *" dejagnu "*) | |
c394e891 | 9282 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
9283 | ;; |
9284 | esac | |
671aa708 NN |
9285 | |
9286 | ||
671aa708 | 9287 | # Host tools. |
ca9f4b81 AO |
9288 | ncn_tool_prefix= |
9289 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
9290 | ncn_target_tool_prefix= | |
9291 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
9292 | ||
278a7a38 AO |
9293 | |
9294 | ||
9295 | if test -n "$AR"; then | |
9296 | ac_cv_prog_AR=$AR | |
9297 | elif test -n "$ac_cv_prog_AR"; then | |
9298 | AR=$ac_cv_prog_AR | |
9299 | fi | |
9300 | ||
9301 | if test -n "$ac_cv_prog_AR"; then | |
9302 | for ncn_progname in ar; do | |
9303 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9304 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9306 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9307 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 9308 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9309 | else |
9310 | if test -n "$AR"; then | |
9311 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9312 | else | |
9313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9314 | for as_dir in $PATH | |
9315 | do | |
9316 | IFS=$as_save_IFS | |
9317 | test -z "$as_dir" && as_dir=. | |
5213506e | 9318 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9320 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 9321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9322 | break 2 |
9323 | fi | |
9324 | done | |
5213506e RW |
9325 | done |
9326 | IFS=$as_save_IFS | |
278a7a38 AO |
9327 | |
9328 | fi | |
9329 | fi | |
9330 | AR=$ac_cv_prog_AR | |
9331 | if test -n "$AR"; then | |
5213506e RW |
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
9333 | $as_echo "$AR" >&6; } | |
278a7a38 | 9334 | else |
5213506e RW |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9336 | $as_echo "no" >&6; } | |
278a7a38 AO |
9337 | fi |
9338 | ||
5213506e | 9339 | |
278a7a38 AO |
9340 | done |
9341 | fi | |
9342 | ||
9343 | for ncn_progname in ar; do | |
2693c0b0 PB |
9344 | if test -n "$ncn_tool_prefix"; then |
9345 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9346 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9348 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9349 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 9350 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9351 | else |
9352 | if test -n "$AR"; then | |
9353 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9354 | else | |
1c710c3c DJ |
9355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9356 | for as_dir in $PATH | |
9357 | do | |
9358 | IFS=$as_save_IFS | |
9359 | test -z "$as_dir" && as_dir=. | |
5213506e | 9360 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9362 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9364 | break 2 |
9365 | fi | |
9366 | done | |
5213506e RW |
9367 | done |
9368 | IFS=$as_save_IFS | |
1c710c3c | 9369 | |
ca9f4b81 AO |
9370 | fi |
9371 | fi | |
1c710c3c | 9372 | AR=$ac_cv_prog_AR |
ca9f4b81 | 9373 | if test -n "$AR"; then |
5213506e RW |
9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
9375 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 9376 | else |
5213506e RW |
9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9378 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9379 | fi |
9380 | ||
5213506e | 9381 | |
2693c0b0 PB |
9382 | fi |
9383 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
9384 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9385 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9387 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9388 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 9389 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9390 | else |
2693c0b0 | 9391 | if test -n "$AR"; then |
af71363e AS |
9392 | ac_cv_prog_AR="$AR" # Let the user override the test. |
9393 | else | |
1c710c3c DJ |
9394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9395 | for as_dir in $PATH | |
9396 | do | |
9397 | IFS=$as_save_IFS | |
9398 | test -z "$as_dir" && as_dir=. | |
5213506e | 9399 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9401 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 9402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9403 | break 2 |
9404 | fi | |
9405 | done | |
5213506e RW |
9406 | done |
9407 | IFS=$as_save_IFS | |
1c710c3c | 9408 | |
ca9f4b81 AO |
9409 | fi |
9410 | fi | |
1c710c3c | 9411 | AR=$ac_cv_prog_AR |
2693c0b0 | 9412 | if test -n "$AR"; then |
5213506e RW |
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
9414 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 9415 | else |
5213506e RW |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9417 | $as_echo "no" >&6; } | |
ca9f4b81 | 9418 | fi |
1c710c3c | 9419 | |
5213506e | 9420 | |
2693c0b0 PB |
9421 | fi |
9422 | test -n "$ac_cv_prog_AR" && break | |
9423 | done | |
9424 | ||
9425 | if test -z "$ac_cv_prog_AR" ; then | |
9426 | set dummy ar | |
9427 | if test $build = $host ; then | |
9428 | AR="$2" | |
ca9f4b81 | 9429 | else |
2693c0b0 | 9430 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 9431 | fi |
ca9f4b81 AO |
9432 | fi |
9433 | ||
278a7a38 AO |
9434 | |
9435 | ||
9436 | if test -n "$AS"; then | |
9437 | ac_cv_prog_AS=$AS | |
9438 | elif test -n "$ac_cv_prog_AS"; then | |
9439 | AS=$ac_cv_prog_AS | |
9440 | fi | |
9441 | ||
9442 | if test -n "$ac_cv_prog_AS"; then | |
9443 | for ncn_progname in as; do | |
9444 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9445 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9447 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9448 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 9449 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9450 | else |
9451 | if test -n "$AS"; then | |
9452 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
9453 | else | |
9454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9455 | for as_dir in $PATH | |
9456 | do | |
9457 | IFS=$as_save_IFS | |
9458 | test -z "$as_dir" && as_dir=. | |
5213506e | 9459 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9461 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 9462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9463 | break 2 |
9464 | fi | |
9465 | done | |
5213506e RW |
9466 | done |
9467 | IFS=$as_save_IFS | |
278a7a38 AO |
9468 | |
9469 | fi | |
9470 | fi | |
9471 | AS=$ac_cv_prog_AS | |
9472 | if test -n "$AS"; then | |
5213506e RW |
9473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
9474 | $as_echo "$AS" >&6; } | |
278a7a38 | 9475 | else |
5213506e RW |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9477 | $as_echo "no" >&6; } | |
278a7a38 AO |
9478 | fi |
9479 | ||
5213506e | 9480 | |
278a7a38 AO |
9481 | done |
9482 | fi | |
9483 | ||
9484 | for ncn_progname in as; do | |
2693c0b0 PB |
9485 | if test -n "$ncn_tool_prefix"; then |
9486 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9487 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9489 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9490 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 9491 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9492 | else |
9493 | if test -n "$AS"; then | |
9494 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 9495 | else |
1c710c3c DJ |
9496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9497 | for as_dir in $PATH | |
9498 | do | |
9499 | IFS=$as_save_IFS | |
9500 | test -z "$as_dir" && as_dir=. | |
5213506e | 9501 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9503 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9505 | break 2 |
9506 | fi | |
9507 | done | |
5213506e RW |
9508 | done |
9509 | IFS=$as_save_IFS | |
1c710c3c | 9510 | |
ca9f4b81 AO |
9511 | fi |
9512 | fi | |
1c710c3c | 9513 | AS=$ac_cv_prog_AS |
ca9f4b81 | 9514 | if test -n "$AS"; then |
5213506e RW |
9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
9516 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 9517 | else |
5213506e RW |
9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9519 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9520 | fi |
9521 | ||
5213506e | 9522 | |
2693c0b0 PB |
9523 | fi |
9524 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
9525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9526 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9528 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9529 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 9530 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9531 | else |
2693c0b0 PB |
9532 | if test -n "$AS"; then |
9533 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 9534 | else |
1c710c3c DJ |
9535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9536 | for as_dir in $PATH | |
9537 | do | |
9538 | IFS=$as_save_IFS | |
9539 | test -z "$as_dir" && as_dir=. | |
5213506e | 9540 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9542 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 9543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9544 | break 2 |
9545 | fi | |
9546 | done | |
5213506e RW |
9547 | done |
9548 | IFS=$as_save_IFS | |
1c710c3c | 9549 | |
ca9f4b81 AO |
9550 | fi |
9551 | fi | |
1c710c3c | 9552 | AS=$ac_cv_prog_AS |
2693c0b0 | 9553 | if test -n "$AS"; then |
5213506e RW |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
9555 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 9556 | else |
5213506e RW |
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9558 | $as_echo "no" >&6; } | |
ca9f4b81 | 9559 | fi |
1c710c3c | 9560 | |
5213506e | 9561 | |
2693c0b0 PB |
9562 | fi |
9563 | test -n "$ac_cv_prog_AS" && break | |
9564 | done | |
9565 | ||
9566 | if test -z "$ac_cv_prog_AS" ; then | |
9567 | set dummy as | |
9568 | if test $build = $host ; then | |
9569 | AS="$2" | |
ca9f4b81 | 9570 | else |
2693c0b0 | 9571 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 9572 | fi |
ca9f4b81 AO |
9573 | fi |
9574 | ||
278a7a38 AO |
9575 | |
9576 | ||
9577 | if test -n "$DLLTOOL"; then | |
9578 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
9579 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
9580 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
9581 | fi | |
9582 | ||
9583 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
9584 | for ncn_progname in dlltool; do | |
9585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9586 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9588 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9589 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 9590 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9591 | else |
9592 | if test -n "$DLLTOOL"; then | |
9593 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
9594 | else | |
9595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9596 | for as_dir in $PATH | |
9597 | do | |
9598 | IFS=$as_save_IFS | |
9599 | test -z "$as_dir" && as_dir=. | |
5213506e | 9600 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9602 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 9603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9604 | break 2 |
9605 | fi | |
9606 | done | |
5213506e RW |
9607 | done |
9608 | IFS=$as_save_IFS | |
278a7a38 AO |
9609 | |
9610 | fi | |
9611 | fi | |
9612 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
9613 | if test -n "$DLLTOOL"; then | |
5213506e RW |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
9615 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 9616 | else |
5213506e RW |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9618 | $as_echo "no" >&6; } | |
278a7a38 AO |
9619 | fi |
9620 | ||
5213506e | 9621 | |
278a7a38 AO |
9622 | done |
9623 | fi | |
9624 | ||
9625 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
9626 | if test -n "$ncn_tool_prefix"; then |
9627 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9628 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9630 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9631 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 9632 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9633 | else |
9634 | if test -n "$DLLTOOL"; then | |
9635 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
9636 | else | |
1c710c3c DJ |
9637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9638 | for as_dir in $PATH | |
9639 | do | |
9640 | IFS=$as_save_IFS | |
9641 | test -z "$as_dir" && as_dir=. | |
5213506e | 9642 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9644 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9646 | break 2 |
9647 | fi | |
9648 | done | |
5213506e RW |
9649 | done |
9650 | IFS=$as_save_IFS | |
1c710c3c | 9651 | |
ca9f4b81 AO |
9652 | fi |
9653 | fi | |
1c710c3c | 9654 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 9655 | if test -n "$DLLTOOL"; then |
5213506e RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
9657 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 9658 | else |
5213506e RW |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9660 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9661 | fi |
9662 | ||
5213506e | 9663 | |
2693c0b0 PB |
9664 | fi |
9665 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
9666 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9667 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9669 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9670 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
5213506e | 9671 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9672 | else |
2693c0b0 PB |
9673 | if test -n "$DLLTOOL"; then |
9674 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 9675 | else |
1c710c3c DJ |
9676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9677 | for as_dir in $PATH | |
9678 | do | |
9679 | IFS=$as_save_IFS | |
9680 | test -z "$as_dir" && as_dir=. | |
5213506e | 9681 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9683 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 9684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9685 | break 2 |
9686 | fi | |
9687 | done | |
5213506e RW |
9688 | done |
9689 | IFS=$as_save_IFS | |
1c710c3c | 9690 | |
ca9f4b81 AO |
9691 | fi |
9692 | fi | |
1c710c3c | 9693 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 9694 | if test -n "$DLLTOOL"; then |
5213506e RW |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
9696 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 9697 | else |
5213506e RW |
9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9699 | $as_echo "no" >&6; } | |
ca9f4b81 | 9700 | fi |
1c710c3c | 9701 | |
5213506e | 9702 | |
2693c0b0 PB |
9703 | fi |
9704 | test -n "$ac_cv_prog_DLLTOOL" && break | |
9705 | done | |
9706 | ||
9707 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
9708 | set dummy dlltool | |
9709 | if test $build = $host ; then | |
9710 | DLLTOOL="$2" | |
ca9f4b81 | 9711 | else |
2693c0b0 | 9712 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 9713 | fi |
ca9f4b81 AO |
9714 | fi |
9715 | ||
278a7a38 AO |
9716 | |
9717 | ||
9718 | if test -n "$LD"; then | |
9719 | ac_cv_prog_LD=$LD | |
9720 | elif test -n "$ac_cv_prog_LD"; then | |
9721 | LD=$ac_cv_prog_LD | |
9722 | fi | |
9723 | ||
9724 | if test -n "$ac_cv_prog_LD"; then | |
9725 | for ncn_progname in ld; do | |
9726 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9727 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9729 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9730 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 9731 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9732 | else |
9733 | if test -n "$LD"; then | |
9734 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
9735 | else | |
9736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9737 | for as_dir in $PATH | |
9738 | do | |
9739 | IFS=$as_save_IFS | |
9740 | test -z "$as_dir" && as_dir=. | |
5213506e | 9741 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9743 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 9744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9745 | break 2 |
9746 | fi | |
9747 | done | |
5213506e RW |
9748 | done |
9749 | IFS=$as_save_IFS | |
278a7a38 AO |
9750 | |
9751 | fi | |
9752 | fi | |
9753 | LD=$ac_cv_prog_LD | |
9754 | if test -n "$LD"; then | |
5213506e RW |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
9756 | $as_echo "$LD" >&6; } | |
278a7a38 | 9757 | else |
5213506e RW |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9759 | $as_echo "no" >&6; } | |
278a7a38 AO |
9760 | fi |
9761 | ||
5213506e | 9762 | |
278a7a38 AO |
9763 | done |
9764 | fi | |
9765 | ||
9766 | for ncn_progname in ld; do | |
2693c0b0 PB |
9767 | if test -n "$ncn_tool_prefix"; then |
9768 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9769 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9771 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9772 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 9773 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
9774 | else |
9775 | if test -n "$LD"; then | |
9776 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
9777 | else | |
1c710c3c DJ |
9778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9779 | for as_dir in $PATH | |
9780 | do | |
9781 | IFS=$as_save_IFS | |
9782 | test -z "$as_dir" && as_dir=. | |
5213506e | 9783 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9785 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9787 | break 2 |
9788 | fi | |
9789 | done | |
5213506e RW |
9790 | done |
9791 | IFS=$as_save_IFS | |
1c710c3c | 9792 | |
ca9f4b81 AO |
9793 | fi |
9794 | fi | |
1c710c3c | 9795 | LD=$ac_cv_prog_LD |
ca9f4b81 | 9796 | if test -n "$LD"; then |
5213506e RW |
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
9798 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 9799 | else |
5213506e RW |
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9801 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9802 | fi |
9803 | ||
5213506e | 9804 | |
2693c0b0 PB |
9805 | fi |
9806 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
9807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9808 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9811 | if ${ac_cv_prog_LD+:} false; then : |
5213506e | 9812 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 9813 | else |
2693c0b0 PB |
9814 | if test -n "$LD"; then |
9815 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 9816 | else |
1c710c3c DJ |
9817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9818 | for as_dir in $PATH | |
9819 | do | |
9820 | IFS=$as_save_IFS | |
9821 | test -z "$as_dir" && as_dir=. | |
5213506e | 9822 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9824 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 9825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9826 | break 2 |
9827 | fi | |
9828 | done | |
5213506e RW |
9829 | done |
9830 | IFS=$as_save_IFS | |
1c710c3c | 9831 | |
ca9f4b81 AO |
9832 | fi |
9833 | fi | |
1c710c3c | 9834 | LD=$ac_cv_prog_LD |
2693c0b0 | 9835 | if test -n "$LD"; then |
5213506e RW |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
9837 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 9838 | else |
5213506e RW |
9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9840 | $as_echo "no" >&6; } | |
ca9f4b81 | 9841 | fi |
1c710c3c | 9842 | |
5213506e | 9843 | |
2693c0b0 PB |
9844 | fi |
9845 | test -n "$ac_cv_prog_LD" && break | |
9846 | done | |
9847 | ||
9848 | if test -z "$ac_cv_prog_LD" ; then | |
9849 | set dummy ld | |
9850 | if test $build = $host ; then | |
9851 | LD="$2" | |
ca9f4b81 | 9852 | else |
2693c0b0 | 9853 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 9854 | fi |
ca9f4b81 AO |
9855 | fi |
9856 | ||
278a7a38 AO |
9857 | |
9858 | ||
9859 | if test -n "$LIPO"; then | |
9860 | ac_cv_prog_LIPO=$LIPO | |
9861 | elif test -n "$ac_cv_prog_LIPO"; then | |
9862 | LIPO=$ac_cv_prog_LIPO | |
9863 | fi | |
9864 | ||
9865 | if test -n "$ac_cv_prog_LIPO"; then | |
9866 | for ncn_progname in lipo; do | |
9867 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9868 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9870 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9871 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9872 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
9873 | else |
9874 | if test -n "$LIPO"; then | |
9875 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9876 | else | |
9877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9878 | for as_dir in $PATH | |
9879 | do | |
9880 | IFS=$as_save_IFS | |
9881 | test -z "$as_dir" && as_dir=. | |
5213506e | 9882 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9883 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 9884 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 9885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9886 | break 2 |
9887 | fi | |
9888 | done | |
5213506e RW |
9889 | done |
9890 | IFS=$as_save_IFS | |
278a7a38 AO |
9891 | |
9892 | fi | |
9893 | fi | |
9894 | LIPO=$ac_cv_prog_LIPO | |
9895 | if test -n "$LIPO"; then | |
5213506e RW |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9897 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 9898 | else |
5213506e RW |
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9900 | $as_echo "no" >&6; } | |
278a7a38 AO |
9901 | fi |
9902 | ||
5213506e | 9903 | |
278a7a38 AO |
9904 | done |
9905 | fi | |
9906 | ||
9907 | for ncn_progname in lipo; do | |
2abefe3d PB |
9908 | if test -n "$ncn_tool_prefix"; then |
9909 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9910 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9912 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9913 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9914 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9915 | else |
9916 | if test -n "$LIPO"; then | |
9917 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9918 | else | |
1c710c3c DJ |
9919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9920 | for as_dir in $PATH | |
9921 | do | |
9922 | IFS=$as_save_IFS | |
9923 | test -z "$as_dir" && as_dir=. | |
5213506e | 9924 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9926 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9928 | break 2 |
9929 | fi | |
9930 | done | |
5213506e RW |
9931 | done |
9932 | IFS=$as_save_IFS | |
1c710c3c | 9933 | |
2abefe3d PB |
9934 | fi |
9935 | fi | |
1c710c3c | 9936 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 9937 | if test -n "$LIPO"; then |
5213506e RW |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9939 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 9940 | else |
5213506e RW |
9941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9942 | $as_echo "no" >&6; } | |
2abefe3d PB |
9943 | fi |
9944 | ||
5213506e | 9945 | |
2abefe3d PB |
9946 | fi |
9947 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
9948 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9949 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9951 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9952 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 9953 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
9954 | else |
9955 | if test -n "$LIPO"; then | |
9956 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9957 | else | |
1c710c3c DJ |
9958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9959 | for as_dir in $PATH | |
9960 | do | |
9961 | IFS=$as_save_IFS | |
9962 | test -z "$as_dir" && as_dir=. | |
5213506e | 9963 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 9964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 9965 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 9966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9967 | break 2 |
9968 | fi | |
9969 | done | |
5213506e RW |
9970 | done |
9971 | IFS=$as_save_IFS | |
1c710c3c | 9972 | |
2abefe3d PB |
9973 | fi |
9974 | fi | |
1c710c3c | 9975 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 9976 | if test -n "$LIPO"; then |
5213506e RW |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9978 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 9979 | else |
5213506e RW |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9981 | $as_echo "no" >&6; } | |
2abefe3d | 9982 | fi |
1c710c3c | 9983 | |
5213506e | 9984 | |
2abefe3d PB |
9985 | fi |
9986 | test -n "$ac_cv_prog_LIPO" && break | |
9987 | done | |
9988 | ||
9989 | if test -z "$ac_cv_prog_LIPO" ; then | |
9990 | set dummy lipo | |
9991 | if test $build = $host ; then | |
9992 | LIPO="$2" | |
9993 | else | |
9994 | LIPO="${ncn_tool_prefix}$2" | |
9995 | fi | |
9996 | fi | |
9997 | ||
278a7a38 AO |
9998 | |
9999 | ||
10000 | if test -n "$NM"; then | |
10001 | ac_cv_prog_NM=$NM | |
10002 | elif test -n "$ac_cv_prog_NM"; then | |
10003 | NM=$ac_cv_prog_NM | |
10004 | fi | |
10005 | ||
10006 | if test -n "$ac_cv_prog_NM"; then | |
10007 | for ncn_progname in nm; do | |
10008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10009 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10011 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10012 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 10013 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10014 | else |
10015 | if test -n "$NM"; then | |
10016 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
10017 | else | |
1c710c3c DJ |
10018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10019 | for as_dir in $PATH | |
10020 | do | |
10021 | IFS=$as_save_IFS | |
10022 | test -z "$as_dir" && as_dir=. | |
5213506e | 10023 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10025 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 10026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10027 | break 2 |
10028 | fi | |
10029 | done | |
5213506e RW |
10030 | done |
10031 | IFS=$as_save_IFS | |
1c710c3c | 10032 | |
ca9f4b81 AO |
10033 | fi |
10034 | fi | |
1c710c3c | 10035 | NM=$ac_cv_prog_NM |
ca9f4b81 | 10036 | if test -n "$NM"; then |
5213506e RW |
10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
10038 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 10039 | else |
5213506e RW |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10041 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10042 | fi |
10043 | ||
5213506e | 10044 | |
278a7a38 AO |
10045 | done |
10046 | fi | |
10047 | ||
10048 | for ncn_progname in nm; do | |
10049 | if test -n "$ncn_tool_prefix"; then | |
10050 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10051 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10053 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10054 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 10055 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10056 | else |
2693c0b0 PB |
10057 | if test -n "$NM"; then |
10058 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 10059 | else |
1c710c3c DJ |
10060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10061 | for as_dir in $PATH | |
10062 | do | |
10063 | IFS=$as_save_IFS | |
10064 | test -z "$as_dir" && as_dir=. | |
5213506e | 10065 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10067 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10069 | break 2 |
10070 | fi | |
10071 | done | |
5213506e RW |
10072 | done |
10073 | IFS=$as_save_IFS | |
1c710c3c | 10074 | |
ca9f4b81 AO |
10075 | fi |
10076 | fi | |
1c710c3c | 10077 | NM=$ac_cv_prog_NM |
2693c0b0 | 10078 | if test -n "$NM"; then |
5213506e RW |
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
10080 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 10081 | else |
5213506e RW |
10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10083 | $as_echo "no" >&6; } | |
ca9f4b81 | 10084 | fi |
1c710c3c | 10085 | |
5213506e | 10086 | |
2693c0b0 | 10087 | fi |
278a7a38 AO |
10088 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
10089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10090 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10092 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10093 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 10094 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10095 | else |
10096 | if test -n "$NM"; then | |
10097 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
10098 | else | |
10099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10100 | for as_dir in $PATH | |
10101 | do | |
10102 | IFS=$as_save_IFS | |
10103 | test -z "$as_dir" && as_dir=. | |
5213506e | 10104 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10106 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 10107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10108 | break 2 |
10109 | fi | |
10110 | done | |
5213506e RW |
10111 | done |
10112 | IFS=$as_save_IFS | |
278a7a38 AO |
10113 | |
10114 | fi | |
10115 | fi | |
10116 | NM=$ac_cv_prog_NM | |
10117 | if test -n "$NM"; then | |
5213506e RW |
10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
10119 | $as_echo "$NM" >&6; } | |
278a7a38 | 10120 | else |
5213506e RW |
10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10122 | $as_echo "no" >&6; } | |
278a7a38 AO |
10123 | fi |
10124 | ||
5213506e | 10125 | |
278a7a38 AO |
10126 | fi |
10127 | test -n "$ac_cv_prog_NM" && break | |
10128 | done | |
10129 | ||
10130 | if test -z "$ac_cv_prog_NM" ; then | |
10131 | set dummy nm | |
10132 | if test $build = $host ; then | |
10133 | NM="$2" | |
10134 | else | |
10135 | NM="${ncn_tool_prefix}$2" | |
10136 | fi | |
10137 | fi | |
10138 | ||
10139 | ||
10140 | ||
10141 | if test -n "$RANLIB"; then | |
10142 | ac_cv_prog_RANLIB=$RANLIB | |
10143 | elif test -n "$ac_cv_prog_RANLIB"; then | |
10144 | RANLIB=$ac_cv_prog_RANLIB | |
10145 | fi | |
10146 | ||
10147 | if test -n "$ac_cv_prog_RANLIB"; then | |
10148 | for ncn_progname in ranlib; do | |
10149 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10150 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10152 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10153 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 10154 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10155 | else |
10156 | if test -n "$RANLIB"; then | |
10157 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10158 | else | |
10159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10160 | for as_dir in $PATH | |
10161 | do | |
10162 | IFS=$as_save_IFS | |
10163 | test -z "$as_dir" && as_dir=. | |
5213506e | 10164 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10166 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 10167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10168 | break 2 |
10169 | fi | |
10170 | done | |
5213506e RW |
10171 | done |
10172 | IFS=$as_save_IFS | |
278a7a38 AO |
10173 | |
10174 | fi | |
10175 | fi | |
10176 | RANLIB=$ac_cv_prog_RANLIB | |
10177 | if test -n "$RANLIB"; then | |
5213506e RW |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
10179 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 10180 | else |
5213506e RW |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10182 | $as_echo "no" >&6; } | |
278a7a38 AO |
10183 | fi |
10184 | ||
5213506e | 10185 | |
278a7a38 AO |
10186 | done |
10187 | fi | |
ca9f4b81 | 10188 | |
278a7a38 | 10189 | for ncn_progname in ranlib; do |
2693c0b0 PB |
10190 | if test -n "$ncn_tool_prefix"; then |
10191 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10192 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10194 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10195 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 10196 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10197 | else |
10198 | if test -n "$RANLIB"; then | |
10199 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10200 | else | |
1c710c3c DJ |
10201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10202 | for as_dir in $PATH | |
10203 | do | |
10204 | IFS=$as_save_IFS | |
10205 | test -z "$as_dir" && as_dir=. | |
5213506e | 10206 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10208 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10210 | break 2 |
10211 | fi | |
10212 | done | |
5213506e RW |
10213 | done |
10214 | IFS=$as_save_IFS | |
1c710c3c | 10215 | |
ca9f4b81 AO |
10216 | fi |
10217 | fi | |
1c710c3c | 10218 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 10219 | if test -n "$RANLIB"; then |
5213506e RW |
10220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
10221 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 10222 | else |
5213506e RW |
10223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10224 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10225 | fi |
10226 | ||
5213506e | 10227 | |
2693c0b0 PB |
10228 | fi |
10229 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
10230 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10231 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10233 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10234 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 10235 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10236 | else |
2693c0b0 PB |
10237 | if test -n "$RANLIB"; then |
10238 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 10239 | else |
1c710c3c DJ |
10240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10241 | for as_dir in $PATH | |
10242 | do | |
10243 | IFS=$as_save_IFS | |
10244 | test -z "$as_dir" && as_dir=. | |
5213506e | 10245 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10247 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10249 | break 2 |
10250 | fi | |
10251 | done | |
5213506e RW |
10252 | done |
10253 | IFS=$as_save_IFS | |
1c710c3c | 10254 | |
ca9f4b81 AO |
10255 | fi |
10256 | fi | |
1c710c3c | 10257 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 10258 | if test -n "$RANLIB"; then |
5213506e RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
10260 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 10261 | else |
5213506e RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10263 | $as_echo "no" >&6; } | |
ca9f4b81 | 10264 | fi |
1c710c3c | 10265 | |
5213506e | 10266 | |
ca9f4b81 | 10267 | fi |
2693c0b0 PB |
10268 | test -n "$ac_cv_prog_RANLIB" && break |
10269 | done | |
10270 | ||
10271 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 10272 | RANLIB="true" |
ca9f4b81 AO |
10273 | fi |
10274 | ||
278a7a38 AO |
10275 | |
10276 | ||
10277 | if test -n "$STRIP"; then | |
10278 | ac_cv_prog_STRIP=$STRIP | |
10279 | elif test -n "$ac_cv_prog_STRIP"; then | |
10280 | STRIP=$ac_cv_prog_STRIP | |
10281 | fi | |
10282 | ||
10283 | if test -n "$ac_cv_prog_STRIP"; then | |
10284 | for ncn_progname in strip; do | |
10285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10286 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10288 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10289 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 10290 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10291 | else |
10292 | if test -n "$STRIP"; then | |
10293 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
10294 | else | |
10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10296 | for as_dir in $PATH | |
10297 | do | |
10298 | IFS=$as_save_IFS | |
10299 | test -z "$as_dir" && as_dir=. | |
5213506e | 10300 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10302 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 10303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10304 | break 2 |
10305 | fi | |
10306 | done | |
5213506e RW |
10307 | done |
10308 | IFS=$as_save_IFS | |
278a7a38 AO |
10309 | |
10310 | fi | |
10311 | fi | |
10312 | STRIP=$ac_cv_prog_STRIP | |
10313 | if test -n "$STRIP"; then | |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
10315 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 10316 | else |
5213506e RW |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10318 | $as_echo "no" >&6; } | |
278a7a38 AO |
10319 | fi |
10320 | ||
5213506e | 10321 | |
278a7a38 AO |
10322 | done |
10323 | fi | |
10324 | ||
10325 | for ncn_progname in strip; do | |
2abefe3d PB |
10326 | if test -n "$ncn_tool_prefix"; then |
10327 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10328 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10330 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10331 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 10332 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10333 | else |
10334 | if test -n "$STRIP"; then | |
10335 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
10336 | else | |
1c710c3c DJ |
10337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10338 | for as_dir in $PATH | |
10339 | do | |
10340 | IFS=$as_save_IFS | |
10341 | test -z "$as_dir" && as_dir=. | |
5213506e | 10342 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10344 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10346 | break 2 |
10347 | fi | |
10348 | done | |
5213506e RW |
10349 | done |
10350 | IFS=$as_save_IFS | |
1c710c3c | 10351 | |
2abefe3d PB |
10352 | fi |
10353 | fi | |
1c710c3c | 10354 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 10355 | if test -n "$STRIP"; then |
5213506e RW |
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
10357 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 10358 | else |
5213506e RW |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10360 | $as_echo "no" >&6; } | |
2abefe3d PB |
10361 | fi |
10362 | ||
5213506e | 10363 | |
2abefe3d PB |
10364 | fi |
10365 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
10366 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10367 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10369 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10370 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 10371 | $as_echo_n "(cached) " >&6 |
2abefe3d PB |
10372 | else |
10373 | if test -n "$STRIP"; then | |
10374 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
10375 | else | |
1c710c3c DJ |
10376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10377 | for as_dir in $PATH | |
10378 | do | |
10379 | IFS=$as_save_IFS | |
10380 | test -z "$as_dir" && as_dir=. | |
5213506e | 10381 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10382 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10383 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 10384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10385 | break 2 |
10386 | fi | |
10387 | done | |
5213506e RW |
10388 | done |
10389 | IFS=$as_save_IFS | |
1c710c3c | 10390 | |
2abefe3d PB |
10391 | fi |
10392 | fi | |
1c710c3c | 10393 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 10394 | if test -n "$STRIP"; then |
5213506e RW |
10395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
10396 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 10397 | else |
5213506e RW |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10399 | $as_echo "no" >&6; } | |
2abefe3d | 10400 | fi |
1c710c3c | 10401 | |
5213506e | 10402 | |
2abefe3d PB |
10403 | fi |
10404 | test -n "$ac_cv_prog_STRIP" && break | |
10405 | done | |
10406 | ||
10407 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 10408 | STRIP="true" |
2abefe3d PB |
10409 | fi |
10410 | ||
278a7a38 AO |
10411 | |
10412 | ||
10413 | if test -n "$WINDRES"; then | |
10414 | ac_cv_prog_WINDRES=$WINDRES | |
10415 | elif test -n "$ac_cv_prog_WINDRES"; then | |
10416 | WINDRES=$ac_cv_prog_WINDRES | |
10417 | fi | |
10418 | ||
10419 | if test -n "$ac_cv_prog_WINDRES"; then | |
10420 | for ncn_progname in windres; do | |
10421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10422 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10424 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10425 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 10426 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10427 | else |
10428 | if test -n "$WINDRES"; then | |
10429 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
10430 | else | |
10431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10432 | for as_dir in $PATH | |
10433 | do | |
10434 | IFS=$as_save_IFS | |
10435 | test -z "$as_dir" && as_dir=. | |
5213506e | 10436 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10438 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 10439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10440 | break 2 |
10441 | fi | |
10442 | done | |
5213506e RW |
10443 | done |
10444 | IFS=$as_save_IFS | |
278a7a38 AO |
10445 | |
10446 | fi | |
10447 | fi | |
10448 | WINDRES=$ac_cv_prog_WINDRES | |
10449 | if test -n "$WINDRES"; then | |
5213506e RW |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
10451 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 10452 | else |
5213506e RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10454 | $as_echo "no" >&6; } | |
278a7a38 AO |
10455 | fi |
10456 | ||
5213506e | 10457 | |
278a7a38 AO |
10458 | done |
10459 | fi | |
10460 | ||
10461 | for ncn_progname in windres; do | |
2693c0b0 PB |
10462 | if test -n "$ncn_tool_prefix"; then |
10463 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10464 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10466 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10467 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 10468 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10469 | else |
10470 | if test -n "$WINDRES"; then | |
10471 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
10472 | else | |
1c710c3c DJ |
10473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10474 | for as_dir in $PATH | |
10475 | do | |
10476 | IFS=$as_save_IFS | |
10477 | test -z "$as_dir" && as_dir=. | |
5213506e | 10478 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10480 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10482 | break 2 |
10483 | fi | |
10484 | done | |
5213506e RW |
10485 | done |
10486 | IFS=$as_save_IFS | |
1c710c3c | 10487 | |
ca9f4b81 AO |
10488 | fi |
10489 | fi | |
1c710c3c | 10490 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 10491 | if test -n "$WINDRES"; then |
5213506e RW |
10492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
10493 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 10494 | else |
5213506e RW |
10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10496 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10497 | fi |
10498 | ||
5213506e | 10499 | |
2693c0b0 PB |
10500 | fi |
10501 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
10502 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10503 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10505 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10506 | if ${ac_cv_prog_WINDRES+:} false; then : |
5213506e | 10507 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10508 | else |
2693c0b0 PB |
10509 | if test -n "$WINDRES"; then |
10510 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 10511 | else |
1c710c3c DJ |
10512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10513 | for as_dir in $PATH | |
10514 | do | |
10515 | IFS=$as_save_IFS | |
10516 | test -z "$as_dir" && as_dir=. | |
5213506e | 10517 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10519 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 10520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10521 | break 2 |
10522 | fi | |
10523 | done | |
5213506e RW |
10524 | done |
10525 | IFS=$as_save_IFS | |
1c710c3c | 10526 | |
ca9f4b81 AO |
10527 | fi |
10528 | fi | |
1c710c3c | 10529 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 10530 | if test -n "$WINDRES"; then |
5213506e RW |
10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
10532 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 10533 | else |
5213506e RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10535 | $as_echo "no" >&6; } | |
ca9f4b81 | 10536 | fi |
1c710c3c | 10537 | |
5213506e | 10538 | |
2693c0b0 PB |
10539 | fi |
10540 | test -n "$ac_cv_prog_WINDRES" && break | |
10541 | done | |
10542 | ||
10543 | if test -z "$ac_cv_prog_WINDRES" ; then | |
10544 | set dummy windres | |
10545 | if test $build = $host ; then | |
10546 | WINDRES="$2" | |
ca9f4b81 | 10547 | else |
2693c0b0 | 10548 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 10549 | fi |
ca9f4b81 AO |
10550 | fi |
10551 | ||
278a7a38 AO |
10552 | |
10553 | ||
901119ae KT |
10554 | if test -n "$WINDMC"; then |
10555 | ac_cv_prog_WINDMC=$WINDMC | |
10556 | elif test -n "$ac_cv_prog_WINDMC"; then | |
10557 | WINDMC=$ac_cv_prog_WINDMC | |
10558 | fi | |
10559 | ||
10560 | if test -n "$ac_cv_prog_WINDMC"; then | |
10561 | for ncn_progname in windmc; do | |
10562 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10563 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10565 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10566 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 10567 | $as_echo_n "(cached) " >&6 |
901119ae KT |
10568 | else |
10569 | if test -n "$WINDMC"; then | |
10570 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
10571 | else | |
10572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10573 | for as_dir in $PATH | |
10574 | do | |
10575 | IFS=$as_save_IFS | |
10576 | test -z "$as_dir" && as_dir=. | |
5213506e | 10577 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 10579 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 10580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
10581 | break 2 |
10582 | fi | |
10583 | done | |
5213506e RW |
10584 | done |
10585 | IFS=$as_save_IFS | |
901119ae KT |
10586 | |
10587 | fi | |
10588 | fi | |
10589 | WINDMC=$ac_cv_prog_WINDMC | |
10590 | if test -n "$WINDMC"; then | |
5213506e RW |
10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
10592 | $as_echo "$WINDMC" >&6; } | |
901119ae | 10593 | else |
5213506e RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10595 | $as_echo "no" >&6; } | |
901119ae KT |
10596 | fi |
10597 | ||
5213506e | 10598 | |
901119ae KT |
10599 | done |
10600 | fi | |
10601 | ||
10602 | for ncn_progname in windmc; do | |
10603 | if test -n "$ncn_tool_prefix"; then | |
10604 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10605 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10607 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10608 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 10609 | $as_echo_n "(cached) " >&6 |
901119ae KT |
10610 | else |
10611 | if test -n "$WINDMC"; then | |
10612 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
10613 | else | |
10614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10615 | for as_dir in $PATH | |
10616 | do | |
10617 | IFS=$as_save_IFS | |
10618 | test -z "$as_dir" && as_dir=. | |
5213506e | 10619 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 10621 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
10623 | break 2 |
10624 | fi | |
10625 | done | |
5213506e RW |
10626 | done |
10627 | IFS=$as_save_IFS | |
901119ae KT |
10628 | |
10629 | fi | |
10630 | fi | |
10631 | WINDMC=$ac_cv_prog_WINDMC | |
10632 | if test -n "$WINDMC"; then | |
5213506e RW |
10633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
10634 | $as_echo "$WINDMC" >&6; } | |
901119ae | 10635 | else |
5213506e RW |
10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10637 | $as_echo "no" >&6; } | |
901119ae KT |
10638 | fi |
10639 | ||
5213506e | 10640 | |
901119ae KT |
10641 | fi |
10642 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
10643 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10644 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10646 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10647 | if ${ac_cv_prog_WINDMC+:} false; then : |
5213506e | 10648 | $as_echo_n "(cached) " >&6 |
901119ae KT |
10649 | else |
10650 | if test -n "$WINDMC"; then | |
10651 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
10652 | else | |
10653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10654 | for as_dir in $PATH | |
10655 | do | |
10656 | IFS=$as_save_IFS | |
10657 | test -z "$as_dir" && as_dir=. | |
5213506e | 10658 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 10660 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 10661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
10662 | break 2 |
10663 | fi | |
10664 | done | |
5213506e RW |
10665 | done |
10666 | IFS=$as_save_IFS | |
901119ae KT |
10667 | |
10668 | fi | |
10669 | fi | |
10670 | WINDMC=$ac_cv_prog_WINDMC | |
10671 | if test -n "$WINDMC"; then | |
5213506e RW |
10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
10673 | $as_echo "$WINDMC" >&6; } | |
901119ae | 10674 | else |
5213506e RW |
10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10676 | $as_echo "no" >&6; } | |
901119ae KT |
10677 | fi |
10678 | ||
5213506e | 10679 | |
901119ae KT |
10680 | fi |
10681 | test -n "$ac_cv_prog_WINDMC" && break | |
10682 | done | |
10683 | ||
10684 | if test -z "$ac_cv_prog_WINDMC" ; then | |
10685 | set dummy windmc | |
10686 | if test $build = $host ; then | |
10687 | WINDMC="$2" | |
10688 | else | |
10689 | WINDMC="${ncn_tool_prefix}$2" | |
10690 | fi | |
10691 | fi | |
10692 | ||
10693 | ||
10694 | ||
278a7a38 AO |
10695 | if test -n "$OBJCOPY"; then |
10696 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
10697 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
10698 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
10699 | fi | |
10700 | ||
10701 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
10702 | for ncn_progname in objcopy; do | |
10703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10704 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10706 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10707 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 10708 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10709 | else |
10710 | if test -n "$OBJCOPY"; then | |
10711 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
10712 | else | |
10713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10714 | for as_dir in $PATH | |
10715 | do | |
10716 | IFS=$as_save_IFS | |
10717 | test -z "$as_dir" && as_dir=. | |
5213506e | 10718 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10720 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 10721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10722 | break 2 |
10723 | fi | |
10724 | done | |
5213506e RW |
10725 | done |
10726 | IFS=$as_save_IFS | |
278a7a38 AO |
10727 | |
10728 | fi | |
10729 | fi | |
10730 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
10731 | if test -n "$OBJCOPY"; then | |
5213506e RW |
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
10733 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 10734 | else |
5213506e RW |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10736 | $as_echo "no" >&6; } | |
278a7a38 AO |
10737 | fi |
10738 | ||
5213506e | 10739 | |
278a7a38 AO |
10740 | done |
10741 | fi | |
10742 | ||
10743 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
10744 | if test -n "$ncn_tool_prefix"; then |
10745 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10746 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10748 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10749 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 10750 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10751 | else |
10752 | if test -n "$OBJCOPY"; then | |
10753 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
10754 | else | |
1c710c3c DJ |
10755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10756 | for as_dir in $PATH | |
10757 | do | |
10758 | IFS=$as_save_IFS | |
10759 | test -z "$as_dir" && as_dir=. | |
5213506e | 10760 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10762 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10764 | break 2 |
10765 | fi | |
10766 | done | |
5213506e RW |
10767 | done |
10768 | IFS=$as_save_IFS | |
1c710c3c | 10769 | |
ca9f4b81 AO |
10770 | fi |
10771 | fi | |
1c710c3c | 10772 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 10773 | if test -n "$OBJCOPY"; then |
5213506e RW |
10774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
10775 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 10776 | else |
5213506e RW |
10777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10778 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10779 | fi |
10780 | ||
5213506e | 10781 | |
2693c0b0 PB |
10782 | fi |
10783 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
10784 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10785 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10787 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10788 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
5213506e | 10789 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10790 | else |
2693c0b0 PB |
10791 | if test -n "$OBJCOPY"; then |
10792 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 10793 | else |
1c710c3c DJ |
10794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10795 | for as_dir in $PATH | |
10796 | do | |
10797 | IFS=$as_save_IFS | |
10798 | test -z "$as_dir" && as_dir=. | |
5213506e | 10799 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10801 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 10802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10803 | break 2 |
10804 | fi | |
10805 | done | |
5213506e RW |
10806 | done |
10807 | IFS=$as_save_IFS | |
1c710c3c | 10808 | |
ca9f4b81 AO |
10809 | fi |
10810 | fi | |
1c710c3c | 10811 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 10812 | if test -n "$OBJCOPY"; then |
5213506e RW |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
10814 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 10815 | else |
5213506e RW |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10817 | $as_echo "no" >&6; } | |
ca9f4b81 | 10818 | fi |
1c710c3c | 10819 | |
5213506e | 10820 | |
2693c0b0 PB |
10821 | fi |
10822 | test -n "$ac_cv_prog_OBJCOPY" && break | |
10823 | done | |
10824 | ||
10825 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
10826 | set dummy objcopy | |
10827 | if test $build = $host ; then | |
10828 | OBJCOPY="$2" | |
ca9f4b81 | 10829 | else |
2693c0b0 | 10830 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 10831 | fi |
ca9f4b81 AO |
10832 | fi |
10833 | ||
278a7a38 AO |
10834 | |
10835 | ||
10836 | if test -n "$OBJDUMP"; then | |
10837 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
10838 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
10839 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10840 | fi | |
10841 | ||
10842 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
10843 | for ncn_progname in objdump; do | |
10844 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10845 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10847 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10848 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10849 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
10850 | else |
10851 | if test -n "$OBJDUMP"; then | |
10852 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10853 | else | |
10854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10855 | for as_dir in $PATH | |
10856 | do | |
10857 | IFS=$as_save_IFS | |
10858 | test -z "$as_dir" && as_dir=. | |
5213506e | 10859 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 10861 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 10862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10863 | break 2 |
10864 | fi | |
10865 | done | |
5213506e RW |
10866 | done |
10867 | IFS=$as_save_IFS | |
278a7a38 AO |
10868 | |
10869 | fi | |
10870 | fi | |
10871 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
10872 | if test -n "$OBJDUMP"; then | |
5213506e RW |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10874 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 10875 | else |
5213506e RW |
10876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10877 | $as_echo "no" >&6; } | |
278a7a38 AO |
10878 | fi |
10879 | ||
5213506e | 10880 | |
278a7a38 AO |
10881 | done |
10882 | fi | |
10883 | ||
10884 | for ncn_progname in objdump; do | |
2693c0b0 PB |
10885 | if test -n "$ncn_tool_prefix"; then |
10886 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10887 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10889 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10890 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10891 | $as_echo_n "(cached) " >&6 |
ca9f4b81 AO |
10892 | else |
10893 | if test -n "$OBJDUMP"; then | |
10894 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
10895 | else | |
1c710c3c DJ |
10896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10897 | for as_dir in $PATH | |
10898 | do | |
10899 | IFS=$as_save_IFS | |
10900 | test -z "$as_dir" && as_dir=. | |
5213506e | 10901 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10903 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 10904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10905 | break 2 |
10906 | fi | |
10907 | done | |
5213506e RW |
10908 | done |
10909 | IFS=$as_save_IFS | |
1c710c3c | 10910 | |
ca9f4b81 AO |
10911 | fi |
10912 | fi | |
1c710c3c | 10913 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 10914 | if test -n "$OBJDUMP"; then |
5213506e RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10916 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 10917 | else |
5213506e RW |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10919 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10920 | fi |
10921 | ||
5213506e | 10922 | |
2693c0b0 PB |
10923 | fi |
10924 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
10925 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10926 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10928 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 10929 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 10930 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 10931 | else |
2693c0b0 PB |
10932 | if test -n "$OBJDUMP"; then |
10933 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 10934 | else |
1c710c3c DJ |
10935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10936 | for as_dir in $PATH | |
10937 | do | |
10938 | IFS=$as_save_IFS | |
10939 | test -z "$as_dir" && as_dir=. | |
5213506e | 10940 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 10941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 10942 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 10943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10944 | break 2 |
10945 | fi | |
10946 | done | |
5213506e RW |
10947 | done |
10948 | IFS=$as_save_IFS | |
1c710c3c | 10949 | |
ca9f4b81 AO |
10950 | fi |
10951 | fi | |
1c710c3c | 10952 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 10953 | if test -n "$OBJDUMP"; then |
5213506e RW |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
10955 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 10956 | else |
5213506e RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10958 | $as_echo "no" >&6; } | |
ca9f4b81 | 10959 | fi |
1c710c3c | 10960 | |
5213506e | 10961 | |
2693c0b0 PB |
10962 | fi |
10963 | test -n "$ac_cv_prog_OBJDUMP" && break | |
10964 | done | |
10965 | ||
10966 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
10967 | set dummy objdump | |
10968 | if test $build = $host ; then | |
10969 | OBJDUMP="$2" | |
ca9f4b81 | 10970 | else |
2693c0b0 | 10971 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 10972 | fi |
ca9f4b81 AO |
10973 | fi |
10974 | ||
671aa708 NN |
10975 | |
10976 | ||
e4a9a572 IS |
10977 | if test -n "$OTOOL"; then |
10978 | ac_cv_prog_OTOOL=$OTOOL | |
10979 | elif test -n "$ac_cv_prog_OTOOL"; then | |
10980 | OTOOL=$ac_cv_prog_OTOOL | |
10981 | fi | |
10982 | ||
10983 | if test -n "$ac_cv_prog_OTOOL"; then | |
10984 | for ncn_progname in otool; do | |
10985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10986 | set dummy ${ncn_progname}; ac_word=$2 | |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10988 | $as_echo_n "checking for $ac_word... " >&6; } | |
10989 | if ${ac_cv_prog_OTOOL+:} false; then : | |
10990 | $as_echo_n "(cached) " >&6 | |
10991 | else | |
10992 | if test -n "$OTOOL"; then | |
10993 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
10994 | else | |
10995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10996 | for as_dir in $PATH | |
10997 | do | |
10998 | IFS=$as_save_IFS | |
10999 | test -z "$as_dir" && as_dir=. | |
11000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11002 | ac_cv_prog_OTOOL="${ncn_progname}" | |
11003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11004 | break 2 | |
11005 | fi | |
11006 | done | |
11007 | done | |
11008 | IFS=$as_save_IFS | |
11009 | ||
11010 | fi | |
11011 | fi | |
11012 | OTOOL=$ac_cv_prog_OTOOL | |
11013 | if test -n "$OTOOL"; then | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
11015 | $as_echo "$OTOOL" >&6; } | |
11016 | else | |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11018 | $as_echo "no" >&6; } | |
11019 | fi | |
11020 | ||
11021 | ||
11022 | done | |
11023 | fi | |
11024 | ||
11025 | for ncn_progname in otool; do | |
11026 | if test -n "$ncn_tool_prefix"; then | |
11027 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11028 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11030 | $as_echo_n "checking for $ac_word... " >&6; } | |
11031 | if ${ac_cv_prog_OTOOL+:} false; then : | |
11032 | $as_echo_n "(cached) " >&6 | |
11033 | else | |
11034 | if test -n "$OTOOL"; then | |
11035 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
11036 | else | |
11037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11038 | for as_dir in $PATH | |
11039 | do | |
11040 | IFS=$as_save_IFS | |
11041 | test -z "$as_dir" && as_dir=. | |
11042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11044 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" | |
11045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11046 | break 2 | |
11047 | fi | |
11048 | done | |
11049 | done | |
11050 | IFS=$as_save_IFS | |
11051 | ||
11052 | fi | |
11053 | fi | |
11054 | OTOOL=$ac_cv_prog_OTOOL | |
11055 | if test -n "$OTOOL"; then | |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
11057 | $as_echo "$OTOOL" >&6; } | |
11058 | else | |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11060 | $as_echo "no" >&6; } | |
11061 | fi | |
11062 | ||
11063 | ||
11064 | fi | |
11065 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then | |
11066 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11067 | set dummy ${ncn_progname}; ac_word=$2 | |
11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11069 | $as_echo_n "checking for $ac_word... " >&6; } | |
11070 | if ${ac_cv_prog_OTOOL+:} false; then : | |
11071 | $as_echo_n "(cached) " >&6 | |
11072 | else | |
11073 | if test -n "$OTOOL"; then | |
11074 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
11075 | else | |
11076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11077 | for as_dir in $PATH | |
11078 | do | |
11079 | IFS=$as_save_IFS | |
11080 | test -z "$as_dir" && as_dir=. | |
11081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11083 | ac_cv_prog_OTOOL="${ncn_progname}" | |
11084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11085 | break 2 | |
11086 | fi | |
11087 | done | |
11088 | done | |
11089 | IFS=$as_save_IFS | |
11090 | ||
11091 | fi | |
11092 | fi | |
11093 | OTOOL=$ac_cv_prog_OTOOL | |
11094 | if test -n "$OTOOL"; then | |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
11096 | $as_echo "$OTOOL" >&6; } | |
11097 | else | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11099 | $as_echo "no" >&6; } | |
11100 | fi | |
11101 | ||
11102 | ||
11103 | fi | |
11104 | test -n "$ac_cv_prog_OTOOL" && break | |
11105 | done | |
11106 | ||
11107 | if test -z "$ac_cv_prog_OTOOL" ; then | |
11108 | set dummy otool | |
11109 | if test $build = $host ; then | |
11110 | OTOOL="$2" | |
11111 | else | |
11112 | OTOOL="${ncn_tool_prefix}$2" | |
11113 | fi | |
11114 | fi | |
11115 | ||
11116 | ||
11117 | ||
e7a82751 RM |
11118 | if test -n "$READELF"; then |
11119 | ac_cv_prog_READELF=$READELF | |
11120 | elif test -n "$ac_cv_prog_READELF"; then | |
11121 | READELF=$ac_cv_prog_READELF | |
11122 | fi | |
11123 | ||
11124 | if test -n "$ac_cv_prog_READELF"; then | |
11125 | for ncn_progname in readelf; do | |
11126 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11127 | set dummy ${ncn_progname}; ac_word=$2 | |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11129 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11130 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
11131 | $as_echo_n "(cached) " >&6 |
11132 | else | |
11133 | if test -n "$READELF"; then | |
11134 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
11135 | else | |
11136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11137 | for as_dir in $PATH | |
11138 | do | |
11139 | IFS=$as_save_IFS | |
11140 | test -z "$as_dir" && as_dir=. | |
11141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
11143 | ac_cv_prog_READELF="${ncn_progname}" |
11144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11145 | break 2 | |
11146 | fi | |
11147 | done | |
11148 | done | |
11149 | IFS=$as_save_IFS | |
11150 | ||
11151 | fi | |
11152 | fi | |
11153 | READELF=$ac_cv_prog_READELF | |
11154 | if test -n "$READELF"; then | |
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
11156 | $as_echo "$READELF" >&6; } | |
11157 | else | |
11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11159 | $as_echo "no" >&6; } | |
11160 | fi | |
11161 | ||
11162 | ||
11163 | done | |
11164 | fi | |
11165 | ||
11166 | for ncn_progname in readelf; do | |
11167 | if test -n "$ncn_tool_prefix"; then | |
11168 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11169 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11171 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11172 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
11173 | $as_echo_n "(cached) " >&6 |
11174 | else | |
11175 | if test -n "$READELF"; then | |
11176 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
11177 | else | |
11178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11179 | for as_dir in $PATH | |
11180 | do | |
11181 | IFS=$as_save_IFS | |
11182 | test -z "$as_dir" && as_dir=. | |
11183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
11185 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
11186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11187 | break 2 | |
11188 | fi | |
11189 | done | |
11190 | done | |
11191 | IFS=$as_save_IFS | |
11192 | ||
11193 | fi | |
11194 | fi | |
11195 | READELF=$ac_cv_prog_READELF | |
11196 | if test -n "$READELF"; then | |
11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
11198 | $as_echo "$READELF" >&6; } | |
11199 | else | |
11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11201 | $as_echo "no" >&6; } | |
11202 | fi | |
11203 | ||
11204 | ||
11205 | fi | |
11206 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
11207 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11208 | set dummy ${ncn_progname}; ac_word=$2 | |
11209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11210 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11211 | if ${ac_cv_prog_READELF+:} false; then : |
e7a82751 RM |
11212 | $as_echo_n "(cached) " >&6 |
11213 | else | |
11214 | if test -n "$READELF"; then | |
11215 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
11216 | else | |
11217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11218 | for as_dir in $PATH | |
11219 | do | |
11220 | IFS=$as_save_IFS | |
11221 | test -z "$as_dir" && as_dir=. | |
11222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
11224 | ac_cv_prog_READELF="${ncn_progname}" |
11225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11226 | break 2 | |
11227 | fi | |
11228 | done | |
11229 | done | |
11230 | IFS=$as_save_IFS | |
11231 | ||
11232 | fi | |
11233 | fi | |
11234 | READELF=$ac_cv_prog_READELF | |
11235 | if test -n "$READELF"; then | |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
11237 | $as_echo "$READELF" >&6; } | |
11238 | else | |
11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11240 | $as_echo "no" >&6; } | |
11241 | fi | |
11242 | ||
11243 | ||
11244 | fi | |
11245 | test -n "$ac_cv_prog_READELF" && break | |
11246 | done | |
11247 | ||
11248 | if test -z "$ac_cv_prog_READELF" ; then | |
11249 | set dummy readelf | |
11250 | if test $build = $host ; then | |
11251 | READELF="$2" | |
11252 | else | |
11253 | READELF="${ncn_tool_prefix}$2" | |
11254 | fi | |
11255 | fi | |
11256 | ||
11257 | ||
11258 | ||
671aa708 NN |
11259 | |
11260 | ||
11261 | ||
2abefe3d | 11262 | # Target tools. |
1c710c3c | 11263 | |
5213506e RW |
11264 | # Check whether --with-build-time-tools was given. |
11265 | if test "${with_build_time_tools+set}" = set; then : | |
11266 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
11267 | x/*) ;; |
11268 | *) | |
11269 | with_build_time_tools= | |
5213506e RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
11271 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
11272 | ;; |
11273 | esac | |
ca9f4b81 | 11274 | else |
e8b05380 | 11275 | with_build_time_tools= |
5213506e RW |
11276 | fi |
11277 | ||
ca9f4b81 | 11278 | |
278a7a38 AO |
11279 | |
11280 | ||
11281 | if test -n "$CC_FOR_TARGET"; then | |
11282 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
11283 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
11284 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
11285 | fi | |
11286 | ||
11287 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
11288 | for ncn_progname in cc gcc; do | |
11289 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11290 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11292 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11293 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 11294 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11295 | else |
11296 | if test -n "$CC_FOR_TARGET"; then | |
11297 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
11298 | else | |
11299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11300 | for as_dir in $PATH | |
11301 | do | |
11302 | IFS=$as_save_IFS | |
11303 | test -z "$as_dir" && as_dir=. | |
5213506e | 11304 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11306 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 11307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11308 | break 2 |
11309 | fi | |
11310 | done | |
5213506e RW |
11311 | done |
11312 | IFS=$as_save_IFS | |
278a7a38 AO |
11313 | |
11314 | fi | |
11315 | fi | |
11316 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
11317 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
11319 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 11320 | else |
5213506e RW |
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11322 | $as_echo "no" >&6; } | |
278a7a38 AO |
11323 | fi |
11324 | ||
5213506e | 11325 | |
278a7a38 AO |
11326 | done |
11327 | fi | |
11328 | ||
11329 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11330 | for ncn_progname in cc gcc; do |
5213506e RW |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11332 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11333 | if test -x $with_build_time_tools/${ncn_progname}; then |
11334 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11336 | $as_echo "yes" >&6; } | |
72a7ab82 | 11337 | break |
e8b05380 | 11338 | else |
5213506e RW |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11340 | $as_echo "no" >&6; } | |
72a7ab82 AP |
11341 | fi |
11342 | done | |
4de997d1 PB |
11343 | fi |
11344 | ||
e8b05380 PB |
11345 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
11346 | for ncn_progname in cc gcc; do | |
11347 | if test -n "$ncn_target_tool_prefix"; then | |
11348 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11349 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11352 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 11353 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
11354 | else |
11355 | if test -n "$CC_FOR_TARGET"; then | |
11356 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
11357 | else | |
1c710c3c DJ |
11358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11359 | for as_dir in $PATH | |
11360 | do | |
11361 | IFS=$as_save_IFS | |
11362 | test -z "$as_dir" && as_dir=. | |
5213506e | 11363 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11365 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11367 | break 2 |
11368 | fi | |
11369 | done | |
5213506e RW |
11370 | done |
11371 | IFS=$as_save_IFS | |
1c710c3c | 11372 | |
4de997d1 PB |
11373 | fi |
11374 | fi | |
1c710c3c | 11375 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 11376 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
11378 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 11379 | else |
5213506e RW |
11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11381 | $as_echo "no" >&6; } | |
4de997d1 PB |
11382 | fi |
11383 | ||
5213506e | 11384 | |
e8b05380 PB |
11385 | fi |
11386 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
11387 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11388 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11390 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11391 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
5213506e | 11392 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11393 | else |
2693c0b0 PB |
11394 | if test -n "$CC_FOR_TARGET"; then |
11395 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11396 | else |
1c710c3c DJ |
11397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11398 | for as_dir in $PATH | |
11399 | do | |
11400 | IFS=$as_save_IFS | |
11401 | test -z "$as_dir" && as_dir=. | |
5213506e | 11402 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11403 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11404 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 11405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11406 | break 2 |
11407 | fi | |
11408 | done | |
5213506e RW |
11409 | done |
11410 | IFS=$as_save_IFS | |
1c710c3c | 11411 | |
4de997d1 PB |
11412 | fi |
11413 | fi | |
1c710c3c | 11414 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 11415 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
11417 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 11418 | else |
5213506e RW |
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11420 | $as_echo "no" >&6; } | |
4de997d1 | 11421 | fi |
1c710c3c | 11422 | |
5213506e | 11423 | |
e8b05380 PB |
11424 | fi |
11425 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
11426 | done | |
11427 | fi | |
1c710c3c | 11428 | |
2693c0b0 PB |
11429 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
11430 | set dummy cc gcc | |
11431 | if test $build = $target ; then | |
11432 | CC_FOR_TARGET="$2" | |
4de997d1 | 11433 | else |
2693c0b0 | 11434 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 11435 | fi |
1c00b503 PB |
11436 | else |
11437 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
11438 | fi |
11439 | ||
278a7a38 AO |
11440 | |
11441 | ||
11442 | if test -n "$CXX_FOR_TARGET"; then | |
11443 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
11444 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
11445 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
11446 | fi | |
11447 | ||
11448 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
11449 | for ncn_progname in c++ g++ cxx gxx; do | |
11450 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11451 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11453 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11454 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 11455 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11456 | else |
11457 | if test -n "$CXX_FOR_TARGET"; then | |
11458 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
11459 | else | |
11460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11461 | for as_dir in $PATH | |
11462 | do | |
11463 | IFS=$as_save_IFS | |
11464 | test -z "$as_dir" && as_dir=. | |
5213506e | 11465 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11467 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 11468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11469 | break 2 |
11470 | fi | |
11471 | done | |
5213506e RW |
11472 | done |
11473 | IFS=$as_save_IFS | |
278a7a38 AO |
11474 | |
11475 | fi | |
11476 | fi | |
11477 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
11478 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
11479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
11480 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 11481 | else |
5213506e RW |
11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11483 | $as_echo "no" >&6; } | |
278a7a38 AO |
11484 | fi |
11485 | ||
5213506e | 11486 | |
278a7a38 AO |
11487 | done |
11488 | fi | |
11489 | ||
11490 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11491 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11493 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11494 | if test -x $with_build_time_tools/${ncn_progname}; then |
11495 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11497 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11498 | break |
11499 | else | |
5213506e RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11501 | $as_echo "no" >&6; } | |
e8b05380 PB |
11502 | fi |
11503 | done | |
11504 | fi | |
11505 | ||
11506 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
11507 | for ncn_progname in c++ g++ cxx gxx; do | |
11508 | if test -n "$ncn_target_tool_prefix"; then | |
11509 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11510 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11512 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11513 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 11514 | $as_echo_n "(cached) " >&6 |
4de997d1 PB |
11515 | else |
11516 | if test -n "$CXX_FOR_TARGET"; then | |
11517 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
11518 | else | |
1c710c3c DJ |
11519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11520 | for as_dir in $PATH | |
11521 | do | |
11522 | IFS=$as_save_IFS | |
11523 | test -z "$as_dir" && as_dir=. | |
5213506e | 11524 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11526 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11528 | break 2 |
11529 | fi | |
11530 | done | |
5213506e RW |
11531 | done |
11532 | IFS=$as_save_IFS | |
1c710c3c | 11533 | |
4de997d1 PB |
11534 | fi |
11535 | fi | |
1c710c3c | 11536 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 11537 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
11539 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 11540 | else |
5213506e RW |
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11542 | $as_echo "no" >&6; } | |
4de997d1 PB |
11543 | fi |
11544 | ||
5213506e | 11545 | |
e8b05380 PB |
11546 | fi |
11547 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
11548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11549 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11551 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11552 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
5213506e | 11553 | $as_echo_n "(cached) " >&6 |
4de997d1 | 11554 | else |
2693c0b0 PB |
11555 | if test -n "$CXX_FOR_TARGET"; then |
11556 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11557 | else |
1c710c3c DJ |
11558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11559 | for as_dir in $PATH | |
11560 | do | |
11561 | IFS=$as_save_IFS | |
11562 | test -z "$as_dir" && as_dir=. | |
5213506e | 11563 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11564 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11565 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 11566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11567 | break 2 |
11568 | fi | |
11569 | done | |
5213506e RW |
11570 | done |
11571 | IFS=$as_save_IFS | |
1c710c3c | 11572 | |
4de997d1 PB |
11573 | fi |
11574 | fi | |
1c710c3c | 11575 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 11576 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
11578 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 11579 | else |
5213506e RW |
11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11581 | $as_echo "no" >&6; } | |
4de997d1 | 11582 | fi |
1c710c3c | 11583 | |
5213506e | 11584 | |
e8b05380 PB |
11585 | fi |
11586 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
11587 | done | |
11588 | fi | |
1c710c3c | 11589 | |
2693c0b0 PB |
11590 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
11591 | set dummy c++ g++ cxx gxx | |
11592 | if test $build = $target ; then | |
11593 | CXX_FOR_TARGET="$2" | |
4de997d1 | 11594 | else |
2693c0b0 | 11595 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 11596 | fi |
1c00b503 PB |
11597 | else |
11598 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
11599 | fi |
11600 | ||
278a7a38 AO |
11601 | |
11602 | ||
11603 | if test -n "$GCC_FOR_TARGET"; then | |
11604 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
11605 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
11606 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
11607 | fi | |
11608 | ||
11609 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
11610 | for ncn_progname in gcc; do | |
11611 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11612 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11614 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11615 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 11616 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
11617 | else |
11618 | if test -n "$GCC_FOR_TARGET"; then | |
11619 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
11620 | else | |
11621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11622 | for as_dir in $PATH | |
11623 | do | |
11624 | IFS=$as_save_IFS | |
11625 | test -z "$as_dir" && as_dir=. | |
5213506e | 11626 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11628 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 11629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11630 | break 2 |
11631 | fi | |
11632 | done | |
5213506e RW |
11633 | done |
11634 | IFS=$as_save_IFS | |
278a7a38 AO |
11635 | |
11636 | fi | |
11637 | fi | |
11638 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
11639 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
11641 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 11642 | else |
5213506e RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11644 | $as_echo "no" >&6; } | |
278a7a38 AO |
11645 | fi |
11646 | ||
5213506e | 11647 | |
278a7a38 AO |
11648 | done |
11649 | fi | |
11650 | ||
11651 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11652 | for ncn_progname in gcc; do |
5213506e RW |
11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11654 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11655 | if test -x $with_build_time_tools/${ncn_progname}; then |
11656 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11658 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11659 | break |
11660 | else | |
5213506e RW |
11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11662 | $as_echo "no" >&6; } | |
e8b05380 PB |
11663 | fi |
11664 | done | |
11665 | fi | |
11666 | ||
11667 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
11668 | for ncn_progname in gcc; do | |
11669 | if test -n "$ncn_target_tool_prefix"; then | |
11670 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11671 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11673 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11674 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 11675 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11676 | else |
e8b05380 PB |
11677 | if test -n "$GCC_FOR_TARGET"; then |
11678 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11679 | else |
1c710c3c DJ |
11680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11681 | for as_dir in $PATH | |
11682 | do | |
11683 | IFS=$as_save_IFS | |
11684 | test -z "$as_dir" && as_dir=. | |
5213506e | 11685 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11687 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11689 | break 2 |
11690 | fi | |
11691 | done | |
5213506e RW |
11692 | done |
11693 | IFS=$as_save_IFS | |
1c710c3c | 11694 | |
ca9f4b81 AO |
11695 | fi |
11696 | fi | |
1c710c3c | 11697 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 11698 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
11700 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 11701 | else |
5213506e RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11703 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11704 | fi |
11705 | ||
5213506e | 11706 | |
e8b05380 PB |
11707 | fi |
11708 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
11709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11710 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11712 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11713 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
5213506e | 11714 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 11715 | else |
e8b05380 PB |
11716 | if test -n "$GCC_FOR_TARGET"; then |
11717 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11718 | else |
1c710c3c DJ |
11719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11720 | for as_dir in $PATH | |
11721 | do | |
11722 | IFS=$as_save_IFS | |
11723 | test -z "$as_dir" && as_dir=. | |
5213506e | 11724 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11726 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 11727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11728 | break 2 |
11729 | fi | |
11730 | done | |
5213506e RW |
11731 | done |
11732 | IFS=$as_save_IFS | |
1c710c3c | 11733 | |
ca9f4b81 AO |
11734 | fi |
11735 | fi | |
1c710c3c | 11736 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 11737 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
11739 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 11740 | else |
5213506e RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11742 | $as_echo "no" >&6; } | |
ca9f4b81 | 11743 | fi |
1c710c3c | 11744 | |
5213506e | 11745 | |
e8b05380 PB |
11746 | fi |
11747 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
11748 | done | |
11749 | fi | |
1c710c3c | 11750 | |
e8b05380 PB |
11751 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
11752 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
11753 | else |
11754 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
11755 | fi |
11756 | ||
278a7a38 AO |
11757 | |
11758 | ||
278a7a38 AO |
11759 | if test -n "$GFORTRAN_FOR_TARGET"; then |
11760 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
11761 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
11762 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
11763 | fi |
11764 | ||
278a7a38 AO |
11765 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
11766 | for ncn_progname in gfortran; do | |
11767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 11768 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11770 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11771 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 11772 | $as_echo_n "(cached) " >&6 |
e8b05380 | 11773 | else |
278a7a38 AO |
11774 | if test -n "$GFORTRAN_FOR_TARGET"; then |
11775 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 11776 | else |
1c710c3c DJ |
11777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11778 | for as_dir in $PATH | |
11779 | do | |
11780 | IFS=$as_save_IFS | |
11781 | test -z "$as_dir" && as_dir=. | |
5213506e | 11782 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 11784 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11786 | break 2 |
11787 | fi | |
11788 | done | |
5213506e RW |
11789 | done |
11790 | IFS=$as_save_IFS | |
1c710c3c | 11791 | |
e8b05380 PB |
11792 | fi |
11793 | fi | |
278a7a38 AO |
11794 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
11795 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11797 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 11798 | else |
5213506e RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
e8b05380 | 11801 | fi |
1c710c3c | 11802 | |
5213506e | 11803 | |
e8b05380 PB |
11804 | done |
11805 | fi | |
1c710c3c | 11806 | |
278a7a38 | 11807 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 11808 | for ncn_progname in gfortran; do |
5213506e RW |
11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11810 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11811 | if test -x $with_build_time_tools/${ncn_progname}; then |
11812 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11814 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11815 | break |
11816 | else | |
5213506e RW |
11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11818 | $as_echo "no" >&6; } | |
e8b05380 PB |
11819 | fi |
11820 | done | |
11821 | fi | |
11822 | ||
11823 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
11824 | for ncn_progname in gfortran; do | |
11825 | if test -n "$ncn_target_tool_prefix"; then | |
11826 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11827 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11829 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11830 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 11831 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11832 | else |
11833 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
11834 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
11835 | else | |
11836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11837 | for as_dir in $PATH | |
11838 | do | |
11839 | IFS=$as_save_IFS | |
11840 | test -z "$as_dir" && as_dir=. | |
5213506e | 11841 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11842 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11843 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11845 | break 2 |
11846 | fi | |
11847 | done | |
5213506e RW |
11848 | done |
11849 | IFS=$as_save_IFS | |
1c710c3c | 11850 | |
e8b05380 PB |
11851 | fi |
11852 | fi | |
1c710c3c | 11853 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 11854 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11856 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 11857 | else |
5213506e RW |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11859 | $as_echo "no" >&6; } | |
e8b05380 PB |
11860 | fi |
11861 | ||
5213506e | 11862 | |
e8b05380 PB |
11863 | fi |
11864 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
11865 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11866 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11868 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11869 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
5213506e | 11870 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
11871 | else |
11872 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
11873 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
11874 | else | |
1c710c3c DJ |
11875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11876 | for as_dir in $PATH | |
11877 | do | |
11878 | IFS=$as_save_IFS | |
11879 | test -z "$as_dir" && as_dir=. | |
5213506e | 11880 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 11881 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 11882 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 11883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11884 | break 2 |
11885 | fi | |
11886 | done | |
5213506e RW |
11887 | done |
11888 | IFS=$as_save_IFS | |
1c710c3c | 11889 | |
e8b05380 PB |
11890 | fi |
11891 | fi | |
1c710c3c | 11892 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 11893 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
11895 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 11896 | else |
5213506e RW |
11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11898 | $as_echo "no" >&6; } | |
e8b05380 | 11899 | fi |
1c710c3c | 11900 | |
5213506e | 11901 | |
e8b05380 PB |
11902 | fi |
11903 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
11904 | done | |
11905 | fi | |
1c710c3c | 11906 | |
e8b05380 PB |
11907 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
11908 | set dummy gfortran | |
2693c0b0 | 11909 | if test $build = $target ; then |
e8b05380 | 11910 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 11911 | else |
e8b05380 PB |
11912 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
11913 | fi | |
1c00b503 PB |
11914 | else |
11915 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
11916 | fi |
11917 | ||
11918 | ||
11919 | ||
632e2a07 ILT |
11920 | if test -n "$GOC_FOR_TARGET"; then |
11921 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
11922 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11923 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11924 | fi | |
11925 | ||
11926 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11927 | for ncn_progname in gccgo; do | |
11928 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11929 | set dummy ${ncn_progname}; ac_word=$2 | |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11932 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11933 | $as_echo_n "(cached) " >&6 |
11934 | else | |
11935 | if test -n "$GOC_FOR_TARGET"; then | |
11936 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11937 | else | |
11938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11939 | for as_dir in $PATH | |
11940 | do | |
11941 | IFS=$as_save_IFS | |
11942 | test -z "$as_dir" && as_dir=. | |
11943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 11944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
11945 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
11946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11947 | break 2 | |
11948 | fi | |
11949 | done | |
11950 | done | |
11951 | IFS=$as_save_IFS | |
11952 | ||
11953 | fi | |
11954 | fi | |
11955 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
11956 | if test -n "$GOC_FOR_TARGET"; then | |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
11958 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
11959 | else | |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11961 | $as_echo "no" >&6; } | |
11962 | fi | |
11963 | ||
11964 | ||
11965 | done | |
11966 | fi | |
11967 | ||
11968 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
11969 | for ncn_progname in gccgo; do | |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
11971 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
11972 | if test -x $with_build_time_tools/${ncn_progname}; then | |
11973 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11975 | $as_echo "yes" >&6; } | |
11976 | break | |
11977 | else | |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11979 | $as_echo "no" >&6; } | |
11980 | fi | |
11981 | done | |
11982 | fi | |
11983 | ||
11984 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
11985 | for ncn_progname in gccgo; do | |
11986 | if test -n "$ncn_target_tool_prefix"; then | |
11987 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11988 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11990 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 11991 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
11992 | $as_echo_n "(cached) " >&6 |
11993 | else | |
11994 | if test -n "$GOC_FOR_TARGET"; then | |
11995 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
11996 | else | |
11997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11998 | for as_dir in $PATH | |
11999 | do | |
12000 | IFS=$as_save_IFS | |
12001 | test -z "$as_dir" && as_dir=. | |
12002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
12004 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12006 | break 2 | |
12007 | fi | |
12008 | done | |
12009 | done | |
12010 | IFS=$as_save_IFS | |
12011 | ||
12012 | fi | |
12013 | fi | |
12014 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
12015 | if test -n "$GOC_FOR_TARGET"; then | |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
12017 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
12018 | else | |
12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12020 | $as_echo "no" >&6; } | |
12021 | fi | |
12022 | ||
12023 | ||
12024 | fi | |
12025 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
12026 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12027 | set dummy ${ncn_progname}; ac_word=$2 | |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12029 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12030 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
632e2a07 ILT |
12031 | $as_echo_n "(cached) " >&6 |
12032 | else | |
12033 | if test -n "$GOC_FOR_TARGET"; then | |
12034 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
12035 | else | |
12036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12037 | for as_dir in $PATH | |
12038 | do | |
12039 | IFS=$as_save_IFS | |
12040 | test -z "$as_dir" && as_dir=. | |
12041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
632e2a07 ILT |
12043 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
12044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12045 | break 2 | |
12046 | fi | |
12047 | done | |
12048 | done | |
12049 | IFS=$as_save_IFS | |
12050 | ||
12051 | fi | |
12052 | fi | |
12053 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
12054 | if test -n "$GOC_FOR_TARGET"; then | |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
12056 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
12057 | else | |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12059 | $as_echo "no" >&6; } | |
12060 | fi | |
12061 | ||
12062 | ||
12063 | fi | |
12064 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
12065 | done | |
12066 | fi | |
12067 | ||
12068 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
12069 | set dummy gccgo | |
12070 | if test $build = $target ; then | |
12071 | GOC_FOR_TARGET="$2" | |
12072 | else | |
12073 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12074 | fi | |
12075 | else | |
12076 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
12077 | fi | |
12078 | ||
12079 | ||
12080 | ||
b4c522fa IB |
12081 | if test -n "$GDC_FOR_TARGET"; then |
12082 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
12083 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
12084 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
12085 | fi | |
12086 | ||
12087 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
12088 | for ncn_progname in gdc; do | |
12089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12090 | set dummy ${ncn_progname}; ac_word=$2 | |
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12092 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12093 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
12094 | $as_echo_n "(cached) " >&6 |
12095 | else | |
12096 | if test -n "$GDC_FOR_TARGET"; then | |
12097 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
12098 | else | |
12099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12100 | for as_dir in $PATH | |
12101 | do | |
12102 | IFS=$as_save_IFS | |
12103 | test -z "$as_dir" && as_dir=. | |
12104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
12106 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
12107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12108 | break 2 | |
12109 | fi | |
12110 | done | |
12111 | done | |
12112 | IFS=$as_save_IFS | |
12113 | ||
12114 | fi | |
12115 | fi | |
12116 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
12117 | if test -n "$GDC_FOR_TARGET"; then | |
12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
12119 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
12120 | else | |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12122 | $as_echo "no" >&6; } | |
12123 | fi | |
12124 | ||
12125 | ||
12126 | done | |
12127 | fi | |
12128 | ||
12129 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12130 | for ncn_progname in gdc; do | |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12132 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12133 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12134 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12136 | $as_echo "yes" >&6; } | |
12137 | break | |
12138 | else | |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12140 | $as_echo "no" >&6; } | |
12141 | fi | |
12142 | done | |
12143 | fi | |
12144 | ||
12145 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then | |
12146 | for ncn_progname in gdc; do | |
12147 | if test -n "$ncn_target_tool_prefix"; then | |
12148 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12149 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12151 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12152 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
12153 | $as_echo_n "(cached) " >&6 |
12154 | else | |
12155 | if test -n "$GDC_FOR_TARGET"; then | |
12156 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
12157 | else | |
12158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12159 | for as_dir in $PATH | |
12160 | do | |
12161 | IFS=$as_save_IFS | |
12162 | test -z "$as_dir" && as_dir=. | |
12163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
12165 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
12166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12167 | break 2 | |
12168 | fi | |
12169 | done | |
12170 | done | |
12171 | IFS=$as_save_IFS | |
12172 | ||
12173 | fi | |
12174 | fi | |
12175 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
12176 | if test -n "$GDC_FOR_TARGET"; then | |
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
12178 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
12179 | else | |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12181 | $as_echo "no" >&6; } | |
12182 | fi | |
12183 | ||
12184 | ||
12185 | fi | |
12186 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then | |
12187 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12188 | set dummy ${ncn_progname}; ac_word=$2 | |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12190 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12191 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
b4c522fa IB |
12192 | $as_echo_n "(cached) " >&6 |
12193 | else | |
12194 | if test -n "$GDC_FOR_TARGET"; then | |
12195 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
12196 | else | |
12197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12198 | for as_dir in $PATH | |
12199 | do | |
12200 | IFS=$as_save_IFS | |
12201 | test -z "$as_dir" && as_dir=. | |
12202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 12203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
12204 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
12205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12206 | break 2 | |
12207 | fi | |
12208 | done | |
12209 | done | |
12210 | IFS=$as_save_IFS | |
12211 | ||
12212 | fi | |
12213 | fi | |
12214 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
12215 | if test -n "$GDC_FOR_TARGET"; then | |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
12217 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
12218 | else | |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12220 | $as_echo "no" >&6; } | |
12221 | fi | |
12222 | ||
12223 | ||
12224 | fi | |
12225 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break | |
12226 | done | |
12227 | fi | |
12228 | ||
12229 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then | |
12230 | set dummy gdc | |
12231 | if test $build = $target ; then | |
12232 | GDC_FOR_TARGET="$2" | |
12233 | else | |
12234 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12235 | fi | |
12236 | else | |
12237 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" | |
12238 | fi | |
12239 | ||
12240 | ||
12241 | ||
e8b05380 PB |
12242 | cat > conftest.c << \EOF |
12243 | #ifdef __GNUC__ | |
12244 | gcc_yay; | |
12245 | #endif | |
12246 | EOF | |
12247 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
12248 | have_gcc_for_target=yes | |
12249 | else | |
12250 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
12251 | have_gcc_for_target=no | |
12252 | fi | |
12253 | rm conftest.c | |
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
12259 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
12261 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12262 | if test -x $with_build_time_tools/ar; then |
12263 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
12264 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
12266 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 12267 | else |
5213506e RW |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12269 | $as_echo "no" >&6; } | |
d1f8db0c | 12270 | fi |
e8b05380 PB |
12271 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12272 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
12273 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
12274 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
12275 | fi |
12276 | fi | |
3e19841a | 12277 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12278 | # Extract the first word of "ar", so it can be a program name with args. |
12279 | set dummy ar; ac_word=$2 | |
5213506e RW |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12281 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12282 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
5213506e | 12283 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12284 | else |
1c710c3c DJ |
12285 | case $AR_FOR_TARGET in |
12286 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12287 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
12288 | ;; | |
e8b05380 | 12289 | *) |
1c710c3c DJ |
12290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12291 | for as_dir in $gcc_cv_tool_dirs | |
12292 | do | |
12293 | IFS=$as_save_IFS | |
12294 | test -z "$as_dir" && as_dir=. | |
5213506e | 12295 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12297 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12299 | break 2 |
12300 | fi | |
12301 | done | |
5213506e RW |
12302 | done |
12303 | IFS=$as_save_IFS | |
1c710c3c | 12304 | |
e8b05380 PB |
12305 | ;; |
12306 | esac | |
12307 | fi | |
1c710c3c | 12308 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 12309 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
12311 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 12312 | else |
5213506e RW |
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12314 | $as_echo "no" >&6; } | |
4de997d1 PB |
12315 | fi |
12316 | ||
5213506e | 12317 | |
e8b05380 PB |
12318 | fi |
12319 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
12320 | |
12321 | ||
12322 | if test -n "$AR_FOR_TARGET"; then | |
12323 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
12324 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
12325 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
12326 | fi | |
12327 | ||
12328 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
12329 | for ncn_progname in ar; do | |
12330 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12331 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12333 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12334 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 12335 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12336 | else |
12337 | if test -n "$AR_FOR_TARGET"; then | |
12338 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
12339 | else | |
12340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12341 | for as_dir in $PATH | |
12342 | do | |
12343 | IFS=$as_save_IFS | |
12344 | test -z "$as_dir" && as_dir=. | |
5213506e | 12345 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12347 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 12348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12349 | break 2 |
12350 | fi | |
12351 | done | |
5213506e RW |
12352 | done |
12353 | IFS=$as_save_IFS | |
278a7a38 AO |
12354 | |
12355 | fi | |
12356 | fi | |
12357 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
12358 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
12360 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 12361 | else |
5213506e RW |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12363 | $as_echo "no" >&6; } | |
278a7a38 AO |
12364 | fi |
12365 | ||
5213506e | 12366 | |
278a7a38 AO |
12367 | done |
12368 | fi | |
12369 | ||
12370 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12371 | for ncn_progname in ar; do |
5213506e RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12373 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12374 | if test -x $with_build_time_tools/${ncn_progname}; then |
12375 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12377 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12378 | break |
12379 | else | |
5213506e RW |
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12381 | $as_echo "no" >&6; } | |
e8b05380 PB |
12382 | fi |
12383 | done | |
12384 | fi | |
12385 | ||
12386 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
12387 | for ncn_progname in ar; do | |
12388 | if test -n "$ncn_target_tool_prefix"; then | |
12389 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12390 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12392 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12393 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 12394 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12395 | else |
e8b05380 PB |
12396 | if test -n "$AR_FOR_TARGET"; then |
12397 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12398 | else |
1c710c3c DJ |
12399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12400 | for as_dir in $PATH | |
12401 | do | |
12402 | IFS=$as_save_IFS | |
12403 | test -z "$as_dir" && as_dir=. | |
5213506e | 12404 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12405 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12406 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12408 | break 2 |
12409 | fi | |
12410 | done | |
5213506e RW |
12411 | done |
12412 | IFS=$as_save_IFS | |
1c710c3c | 12413 | |
4de997d1 PB |
12414 | fi |
12415 | fi | |
1c710c3c | 12416 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 12417 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
12419 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 12420 | else |
5213506e RW |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12422 | $as_echo "no" >&6; } | |
4de997d1 PB |
12423 | fi |
12424 | ||
5213506e | 12425 | |
e8b05380 PB |
12426 | fi |
12427 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
12428 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12429 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12431 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12432 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
5213506e | 12433 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
12434 | else |
12435 | if test -n "$AR_FOR_TARGET"; then | |
12436 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
12437 | else | |
1c710c3c DJ |
12438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12439 | for as_dir in $PATH | |
12440 | do | |
12441 | IFS=$as_save_IFS | |
12442 | test -z "$as_dir" && as_dir=. | |
5213506e | 12443 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12445 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 12446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12447 | break 2 |
12448 | fi | |
12449 | done | |
5213506e RW |
12450 | done |
12451 | IFS=$as_save_IFS | |
1c710c3c | 12452 | |
e8b05380 PB |
12453 | fi |
12454 | fi | |
1c710c3c | 12455 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 12456 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
12458 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 12459 | else |
5213506e RW |
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12461 | $as_echo "no" >&6; } | |
e8b05380 | 12462 | fi |
1c710c3c | 12463 | |
5213506e | 12464 | |
e8b05380 PB |
12465 | fi |
12466 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
12467 | done | |
12468 | fi | |
1c710c3c | 12469 | |
e8b05380 PB |
12470 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
12471 | set dummy ar | |
12472 | if test $build = $target ; then | |
12473 | AR_FOR_TARGET="$2" | |
12474 | else | |
12475 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 12476 | fi |
1c00b503 PB |
12477 | else |
12478 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
12479 | fi |
12480 | ||
d1f8db0c PB |
12481 | else |
12482 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
12483 | fi |
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
12489 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
12491 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12492 | if test -x $with_build_time_tools/as; then |
12493 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
12494 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
12496 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 12497 | else |
5213506e RW |
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12499 | $as_echo "no" >&6; } | |
d1f8db0c | 12500 | fi |
e8b05380 PB |
12501 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12502 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
12503 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
12504 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
12505 | fi |
12506 | fi | |
3e19841a | 12507 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12508 | # Extract the first word of "as", so it can be a program name with args. |
12509 | set dummy as; ac_word=$2 | |
5213506e RW |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12511 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12512 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
5213506e | 12513 | $as_echo_n "(cached) " >&6 |
e8b05380 | 12514 | else |
1c710c3c DJ |
12515 | case $AS_FOR_TARGET in |
12516 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12517 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
12518 | ;; | |
e8b05380 | 12519 | *) |
1c710c3c DJ |
12520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12521 | for as_dir in $gcc_cv_tool_dirs | |
12522 | do | |
12523 | IFS=$as_save_IFS | |
12524 | test -z "$as_dir" && as_dir=. | |
5213506e | 12525 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12527 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12529 | break 2 |
12530 | fi | |
12531 | done | |
5213506e RW |
12532 | done |
12533 | IFS=$as_save_IFS | |
1c710c3c | 12534 | |
e8b05380 PB |
12535 | ;; |
12536 | esac | |
12537 | fi | |
1c710c3c | 12538 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 12539 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
12541 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 12542 | else |
5213506e RW |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12544 | $as_echo "no" >&6; } | |
e8b05380 PB |
12545 | fi |
12546 | ||
5213506e | 12547 | |
e8b05380 PB |
12548 | fi |
12549 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
12550 | |
12551 | ||
12552 | if test -n "$AS_FOR_TARGET"; then | |
12553 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
12554 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
12555 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
12556 | fi | |
12557 | ||
12558 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
12559 | for ncn_progname in as; do | |
12560 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12561 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12563 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12564 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 12565 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12566 | else |
12567 | if test -n "$AS_FOR_TARGET"; then | |
12568 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
12569 | else | |
12570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12571 | for as_dir in $PATH | |
12572 | do | |
12573 | IFS=$as_save_IFS | |
12574 | test -z "$as_dir" && as_dir=. | |
5213506e | 12575 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12577 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 12578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12579 | break 2 |
12580 | fi | |
12581 | done | |
5213506e RW |
12582 | done |
12583 | IFS=$as_save_IFS | |
278a7a38 AO |
12584 | |
12585 | fi | |
12586 | fi | |
12587 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
12588 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
12590 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 12591 | else |
5213506e RW |
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12593 | $as_echo "no" >&6; } | |
278a7a38 AO |
12594 | fi |
12595 | ||
5213506e | 12596 | |
278a7a38 AO |
12597 | done |
12598 | fi | |
12599 | ||
12600 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12601 | for ncn_progname in as; do |
5213506e RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12603 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12604 | if test -x $with_build_time_tools/${ncn_progname}; then |
12605 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12607 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12608 | break |
12609 | else | |
5213506e RW |
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12611 | $as_echo "no" >&6; } | |
e8b05380 PB |
12612 | fi |
12613 | done | |
12614 | fi | |
12615 | ||
12616 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
12617 | for ncn_progname in as; do | |
12618 | if test -n "$ncn_target_tool_prefix"; then | |
12619 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12620 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12622 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12623 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 12624 | $as_echo_n "(cached) " >&6 |
e8b05380 PB |
12625 | else |
12626 | if test -n "$AS_FOR_TARGET"; then | |
12627 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
12628 | else | |
1c710c3c DJ |
12629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12630 | for as_dir in $PATH | |
12631 | do | |
12632 | IFS=$as_save_IFS | |
12633 | test -z "$as_dir" && as_dir=. | |
5213506e | 12634 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12636 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12638 | break 2 |
12639 | fi | |
12640 | done | |
5213506e RW |
12641 | done |
12642 | IFS=$as_save_IFS | |
1c710c3c | 12643 | |
e8b05380 PB |
12644 | fi |
12645 | fi | |
1c710c3c | 12646 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 12647 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
12649 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 12650 | else |
5213506e RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12652 | $as_echo "no" >&6; } | |
e8b05380 PB |
12653 | fi |
12654 | ||
5213506e | 12655 | |
e8b05380 PB |
12656 | fi |
12657 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
12658 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12659 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12661 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12662 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
5213506e | 12663 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12664 | else |
e8b05380 PB |
12665 | if test -n "$AS_FOR_TARGET"; then |
12666 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 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_AS_FOR_TARGET="${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 | |
4de997d1 PB |
12683 | fi |
12684 | fi | |
1c710c3c | 12685 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 12686 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
12688 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 12689 | else |
5213506e RW |
12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12691 | $as_echo "no" >&6; } | |
4de997d1 | 12692 | fi |
1c710c3c | 12693 | |
5213506e | 12694 | |
e8b05380 PB |
12695 | fi |
12696 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
12697 | done | |
12698 | fi | |
1c710c3c | 12699 | |
e8b05380 PB |
12700 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
12701 | set dummy as | |
12702 | if test $build = $target ; then | |
12703 | AS_FOR_TARGET="$2" | |
12704 | else | |
12705 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 12706 | fi |
1c00b503 PB |
12707 | else |
12708 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 12709 | fi |
2693c0b0 | 12710 | |
d1f8db0c PB |
12711 | else |
12712 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
12713 | fi |
12714 | ||
e8b05380 PB |
12715 | |
12716 | ||
12717 | ||
12718 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
12719 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
12721 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12722 | if test -x $with_build_time_tools/dlltool; then |
12723 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
12724 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
12726 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 12727 | else |
5213506e RW |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12729 | $as_echo "no" >&6; } | |
d1f8db0c | 12730 | fi |
e8b05380 PB |
12731 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12732 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
12733 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
12734 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
12735 | fi |
12736 | fi | |
3e19841a | 12737 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12738 | # Extract the first word of "dlltool", so it can be a program name with args. |
12739 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12741 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12742 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12743 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12744 | else |
1c710c3c DJ |
12745 | case $DLLTOOL_FOR_TARGET in |
12746 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12747 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
12748 | ;; | |
e8b05380 | 12749 | *) |
1c710c3c DJ |
12750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12751 | for as_dir in $gcc_cv_tool_dirs | |
12752 | do | |
12753 | IFS=$as_save_IFS | |
12754 | test -z "$as_dir" && as_dir=. | |
5213506e | 12755 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12757 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12759 | break 2 |
12760 | fi | |
12761 | done | |
5213506e RW |
12762 | done |
12763 | IFS=$as_save_IFS | |
1c710c3c | 12764 | |
e8b05380 PB |
12765 | ;; |
12766 | esac | |
4de997d1 | 12767 | fi |
1c710c3c | 12768 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 12769 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12771 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 12772 | else |
5213506e RW |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12774 | $as_echo "no" >&6; } | |
4de997d1 PB |
12775 | fi |
12776 | ||
5213506e | 12777 | |
e8b05380 PB |
12778 | fi |
12779 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
12780 | |
12781 | ||
12782 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
12783 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
12784 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
12785 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
12786 | fi | |
12787 | ||
12788 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
12789 | for ncn_progname in dlltool; do | |
12790 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12791 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12793 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12794 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12795 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
12796 | else |
12797 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
12798 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
12799 | else | |
12800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12801 | for as_dir in $PATH | |
12802 | do | |
12803 | IFS=$as_save_IFS | |
12804 | test -z "$as_dir" && as_dir=. | |
5213506e | 12805 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 12807 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 12808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12809 | break 2 |
12810 | fi | |
12811 | done | |
5213506e RW |
12812 | done |
12813 | IFS=$as_save_IFS | |
278a7a38 AO |
12814 | |
12815 | fi | |
12816 | fi | |
12817 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
12818 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12820 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 12821 | else |
5213506e RW |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12823 | $as_echo "no" >&6; } | |
278a7a38 AO |
12824 | fi |
12825 | ||
5213506e | 12826 | |
278a7a38 AO |
12827 | done |
12828 | fi | |
12829 | ||
12830 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12831 | for ncn_progname in dlltool; do |
5213506e RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12833 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12834 | if test -x $with_build_time_tools/${ncn_progname}; then |
12835 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12837 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12838 | break |
12839 | else | |
5213506e RW |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12841 | $as_echo "no" >&6; } | |
e8b05380 PB |
12842 | fi |
12843 | done | |
12844 | fi | |
12845 | ||
12846 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
12847 | for ncn_progname in dlltool; do | |
12848 | if test -n "$ncn_target_tool_prefix"; then | |
12849 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12850 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12852 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12853 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12854 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12855 | else |
e8b05380 PB |
12856 | if test -n "$DLLTOOL_FOR_TARGET"; then |
12857 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12858 | else |
1c710c3c DJ |
12859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12860 | for as_dir in $PATH | |
12861 | do | |
12862 | IFS=$as_save_IFS | |
12863 | test -z "$as_dir" && as_dir=. | |
5213506e | 12864 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12866 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12868 | break 2 |
12869 | fi | |
12870 | done | |
5213506e RW |
12871 | done |
12872 | IFS=$as_save_IFS | |
1c710c3c | 12873 | |
4de997d1 PB |
12874 | fi |
12875 | fi | |
1c710c3c | 12876 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 12877 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12879 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 12880 | else |
5213506e RW |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12882 | $as_echo "no" >&6; } | |
4de997d1 | 12883 | fi |
4de997d1 | 12884 | |
5213506e | 12885 | |
e8b05380 PB |
12886 | fi |
12887 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
12888 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12889 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12891 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12892 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
5213506e | 12893 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12894 | else |
e8b05380 PB |
12895 | if test -n "$DLLTOOL_FOR_TARGET"; then |
12896 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 12897 | else |
1c710c3c DJ |
12898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12899 | for as_dir in $PATH | |
12900 | do | |
12901 | IFS=$as_save_IFS | |
12902 | test -z "$as_dir" && as_dir=. | |
5213506e | 12903 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12905 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 12906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12907 | break 2 |
12908 | fi | |
12909 | done | |
5213506e RW |
12910 | done |
12911 | IFS=$as_save_IFS | |
1c710c3c | 12912 | |
4de997d1 PB |
12913 | fi |
12914 | fi | |
1c710c3c | 12915 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 12916 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
12918 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 12919 | else |
5213506e RW |
12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12921 | $as_echo "no" >&6; } | |
4de997d1 | 12922 | fi |
1c710c3c | 12923 | |
5213506e | 12924 | |
e8b05380 PB |
12925 | fi |
12926 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
12927 | done | |
12928 | fi | |
1c710c3c | 12929 | |
e8b05380 PB |
12930 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
12931 | set dummy dlltool | |
12932 | if test $build = $target ; then | |
12933 | DLLTOOL_FOR_TARGET="$2" | |
12934 | else | |
12935 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12936 | fi | |
1c00b503 PB |
12937 | else |
12938 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
12939 | fi |
12940 | ||
d1f8db0c PB |
12941 | else |
12942 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
12943 | fi |
12944 | ||
4de997d1 | 12945 | |
e8b05380 PB |
12946 | |
12947 | ||
12948 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
12949 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
12951 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12952 | if test -x $with_build_time_tools/ld; then |
12953 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
12954 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
12956 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 12957 | else |
5213506e RW |
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12959 | $as_echo "no" >&6; } | |
d1f8db0c | 12960 | fi |
e8b05380 PB |
12961 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12962 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
12963 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
12964 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 12965 | fi |
e8b05380 | 12966 | fi |
3e19841a | 12967 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12968 | # Extract the first word of "ld", so it can be a program name with args. |
12969 | set dummy ld; ac_word=$2 | |
5213506e RW |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12971 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 12972 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
5213506e | 12973 | $as_echo_n "(cached) " >&6 |
4de997d1 | 12974 | else |
1c710c3c DJ |
12975 | case $LD_FOR_TARGET in |
12976 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12977 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
12978 | ;; | |
e8b05380 | 12979 | *) |
1c710c3c DJ |
12980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12981 | for as_dir in $gcc_cv_tool_dirs | |
12982 | do | |
12983 | IFS=$as_save_IFS | |
12984 | test -z "$as_dir" && as_dir=. | |
5213506e | 12985 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 12986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 12987 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12989 | break 2 |
12990 | fi | |
12991 | done | |
5213506e RW |
12992 | done |
12993 | IFS=$as_save_IFS | |
1c710c3c | 12994 | |
e8b05380 PB |
12995 | ;; |
12996 | esac | |
4de997d1 | 12997 | fi |
1c710c3c | 12998 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 12999 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
13001 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 13002 | else |
5213506e RW |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13004 | $as_echo "no" >&6; } | |
4de997d1 | 13005 | fi |
2693c0b0 | 13006 | |
5213506e | 13007 | |
e8b05380 PB |
13008 | fi |
13009 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
13010 | |
13011 | ||
13012 | if test -n "$LD_FOR_TARGET"; then | |
13013 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
13014 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
13015 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
13016 | fi | |
13017 | ||
13018 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
13019 | for ncn_progname in ld; do | |
13020 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13021 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13023 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13024 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 13025 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13026 | else |
13027 | if test -n "$LD_FOR_TARGET"; then | |
13028 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
13029 | else | |
13030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13031 | for as_dir in $PATH | |
13032 | do | |
13033 | IFS=$as_save_IFS | |
13034 | test -z "$as_dir" && as_dir=. | |
5213506e | 13035 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13037 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 13038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13039 | break 2 |
13040 | fi | |
13041 | done | |
5213506e RW |
13042 | done |
13043 | IFS=$as_save_IFS | |
278a7a38 AO |
13044 | |
13045 | fi | |
13046 | fi | |
13047 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
13048 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
13049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
13050 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 13051 | else |
5213506e RW |
13052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13053 | $as_echo "no" >&6; } | |
278a7a38 AO |
13054 | fi |
13055 | ||
5213506e | 13056 | |
278a7a38 AO |
13057 | done |
13058 | fi | |
13059 | ||
13060 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13061 | for ncn_progname in ld; do |
5213506e RW |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13063 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13064 | if test -x $with_build_time_tools/${ncn_progname}; then |
13065 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13067 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13068 | break |
13069 | else | |
5213506e RW |
13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13071 | $as_echo "no" >&6; } | |
e8b05380 PB |
13072 | fi |
13073 | done | |
ca9f4b81 AO |
13074 | fi |
13075 | ||
e8b05380 PB |
13076 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
13077 | for ncn_progname in ld; do | |
13078 | if test -n "$ncn_target_tool_prefix"; then | |
13079 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13080 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13082 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13083 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 13084 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13085 | else |
4de997d1 PB |
13086 | if test -n "$LD_FOR_TARGET"; then |
13087 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13088 | else |
1c710c3c DJ |
13089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13090 | for as_dir in $PATH | |
13091 | do | |
13092 | IFS=$as_save_IFS | |
13093 | test -z "$as_dir" && as_dir=. | |
5213506e | 13094 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13095 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13096 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13098 | break 2 |
13099 | fi | |
13100 | done | |
5213506e RW |
13101 | done |
13102 | IFS=$as_save_IFS | |
1c710c3c | 13103 | |
ca9f4b81 AO |
13104 | fi |
13105 | fi | |
1c710c3c | 13106 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 13107 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
13109 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 13110 | else |
5213506e RW |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13112 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13113 | fi |
13114 | ||
5213506e | 13115 | |
e8b05380 PB |
13116 | fi |
13117 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
13118 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13119 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13121 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13122 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
5213506e | 13123 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13124 | else |
2693c0b0 PB |
13125 | if test -n "$LD_FOR_TARGET"; then |
13126 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13127 | else |
1c710c3c DJ |
13128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13129 | for as_dir in $PATH | |
13130 | do | |
13131 | IFS=$as_save_IFS | |
13132 | test -z "$as_dir" && as_dir=. | |
5213506e | 13133 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13135 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 13136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13137 | break 2 |
13138 | fi | |
13139 | done | |
5213506e RW |
13140 | done |
13141 | IFS=$as_save_IFS | |
1c710c3c | 13142 | |
ca9f4b81 AO |
13143 | fi |
13144 | fi | |
1c710c3c | 13145 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 13146 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
13148 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 13149 | else |
5213506e RW |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13151 | $as_echo "no" >&6; } | |
ca9f4b81 | 13152 | fi |
1c710c3c | 13153 | |
5213506e | 13154 | |
e8b05380 PB |
13155 | fi |
13156 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
13157 | done | |
13158 | fi | |
1c710c3c | 13159 | |
2693c0b0 PB |
13160 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
13161 | set dummy ld | |
13162 | if test $build = $target ; then | |
13163 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 13164 | else |
2693c0b0 | 13165 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13166 | fi |
1c00b503 PB |
13167 | else |
13168 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
13169 | fi |
13170 | ||
d1f8db0c PB |
13171 | else |
13172 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
13173 | fi |
13174 | ||
13175 | ||
13176 | ||
13177 | ||
13178 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
13179 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
13181 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13182 | if test -x $with_build_time_tools/lipo; then |
13183 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
13184 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
13186 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 13187 | else |
5213506e RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13189 | $as_echo "no" >&6; } | |
d1f8db0c | 13190 | fi |
e8b05380 PB |
13191 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13192 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
13193 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
13194 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
13195 | fi |
13196 | fi | |
278a7a38 AO |
13197 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
13198 | # Extract the first word of "lipo", so it can be a program name with args. | |
13199 | set dummy lipo; ac_word=$2 | |
5213506e RW |
13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13201 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13202 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
5213506e | 13203 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13204 | else |
13205 | case $LIPO_FOR_TARGET in | |
13206 | [\\/]* | ?:[\\/]*) | |
13207 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
13208 | ;; | |
13209 | *) | |
13210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13211 | for as_dir in $gcc_cv_tool_dirs | |
13212 | do | |
13213 | IFS=$as_save_IFS | |
13214 | test -z "$as_dir" && as_dir=. | |
5213506e | 13215 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13217 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13219 | break 2 |
13220 | fi | |
13221 | done | |
5213506e RW |
13222 | done |
13223 | IFS=$as_save_IFS | |
278a7a38 AO |
13224 | |
13225 | ;; | |
13226 | esac | |
13227 | fi | |
13228 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 13229 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
13231 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 13232 | else |
5213506e RW |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13234 | $as_echo "no" >&6; } | |
278a7a38 AO |
13235 | fi |
13236 | ||
5213506e | 13237 | |
278a7a38 AO |
13238 | fi |
13239 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
13240 | ||
13241 | ||
13242 | if test -n "$LIPO_FOR_TARGET"; then | |
13243 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
13244 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
13245 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
13246 | fi | |
13247 | ||
13248 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
13249 | for ncn_progname in lipo; do | |
13250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13251 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13253 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13254 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 13255 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13256 | else |
278a7a38 AO |
13257 | if test -n "$LIPO_FOR_TARGET"; then |
13258 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
13259 | else | |
13260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13261 | for as_dir in $PATH | |
1c710c3c DJ |
13262 | do |
13263 | IFS=$as_save_IFS | |
13264 | test -z "$as_dir" && as_dir=. | |
5213506e | 13265 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13266 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13267 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 13268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13269 | break 2 |
13270 | fi | |
13271 | done | |
5213506e RW |
13272 | done |
13273 | IFS=$as_save_IFS | |
1c710c3c | 13274 | |
e8b05380 | 13275 | fi |
278a7a38 AO |
13276 | fi |
13277 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 13278 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
13280 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 13281 | else |
5213506e RW |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13283 | $as_echo "no" >&6; } | |
e8b05380 PB |
13284 | fi |
13285 | ||
5213506e | 13286 | |
278a7a38 | 13287 | done |
e8b05380 | 13288 | fi |
278a7a38 AO |
13289 | |
13290 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13291 | for ncn_progname in lipo; do |
5213506e RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13293 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13294 | if test -x $with_build_time_tools/${ncn_progname}; then |
13295 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13297 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13298 | break |
13299 | else | |
5213506e RW |
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13301 | $as_echo "no" >&6; } | |
e8b05380 PB |
13302 | fi |
13303 | done | |
13304 | fi | |
13305 | ||
13306 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
13307 | for ncn_progname in lipo; do | |
13308 | if test -n "$ncn_target_tool_prefix"; then | |
13309 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13310 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13312 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13313 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 13314 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
13315 | else |
13316 | if test -n "$LIPO_FOR_TARGET"; then | |
13317 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
13318 | else | |
1c710c3c DJ |
13319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13320 | for as_dir in $PATH | |
13321 | do | |
13322 | IFS=$as_save_IFS | |
13323 | test -z "$as_dir" && as_dir=. | |
5213506e | 13324 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13326 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13328 | break 2 |
13329 | fi | |
13330 | done | |
5213506e RW |
13331 | done |
13332 | IFS=$as_save_IFS | |
1c710c3c | 13333 | |
040b1c5a GK |
13334 | fi |
13335 | fi | |
1c710c3c | 13336 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 13337 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
13339 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 13340 | else |
5213506e RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13342 | $as_echo "no" >&6; } | |
040b1c5a GK |
13343 | fi |
13344 | ||
5213506e | 13345 | |
e8b05380 PB |
13346 | fi |
13347 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
13348 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13349 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13352 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
5213506e | 13353 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
13354 | else |
13355 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
13356 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
13357 | else | |
1c710c3c DJ |
13358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13359 | for as_dir in $PATH | |
13360 | do | |
13361 | IFS=$as_save_IFS | |
13362 | test -z "$as_dir" && as_dir=. | |
5213506e | 13363 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13365 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 13366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13367 | break 2 |
13368 | fi | |
13369 | done | |
5213506e RW |
13370 | done |
13371 | IFS=$as_save_IFS | |
1c710c3c | 13372 | |
040b1c5a GK |
13373 | fi |
13374 | fi | |
1c710c3c | 13375 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 13376 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
13378 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 13379 | else |
5213506e RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13381 | $as_echo "no" >&6; } | |
040b1c5a | 13382 | fi |
1c710c3c | 13383 | |
5213506e | 13384 | |
e8b05380 PB |
13385 | fi |
13386 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
13387 | done | |
13388 | fi | |
1c710c3c | 13389 | |
040b1c5a GK |
13390 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
13391 | set dummy lipo | |
13392 | if test $build = $target ; then | |
13393 | LIPO_FOR_TARGET="$2" | |
13394 | else | |
13395 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13396 | fi | |
1c00b503 PB |
13397 | else |
13398 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
13399 | fi |
13400 | ||
d1f8db0c PB |
13401 | else |
13402 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
13403 | fi |
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
13409 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
13411 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13412 | if test -x $with_build_time_tools/nm; then |
13413 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
13414 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
13415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
13416 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 13417 | else |
5213506e RW |
13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13419 | $as_echo "no" >&6; } | |
d1f8db0c | 13420 | fi |
e8b05380 PB |
13421 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13422 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
13423 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
13424 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
13425 | fi |
13426 | fi | |
3e19841a | 13427 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13428 | # Extract the first word of "nm", so it can be a program name with args. |
13429 | set dummy nm; ac_word=$2 | |
5213506e RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13431 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13432 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
5213506e | 13433 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13434 | else |
1c710c3c DJ |
13435 | case $NM_FOR_TARGET in |
13436 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13437 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
13438 | ;; | |
e8b05380 | 13439 | *) |
1c710c3c DJ |
13440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13441 | for as_dir in $gcc_cv_tool_dirs | |
13442 | do | |
13443 | IFS=$as_save_IFS | |
13444 | test -z "$as_dir" && as_dir=. | |
5213506e | 13445 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13447 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13449 | break 2 |
13450 | fi | |
13451 | done | |
5213506e RW |
13452 | done |
13453 | IFS=$as_save_IFS | |
1c710c3c | 13454 | |
e8b05380 PB |
13455 | ;; |
13456 | esac | |
13457 | fi | |
1c710c3c | 13458 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 13459 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
13460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
13461 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 13462 | else |
5213506e RW |
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13464 | $as_echo "no" >&6; } | |
e8b05380 PB |
13465 | fi |
13466 | ||
5213506e | 13467 | |
e8b05380 PB |
13468 | fi |
13469 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
13470 | |
13471 | ||
13472 | if test -n "$NM_FOR_TARGET"; then | |
13473 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
13474 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
13475 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
13476 | fi | |
13477 | ||
13478 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
13479 | for ncn_progname in nm; do | |
13480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13481 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13483 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13484 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 13485 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13486 | else |
13487 | if test -n "$NM_FOR_TARGET"; then | |
13488 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
13489 | else | |
13490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13491 | for as_dir in $PATH | |
13492 | do | |
13493 | IFS=$as_save_IFS | |
13494 | test -z "$as_dir" && as_dir=. | |
5213506e | 13495 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13497 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 13498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13499 | break 2 |
13500 | fi | |
13501 | done | |
5213506e RW |
13502 | done |
13503 | IFS=$as_save_IFS | |
278a7a38 AO |
13504 | |
13505 | fi | |
13506 | fi | |
13507 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
13508 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
13509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
13510 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 13511 | else |
5213506e RW |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13513 | $as_echo "no" >&6; } | |
278a7a38 AO |
13514 | fi |
13515 | ||
5213506e | 13516 | |
278a7a38 AO |
13517 | done |
13518 | fi | |
13519 | ||
13520 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13521 | for ncn_progname in nm; do |
5213506e RW |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13523 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13524 | if test -x $with_build_time_tools/${ncn_progname}; then |
13525 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13527 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13528 | break |
13529 | else | |
5213506e RW |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13531 | $as_echo "no" >&6; } | |
e8b05380 PB |
13532 | fi |
13533 | done | |
13534 | fi | |
13535 | ||
13536 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
13537 | for ncn_progname in nm; do | |
13538 | if test -n "$ncn_target_tool_prefix"; then | |
13539 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13540 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13542 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13543 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 13544 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13545 | else |
4de997d1 PB |
13546 | if test -n "$NM_FOR_TARGET"; then |
13547 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13548 | else |
1c710c3c DJ |
13549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13550 | for as_dir in $PATH | |
13551 | do | |
13552 | IFS=$as_save_IFS | |
13553 | test -z "$as_dir" && as_dir=. | |
5213506e | 13554 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13556 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13558 | break 2 |
13559 | fi | |
13560 | done | |
5213506e RW |
13561 | done |
13562 | IFS=$as_save_IFS | |
1c710c3c | 13563 | |
ca9f4b81 AO |
13564 | fi |
13565 | fi | |
1c710c3c | 13566 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 13567 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
13569 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 13570 | else |
5213506e RW |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13572 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13573 | fi |
13574 | ||
5213506e | 13575 | |
e8b05380 PB |
13576 | fi |
13577 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
13578 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13579 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13581 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13582 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
5213506e | 13583 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 13584 | else |
2693c0b0 PB |
13585 | if test -n "$NM_FOR_TARGET"; then |
13586 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13587 | else |
1c710c3c DJ |
13588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13589 | for as_dir in $PATH | |
13590 | do | |
13591 | IFS=$as_save_IFS | |
13592 | test -z "$as_dir" && as_dir=. | |
5213506e | 13593 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13594 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13595 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 13596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13597 | break 2 |
13598 | fi | |
13599 | done | |
5213506e RW |
13600 | done |
13601 | IFS=$as_save_IFS | |
1c710c3c | 13602 | |
ca9f4b81 AO |
13603 | fi |
13604 | fi | |
1c710c3c | 13605 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 13606 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
13608 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 13609 | else |
5213506e RW |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13611 | $as_echo "no" >&6; } | |
ca9f4b81 | 13612 | fi |
1c710c3c | 13613 | |
5213506e | 13614 | |
e8b05380 PB |
13615 | fi |
13616 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
13617 | done | |
13618 | fi | |
1c710c3c | 13619 | |
2693c0b0 PB |
13620 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
13621 | set dummy nm | |
13622 | if test $build = $target ; then | |
13623 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 13624 | else |
2693c0b0 | 13625 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13626 | fi |
1c00b503 PB |
13627 | else |
13628 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
13629 | fi |
13630 | ||
d1f8db0c PB |
13631 | else |
13632 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
13633 | fi |
13634 | ||
13635 | ||
13636 | ||
13637 | ||
9bccfdf5 AP |
13638 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
13639 | if test -n "$with_build_time_tools"; then | |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
13641 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
13642 | if test -x $with_build_time_tools/objcopy; then | |
13643 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
13644 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
13646 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
13647 | else | |
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13649 | $as_echo "no" >&6; } | |
13650 | fi | |
13651 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13652 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
13653 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
13654 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13655 | fi | |
13656 | fi | |
13657 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13658 | # Extract the first word of "objcopy", so it can be a program name with args. | |
13659 | set dummy objcopy; ac_word=$2 | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13661 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13662 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13663 | $as_echo_n "(cached) " >&6 |
13664 | else | |
13665 | case $OBJCOPY_FOR_TARGET in | |
13666 | [\\/]* | ?:[\\/]*) | |
13667 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
13668 | ;; | |
13669 | *) | |
13670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13671 | for as_dir in $gcc_cv_tool_dirs | |
13672 | do | |
13673 | IFS=$as_save_IFS | |
13674 | test -z "$as_dir" && as_dir=. | |
13675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13677 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
13678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13679 | break 2 | |
13680 | fi | |
13681 | done | |
13682 | done | |
13683 | IFS=$as_save_IFS | |
13684 | ||
13685 | ;; | |
13686 | esac | |
13687 | fi | |
13688 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
13689 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13691 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13692 | else | |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13694 | $as_echo "no" >&6; } | |
13695 | fi | |
13696 | ||
13697 | ||
13698 | fi | |
13699 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
13700 | ||
13701 | ||
13702 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13703 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
13704 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13705 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13706 | fi | |
13707 | ||
13708 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13709 | for ncn_progname in objcopy; do | |
13710 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13711 | set dummy ${ncn_progname}; ac_word=$2 | |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13713 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13714 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13715 | $as_echo_n "(cached) " >&6 |
13716 | else | |
13717 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13718 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13719 | else | |
13720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13721 | for as_dir in $PATH | |
13722 | do | |
13723 | IFS=$as_save_IFS | |
13724 | test -z "$as_dir" && as_dir=. | |
13725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13727 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
13728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13729 | break 2 | |
13730 | fi | |
13731 | done | |
13732 | done | |
13733 | IFS=$as_save_IFS | |
13734 | ||
13735 | fi | |
13736 | fi | |
13737 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13738 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13740 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13741 | else | |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13743 | $as_echo "no" >&6; } | |
13744 | fi | |
13745 | ||
13746 | ||
13747 | done | |
13748 | fi | |
13749 | ||
13750 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13751 | for ncn_progname in objcopy; do | |
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13753 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13754 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13755 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13757 | $as_echo "yes" >&6; } | |
13758 | break | |
13759 | else | |
13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13761 | $as_echo "no" >&6; } | |
13762 | fi | |
13763 | done | |
13764 | fi | |
13765 | ||
13766 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
13767 | for ncn_progname in objcopy; do | |
13768 | if test -n "$ncn_target_tool_prefix"; then | |
13769 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13770 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13772 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13773 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13774 | $as_echo_n "(cached) " >&6 |
13775 | else | |
13776 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13777 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13778 | else | |
13779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13780 | for as_dir in $PATH | |
13781 | do | |
13782 | IFS=$as_save_IFS | |
13783 | test -z "$as_dir" && as_dir=. | |
13784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13786 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
13787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13788 | break 2 | |
13789 | fi | |
13790 | done | |
13791 | done | |
13792 | IFS=$as_save_IFS | |
13793 | ||
13794 | fi | |
13795 | fi | |
13796 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13797 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13799 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13800 | else | |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13802 | $as_echo "no" >&6; } | |
13803 | fi | |
13804 | ||
13805 | ||
13806 | fi | |
13807 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
13808 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13809 | set dummy ${ncn_progname}; ac_word=$2 | |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13812 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
9bccfdf5 AP |
13813 | $as_echo_n "(cached) " >&6 |
13814 | else | |
13815 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13816 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
13817 | else | |
13818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13819 | for as_dir in $PATH | |
13820 | do | |
13821 | IFS=$as_save_IFS | |
13822 | test -z "$as_dir" && as_dir=. | |
13823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9bccfdf5 AP |
13825 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
13826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13827 | break 2 | |
13828 | fi | |
13829 | done | |
13830 | done | |
13831 | IFS=$as_save_IFS | |
13832 | ||
13833 | fi | |
13834 | fi | |
13835 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
13836 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
13838 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
13839 | else | |
13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13841 | $as_echo "no" >&6; } | |
13842 | fi | |
13843 | ||
13844 | ||
13845 | fi | |
13846 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
13847 | done | |
13848 | fi | |
13849 | ||
13850 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
13851 | set dummy objcopy | |
13852 | if test $build = $target ; then | |
13853 | OBJCOPY_FOR_TARGET="$2" | |
13854 | else | |
13855 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13856 | fi | |
13857 | else | |
13858 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
13859 | fi | |
13860 | ||
13861 | else | |
13862 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
13863 | fi | |
13864 | ||
13865 | ||
13866 | ||
13867 | ||
e8b05380 PB |
13868 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
13869 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
13871 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13872 | if test -x $with_build_time_tools/objdump; then |
13873 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
13874 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
13876 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 13877 | else |
5213506e RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13879 | $as_echo "no" >&6; } | |
d1f8db0c | 13880 | fi |
e8b05380 PB |
13881 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13882 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
13883 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
13884 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
13885 | fi |
13886 | fi | |
3e19841a | 13887 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13888 | # Extract the first word of "objdump", so it can be a program name with args. |
13889 | set dummy objdump; ac_word=$2 | |
5213506e RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13891 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13892 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13893 | $as_echo_n "(cached) " >&6 |
e8b05380 | 13894 | else |
1c710c3c DJ |
13895 | case $OBJDUMP_FOR_TARGET in |
13896 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13897 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
13898 | ;; | |
e8b05380 | 13899 | *) |
1c710c3c DJ |
13900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13901 | for as_dir in $gcc_cv_tool_dirs | |
13902 | do | |
13903 | IFS=$as_save_IFS | |
13904 | test -z "$as_dir" && as_dir=. | |
5213506e | 13905 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 13907 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13909 | break 2 |
13910 | fi | |
13911 | done | |
5213506e RW |
13912 | done |
13913 | IFS=$as_save_IFS | |
1c710c3c | 13914 | |
e8b05380 PB |
13915 | ;; |
13916 | esac | |
13917 | fi | |
1c710c3c | 13918 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 13919 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13921 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 13922 | else |
5213506e RW |
13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13924 | $as_echo "no" >&6; } | |
e8b05380 PB |
13925 | fi |
13926 | ||
5213506e | 13927 | |
e8b05380 PB |
13928 | fi |
13929 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
13930 | |
13931 | ||
13932 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13933 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
13934 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13935 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
13936 | fi | |
13937 | ||
13938 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13939 | for ncn_progname in objdump; do | |
13940 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13941 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13943 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13944 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 13945 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
13946 | else |
13947 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
13948 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
13949 | else | |
13950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13951 | for as_dir in $PATH | |
13952 | do | |
13953 | IFS=$as_save_IFS | |
13954 | test -z "$as_dir" && as_dir=. | |
5213506e | 13955 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 13957 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 13958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13959 | break 2 |
13960 | fi | |
13961 | done | |
5213506e RW |
13962 | done |
13963 | IFS=$as_save_IFS | |
278a7a38 AO |
13964 | |
13965 | fi | |
13966 | fi | |
13967 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
13968 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
13970 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 13971 | else |
5213506e RW |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13973 | $as_echo "no" >&6; } | |
278a7a38 AO |
13974 | fi |
13975 | ||
5213506e | 13976 | |
278a7a38 AO |
13977 | done |
13978 | fi | |
13979 | ||
13980 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13981 | for ncn_progname in objdump; do |
5213506e RW |
13982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13983 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13984 | if test -x $with_build_time_tools/${ncn_progname}; then |
13985 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13987 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13988 | break |
13989 | else | |
5213506e RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13991 | $as_echo "no" >&6; } | |
e8b05380 PB |
13992 | fi |
13993 | done | |
13994 | fi | |
13995 | ||
13996 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
13997 | for ncn_progname in objdump; do | |
13998 | if test -n "$ncn_target_tool_prefix"; then | |
13999 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14000 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14002 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14003 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 14004 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
14005 | else |
14006 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
14007 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
14008 | else | |
1c710c3c DJ |
14009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14010 | for as_dir in $PATH | |
14011 | do | |
14012 | IFS=$as_save_IFS | |
14013 | test -z "$as_dir" && as_dir=. | |
5213506e | 14014 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14016 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14018 | break 2 |
14019 | fi | |
14020 | done | |
5213506e RW |
14021 | done |
14022 | IFS=$as_save_IFS | |
1c710c3c | 14023 | |
d739199a DJ |
14024 | fi |
14025 | fi | |
1c710c3c | 14026 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 14027 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
14029 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 14030 | else |
5213506e RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14032 | $as_echo "no" >&6; } | |
d739199a DJ |
14033 | fi |
14034 | ||
5213506e | 14035 | |
e8b05380 PB |
14036 | fi |
14037 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
14038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 14039 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14042 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
5213506e | 14043 | $as_echo_n "(cached) " >&6 |
d739199a DJ |
14044 | else |
14045 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
14046 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
14047 | else | |
1c710c3c DJ |
14048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14049 | for as_dir in $PATH | |
14050 | do | |
14051 | IFS=$as_save_IFS | |
14052 | test -z "$as_dir" && as_dir=. | |
5213506e | 14053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14055 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 14056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14057 | break 2 |
14058 | fi | |
14059 | done | |
5213506e RW |
14060 | done |
14061 | IFS=$as_save_IFS | |
1c710c3c | 14062 | |
d739199a DJ |
14063 | fi |
14064 | fi | |
1c710c3c | 14065 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 14066 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
14067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
14068 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 14069 | else |
5213506e RW |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14071 | $as_echo "no" >&6; } | |
d739199a | 14072 | fi |
1c710c3c | 14073 | |
5213506e | 14074 | |
e8b05380 PB |
14075 | fi |
14076 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
14077 | done | |
14078 | fi | |
1c710c3c | 14079 | |
d739199a DJ |
14080 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
14081 | set dummy objdump | |
14082 | if test $build = $target ; then | |
14083 | OBJDUMP_FOR_TARGET="$2" | |
14084 | else | |
14085 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14086 | fi | |
1c00b503 PB |
14087 | else |
14088 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
14089 | fi |
14090 | ||
d1f8db0c PB |
14091 | else |
14092 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
14093 | fi |
14094 | ||
14095 | ||
14096 | ||
14097 | ||
e4a9a572 IS |
14098 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
14099 | if test -n "$with_build_time_tools"; then | |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
14101 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
14102 | if test -x $with_build_time_tools/otool; then | |
14103 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
14104 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
14106 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
14107 | else | |
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14109 | $as_echo "no" >&6; } | |
14110 | fi | |
14111 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14112 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
14113 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
14114 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
14115 | fi | |
14116 | fi | |
14117 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14118 | # Extract the first word of "otool", so it can be a program name with args. | |
14119 | set dummy otool; ac_word=$2 | |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14121 | $as_echo_n "checking for $ac_word... " >&6; } | |
14122 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
14123 | $as_echo_n "(cached) " >&6 | |
14124 | else | |
14125 | case $OTOOL_FOR_TARGET in | |
14126 | [\\/]* | ?:[\\/]*) | |
14127 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
14128 | ;; | |
14129 | *) | |
14130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14131 | for as_dir in $gcc_cv_tool_dirs | |
14132 | do | |
14133 | IFS=$as_save_IFS | |
14134 | test -z "$as_dir" && as_dir=. | |
14135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14137 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14139 | break 2 | |
14140 | fi | |
14141 | done | |
14142 | done | |
14143 | IFS=$as_save_IFS | |
14144 | ||
14145 | ;; | |
14146 | esac | |
14147 | fi | |
14148 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
14149 | if test -n "$OTOOL_FOR_TARGET"; then | |
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
14151 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
14152 | else | |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14154 | $as_echo "no" >&6; } | |
14155 | fi | |
14156 | ||
14157 | ||
14158 | fi | |
14159 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
14160 | ||
14161 | ||
14162 | if test -n "$OTOOL_FOR_TARGET"; then | |
14163 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
14164 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
14165 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
14166 | fi | |
14167 | ||
14168 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
14169 | for ncn_progname in otool; do | |
14170 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14171 | set dummy ${ncn_progname}; ac_word=$2 | |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14173 | $as_echo_n "checking for $ac_word... " >&6; } | |
14174 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
14175 | $as_echo_n "(cached) " >&6 | |
14176 | else | |
14177 | if test -n "$OTOOL_FOR_TARGET"; then | |
14178 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
14179 | else | |
14180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14181 | for as_dir in $PATH | |
14182 | do | |
14183 | IFS=$as_save_IFS | |
14184 | test -z "$as_dir" && as_dir=. | |
14185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14187 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
14188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14189 | break 2 | |
14190 | fi | |
14191 | done | |
14192 | done | |
14193 | IFS=$as_save_IFS | |
14194 | ||
14195 | fi | |
14196 | fi | |
14197 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
14198 | if test -n "$OTOOL_FOR_TARGET"; then | |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
14200 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
14201 | else | |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14203 | $as_echo "no" >&6; } | |
14204 | fi | |
14205 | ||
14206 | ||
14207 | done | |
14208 | fi | |
14209 | ||
14210 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14211 | for ncn_progname in otool; do | |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14213 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14214 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14215 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14217 | $as_echo "yes" >&6; } | |
14218 | break | |
14219 | else | |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14221 | $as_echo "no" >&6; } | |
14222 | fi | |
14223 | done | |
14224 | fi | |
14225 | ||
14226 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
14227 | for ncn_progname in otool; do | |
14228 | if test -n "$ncn_target_tool_prefix"; then | |
14229 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14230 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14232 | $as_echo_n "checking for $ac_word... " >&6; } | |
14233 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
14234 | $as_echo_n "(cached) " >&6 | |
14235 | else | |
14236 | if test -n "$OTOOL_FOR_TARGET"; then | |
14237 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
14238 | else | |
14239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14240 | for as_dir in $PATH | |
14241 | do | |
14242 | IFS=$as_save_IFS | |
14243 | test -z "$as_dir" && as_dir=. | |
14244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14246 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14248 | break 2 | |
14249 | fi | |
14250 | done | |
14251 | done | |
14252 | IFS=$as_save_IFS | |
14253 | ||
14254 | fi | |
14255 | fi | |
14256 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
14257 | if test -n "$OTOOL_FOR_TARGET"; then | |
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
14259 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
14260 | else | |
14261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14262 | $as_echo "no" >&6; } | |
14263 | fi | |
14264 | ||
14265 | ||
14266 | fi | |
14267 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
14268 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14269 | set dummy ${ncn_progname}; ac_word=$2 | |
14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14271 | $as_echo_n "checking for $ac_word... " >&6; } | |
14272 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
14273 | $as_echo_n "(cached) " >&6 | |
14274 | else | |
14275 | if test -n "$OTOOL_FOR_TARGET"; then | |
14276 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
14277 | else | |
14278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14279 | for as_dir in $PATH | |
14280 | do | |
14281 | IFS=$as_save_IFS | |
14282 | test -z "$as_dir" && as_dir=. | |
14283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14285 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
14286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14287 | break 2 | |
14288 | fi | |
14289 | done | |
14290 | done | |
14291 | IFS=$as_save_IFS | |
14292 | ||
14293 | fi | |
14294 | fi | |
14295 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
14296 | if test -n "$OTOOL_FOR_TARGET"; then | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
14298 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
14299 | else | |
14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14301 | $as_echo "no" >&6; } | |
14302 | fi | |
14303 | ||
14304 | ||
14305 | fi | |
14306 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
14307 | done | |
14308 | fi | |
14309 | ||
14310 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
14311 | set dummy otool | |
14312 | if test $build = $target ; then | |
14313 | OTOOL_FOR_TARGET="$2" | |
14314 | else | |
14315 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14316 | fi | |
14317 | else | |
14318 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
14319 | fi | |
14320 | ||
14321 | else | |
14322 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
14323 | fi | |
14324 | ||
14325 | ||
14326 | ||
14327 | ||
e8b05380 PB |
14328 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
14329 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
14331 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14332 | if test -x $with_build_time_tools/ranlib; then |
14333 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
14334 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
14336 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 14337 | else |
5213506e RW |
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14339 | $as_echo "no" >&6; } | |
d1f8db0c | 14340 | fi |
e8b05380 PB |
14341 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14342 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
14343 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
14344 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
14345 | fi |
14346 | fi | |
3e19841a | 14347 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14348 | # Extract the first word of "ranlib", so it can be a program name with args. |
14349 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14351 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14352 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 14353 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14354 | else |
1c710c3c DJ |
14355 | case $RANLIB_FOR_TARGET in |
14356 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14357 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
14358 | ;; | |
e8b05380 | 14359 | *) |
1c710c3c DJ |
14360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14361 | for as_dir in $gcc_cv_tool_dirs | |
14362 | do | |
14363 | IFS=$as_save_IFS | |
14364 | test -z "$as_dir" && as_dir=. | |
5213506e | 14365 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14367 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14369 | break 2 |
14370 | fi | |
14371 | done | |
5213506e RW |
14372 | done |
14373 | IFS=$as_save_IFS | |
1c710c3c | 14374 | |
e8b05380 PB |
14375 | ;; |
14376 | esac | |
14377 | fi | |
1c710c3c | 14378 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 14379 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
14380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
14381 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 14382 | else |
5213506e RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14384 | $as_echo "no" >&6; } | |
e8b05380 PB |
14385 | fi |
14386 | ||
5213506e | 14387 | |
e8b05380 PB |
14388 | fi |
14389 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
14390 | |
14391 | ||
14392 | if test -n "$RANLIB_FOR_TARGET"; then | |
14393 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
14394 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
14395 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
14396 | fi | |
14397 | ||
14398 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
14399 | for ncn_progname in ranlib; do | |
14400 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14401 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14403 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14404 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 14405 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14406 | else |
14407 | if test -n "$RANLIB_FOR_TARGET"; then | |
14408 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
14409 | else | |
14410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14411 | for as_dir in $PATH | |
14412 | do | |
14413 | IFS=$as_save_IFS | |
14414 | test -z "$as_dir" && as_dir=. | |
5213506e | 14415 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14417 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 14418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14419 | break 2 |
14420 | fi | |
14421 | done | |
5213506e RW |
14422 | done |
14423 | IFS=$as_save_IFS | |
278a7a38 AO |
14424 | |
14425 | fi | |
14426 | fi | |
14427 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
14428 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
14430 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 14431 | else |
5213506e RW |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14433 | $as_echo "no" >&6; } | |
278a7a38 AO |
14434 | fi |
14435 | ||
5213506e | 14436 | |
278a7a38 AO |
14437 | done |
14438 | fi | |
14439 | ||
14440 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14441 | for ncn_progname in ranlib; do |
5213506e RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14443 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14444 | if test -x $with_build_time_tools/${ncn_progname}; then |
14445 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14447 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14448 | break |
14449 | else | |
5213506e RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14451 | $as_echo "no" >&6; } | |
e8b05380 PB |
14452 | fi |
14453 | done | |
14454 | fi | |
14455 | ||
14456 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
14457 | for ncn_progname in ranlib; do | |
14458 | if test -n "$ncn_target_tool_prefix"; then | |
14459 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 14460 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14462 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14463 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 14464 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14465 | else |
4de997d1 PB |
14466 | if test -n "$RANLIB_FOR_TARGET"; then |
14467 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14468 | else |
1c710c3c DJ |
14469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14470 | for as_dir in $PATH | |
14471 | do | |
14472 | IFS=$as_save_IFS | |
14473 | test -z "$as_dir" && as_dir=. | |
5213506e | 14474 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14476 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14478 | break 2 |
14479 | fi | |
14480 | done | |
5213506e RW |
14481 | done |
14482 | IFS=$as_save_IFS | |
1c710c3c | 14483 | |
ca9f4b81 AO |
14484 | fi |
14485 | fi | |
1c710c3c | 14486 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 14487 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
14489 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 14490 | else |
5213506e RW |
14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14492 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
14493 | fi |
14494 | ||
5213506e | 14495 | |
e8b05380 PB |
14496 | fi |
14497 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
14498 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 14499 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14502 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
5213506e | 14503 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 14504 | else |
2693c0b0 PB |
14505 | if test -n "$RANLIB_FOR_TARGET"; then |
14506 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 14507 | else |
1c710c3c DJ |
14508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14509 | for as_dir in $PATH | |
14510 | do | |
14511 | IFS=$as_save_IFS | |
14512 | test -z "$as_dir" && as_dir=. | |
5213506e | 14513 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14515 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 14516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14517 | break 2 |
14518 | fi | |
14519 | done | |
5213506e RW |
14520 | done |
14521 | IFS=$as_save_IFS | |
1c710c3c | 14522 | |
ca9f4b81 AO |
14523 | fi |
14524 | fi | |
1c710c3c | 14525 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 14526 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
14527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
14528 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 14529 | else |
5213506e RW |
14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14531 | $as_echo "no" >&6; } | |
ca9f4b81 | 14532 | fi |
1c710c3c | 14533 | |
5213506e | 14534 | |
e8b05380 PB |
14535 | fi |
14536 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
14537 | done | |
14538 | fi | |
1c710c3c | 14539 | |
e8b05380 PB |
14540 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
14541 | set dummy ranlib | |
14542 | if test $build = $target ; then | |
14543 | RANLIB_FOR_TARGET="$2" | |
14544 | else | |
14545 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 14546 | fi |
1c00b503 PB |
14547 | else |
14548 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 14549 | fi |
2693c0b0 | 14550 | |
d1f8db0c PB |
14551 | else |
14552 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
14553 | fi |
14554 | ||
e8b05380 PB |
14555 | |
14556 | ||
14557 | ||
e7a82751 RM |
14558 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
14559 | if test -n "$with_build_time_tools"; then | |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
14561 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
14562 | if test -x $with_build_time_tools/readelf; then | |
14563 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
14564 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
14566 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
14567 | else | |
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14569 | $as_echo "no" >&6; } | |
14570 | fi | |
14571 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14572 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
14573 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
14574 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
14575 | fi | |
14576 | fi | |
14577 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14578 | # Extract the first word of "readelf", so it can be a program name with args. | |
14579 | set dummy readelf; ac_word=$2 | |
14580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14581 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14582 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14583 | $as_echo_n "(cached) " >&6 |
14584 | else | |
14585 | case $READELF_FOR_TARGET in | |
14586 | [\\/]* | ?:[\\/]*) | |
14587 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
14588 | ;; | |
14589 | *) | |
14590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14591 | for as_dir in $gcc_cv_tool_dirs | |
14592 | do | |
14593 | IFS=$as_save_IFS | |
14594 | test -z "$as_dir" && as_dir=. | |
14595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14597 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
14598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14599 | break 2 | |
14600 | fi | |
14601 | done | |
14602 | done | |
14603 | IFS=$as_save_IFS | |
14604 | ||
14605 | ;; | |
14606 | esac | |
14607 | fi | |
14608 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
14609 | if test -n "$READELF_FOR_TARGET"; then | |
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14611 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14612 | else | |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14614 | $as_echo "no" >&6; } | |
14615 | fi | |
14616 | ||
14617 | ||
14618 | fi | |
14619 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
14620 | ||
14621 | ||
14622 | if test -n "$READELF_FOR_TARGET"; then | |
14623 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
14624 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14625 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14626 | fi | |
14627 | ||
14628 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14629 | for ncn_progname in readelf; do | |
14630 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14631 | set dummy ${ncn_progname}; ac_word=$2 | |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14633 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14634 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14635 | $as_echo_n "(cached) " >&6 |
14636 | else | |
14637 | if test -n "$READELF_FOR_TARGET"; then | |
14638 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14639 | else | |
14640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14641 | for as_dir in $PATH | |
14642 | do | |
14643 | IFS=$as_save_IFS | |
14644 | test -z "$as_dir" && as_dir=. | |
14645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14647 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
14648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14649 | break 2 | |
14650 | fi | |
14651 | done | |
14652 | done | |
14653 | IFS=$as_save_IFS | |
14654 | ||
14655 | fi | |
14656 | fi | |
14657 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14658 | if test -n "$READELF_FOR_TARGET"; then | |
14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14660 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14661 | else | |
14662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14663 | $as_echo "no" >&6; } | |
14664 | fi | |
14665 | ||
14666 | ||
14667 | done | |
14668 | fi | |
14669 | ||
14670 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14671 | for ncn_progname in readelf; do | |
14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14673 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14674 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14675 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14677 | $as_echo "yes" >&6; } | |
14678 | break | |
14679 | else | |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14681 | $as_echo "no" >&6; } | |
14682 | fi | |
14683 | done | |
14684 | fi | |
14685 | ||
14686 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
14687 | for ncn_progname in readelf; do | |
14688 | if test -n "$ncn_target_tool_prefix"; then | |
14689 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14690 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14692 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14693 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14694 | $as_echo_n "(cached) " >&6 |
14695 | else | |
14696 | if test -n "$READELF_FOR_TARGET"; then | |
14697 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14698 | else | |
14699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14700 | for as_dir in $PATH | |
14701 | do | |
14702 | IFS=$as_save_IFS | |
14703 | test -z "$as_dir" && as_dir=. | |
14704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14706 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
14707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14708 | break 2 | |
14709 | fi | |
14710 | done | |
14711 | done | |
14712 | IFS=$as_save_IFS | |
14713 | ||
14714 | fi | |
14715 | fi | |
14716 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14717 | if test -n "$READELF_FOR_TARGET"; then | |
14718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14719 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14720 | else | |
14721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14722 | $as_echo "no" >&6; } | |
14723 | fi | |
14724 | ||
14725 | ||
14726 | fi | |
14727 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
14728 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14729 | set dummy ${ncn_progname}; ac_word=$2 | |
14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14732 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
e7a82751 RM |
14733 | $as_echo_n "(cached) " >&6 |
14734 | else | |
14735 | if test -n "$READELF_FOR_TARGET"; then | |
14736 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
14737 | else | |
14738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14739 | for as_dir in $PATH | |
14740 | do | |
14741 | IFS=$as_save_IFS | |
14742 | test -z "$as_dir" && as_dir=. | |
14743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 14744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e7a82751 RM |
14745 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
14746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14747 | break 2 | |
14748 | fi | |
14749 | done | |
14750 | done | |
14751 | IFS=$as_save_IFS | |
14752 | ||
14753 | fi | |
14754 | fi | |
14755 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
14756 | if test -n "$READELF_FOR_TARGET"; then | |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
14758 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
14759 | else | |
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14761 | $as_echo "no" >&6; } | |
14762 | fi | |
14763 | ||
14764 | ||
14765 | fi | |
14766 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
14767 | done | |
14768 | fi | |
14769 | ||
14770 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
14771 | set dummy readelf | |
14772 | if test $build = $target ; then | |
14773 | READELF_FOR_TARGET="$2" | |
14774 | else | |
14775 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14776 | fi | |
14777 | else | |
14778 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
14779 | fi | |
14780 | ||
14781 | else | |
14782 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
14783 | fi | |
14784 | ||
14785 | ||
14786 | ||
14787 | ||
e8b05380 PB |
14788 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
14789 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
14791 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14792 | if test -x $with_build_time_tools/strip; then |
14793 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
14794 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
14795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
14796 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 14797 | else |
5213506e RW |
14798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14799 | $as_echo "no" >&6; } | |
d1f8db0c | 14800 | fi |
e8b05380 PB |
14801 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14802 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
14803 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
14804 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
14805 | fi |
14806 | fi | |
3e19841a | 14807 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
14808 | # Extract the first word of "strip", so it can be a program name with args. |
14809 | set dummy strip; ac_word=$2 | |
5213506e RW |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14812 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14813 | $as_echo_n "(cached) " >&6 |
e8b05380 | 14814 | else |
1c710c3c DJ |
14815 | case $STRIP_FOR_TARGET in |
14816 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
14817 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
14818 | ;; | |
e8b05380 | 14819 | *) |
1c710c3c DJ |
14820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14821 | for as_dir in $gcc_cv_tool_dirs | |
14822 | do | |
14823 | IFS=$as_save_IFS | |
14824 | test -z "$as_dir" && as_dir=. | |
5213506e | 14825 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14827 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 14828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14829 | break 2 |
14830 | fi | |
14831 | done | |
5213506e RW |
14832 | done |
14833 | IFS=$as_save_IFS | |
1c710c3c | 14834 | |
e8b05380 PB |
14835 | ;; |
14836 | esac | |
14837 | fi | |
1c710c3c | 14838 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 14839 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14841 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 14842 | else |
5213506e RW |
14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14844 | $as_echo "no" >&6; } | |
e8b05380 PB |
14845 | fi |
14846 | ||
5213506e | 14847 | |
e8b05380 PB |
14848 | fi |
14849 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
14850 | |
14851 | ||
14852 | if test -n "$STRIP_FOR_TARGET"; then | |
14853 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
14854 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14855 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
14856 | fi | |
14857 | ||
14858 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14859 | for ncn_progname in strip; do | |
14860 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14861 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14863 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14864 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14865 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
14866 | else |
14867 | if test -n "$STRIP_FOR_TARGET"; then | |
14868 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
14869 | else | |
14870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14871 | for as_dir in $PATH | |
14872 | do | |
14873 | IFS=$as_save_IFS | |
14874 | test -z "$as_dir" && as_dir=. | |
5213506e | 14875 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 14877 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 14878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
14879 | break 2 |
14880 | fi | |
14881 | done | |
5213506e RW |
14882 | done |
14883 | IFS=$as_save_IFS | |
278a7a38 AO |
14884 | |
14885 | fi | |
14886 | fi | |
14887 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
14888 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
14889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14890 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 14891 | else |
5213506e RW |
14892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14893 | $as_echo "no" >&6; } | |
278a7a38 AO |
14894 | fi |
14895 | ||
5213506e | 14896 | |
278a7a38 AO |
14897 | done |
14898 | fi | |
14899 | ||
14900 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 14901 | for ncn_progname in strip; do |
5213506e RW |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14903 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
14904 | if test -x $with_build_time_tools/${ncn_progname}; then |
14905 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14907 | $as_echo "yes" >&6; } | |
e8b05380 PB |
14908 | break |
14909 | else | |
5213506e RW |
14910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14911 | $as_echo "no" >&6; } | |
e8b05380 PB |
14912 | fi |
14913 | done | |
14914 | fi | |
14915 | ||
14916 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
14917 | for ncn_progname in strip; do | |
14918 | if test -n "$ncn_target_tool_prefix"; then | |
14919 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14920 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14922 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14923 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14924 | $as_echo_n "(cached) " >&6 |
af71363e AS |
14925 | else |
14926 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
14927 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
14928 | else | |
14929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14930 | for as_dir in $PATH | |
14931 | do | |
14932 | IFS=$as_save_IFS | |
14933 | test -z "$as_dir" && as_dir=. | |
5213506e | 14934 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14936 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 14937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14938 | break 2 |
14939 | fi | |
14940 | done | |
5213506e RW |
14941 | done |
14942 | IFS=$as_save_IFS | |
1c710c3c | 14943 | |
040b1c5a GK |
14944 | fi |
14945 | fi | |
1c710c3c | 14946 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 14947 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14949 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 14950 | else |
5213506e RW |
14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14952 | $as_echo "no" >&6; } | |
040b1c5a GK |
14953 | fi |
14954 | ||
5213506e | 14955 | |
e8b05380 PB |
14956 | fi |
14957 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
14958 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 14959 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
14960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14961 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 14962 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
5213506e | 14963 | $as_echo_n "(cached) " >&6 |
040b1c5a GK |
14964 | else |
14965 | if test -n "$STRIP_FOR_TARGET"; then | |
14966 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
14967 | else | |
1c710c3c DJ |
14968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14969 | for as_dir in $PATH | |
14970 | do | |
14971 | IFS=$as_save_IFS | |
14972 | test -z "$as_dir" && as_dir=. | |
5213506e | 14973 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 14974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 14975 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 14976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
14977 | break 2 |
14978 | fi | |
14979 | done | |
5213506e RW |
14980 | done |
14981 | IFS=$as_save_IFS | |
1c710c3c | 14982 | |
040b1c5a GK |
14983 | fi |
14984 | fi | |
1c710c3c | 14985 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 14986 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
14988 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 14989 | else |
5213506e RW |
14990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14991 | $as_echo "no" >&6; } | |
040b1c5a | 14992 | fi |
1c710c3c | 14993 | |
5213506e | 14994 | |
e8b05380 PB |
14995 | fi |
14996 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
14997 | done | |
14998 | fi | |
1c710c3c | 14999 | |
040b1c5a GK |
15000 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
15001 | set dummy strip | |
15002 | if test $build = $target ; then | |
15003 | STRIP_FOR_TARGET="$2" | |
15004 | else | |
15005 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15006 | fi | |
1c00b503 PB |
15007 | else |
15008 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
15009 | fi |
15010 | ||
d1f8db0c PB |
15011 | else |
15012 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
15013 | fi |
15014 | ||
15015 | ||
15016 | ||
15017 | ||
15018 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
15019 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
15021 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15022 | if test -x $with_build_time_tools/windres; then |
15023 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
15024 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
15026 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 15027 | else |
5213506e RW |
15028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15029 | $as_echo "no" >&6; } | |
d1f8db0c | 15030 | fi |
e8b05380 PB |
15031 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15032 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
15033 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
15034 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
15035 | fi |
15036 | fi | |
3e19841a | 15037 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
15038 | # Extract the first word of "windres", so it can be a program name with args. |
15039 | set dummy windres; ac_word=$2 | |
5213506e RW |
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15042 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 15043 | $as_echo_n "(cached) " >&6 |
e8b05380 | 15044 | else |
1c710c3c DJ |
15045 | case $WINDRES_FOR_TARGET in |
15046 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
15047 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
15048 | ;; | |
e8b05380 | 15049 | *) |
1c710c3c DJ |
15050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15051 | for as_dir in $gcc_cv_tool_dirs | |
15052 | do | |
15053 | IFS=$as_save_IFS | |
15054 | test -z "$as_dir" && as_dir=. | |
5213506e | 15055 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15056 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15057 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15059 | break 2 |
15060 | fi | |
15061 | done | |
5213506e RW |
15062 | done |
15063 | IFS=$as_save_IFS | |
1c710c3c | 15064 | |
e8b05380 PB |
15065 | ;; |
15066 | esac | |
15067 | fi | |
1c710c3c | 15068 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 15069 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
15071 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 15072 | else |
5213506e RW |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15074 | $as_echo "no" >&6; } | |
e8b05380 PB |
15075 | fi |
15076 | ||
5213506e | 15077 | |
e8b05380 PB |
15078 | fi |
15079 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
15080 | |
15081 | ||
15082 | if test -n "$WINDRES_FOR_TARGET"; then | |
15083 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
15084 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
15085 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
15086 | fi | |
15087 | ||
15088 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
15089 | for ncn_progname in windres; do | |
15090 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15091 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15093 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15094 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 15095 | $as_echo_n "(cached) " >&6 |
278a7a38 AO |
15096 | else |
15097 | if test -n "$WINDRES_FOR_TARGET"; then | |
15098 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
15099 | else | |
15100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15101 | for as_dir in $PATH | |
15102 | do | |
15103 | IFS=$as_save_IFS | |
15104 | test -z "$as_dir" && as_dir=. | |
5213506e | 15105 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
278a7a38 | 15107 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 15108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
15109 | break 2 |
15110 | fi | |
15111 | done | |
5213506e RW |
15112 | done |
15113 | IFS=$as_save_IFS | |
278a7a38 AO |
15114 | |
15115 | fi | |
15116 | fi | |
15117 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
15118 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
15119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
15120 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 15121 | else |
5213506e RW |
15122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15123 | $as_echo "no" >&6; } | |
278a7a38 AO |
15124 | fi |
15125 | ||
5213506e | 15126 | |
278a7a38 AO |
15127 | done |
15128 | fi | |
15129 | ||
15130 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 15131 | for ncn_progname in windres; do |
5213506e RW |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15133 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
15134 | if test -x $with_build_time_tools/${ncn_progname}; then |
15135 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15137 | $as_echo "yes" >&6; } | |
e8b05380 PB |
15138 | break |
15139 | else | |
5213506e RW |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15141 | $as_echo "no" >&6; } | |
e8b05380 PB |
15142 | fi |
15143 | done | |
15144 | fi | |
15145 | ||
15146 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
15147 | for ncn_progname in windres; do | |
15148 | if test -n "$ncn_target_tool_prefix"; then | |
15149 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15150 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15152 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15153 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 15154 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15155 | else |
4de997d1 PB |
15156 | if test -n "$WINDRES_FOR_TARGET"; then |
15157 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15158 | else |
1c710c3c DJ |
15159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15160 | for as_dir in $PATH | |
15161 | do | |
15162 | IFS=$as_save_IFS | |
15163 | test -z "$as_dir" && as_dir=. | |
5213506e | 15164 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15166 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15168 | break 2 |
15169 | fi | |
15170 | done | |
5213506e RW |
15171 | done |
15172 | IFS=$as_save_IFS | |
1c710c3c | 15173 | |
ca9f4b81 AO |
15174 | fi |
15175 | fi | |
1c710c3c | 15176 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 15177 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
15178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
15179 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 15180 | else |
5213506e RW |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15182 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
15183 | fi |
15184 | ||
5213506e | 15185 | |
e8b05380 PB |
15186 | fi |
15187 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
15188 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 15189 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15191 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15192 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
5213506e | 15193 | $as_echo_n "(cached) " >&6 |
ca9f4b81 | 15194 | else |
2693c0b0 PB |
15195 | if test -n "$WINDRES_FOR_TARGET"; then |
15196 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 15197 | else |
1c710c3c DJ |
15198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15199 | for as_dir in $PATH | |
15200 | do | |
15201 | IFS=$as_save_IFS | |
15202 | test -z "$as_dir" && as_dir=. | |
5213506e | 15203 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15204 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1c710c3c | 15205 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 15206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
15207 | break 2 |
15208 | fi | |
15209 | done | |
5213506e RW |
15210 | done |
15211 | IFS=$as_save_IFS | |
1c710c3c | 15212 | |
ca9f4b81 AO |
15213 | fi |
15214 | fi | |
1c710c3c | 15215 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 15216 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
15218 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 15219 | else |
5213506e RW |
15220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15221 | $as_echo "no" >&6; } | |
ca9f4b81 | 15222 | fi |
1c710c3c | 15223 | |
5213506e | 15224 | |
e8b05380 PB |
15225 | fi |
15226 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
15227 | done | |
15228 | fi | |
1c710c3c | 15229 | |
2693c0b0 PB |
15230 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
15231 | set dummy windres | |
15232 | if test $build = $target ; then | |
15233 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 15234 | else |
2693c0b0 | 15235 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 15236 | fi |
1c00b503 PB |
15237 | else |
15238 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
15239 | fi |
15240 | ||
d1f8db0c PB |
15241 | else |
15242 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
15243 | fi |
15244 | ||
4977bab6 | 15245 | |
901119ae KT |
15246 | |
15247 | ||
15248 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
15249 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
15251 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
15252 | if test -x $with_build_time_tools/windmc; then |
15253 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
15254 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
15256 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 15257 | else |
5213506e RW |
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15259 | $as_echo "no" >&6; } | |
901119ae KT |
15260 | fi |
15261 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15262 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
15263 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
15264 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
15265 | fi |
15266 | fi | |
15267 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15268 | # Extract the first word of "windmc", so it can be a program name with args. | |
15269 | set dummy windmc; ac_word=$2 | |
5213506e RW |
15270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15271 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15272 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 15273 | $as_echo_n "(cached) " >&6 |
901119ae KT |
15274 | else |
15275 | case $WINDMC_FOR_TARGET in | |
15276 | [\\/]* | ?:[\\/]*) | |
15277 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
15278 | ;; | |
15279 | *) | |
15280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15281 | for as_dir in $gcc_cv_tool_dirs | |
15282 | do | |
15283 | IFS=$as_save_IFS | |
15284 | test -z "$as_dir" && as_dir=. | |
5213506e | 15285 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 15287 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 15288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
15289 | break 2 |
15290 | fi | |
15291 | done | |
5213506e RW |
15292 | done |
15293 | IFS=$as_save_IFS | |
901119ae KT |
15294 | |
15295 | ;; | |
15296 | esac | |
15297 | fi | |
15298 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 15299 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
15300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
15301 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 15302 | else |
5213506e RW |
15303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15304 | $as_echo "no" >&6; } | |
901119ae KT |
15305 | fi |
15306 | ||
5213506e | 15307 | |
901119ae KT |
15308 | fi |
15309 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
15310 | ||
15311 | ||
15312 | if test -n "$WINDMC_FOR_TARGET"; then | |
15313 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
15314 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
15315 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
15316 | fi | |
15317 | ||
15318 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
15319 | for ncn_progname in windmc; do | |
15320 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15321 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15323 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15324 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 15325 | $as_echo_n "(cached) " >&6 |
901119ae KT |
15326 | else |
15327 | if test -n "$WINDMC_FOR_TARGET"; then | |
15328 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
15329 | else | |
15330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15331 | for as_dir in $PATH | |
15332 | do | |
15333 | IFS=$as_save_IFS | |
15334 | test -z "$as_dir" && as_dir=. | |
5213506e | 15335 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15336 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 15337 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 15338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
15339 | break 2 |
15340 | fi | |
15341 | done | |
5213506e RW |
15342 | done |
15343 | IFS=$as_save_IFS | |
901119ae KT |
15344 | |
15345 | fi | |
15346 | fi | |
15347 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
15348 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
15349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
15350 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 15351 | else |
5213506e RW |
15352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15353 | $as_echo "no" >&6; } | |
901119ae KT |
15354 | fi |
15355 | ||
5213506e | 15356 | |
901119ae KT |
15357 | done |
15358 | fi | |
15359 | ||
15360 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15361 | for ncn_progname in windmc; do | |
5213506e RW |
15362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15363 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
15364 | if test -x $with_build_time_tools/${ncn_progname}; then |
15365 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
15366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15367 | $as_echo "yes" >&6; } | |
901119ae KT |
15368 | break |
15369 | else | |
5213506e RW |
15370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15371 | $as_echo "no" >&6; } | |
901119ae KT |
15372 | fi |
15373 | done | |
15374 | fi | |
15375 | ||
15376 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
15377 | for ncn_progname in windmc; do | |
15378 | if test -n "$ncn_target_tool_prefix"; then | |
15379 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15380 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15382 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15383 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 15384 | $as_echo_n "(cached) " >&6 |
901119ae KT |
15385 | else |
15386 | if test -n "$WINDMC_FOR_TARGET"; then | |
15387 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
15388 | else | |
15389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15390 | for as_dir in $PATH | |
15391 | do | |
15392 | IFS=$as_save_IFS | |
15393 | test -z "$as_dir" && as_dir=. | |
5213506e | 15394 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 15396 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 15397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
15398 | break 2 |
15399 | fi | |
15400 | done | |
5213506e RW |
15401 | done |
15402 | IFS=$as_save_IFS | |
901119ae KT |
15403 | |
15404 | fi | |
15405 | fi | |
15406 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
15407 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
15408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
15409 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 15410 | else |
5213506e RW |
15411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15412 | $as_echo "no" >&6; } | |
901119ae KT |
15413 | fi |
15414 | ||
5213506e | 15415 | |
901119ae KT |
15416 | fi |
15417 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
15418 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15419 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15421 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15422 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
5213506e | 15423 | $as_echo_n "(cached) " >&6 |
901119ae KT |
15424 | else |
15425 | if test -n "$WINDMC_FOR_TARGET"; then | |
15426 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
15427 | else | |
15428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15429 | for as_dir in $PATH | |
15430 | do | |
15431 | IFS=$as_save_IFS | |
15432 | test -z "$as_dir" && as_dir=. | |
5213506e | 15433 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 15434 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
901119ae | 15435 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 15436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
15437 | break 2 |
15438 | fi | |
15439 | done | |
5213506e RW |
15440 | done |
15441 | IFS=$as_save_IFS | |
901119ae KT |
15442 | |
15443 | fi | |
15444 | fi | |
15445 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
15446 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
15447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
15448 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 15449 | else |
5213506e RW |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15451 | $as_echo "no" >&6; } | |
901119ae KT |
15452 | fi |
15453 | ||
5213506e | 15454 | |
901119ae KT |
15455 | fi |
15456 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
15457 | done | |
15458 | fi | |
15459 | ||
15460 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
15461 | set dummy windmc | |
15462 | if test $build = $target ; then | |
15463 | WINDMC_FOR_TARGET="$2" | |
15464 | else | |
15465 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15466 | fi | |
1c00b503 PB |
15467 | else |
15468 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
15469 | fi |
15470 | ||
15471 | else | |
15472 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
15473 | fi | |
15474 | ||
15475 | ||
2abefe3d PB |
15476 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
15477 | ||
5213506e RW |
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
15479 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 15480 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15481 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
15482 | # We already found the complete path | |
172e41aa | 15483 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15485 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15486 | else |
15487 | # Canadian cross, just use what we found | |
5213506e RW |
15488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15489 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15490 | fi |
2abefe3d PB |
15491 | else |
15492 | ok=yes | |
15493 | case " ${configdirs} " in | |
15494 | *" binutils "*) ;; | |
15495 | *) ok=no ;; | |
15496 | esac | |
1c710c3c | 15497 | |
2abefe3d PB |
15498 | if test $ok = yes; then |
15499 | # An in-tree tool is available and we can use it | |
15500 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15502 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15503 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
15504 | # We already found the complete path | |
172e41aa | 15505 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15507 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15508 | elif test "x$target" = "x$host"; then |
15509 | # We can use an host tool | |
15510 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15512 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15513 | else |
15514 | # We need a cross tool | |
5213506e RW |
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15516 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15517 | fi |
15518 | fi | |
0b0dc272 | 15519 | |
5213506e RW |
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
15521 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 15522 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15523 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
15524 | # We already found the complete path | |
172e41aa | 15525 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15527 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15528 | else |
15529 | # Canadian cross, just use what we found | |
5213506e RW |
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15531 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15532 | fi |
2abefe3d PB |
15533 | else |
15534 | ok=yes | |
15535 | case " ${configdirs} " in | |
15536 | *" gas "*) ;; | |
15537 | *) ok=no ;; | |
15538 | esac | |
1c710c3c | 15539 | |
2abefe3d PB |
15540 | if test $ok = yes; then |
15541 | # An in-tree tool is available and we can use it | |
15542 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
15543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15544 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15545 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
15546 | # We already found the complete path | |
172e41aa | 15547 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
15548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15549 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15550 | elif test "x$target" = "x$host"; then |
15551 | # We can use an host tool | |
15552 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15554 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15555 | else |
15556 | # We need a cross tool | |
5213506e RW |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15558 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15559 | fi |
15560 | fi | |
0b0dc272 | 15561 | |
5213506e RW |
15562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
15563 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 15564 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15565 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
15566 | # We already found the complete path | |
172e41aa | 15567 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15569 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15570 | else |
15571 | # Canadian cross, just use what we found | |
5213506e RW |
15572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15573 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15574 | fi |
2abefe3d PB |
15575 | else |
15576 | ok=yes | |
15577 | case " ${configdirs} " in | |
15578 | *" gcc "*) ;; | |
15579 | *) ok=no ;; | |
15580 | esac | |
1c710c3c | 15581 | |
2abefe3d PB |
15582 | if test $ok = yes; then |
15583 | # An in-tree tool is available and we can use it | |
15584 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15586 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15587 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
15588 | # We already found the complete path | |
172e41aa | 15589 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
15590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15591 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15592 | elif test "x$target" = "x$host"; then |
15593 | # We can use an host tool | |
15594 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15596 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15597 | else |
15598 | # We need a cross tool | |
5213506e RW |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15600 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15601 | fi |
15602 | fi | |
0b0dc272 | 15603 | |
5213506e RW |
15604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
15605 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 15606 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15607 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
15608 | # We already found the complete path | |
172e41aa | 15609 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15611 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15612 | else |
15613 | # Canadian cross, just use what we found | |
5213506e RW |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15615 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15616 | fi |
2abefe3d PB |
15617 | else |
15618 | ok=yes | |
15619 | case " ${configdirs} " in | |
15620 | *" gcc "*) ;; | |
15621 | *) ok=no ;; | |
15622 | esac | |
15623 | case ,${enable_languages}, in | |
15624 | *,c++,*) ;; | |
15625 | *) ok=no ;; | |
15626 | esac | |
15627 | if test $ok = yes; then | |
15628 | # An in-tree tool is available and we can use it | |
2077db1b | 15629 | 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 |
15630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15631 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15632 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
15633 | # We already found the complete path | |
172e41aa | 15634 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15636 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15637 | elif test "x$target" = "x$host"; then |
15638 | # We can use an host tool | |
15639 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
15640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15641 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15642 | else |
15643 | # We need a cross tool | |
5213506e RW |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15645 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15646 | fi |
15647 | fi | |
0b0dc272 | 15648 | |
5213506e RW |
15649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
15650 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 15651 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15652 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
15653 | # We already found the complete path | |
172e41aa | 15654 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15657 | else |
15658 | # Canadian cross, just use what we found | |
5213506e RW |
15659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15660 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15661 | fi |
2abefe3d PB |
15662 | else |
15663 | ok=yes | |
15664 | case " ${configdirs} " in | |
15665 | *" gcc "*) ;; | |
15666 | *) ok=no ;; | |
15667 | esac | |
15668 | case ,${enable_languages}, in | |
15669 | *,c++,*) ;; | |
15670 | *) ok=no ;; | |
15671 | esac | |
15672 | if test $ok = yes; then | |
15673 | # An in-tree tool is available and we can use it | |
2077db1b | 15674 | 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 |
15675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15676 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15677 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
15678 | # We already found the complete path | |
172e41aa | 15679 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15682 | elif test "x$target" = "x$host"; then |
15683 | # We can use an host tool | |
15684 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15686 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15687 | else |
15688 | # We need a cross tool | |
5213506e RW |
15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15690 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15691 | fi |
15692 | fi | |
0b0dc272 | 15693 | |
5213506e RW |
15694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
15695 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 15696 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15697 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
15698 | # We already found the complete path | |
172e41aa | 15699 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
15700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15702 | else |
15703 | # Canadian cross, just use what we found | |
5213506e RW |
15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15705 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15706 | fi |
2abefe3d PB |
15707 | else |
15708 | ok=yes | |
15709 | case " ${configdirs} " in | |
15710 | *" binutils "*) ;; | |
15711 | *) ok=no ;; | |
15712 | esac | |
1c710c3c | 15713 | |
2abefe3d PB |
15714 | if test $ok = yes; then |
15715 | # An in-tree tool is available and we can use it | |
15716 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15718 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15719 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
15720 | # We already found the complete path | |
172e41aa | 15721 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15723 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15724 | elif test "x$target" = "x$host"; then |
15725 | # We can use an host tool | |
15726 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15728 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15729 | else |
15730 | # We need a cross tool | |
5213506e RW |
15731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15732 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15733 | fi |
15734 | fi | |
0b0dc272 | 15735 | |
5213506e RW |
15736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
15737 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 15738 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15739 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
15740 | # We already found the complete path | |
172e41aa | 15741 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
15742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15743 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15744 | else |
15745 | # Canadian cross, just use what we found | |
5213506e RW |
15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15747 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15748 | fi |
2abefe3d PB |
15749 | else |
15750 | ok=yes | |
15751 | case " ${configdirs} " in | |
15752 | *" gcc "*) ;; | |
15753 | *) ok=no ;; | |
15754 | esac | |
1c710c3c | 15755 | |
2abefe3d PB |
15756 | if test $ok = yes; then |
15757 | # An in-tree tool is available and we can use it | |
15758 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
15759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15760 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15761 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
15762 | # We already found the complete path | |
172e41aa | 15763 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
15764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15765 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15766 | elif test "x$target" = "x$host"; then |
15767 | # We can use an host tool | |
15768 | GCC_FOR_TARGET='$()' | |
5213506e RW |
15769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15770 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15771 | else |
15772 | # We need a cross tool | |
5213506e RW |
15773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15774 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15775 | fi |
15776 | fi | |
0b0dc272 | 15777 | |
5213506e RW |
15778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
15779 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 15780 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15781 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
15782 | # We already found the complete path | |
172e41aa | 15783 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15785 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15786 | else |
15787 | # Canadian cross, just use what we found | |
5213506e RW |
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15789 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15790 | fi |
2abefe3d PB |
15791 | else |
15792 | ok=yes | |
15793 | case " ${configdirs} " in | |
15794 | *" gcc "*) ;; | |
15795 | *) ok=no ;; | |
15796 | esac | |
15797 | case ,${enable_languages}, in | |
15798 | *,fortran,*) ;; | |
15799 | *) ok=no ;; | |
15800 | esac | |
15801 | if test $ok = yes; then | |
15802 | # An in-tree tool is available and we can use it | |
15803 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
15804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15805 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15806 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
15807 | # We already found the complete path | |
172e41aa | 15808 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
15809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15810 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15811 | elif test "x$target" = "x$host"; then |
15812 | # We can use an host tool | |
15813 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
15814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15815 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15816 | else |
15817 | # We need a cross tool | |
5213506e RW |
15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15819 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15820 | fi |
15821 | fi | |
0b0dc272 | 15822 | |
632e2a07 ILT |
15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
15824 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
15825 | if test "x${build}" != "x${host}" ; then | |
15826 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
15827 | # We already found the complete path | |
15828 | ac_dir=`dirname $GOC_FOR_TARGET` | |
15829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15830 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15831 | else | |
15832 | # Canadian cross, just use what we found | |
15833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15834 | $as_echo "pre-installed" >&6; } | |
15835 | fi | |
15836 | else | |
15837 | ok=yes | |
15838 | case " ${configdirs} " in | |
15839 | *" gcc "*) ;; | |
15840 | *) ok=no ;; | |
15841 | esac | |
15842 | case ,${enable_languages}, in | |
15843 | *,go,*) ;; | |
15844 | *) ok=no ;; | |
15845 | esac | |
15846 | if test $ok = yes; then | |
15847 | # An in-tree tool is available and we can use it | |
15848 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15850 | $as_echo "just compiled" >&6; } | |
15851 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
15852 | # We already found the complete path | |
15853 | ac_dir=`dirname $GOC_FOR_TARGET` | |
15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15855 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15856 | elif test "x$target" = "x$host"; then | |
15857 | # We can use an host tool | |
15858 | GOC_FOR_TARGET='$(GOC)' | |
15859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15860 | $as_echo "host tool" >&6; } | |
15861 | else | |
15862 | # We need a cross tool | |
15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15864 | $as_echo "pre-installed" >&6; } | |
15865 | fi | |
15866 | fi | |
15867 | ||
b4c522fa IB |
15868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
15869 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
15870 | if test "x${build}" != "x${host}" ; then | |
15871 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
15872 | # We already found the complete path | |
15873 | ac_dir=`dirname $GDC_FOR_TARGET` | |
15874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15875 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15876 | else | |
15877 | # Canadian cross, just use what we found | |
15878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15879 | $as_echo "pre-installed" >&6; } | |
15880 | fi | |
15881 | else | |
15882 | ok=yes | |
15883 | case " ${configdirs} " in | |
15884 | *" gcc "*) ;; | |
15885 | *) ok=no ;; | |
15886 | esac | |
15887 | case ,${enable_languages}, in | |
15888 | *,d,*) ;; | |
15889 | *) ok=no ;; | |
15890 | esac | |
15891 | if test $ok = yes; then | |
15892 | # An in-tree tool is available and we can use it | |
15893 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15895 | $as_echo "just compiled" >&6; } | |
15896 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
15897 | # We already found the complete path | |
15898 | ac_dir=`dirname $GDC_FOR_TARGET` | |
15899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15900 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15901 | elif test "x$target" = "x$host"; then | |
15902 | # We can use an host tool | |
15903 | GDC_FOR_TARGET='$(GDC)' | |
15904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15905 | $as_echo "host tool" >&6; } | |
15906 | else | |
15907 | # We need a cross tool | |
15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15909 | $as_echo "pre-installed" >&6; } | |
15910 | fi | |
15911 | fi | |
15912 | ||
5213506e RW |
15913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
15914 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 15915 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15916 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
15917 | # We already found the complete path | |
172e41aa | 15918 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
15919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15920 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15921 | else |
15922 | # Canadian cross, just use what we found | |
5213506e RW |
15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15924 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15925 | fi |
2abefe3d PB |
15926 | else |
15927 | ok=yes | |
15928 | case " ${configdirs} " in | |
15929 | *" ld "*) ;; | |
15930 | *) ok=no ;; | |
15931 | esac | |
1c710c3c | 15932 | |
2abefe3d PB |
15933 | if test $ok = yes; then |
15934 | # An in-tree tool is available and we can use it | |
15935 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15937 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
15938 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
15939 | # We already found the complete path | |
172e41aa | 15940 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15942 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
15943 | elif test "x$target" = "x$host"; then |
15944 | # We can use an host tool | |
15945 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
15946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15947 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15948 | else |
15949 | # We need a cross tool | |
5213506e RW |
15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15951 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15952 | fi |
15953 | fi | |
0b0dc272 | 15954 | |
5213506e RW |
15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
15956 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 15957 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15958 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
15959 | # We already found the complete path | |
172e41aa | 15960 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15962 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15963 | else |
15964 | # Canadian cross, just use what we found | |
5213506e RW |
15965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15966 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15967 | fi |
2abefe3d | 15968 | else |
e8b05380 PB |
15969 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
15970 | # We already found the complete path | |
172e41aa | 15971 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15973 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 15974 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
15975 | # We can use an host tool |
15976 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
15977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
15978 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
15979 | else |
15980 | # We need a cross tool | |
5213506e RW |
15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15982 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
15983 | fi |
15984 | fi | |
0b0dc272 | 15985 | |
5213506e RW |
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
15987 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 15988 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
15989 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
15990 | # We already found the complete path | |
172e41aa | 15991 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
15992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
15993 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
15994 | else |
15995 | # Canadian cross, just use what we found | |
5213506e RW |
15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
15997 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 15998 | fi |
2abefe3d PB |
15999 | else |
16000 | ok=yes | |
16001 | case " ${configdirs} " in | |
16002 | *" binutils "*) ;; | |
16003 | *) ok=no ;; | |
16004 | esac | |
1c710c3c | 16005 | |
2abefe3d PB |
16006 | if test $ok = yes; then |
16007 | # An in-tree tool is available and we can use it | |
16008 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
16009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16010 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16011 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
16012 | # We already found the complete path | |
172e41aa | 16013 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16015 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16016 | elif test "x$target" = "x$host"; then |
16017 | # We can use an host tool | |
16018 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
16019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16020 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16021 | else |
16022 | # We need a cross tool | |
5213506e RW |
16023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16024 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16025 | fi |
16026 | fi | |
0b0dc272 | 16027 | |
9bccfdf5 AP |
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
16029 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
16030 | if test "x${build}" != "x${host}" ; then | |
16031 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
16032 | # We already found the complete path | |
16033 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
16034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16035 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16036 | else | |
16037 | # Canadian cross, just use what we found | |
16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16039 | $as_echo "pre-installed" >&6; } | |
16040 | fi | |
16041 | else | |
16042 | ok=yes | |
16043 | case " ${configdirs} " in | |
16044 | *" binutils "*) ;; | |
16045 | *) ok=no ;; | |
16046 | esac | |
16047 | ||
16048 | if test $ok = yes; then | |
16049 | # An in-tree tool is available and we can use it | |
16050 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
16052 | $as_echo "just compiled" >&6; } | |
16053 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
16054 | # We already found the complete path | |
16055 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
16056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16057 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16058 | elif test "x$target" = "x$host"; then | |
16059 | # We can use an host tool | |
ec8fd1c0 | 16060 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16062 | $as_echo "host tool" >&6; } | |
16063 | else | |
16064 | # We need a cross tool | |
16065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16066 | $as_echo "pre-installed" >&6; } | |
16067 | fi | |
16068 | fi | |
16069 | ||
5213506e RW |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
16071 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 16072 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16073 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
16074 | # We already found the complete path | |
172e41aa | 16075 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
16076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16077 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16078 | else |
16079 | # Canadian cross, just use what we found | |
5213506e RW |
16080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16081 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16082 | fi |
2abefe3d PB |
16083 | else |
16084 | ok=yes | |
16085 | case " ${configdirs} " in | |
16086 | *" binutils "*) ;; | |
16087 | *) ok=no ;; | |
16088 | esac | |
1c710c3c | 16089 | |
2abefe3d PB |
16090 | if test $ok = yes; then |
16091 | # An in-tree tool is available and we can use it | |
16092 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16094 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16095 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
16096 | # We already found the complete path | |
172e41aa | 16097 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
16098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16099 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16100 | elif test "x$target" = "x$host"; then |
16101 | # We can use an host tool | |
16102 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
16103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16104 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16105 | else |
16106 | # We need a cross tool | |
5213506e RW |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16108 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16109 | fi |
16110 | fi | |
0b0dc272 | 16111 | |
e4a9a572 IS |
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
16113 | $as_echo_n "checking where to find the target otool... " >&6; } | |
16114 | if test "x${build}" != "x${host}" ; then | |
16115 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
16116 | # We already found the complete path | |
16117 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16119 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16120 | else | |
16121 | # Canadian cross, just use what we found | |
16122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16123 | $as_echo "pre-installed" >&6; } | |
16124 | fi | |
16125 | else | |
16126 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
16127 | # We already found the complete path | |
16128 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
16129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16130 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16131 | elif test "x$target" = "x$host"; then | |
16132 | # We can use an host tool | |
16133 | OTOOL_FOR_TARGET='$(OTOOL)' | |
16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
16135 | $as_echo "host tool" >&6; } | |
16136 | else | |
16137 | # We need a cross tool | |
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16139 | $as_echo "pre-installed" >&6; } | |
16140 | fi | |
16141 | fi | |
16142 | ||
5213506e RW |
16143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
16144 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 16145 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16146 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
16147 | # We already found the complete path | |
172e41aa | 16148 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
16149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16150 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16151 | else |
16152 | # Canadian cross, just use what we found | |
5213506e RW |
16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16154 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16155 | fi |
2abefe3d PB |
16156 | else |
16157 | ok=yes | |
16158 | case " ${configdirs} " in | |
16159 | *" binutils "*) ;; | |
16160 | *) ok=no ;; | |
16161 | esac | |
1c710c3c | 16162 | |
2abefe3d PB |
16163 | if test $ok = yes; then |
16164 | # An in-tree tool is available and we can use it | |
16165 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16167 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16168 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
16169 | # We already found the complete path | |
172e41aa | 16170 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16172 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16173 | elif test "x$target" = "x$host"; then |
16174 | # We can use an host tool | |
16175 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
16176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16177 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16178 | else |
16179 | # We need a cross tool | |
5213506e RW |
16180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16181 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16182 | fi |
16183 | fi | |
0b0dc272 | 16184 | |
e7a82751 RM |
16185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
16186 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
16187 | if test "x${build}" != "x${host}" ; then | |
16188 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
16189 | # We already found the complete path | |
16190 | ac_dir=`dirname $READELF_FOR_TARGET` | |
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16192 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16193 | else | |
16194 | # Canadian cross, just use what we found | |
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16196 | $as_echo "pre-installed" >&6; } | |
16197 | fi | |
16198 | else | |
16199 | ok=yes | |
16200 | case " ${configdirs} " in | |
16201 | *" binutils "*) ;; | |
16202 | *) ok=no ;; | |
16203 | esac | |
16204 | ||
16205 | if test $ok = yes; then | |
16206 | # An in-tree tool is available and we can use it | |
16207 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
16208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
16209 | $as_echo "just compiled" >&6; } | |
16210 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
16211 | # We already found the complete path | |
16212 | ac_dir=`dirname $READELF_FOR_TARGET` | |
16213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
16214 | $as_echo "pre-installed in $ac_dir" >&6; } | |
16215 | elif test "x$target" = "x$host"; then | |
16216 | # We can use an host tool | |
16217 | READELF_FOR_TARGET='$(READELF)' | |
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
16219 | $as_echo "host tool" >&6; } | |
16220 | else | |
16221 | # We need a cross tool | |
16222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
16223 | $as_echo "pre-installed" >&6; } | |
16224 | fi | |
16225 | fi | |
16226 | ||
5213506e RW |
16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
16228 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 16229 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16230 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
16231 | # We already found the complete path | |
172e41aa | 16232 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
16233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16234 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16235 | else |
16236 | # Canadian cross, just use what we found | |
5213506e RW |
16237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16238 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16239 | fi |
2abefe3d PB |
16240 | else |
16241 | ok=yes | |
16242 | case " ${configdirs} " in | |
16243 | *" binutils "*) ;; | |
16244 | *) ok=no ;; | |
16245 | esac | |
1c710c3c | 16246 | |
2abefe3d PB |
16247 | if test $ok = yes; then |
16248 | # An in-tree tool is available and we can use it | |
455c8f48 | 16249 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16251 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16252 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
16253 | # We already found the complete path | |
172e41aa | 16254 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16256 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16257 | elif test "x$target" = "x$host"; then |
16258 | # We can use an host tool | |
16259 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
16260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16261 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16262 | else |
16263 | # We need a cross tool | |
5213506e RW |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16265 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
16266 | fi |
16267 | fi | |
0b0dc272 | 16268 | |
5213506e RW |
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
16270 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 16271 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
16272 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
16273 | # We already found the complete path | |
172e41aa | 16274 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
16275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16276 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
16277 | else |
16278 | # Canadian cross, just use what we found | |
5213506e RW |
16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16280 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 16281 | fi |
2abefe3d PB |
16282 | else |
16283 | ok=yes | |
16284 | case " ${configdirs} " in | |
16285 | *" binutils "*) ;; | |
16286 | *) ok=no ;; | |
16287 | esac | |
1c710c3c | 16288 | |
2abefe3d PB |
16289 | if test $ok = yes; then |
16290 | # An in-tree tool is available and we can use it | |
16291 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
16292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16293 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
16294 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
16295 | # We already found the complete path | |
172e41aa | 16296 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
16299 | elif test "x$target" = "x$host"; then |
16300 | # We can use an host tool | |
16301 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16303 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
16304 | else |
16305 | # We need a cross tool | |
5213506e RW |
16306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16307 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 16308 | fi |
671aa708 | 16309 | fi |
be912515 | 16310 | |
5213506e RW |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
16312 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
16313 | if test "x${build}" != "x${host}" ; then |
16314 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
16315 | # We already found the complete path | |
16316 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16318 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
16319 | else |
16320 | # Canadian cross, just use what we found | |
5213506e RW |
16321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16322 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
16323 | fi |
16324 | else | |
16325 | ok=yes | |
16326 | case " ${configdirs} " in | |
16327 | *" binutils "*) ;; | |
16328 | *) ok=no ;; | |
16329 | esac | |
16330 | ||
16331 | if test $ok = yes; then | |
16332 | # An in-tree tool is available and we can use it | |
16333 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
16335 | $as_echo "just compiled" >&6; } | |
901119ae KT |
16336 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
16337 | # We already found the complete path | |
16338 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
16339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
16340 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
16341 | elif test "x$target" = "x$host"; then |
16342 | # We can use an host tool | |
16343 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
16344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
16345 | $as_echo "host tool" >&6; } | |
901119ae KT |
16346 | else |
16347 | # We need a cross tool | |
5213506e RW |
16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
16349 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
16350 | fi |
16351 | fi | |
16352 | ||
be912515 NN |
16353 | |
16354 | ||
2abefe3d | 16355 | |
0b0dc272 | 16356 | |
671aa708 NN |
16357 | # Certain tools may need extra flags. |
16358 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
16359 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
16360 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
16361 | ||
2abefe3d PB |
16362 | # When building target libraries, except in a Canadian cross, we use |
16363 | # the same toolchain as the compiler we just built. | |
16364 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
16365 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
16366 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
16367 | if test $host = $build; then | |
16368 | case " $configdirs " in | |
16369 | *" gcc "*) | |
16370 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
16371 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
16372 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
16373 | ;; | |
16374 | esac | |
16375 | fi | |
16376 | ||
16377 | ||
16378 | ||
16379 | ||
16380 | ||
5213506e RW |
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
16382 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
16383 | # Check whether --enable-maintainer-mode was given. | |
16384 | if test "${enable_maintainer_mode+set}" = set; then : | |
16385 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
16386 | else |
16387 | USE_MAINTAINER_MODE=no | |
5213506e RW |
16388 | fi |
16389 | ||
16390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
16391 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
16392 | |
16393 | ||
16394 | if test "$USE_MAINTAINER_MODE" = yes; then | |
16395 | MAINTAINER_MODE_TRUE= | |
16396 | MAINTAINER_MODE_FALSE='#' | |
16397 | else | |
16398 | MAINTAINER_MODE_TRUE='#' | |
16399 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 16400 | fi |
ee03dc5e AO |
16401 | MAINT=$MAINTAINER_MODE_TRUE |
16402 | ||
2805b53a NN |
16403 | # --------------------- |
16404 | # GCC bootstrap support | |
16405 | # --------------------- | |
16406 | ||
16407 | # Stage specific cflags for build. | |
16408 | stage1_cflags="-g" | |
16409 | case $build in | |
16410 | vax-*-*) | |
16411 | case ${GCC} in | |
16412 | yes) stage1_cflags="-g -Wa,-J" ;; | |
16413 | *) stage1_cflags="-g -J" ;; | |
16414 | esac ;; | |
2805b53a NN |
16415 | esac |
16416 | ||
0b50988a | 16417 | |
2805b53a | 16418 | |
8efea775 | 16419 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
16420 | # Check whether --enable-stage1-checking was given. |
16421 | if test "${enable_stage1_checking+set}" = set; then : | |
16422 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 16423 | else |
e643dc23 | 16424 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
16425 | # For --disable-checking or implicit --enable-checking=release, avoid |
16426 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
16427 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
16428 | case $BUILD_CONFIG in |
16429 | *lto*) | |
7db11a5a JJ |
16430 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
16431 | *) | |
16432 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 16433 | esac |
7db11a5a JJ |
16434 | if test "x$enable_checking" = x && \ |
16435 | test -d ${srcdir}/gcc && \ | |
16436 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 16437 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 16438 | fi |
8efea775 | 16439 | else |
e643dc23 | 16440 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 16441 | fi |
5213506e | 16442 | fi |
8efea775 PB |
16443 | |
16444 | ||
2aeb72e9 | 16445 | |
5213506e RW |
16446 | # Enable -Werror in bootstrap stage2 and later. |
16447 | # Check whether --enable-werror was given. | |
16448 | if test "${enable_werror+set}" = set; then : | |
16449 | enableval=$enable_werror; | |
09a9c095 NN |
16450 | case ${enable_werror} in |
16451 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
16452 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
16453 | esac |
16454 | ||
afd88efc ML |
16455 | else |
16456 | ||
01c712cb ML |
16457 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
16458 | case $BUILD_CONFIG in | |
16459 | bootstrap-debug) | |
16460 | stage2_werror_flag="--enable-werror-always" ;; | |
16461 | "") | |
16462 | stage2_werror_flag="--enable-werror-always" ;; | |
16463 | esac | |
16464 | fi | |
16465 | ||
afd88efc ML |
16466 | fi |
16467 | ||
16468 | ||
01c712cb | 16469 | |
2805b53a | 16470 | |
f2689b09 SE |
16471 | # Specify what files to not compare during bootstrap. |
16472 | ||
16473 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
16474 | case "$target" in | |
16475 | hppa*64*-*-hpux*) ;; | |
4f943869 MK |
16476 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
16477 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
f2689b09 SE |
16478 | esac |
16479 | ||
16480 | ||
5213506e RW |
16481 | ac_config_files="$ac_config_files Makefile" |
16482 | ||
1c710c3c | 16483 | cat >confcache <<\_ACEOF |
671aa708 NN |
16484 | # This file is a shell script that caches the results of configure |
16485 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
16486 | # scripts and configure runs, see configure's option --config-cache. |
16487 | # It is not useful on other systems. If it contains results you don't | |
16488 | # want to keep, you may remove or edit it. | |
671aa708 | 16489 | # |
1c710c3c DJ |
16490 | # config.status only pays attention to the cache file if you give it |
16491 | # the --recheck option to rerun configure. | |
671aa708 | 16492 | # |
1c710c3c DJ |
16493 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16494 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16495 | # following values. | |
16496 | ||
16497 | _ACEOF | |
16498 | ||
671aa708 NN |
16499 | # The following way of writing the cache mishandles newlines in values, |
16500 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 16501 | # So, we kill variables containing newlines. |
671aa708 NN |
16502 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16503 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
16504 | ( |
16505 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16506 | eval ac_val=\$$ac_var | |
16507 | case $ac_val in #( | |
16508 | *${as_nl}*) | |
16509 | case $ac_var in #( | |
16510 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16511 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16512 | esac | |
16513 | case $ac_var in #( | |
16514 | _ | IFS | as_nl) ;; #( | |
16515 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16516 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16517 | esac ;; | |
16518 | esac | |
16519 | done | |
16520 | ||
1c710c3c | 16521 | (set) 2>&1 | |
5213506e RW |
16522 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16523 | *${as_nl}ac_space=\ *) | |
16524 | # `set' does not quote correctly, so add quotes: double-quote | |
16525 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
16526 | sed -n \ |
16527 | "s/'/'\\\\''/g; | |
16528 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 16529 | ;; #( |
1c710c3c DJ |
16530 | *) |
16531 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 16532 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 16533 | ;; |
5213506e RW |
16534 | esac | |
16535 | sort | |
16536 | ) | | |
1c710c3c | 16537 | sed ' |
5213506e | 16538 | /^ac_cv_env_/b end |
1c710c3c | 16539 | t clear |
5213506e | 16540 | :clear |
1c710c3c DJ |
16541 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
16542 | t end | |
5213506e RW |
16543 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16544 | :end' >>confcache | |
16545 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16546 | if test -w "$cache_file"; then | |
22e05272 | 16547 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16549 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
16550 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16551 | cat confcache >"$cache_file" | |
16552 | else | |
16553 | case $cache_file in #( | |
16554 | */* | ?:*) | |
16555 | mv -f confcache "$cache_file"$$ && | |
16556 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16557 | *) | |
16558 | mv -f confcache "$cache_file" ;; | |
16559 | esac | |
16560 | fi | |
16561 | fi | |
671aa708 | 16562 | else |
5213506e RW |
16563 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16564 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 16565 | fi |
4977bab6 | 16566 | fi |
671aa708 | 16567 | rm -f confcache |
79c06341 | 16568 | |
671aa708 NN |
16569 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16570 | # Let make expand exec_prefix. | |
16571 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 16572 | |
671aa708 NN |
16573 | # Transform confdefs.h into DEFS. |
16574 | # Protect against shell expansion while executing Makefile rules. | |
16575 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
16576 | # |
16577 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 16578 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 16579 | # look for a macro that doesn't take arguments. |
5213506e RW |
16580 | ac_script=' |
16581 | :mline | |
16582 | /\\$/{ | |
16583 | N | |
16584 | s,\\\n,, | |
16585 | b mline | |
16586 | } | |
1c710c3c | 16587 | t clear |
5213506e RW |
16588 | :clear |
16589 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 16590 | t quote |
5213506e | 16591 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 16592 | t quote |
5213506e RW |
16593 | b any |
16594 | :quote | |
16595 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16596 | s/\[/\\&/g | |
16597 | s/\]/\\&/g | |
16598 | s/\$/$$/g | |
16599 | H | |
16600 | :any | |
16601 | ${ | |
16602 | g | |
16603 | s/^\n// | |
16604 | s/\n/ /g | |
16605 | p | |
16606 | } | |
16607 | ' | |
16608 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
16609 | |
16610 | ||
16611 | ac_libobjs= | |
16612 | ac_ltlibobjs= | |
22e05272 | 16613 | U= |
1c710c3c DJ |
16614 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16615 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
16616 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
16617 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16618 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16619 | # will be set to the directory where LIBOBJS objects are built. | |
16620 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16621 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
16622 | done |
16623 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 16624 | |
1c710c3c | 16625 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 16626 | |
af71363e | 16627 | |
1c710c3c | 16628 | |
22e05272 | 16629 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 16630 | ac_write_fail=0 |
1c710c3c DJ |
16631 | ac_clean_files_save=$ac_clean_files |
16632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16635 | as_write_fail=0 | |
16636 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
16637 | #! $SHELL |
16638 | # Generated by $as_me. | |
671aa708 | 16639 | # Run this file to recreate the current configuration. |
671aa708 | 16640 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 16641 | # configure, is in config.log if it exists. |
0b0dc272 | 16642 | |
1c710c3c DJ |
16643 | debug=false |
16644 | ac_cs_recheck=false | |
16645 | ac_cs_silent=false | |
1c710c3c | 16646 | |
5213506e RW |
16647 | SHELL=\${CONFIG_SHELL-$SHELL} |
16648 | export SHELL | |
16649 | _ASEOF | |
16650 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16651 | ## -------------------- ## | |
16652 | ## M4sh Initialization. ## | |
16653 | ## -------------------- ## | |
16654 | ||
16655 | # Be more Bourne compatible | |
16656 | DUALCASE=1; export DUALCASE # for MKS sh | |
16657 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
16658 | emulate sh |
16659 | NULLCMD=: | |
5213506e | 16660 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
16661 | # is contrary to our usage. Disable this feature. |
16662 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
16663 | setopt NO_GLOB_SUBST |
16664 | else | |
16665 | case `(set -o) 2>/dev/null` in #( | |
16666 | *posix*) : | |
16667 | set -o posix ;; #( | |
16668 | *) : | |
16669 | ;; | |
16670 | esac | |
1c710c3c | 16671 | fi |
1c710c3c | 16672 | |
5213506e RW |
16673 | |
16674 | as_nl=' | |
16675 | ' | |
16676 | export as_nl | |
16677 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16678 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16681 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16682 | # but without wasting forks for bash or zsh. | |
16683 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16684 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16685 | as_echo='print -r --' | |
16686 | as_echo_n='print -rn --' | |
16687 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16688 | as_echo='printf %s\n' | |
16689 | as_echo_n='printf %s' | |
16690 | else | |
16691 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16692 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16693 | as_echo_n='/usr/ucb/echo -n' | |
16694 | else | |
16695 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16696 | as_echo_n_body='eval | |
16697 | arg=$1; | |
16698 | case $arg in #( | |
16699 | *"$as_nl"*) | |
16700 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16701 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16702 | esac; | |
16703 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16704 | ' | |
16705 | export as_echo_n_body | |
16706 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16707 | fi | |
16708 | export as_echo_body | |
16709 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
16710 | fi |
16711 | ||
5213506e RW |
16712 | # The user is always right. |
16713 | if test "${PATH_SEPARATOR+set}" != set; then | |
16714 | PATH_SEPARATOR=: | |
16715 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16716 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16717 | PATH_SEPARATOR=';' | |
16718 | } | |
16719 | fi | |
16720 | ||
16721 | ||
16722 | # IFS | |
16723 | # We need space, tab and new line, in precisely that order. Quoting is | |
16724 | # there to prevent editors from complaining about space-tab. | |
16725 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16726 | # splitting by setting IFS to empty value.) | |
16727 | IFS=" "" $as_nl" | |
16728 | ||
16729 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 16730 | as_myself= |
5213506e RW |
16731 | case $0 in #(( |
16732 | *[\\/]* ) as_myself=$0 ;; | |
16733 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16734 | for as_dir in $PATH | |
16735 | do | |
16736 | IFS=$as_save_IFS | |
16737 | test -z "$as_dir" && as_dir=. | |
16738 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16739 | done | |
16740 | IFS=$as_save_IFS | |
16741 | ||
16742 | ;; | |
16743 | esac | |
16744 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16745 | # in which case we are not to be found in the path. | |
16746 | if test "x$as_myself" = x; then | |
16747 | as_myself=$0 | |
16748 | fi | |
16749 | if test ! -f "$as_myself"; then | |
16750 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16751 | exit 1 | |
16752 | fi | |
1c710c3c | 16753 | |
5213506e RW |
16754 | # Unset variables that we do not need and which cause bugs (e.g. in |
16755 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16756 | # suppresses any "Segmentation fault" message there. '((' could | |
16757 | # trigger a bug in pdksh 5.2.14. | |
16758 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16759 | do eval test x\${$as_var+set} = xset \ | |
16760 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16761 | done | |
1c710c3c DJ |
16762 | PS1='$ ' |
16763 | PS2='> ' | |
16764 | PS4='+ ' | |
16765 | ||
16766 | # NLS nuisances. | |
5213506e RW |
16767 | LC_ALL=C |
16768 | export LC_ALL | |
16769 | LANGUAGE=C | |
16770 | export LANGUAGE | |
16771 | ||
16772 | # CDPATH. | |
16773 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16774 | ||
16775 | ||
22e05272 JM |
16776 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16777 | # ---------------------------------------- | |
5213506e RW |
16778 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16779 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 16780 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
16781 | as_fn_error () |
16782 | { | |
22e05272 JM |
16783 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16784 | if test "$4"; then | |
16785 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16786 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1c710c3c | 16787 | fi |
22e05272 | 16788 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
16789 | as_fn_exit $as_status |
16790 | } # as_fn_error | |
16791 | ||
16792 | ||
16793 | # as_fn_set_status STATUS | |
16794 | # ----------------------- | |
16795 | # Set $? to STATUS, without forking. | |
16796 | as_fn_set_status () | |
16797 | { | |
16798 | return $1 | |
16799 | } # as_fn_set_status | |
16800 | ||
16801 | # as_fn_exit STATUS | |
16802 | # ----------------- | |
16803 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16804 | as_fn_exit () | |
16805 | { | |
16806 | set +e | |
16807 | as_fn_set_status $1 | |
16808 | exit $1 | |
16809 | } # as_fn_exit | |
16810 | ||
16811 | # as_fn_unset VAR | |
16812 | # --------------- | |
16813 | # Portably unset VAR. | |
16814 | as_fn_unset () | |
16815 | { | |
16816 | { eval $1=; unset $1;} | |
16817 | } | |
16818 | as_unset=as_fn_unset | |
16819 | # as_fn_append VAR VALUE | |
16820 | # ---------------------- | |
16821 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16822 | # advantage of any shell optimizations that allow amortized linear growth over | |
16823 | # repeated appends, instead of the typical quadratic growth present in naive | |
16824 | # implementations. | |
16825 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16826 | eval 'as_fn_append () | |
16827 | { | |
16828 | eval $1+=\$2 | |
16829 | }' | |
16830 | else | |
16831 | as_fn_append () | |
16832 | { | |
16833 | eval $1=\$$1\$2 | |
16834 | } | |
16835 | fi # as_fn_append | |
16836 | ||
16837 | # as_fn_arith ARG... | |
16838 | # ------------------ | |
16839 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16840 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16841 | # must be portable across $(()) and expr. | |
16842 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16843 | eval 'as_fn_arith () | |
16844 | { | |
16845 | as_val=$(( $* )) | |
16846 | }' | |
16847 | else | |
16848 | as_fn_arith () | |
16849 | { | |
16850 | as_val=`expr "$@" || test $? -eq 1` | |
16851 | } | |
16852 | fi # as_fn_arith | |
16853 | ||
1c710c3c | 16854 | |
5213506e RW |
16855 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16856 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
16857 | as_expr=expr |
16858 | else | |
16859 | as_expr=false | |
16860 | fi | |
16861 | ||
5213506e | 16862 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
16863 | as_basename=basename |
16864 | else | |
16865 | as_basename=false | |
16866 | fi | |
16867 | ||
5213506e RW |
16868 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16869 | as_dirname=dirname | |
16870 | else | |
16871 | as_dirname=false | |
16872 | fi | |
1c710c3c | 16873 | |
5213506e | 16874 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
16875 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16876 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
16877 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
16878 | $as_echo X/"$0" | | |
16879 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16880 | s//\1/ | |
16881 | q | |
16882 | } | |
16883 | /^X\/\(\/\/\)$/{ | |
16884 | s//\1/ | |
16885 | q | |
16886 | } | |
16887 | /^X\/\(\/\).*/{ | |
16888 | s//\1/ | |
16889 | q | |
16890 | } | |
16891 | s/.*/./; q'` | |
2aeb72e9 | 16892 | |
2aeb72e9 DD |
16893 | # Avoid depending upon Character Ranges. |
16894 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16895 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16896 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16897 | as_cr_digits='0123456789' | |
16898 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16899 | ||
5213506e RW |
16900 | ECHO_C= ECHO_N= ECHO_T= |
16901 | case `echo -n x` in #((((( | |
16902 | -n*) | |
16903 | case `echo 'xy\c'` in | |
16904 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16905 | xy) ECHO_C='\c';; | |
16906 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16907 | ECHO_T=' ';; | |
16908 | esac;; | |
16909 | *) | |
16910 | ECHO_N='-n';; | |
1c710c3c DJ |
16911 | esac |
16912 | ||
5213506e RW |
16913 | rm -f conf$$ conf$$.exe conf$$.file |
16914 | if test -d conf$$.dir; then | |
16915 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 16916 | else |
5213506e RW |
16917 | rm -f conf$$.dir |
16918 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 16919 | fi |
5213506e RW |
16920 | if (echo >conf$$.file) 2>/dev/null; then |
16921 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 16922 | as_ln_s='ln -s' |
5213506e RW |
16923 | # ... but there are two gotchas: |
16924 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16925 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 16926 | # In both cases, we have to default to `cp -pR'. |
5213506e | 16927 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 16928 | as_ln_s='cp -pR' |
5213506e RW |
16929 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16930 | as_ln_s=ln | |
16931 | else | |
22e05272 | 16932 | as_ln_s='cp -pR' |
2aeb72e9 | 16933 | fi |
1c710c3c | 16934 | else |
22e05272 | 16935 | as_ln_s='cp -pR' |
1c710c3c | 16936 | fi |
5213506e RW |
16937 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16938 | rmdir conf$$.dir 2>/dev/null | |
16939 | ||
16940 | ||
16941 | # as_fn_mkdir_p | |
16942 | # ------------- | |
16943 | # Create "$as_dir" as a directory, including parents if necessary. | |
16944 | as_fn_mkdir_p () | |
16945 | { | |
16946 | ||
16947 | case $as_dir in #( | |
16948 | -*) as_dir=./$as_dir;; | |
16949 | esac | |
16950 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16951 | as_dirs= | |
16952 | while :; do | |
16953 | case $as_dir in #( | |
16954 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16955 | *) as_qdir=$as_dir;; | |
16956 | esac | |
16957 | as_dirs="'$as_qdir' $as_dirs" | |
16958 | as_dir=`$as_dirname -- "$as_dir" || | |
16959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16960 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16961 | X"$as_dir" : 'X\(//\)$' \| \ | |
16962 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16963 | $as_echo X"$as_dir" | | |
16964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16965 | s//\1/ | |
16966 | q | |
16967 | } | |
16968 | /^X\(\/\/\)[^/].*/{ | |
16969 | s//\1/ | |
16970 | q | |
16971 | } | |
16972 | /^X\(\/\/\)$/{ | |
16973 | s//\1/ | |
16974 | q | |
16975 | } | |
16976 | /^X\(\/\).*/{ | |
16977 | s//\1/ | |
16978 | q | |
16979 | } | |
16980 | s/.*/./; q'` | |
16981 | test -d "$as_dir" && break | |
16982 | done | |
16983 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 16984 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 16985 | |
1c710c3c | 16986 | |
5213506e | 16987 | } # as_fn_mkdir_p |
1c710c3c | 16988 | if mkdir -p . 2>/dev/null; then |
5213506e | 16989 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
16990 | else |
16991 | test -d ./-p && rmdir ./-p | |
16992 | as_mkdir_p=false | |
16993 | fi | |
16994 | ||
22e05272 JM |
16995 | |
16996 | # as_fn_executable_p FILE | |
16997 | # ----------------------- | |
16998 | # Test if FILE is an executable regular file. | |
16999 | as_fn_executable_p () | |
17000 | { | |
17001 | test -f "$1" && test -x "$1" | |
17002 | } # as_fn_executable_p | |
17003 | as_test_x='test -x' | |
17004 | as_executable_p=as_fn_executable_p | |
1c710c3c DJ |
17005 | |
17006 | # Sed expression to map a string onto a valid CPP name. | |
17007 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17008 | ||
17009 | # Sed expression to map a string onto a valid variable name. | |
17010 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17011 | ||
17012 | ||
1c710c3c | 17013 | exec 6>&1 |
5213506e RW |
17014 | ## ----------------------------------- ## |
17015 | ## Main body of $CONFIG_STATUS script. ## | |
17016 | ## ----------------------------------- ## | |
17017 | _ASEOF | |
17018 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17019 | ||
17020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17021 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 17022 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
17023 | # values after options handling. |
17024 | ac_log=" | |
1c710c3c | 17025 | This file was extended by $as_me, which was |
22e05272 | 17026 | generated by GNU Autoconf 2.69. Invocation command line was |
1c710c3c DJ |
17027 | |
17028 | CONFIG_FILES = $CONFIG_FILES | |
17029 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17030 | CONFIG_LINKS = $CONFIG_LINKS | |
17031 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17032 | $ $0 $@ | |
17033 | ||
5213506e RW |
17034 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17035 | " | |
17036 | ||
1c710c3c DJ |
17037 | _ACEOF |
17038 | ||
5213506e RW |
17039 | case $ac_config_files in *" |
17040 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17041 | esac | |
1c710c3c | 17042 | |
2aeb72e9 | 17043 | |
2aeb72e9 | 17044 | |
5213506e RW |
17045 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17046 | # Files that config.status was made for. | |
17047 | config_files="$ac_config_files" | |
1c710c3c | 17048 | |
5213506e | 17049 | _ACEOF |
2aeb72e9 | 17050 | |
5213506e | 17051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 17052 | ac_cs_usage="\ |
5213506e RW |
17053 | \`$as_me' instantiates files and other configuration actions |
17054 | from templates according to the current configuration. Unless the files | |
17055 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 17056 | |
5213506e | 17057 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
17058 | |
17059 | -h, --help print this help, then exit | |
5213506e | 17060 | -V, --version print version number and configuration settings, then exit |
22e05272 | 17061 | --config print configuration, then exit |
5213506e RW |
17062 | -q, --quiet, --silent |
17063 | do not print progress messages | |
1c710c3c DJ |
17064 | -d, --debug don't remove temporary files |
17065 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
17066 | --file=FILE[:TEMPLATE] |
17067 | instantiate the configuration file FILE | |
1c710c3c DJ |
17068 | |
17069 | Configuration files: | |
17070 | $config_files | |
17071 | ||
5213506e | 17072 | Report bugs to the package provider." |
2aeb72e9 | 17073 | |
5213506e RW |
17074 | _ACEOF |
17075 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 17076 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
1c710c3c DJ |
17077 | ac_cs_version="\\ |
17078 | config.status | |
22e05272 JM |
17079 | configured by $0, generated by GNU Autoconf 2.69, |
17080 | with options \\"\$ac_cs_config\\" | |
1c710c3c | 17081 | |
22e05272 | 17082 | Copyright (C) 2012 Free Software Foundation, Inc. |
1c710c3c DJ |
17083 | This config.status script is free software; the Free Software Foundation |
17084 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
17085 | |
17086 | ac_pwd='$ac_pwd' | |
17087 | srcdir='$srcdir' | |
17088 | INSTALL='$INSTALL' | |
87264276 | 17089 | AWK='$AWK' |
5213506e | 17090 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
17091 | _ACEOF |
17092 | ||
5213506e RW |
17093 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17094 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
17095 | ac_need_defaults=: |
17096 | while test $# != 0 | |
a4b9e93e | 17097 | do |
1c710c3c | 17098 | case $1 in |
22e05272 | 17099 | --*=?*) |
5213506e RW |
17100 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17101 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
17102 | ac_shift=: |
17103 | ;; | |
22e05272 JM |
17104 | --*=) |
17105 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17106 | ac_optarg= | |
17107 | ac_shift=: | |
17108 | ;; | |
5213506e | 17109 | *) |
1c710c3c DJ |
17110 | ac_option=$1 |
17111 | ac_optarg=$2 | |
17112 | ac_shift=shift | |
17113 | ;; | |
1c710c3c DJ |
17114 | esac |
17115 | ||
17116 | case $ac_option in | |
17117 | # Handling of the options. | |
671aa708 | 17118 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 17119 | ac_cs_recheck=: ;; |
5213506e RW |
17120 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17121 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
17122 | --config | --confi | --conf | --con | --co | --c ) |
17123 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 17124 | --debug | --debu | --deb | --de | --d | -d ) |
1c710c3c DJ |
17125 | debug=: ;; |
17126 | --file | --fil | --fi | --f ) | |
17127 | $ac_shift | |
5213506e RW |
17128 | case $ac_optarg in |
17129 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 17130 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
17131 | esac |
17132 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 17133 | ac_need_defaults=false;; |
5213506e RW |
17134 | --he | --h | --help | --hel | -h ) |
17135 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
17136 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17137 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17138 | ac_cs_silent=: ;; | |
17139 | ||
17140 | # This is an error. | |
22e05272 | 17141 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 17142 | Try \`$0 --help' for more information." ;; |
1c710c3c | 17143 | |
5213506e RW |
17144 | *) as_fn_append ac_config_targets " $1" |
17145 | ac_need_defaults=false ;; | |
1c710c3c | 17146 | |
0b0dc272 | 17147 | esac |
1c710c3c | 17148 | shift |
0b0dc272 AM |
17149 | done |
17150 | ||
1c710c3c | 17151 | ac_configure_extra_args= |
0b0dc272 | 17152 | |
1c710c3c DJ |
17153 | if $ac_cs_silent; then |
17154 | exec 6>/dev/null | |
17155 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17156 | fi | |
0b0dc272 | 17157 | |
1c710c3c | 17158 | _ACEOF |
5213506e | 17159 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 17160 | if \$ac_cs_recheck; then |
22e05272 | 17161 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
17162 | shift |
17163 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17164 | CONFIG_SHELL='$SHELL' | |
17165 | export CONFIG_SHELL | |
17166 | exec "\$@" | |
1c710c3c DJ |
17167 | fi |
17168 | ||
17169 | _ACEOF | |
5213506e RW |
17170 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17171 | exec 5>>config.log | |
17172 | { | |
17173 | echo | |
17174 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17175 | ## Running $as_me. ## | |
17176 | _ASBOX | |
17177 | $as_echo "$ac_log" | |
17178 | } >&5 | |
1c710c3c | 17179 | |
5213506e RW |
17180 | _ACEOF |
17181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
17182 | # |
17183 | # INIT-COMMANDS | |
17184 | # | |
17185 | extrasub_build="$extrasub_build" | |
17186 | extrasub_host="$extrasub_host" | |
17187 | extrasub_target="$extrasub_target" | |
17188 | ||
5213506e | 17189 | _ACEOF |
1c710c3c | 17190 | |
5213506e | 17191 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 17192 | |
5213506e | 17193 | # Handling of arguments. |
1c710c3c DJ |
17194 | for ac_config_target in $ac_config_targets |
17195 | do | |
5213506e RW |
17196 | case $ac_config_target in |
17197 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17198 | ||
22e05272 | 17199 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1c710c3c DJ |
17200 | esac |
17201 | done | |
17202 | ||
5213506e | 17203 | |
1c710c3c DJ |
17204 | # If the user did not use the arguments to specify the items to instantiate, |
17205 | # then the envvar interface is used. Set only those that are not. | |
17206 | # We use the long form for the default assignment because of an extremely | |
17207 | # bizarre bug on SunOS 4.1.3. | |
17208 | if $ac_need_defaults; then | |
17209 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17210 | fi | |
17211 | ||
17212 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 17213 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 17214 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
17215 | # Hook for its removal unless debugging. |
17216 | # Note that there is a small window in which the directory will not be cleaned: | |
17217 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
17218 | $debug || |
17219 | { | |
22e05272 | 17220 | tmp= ac_tmp= |
5213506e | 17221 | trap 'exit_status=$? |
22e05272 JM |
17222 | : "${ac_tmp:=$tmp}" |
17223 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
17224 | ' 0 |
17225 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 17226 | } |
1c710c3c DJ |
17227 | # Create a (secure) tmp directory for tmp files. |
17228 | ||
17229 | { | |
5213506e | 17230 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 17231 | test -d "$tmp" |
1c710c3c DJ |
17232 | } || |
17233 | { | |
5213506e RW |
17234 | tmp=./conf$$-$RANDOM |
17235 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
17236 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
17237 | ac_tmp=$tmp | |
5213506e RW |
17238 | |
17239 | # Set up the scripts for CONFIG_FILES section. | |
17240 | # No need to generate them if there are no CONFIG_FILES. | |
17241 | # This happens for instance with `./config.status config.h'. | |
17242 | if test -n "$CONFIG_FILES"; then | |
17243 | ||
17244 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
17245 | ac_cs_awk_getline=: | |
17246 | ac_cs_awk_pipe_init= | |
17247 | ac_cs_awk_read_file=' | |
17248 | while ((getline aline < (F[key])) > 0) | |
17249 | print(aline) | |
17250 | close(F[key])' | |
17251 | ac_cs_awk_pipe_fini= | |
17252 | else | |
17253 | ac_cs_awk_getline=false | |
17254 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
17255 | ac_cs_awk_read_file=' | |
17256 | print "|#_!!_#|" | |
17257 | print "cat " F[key] " &&" | |
17258 | '$ac_cs_awk_pipe_init | |
17259 | # The final `:' finishes the AND list. | |
17260 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
17261 | fi | |
17262 | ac_cr=`echo X | tr X '\015'` | |
17263 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17264 | # But we know of no other shell where ac_cr would be empty at this | |
17265 | # point, so we can use a bashism as a fallback. | |
17266 | if test "x$ac_cr" = x; then | |
17267 | eval ac_cr=\$\'\\r\' | |
17268 | fi | |
17269 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17270 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 17271 | ac_cs_awk_cr='\\r' |
5213506e RW |
17272 | else |
17273 | ac_cs_awk_cr=$ac_cr | |
17274 | fi | |
17275 | ||
22e05272 | 17276 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
17277 | _ACEOF |
17278 | ||
17279 | # Create commands to substitute file output variables. | |
1c710c3c | 17280 | { |
5213506e | 17281 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
22e05272 | 17282 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
5213506e RW |
17283 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
17284 | echo "_ACAWK" && | |
17285 | echo "_ACEOF" | |
17286 | } >conf$$files.sh && | |
17287 | . ./conf$$files.sh || | |
22e05272 | 17288 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 17289 | rm -f conf$$files.sh |
1c710c3c | 17290 | |
5213506e RW |
17291 | { |
17292 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17293 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17294 | echo "_ACEOF" | |
17295 | } >conf$$subs.sh || | |
22e05272 JM |
17296 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17297 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
17298 | ac_delim='%!_!# ' |
17299 | for ac_last_try in false false false false false :; do | |
17300 | . ./conf$$subs.sh || | |
22e05272 | 17301 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
17302 | |
17303 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17304 | if test $ac_delim_n = $ac_delim_num; then | |
17305 | break | |
17306 | elif $ac_last_try; then | |
22e05272 | 17307 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
17308 | else |
17309 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17310 | fi | |
17311 | done | |
17312 | rm -f conf$$subs.sh | |
17313 | ||
17314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 17315 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
2aeb72e9 | 17316 | _ACEOF |
5213506e RW |
17317 | sed -n ' |
17318 | h | |
17319 | s/^/S["/; s/!.*/"]=/ | |
17320 | p | |
17321 | g | |
17322 | s/^[^!]*!// | |
17323 | :repl | |
17324 | t repl | |
17325 | s/'"$ac_delim"'$// | |
17326 | t delim | |
17327 | :nl | |
17328 | h | |
22e05272 | 17329 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
17330 | t more1 |
17331 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17332 | p | |
17333 | n | |
17334 | b repl | |
17335 | :more1 | |
17336 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17337 | p | |
17338 | g | |
17339 | s/.\{148\}// | |
17340 | t nl | |
17341 | :delim | |
17342 | h | |
22e05272 | 17343 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
17344 | t more2 |
17345 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17346 | p | |
17347 | b | |
17348 | :more2 | |
17349 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17350 | p | |
17351 | g | |
17352 | s/.\{148\}// | |
17353 | t delim | |
17354 | ' <conf$$subs.awk | sed ' | |
17355 | /^[^""]/{ | |
17356 | N | |
17357 | s/\n// | |
17358 | } | |
17359 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17360 | rm -f conf$$subs.awk | |
17361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17362 | _ACAWK | |
22e05272 | 17363 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
17364 | for (key in S) S_is_set[key] = 1 |
17365 | FS = "\a" | |
17366 | \$ac_cs_awk_pipe_init | |
17367 | } | |
17368 | { | |
17369 | line = $ 0 | |
17370 | nfields = split(line, field, "@") | |
17371 | substed = 0 | |
17372 | len = length(field[1]) | |
17373 | for (i = 2; i < nfields; i++) { | |
17374 | key = field[i] | |
17375 | keylen = length(key) | |
17376 | if (S_is_set[key]) { | |
17377 | value = S[key] | |
17378 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17379 | len += length(value) + length(field[++i]) | |
17380 | substed = 1 | |
17381 | } else | |
17382 | len += 1 + keylen | |
17383 | } | |
17384 | if (nfields == 3 && !substed) { | |
17385 | key = field[2] | |
17386 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
17387 | \$ac_cs_awk_read_file | |
17388 | next | |
17389 | } | |
17390 | } | |
17391 | print line | |
17392 | } | |
17393 | \$ac_cs_awk_pipe_fini | |
17394 | _ACAWK | |
17395 | _ACEOF | |
17396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17397 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17398 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17399 | else | |
17400 | cat | |
22e05272 JM |
17401 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17402 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5213506e RW |
17403 | _ACEOF |
17404 | ||
22e05272 JM |
17405 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17406 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
17407 | # trailing colons and then remove the whole line if VPATH becomes empty |
17408 | # (actually we leave an empty line to preserve line numbers). | |
17409 | if test "x$srcdir" = x.; then | |
22e05272 JM |
17410 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17411 | h | |
17412 | s/// | |
17413 | s/^/:/ | |
17414 | s/[ ]*$/:/ | |
17415 | s/:\$(srcdir):/:/g | |
17416 | s/:\${srcdir}:/:/g | |
17417 | s/:@srcdir@:/:/g | |
17418 | s/^:*// | |
5213506e | 17419 | s/:*$// |
22e05272 JM |
17420 | x |
17421 | s/\(=[ ]*\).*/\1/ | |
17422 | G | |
17423 | s/\n// | |
5213506e RW |
17424 | s/^[^=]*=[ ]*$// |
17425 | }' | |
17426 | fi | |
2aeb72e9 | 17427 | |
5213506e RW |
17428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17429 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 17430 | |
1c710c3c | 17431 | |
5213506e RW |
17432 | eval set X " :F $CONFIG_FILES " |
17433 | shift | |
17434 | for ac_tag | |
17435 | do | |
17436 | case $ac_tag in | |
17437 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17438 | esac | |
17439 | case $ac_mode$ac_tag in | |
17440 | :[FHL]*:*);; | |
22e05272 | 17441 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
17442 | :[FH]-) ac_tag=-:-;; |
17443 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17444 | esac | |
17445 | ac_save_IFS=$IFS | |
17446 | IFS=: | |
17447 | set x $ac_tag | |
17448 | IFS=$ac_save_IFS | |
17449 | shift | |
17450 | ac_file=$1 | |
17451 | shift | |
79c06341 | 17452 | |
5213506e RW |
17453 | case $ac_mode in |
17454 | :L) ac_source=$1;; | |
17455 | :[FH]) | |
17456 | ac_file_inputs= | |
17457 | for ac_f | |
17458 | do | |
17459 | case $ac_f in | |
22e05272 | 17460 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
17461 | *) # Look for the file first in the build tree, then in the source tree |
17462 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17463 | # because $ac_f cannot contain `:'. | |
17464 | test -f "$ac_f" || | |
17465 | case $ac_f in | |
17466 | [\\/$]*) false;; | |
17467 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17468 | esac || | |
22e05272 | 17469 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
17470 | esac |
17471 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17472 | as_fn_append ac_file_inputs " '$ac_f'" | |
17473 | done | |
1c710c3c | 17474 | |
5213506e RW |
17475 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
17476 | # use $as_me), people would be surprised to read: | |
17477 | # /* config.h. Generated by config.status. */ | |
17478 | configure_input='Generated from '` | |
17479 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17480 | `' by configure.' | |
17481 | if test x"$ac_file" != x-; then | |
17482 | configure_input="$ac_file. $configure_input" | |
17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17484 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 17485 | fi |
5213506e RW |
17486 | # Neutralize special characters interpreted by sed in replacement strings. |
17487 | case $configure_input in #( | |
17488 | *\&* | *\|* | *\\* ) | |
17489 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17490 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17491 | *) ac_sed_conf_input=$configure_input;; | |
17492 | esac | |
11a67599 | 17493 | |
5213506e | 17494 | case $ac_tag in |
22e05272 JM |
17495 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17496 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
17497 | esac |
17498 | ;; | |
11a67599 ZW |
17499 | esac |
17500 | ||
5213506e | 17501 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
17502 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17503 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17504 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
17505 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
17506 | $as_echo X"$ac_file" | | |
17507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17508 | s//\1/ | |
17509 | q | |
17510 | } | |
17511 | /^X\(\/\/\)[^/].*/{ | |
17512 | s//\1/ | |
17513 | q | |
17514 | } | |
17515 | /^X\(\/\/\)$/{ | |
17516 | s//\1/ | |
17517 | q | |
17518 | } | |
17519 | /^X\(\/\).*/{ | |
17520 | s//\1/ | |
17521 | q | |
17522 | } | |
17523 | s/.*/./; q'` | |
17524 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 17525 | ac_builddir=. |
0b0dc272 | 17526 | |
5213506e RW |
17527 | case "$ac_dir" in |
17528 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17529 | *) | |
17530 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17531 | # A ".." for each directory in $ac_dir_suffix. | |
17532 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17533 | case $ac_top_builddir_sub in | |
17534 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17535 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17536 | esac ;; | |
17537 | esac | |
17538 | ac_abs_top_builddir=$ac_pwd | |
17539 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17540 | # for backward compatibility: | |
17541 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
17542 | |
17543 | case $srcdir in | |
5213506e | 17544 | .) # We are building in place. |
1c710c3c | 17545 | ac_srcdir=. |
5213506e RW |
17546 | ac_top_srcdir=$ac_top_builddir_sub |
17547 | ac_abs_top_srcdir=$ac_pwd ;; | |
17548 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 17549 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
17550 | ac_top_srcdir=$srcdir |
17551 | ac_abs_top_srcdir=$srcdir ;; | |
17552 | *) # Relative name. | |
17553 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17554 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17555 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 17556 | esac |
5213506e | 17557 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 17558 | |
0b0dc272 | 17559 | |
5213506e RW |
17560 | case $ac_mode in |
17561 | :F) | |
17562 | # | |
17563 | # CONFIG_FILE | |
17564 | # | |
1c710c3c DJ |
17565 | |
17566 | case $INSTALL in | |
17567 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 17568 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 17569 | esac |
5213506e | 17570 | _ACEOF |
11a67599 | 17571 | |
5213506e RW |
17572 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17573 | # If the template does not know about datarootdir, expand it. | |
17574 | # FIXME: This hack should be removed a few years after 2.60. | |
17575 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17576 | ac_sed_dataroot=' | |
17577 | /datarootdir/ { | |
17578 | p | |
17579 | q | |
17580 | } | |
17581 | /@datadir@/p | |
17582 | /@docdir@/p | |
17583 | /@infodir@/p | |
17584 | /@localedir@/p | |
17585 | /@mandir@/p' | |
17586 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17587 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17588 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17590 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 17591 | _ACEOF |
5213506e RW |
17592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17593 | ac_datarootdir_hack=' | |
17594 | s&@datadir@&$datadir&g | |
17595 | s&@docdir@&$docdir&g | |
17596 | s&@infodir@&$infodir&g | |
17597 | s&@localedir@&$localedir&g | |
17598 | s&@mandir@&$mandir&g | |
17599 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17600 | esac | |
17601 | _ACEOF | |
17602 | ||
17603 | # Neutralize VPATH when `$srcdir' = `.'. | |
17604 | # Shell code in configure.ac might set extrasub. | |
17605 | # FIXME: do we really want to maintain this feature? | |
17606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17607 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
17608 | $extrasub |
17609 | _ACEOF | |
5213506e | 17610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
17611 | :t |
17612 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
17613 | s|@configure_input@|$ac_sed_conf_input|;t t |
17614 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17615 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17616 | s&@srcdir@&$ac_srcdir&;t t | |
17617 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17618 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17619 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17620 | s&@builddir@&$ac_builddir&;t t | |
17621 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17622 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17623 | s&@INSTALL@&$ac_INSTALL&;t t | |
17624 | $ac_datarootdir_hack | |
17625 | " | |
17626 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
17627 | if $ac_cs_awk_getline; then | |
22e05272 | 17628 | $AWK -f "$ac_tmp/subs.awk" |
5213506e | 17629 | else |
22e05272 JM |
17630 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
17631 | fi \ | |
17632 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
17633 | |
17634 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
17635 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17636 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17637 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 17638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17639 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 17640 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17641 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 17642 | |
22e05272 | 17643 | rm -f "$ac_tmp/stdin" |
5213506e | 17644 | case $ac_file in |
22e05272 JM |
17645 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17646 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 17647 | esac \ |
22e05272 | 17648 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 17649 | ;; |
11a67599 | 17650 | |
11a67599 | 17651 | |
79c06341 | 17652 | |
5213506e RW |
17653 | esac |
17654 | ||
3e54529c RW |
17655 | |
17656 | case $ac_file$ac_mode in | |
17657 | "Makefile":F) sed "$extrasub_build" Makefile | | |
17658 | sed "$extrasub_host" | | |
17659 | sed "$extrasub_target" > mf$$ | |
17660 | mv -f mf$$ Makefile ;; | |
17661 | ||
17662 | esac | |
5213506e RW |
17663 | done # for ac_tag |
17664 | ||
17665 | ||
17666 | as_fn_exit 0 | |
1c710c3c | 17667 | _ACEOF |
1c710c3c DJ |
17668 | ac_clean_files=$ac_clean_files_save |
17669 | ||
5213506e | 17670 | test $ac_write_fail = 0 || |
22e05272 | 17671 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 17672 | |
1c710c3c DJ |
17673 | |
17674 | # configure is writing to config.log, and then calls config.status. | |
17675 | # config.status does its own redirection, appending to config.log. | |
17676 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17677 | # by configure, so config.status won't be able to write to it; its | |
17678 | # output is simply discarded. So we exec the FD to /dev/null, | |
17679 | # effectively closing config.log, so it can be properly (re)opened and | |
17680 | # appended to by config.status. When coming back to configure, we | |
17681 | # need to make the FD available again. | |
17682 | if test "$no_create" != yes; then | |
17683 | ac_cs_success=: | |
17684 | ac_config_status_args= | |
17685 | test "$silent" = yes && | |
17686 | ac_config_status_args="$ac_config_status_args --quiet" | |
17687 | exec 5>/dev/null | |
17688 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17689 | exec 5>>config.log | |
17690 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17691 | # would make configure fail if this is the last instruction. | |
22e05272 | 17692 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
17693 | fi |
17694 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17696 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 17697 | fi |
79c06341 | 17698 |