]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb 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 : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb 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 | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb 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 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb 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. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb 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 | |
c6b750e1 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb 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 | ||
d0ac1c44 SM |
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;} | |
81ecdfbb 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 | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb 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'\" && | |
8e957354 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" | |
81ecdfbb 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 | |
c6b750e1 | 211 | do |
81ecdfbb 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 : | |
d0ac1c44 SM |
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 | |
81ecdfbb 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." | |
c6b750e1 | 266 | else |
81ecdfbb 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." | |
c6b750e1 | 271 | fi |
81ecdfbb 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 | |
c6b750e1 | 301 | |
81ecdfbb 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" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
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 | |
81ecdfbb 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 | ||
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb 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 | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
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 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb 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 | |
c6b750e1 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
81ecdfbb 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 | |
c6b750e1 | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb 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'` | |
c6b750e1 | 456 | |
c6b750e1 DJ |
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 | |
463 | ||
c6b750e1 | 464 | |
81ecdfbb 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 | | |
c6b750e1 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
c6b750e1 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
c6b750e1 | 484 | ' >$as_me.lineno && |
81ecdfbb 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; } | |
c6b750e1 | 487 | |
d0ac1c44 SM |
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 | |
c6b750e1 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 | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
c6b750e1 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
81ecdfbb 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';; | |
c6b750e1 DJ |
511 | esac |
512 | ||
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 522 | as_ln_s='ln -s' |
81ecdfbb 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. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
c6b750e1 | 533 | fi |
c6b750e1 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
c6b750e1 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
549 | |
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 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
a0da8069 | 559 | |
c6b750e1 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
c6b750e1 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
c6b750e1 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
a0da8069 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
c6b750e1 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
c6b750e1 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
c6b750e1 DJ |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
c6b750e1 DJ |
584 | |
585 | ac_unique_file="move-if-change" | |
81ecdfbb 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 | |
b121d7d4 | 604 | READELF_FOR_TARGET |
81ecdfbb | 605 | RANLIB_FOR_TARGET |
228cf97d | 606 | OTOOL_FOR_TARGET |
81ecdfbb | 607 | OBJDUMP_FOR_TARGET |
6b91c541 | 608 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
609 | NM_FOR_TARGET |
610 | LIPO_FOR_TARGET | |
611 | LD_FOR_TARGET | |
228cf97d | 612 | DSYMUTIL_FOR_TARGET |
81ecdfbb RW |
613 | DLLTOOL_FOR_TARGET |
614 | AS_FOR_TARGET | |
615 | AR_FOR_TARGET | |
228cf97d | 616 | GDC_FOR_TARGET |
e552509b | 617 | GOC_FOR_TARGET |
81ecdfbb | 618 | GFORTRAN_FOR_TARGET |
81ecdfbb RW |
619 | GCC_FOR_TARGET |
620 | CXX_FOR_TARGET | |
621 | CC_FOR_TARGET | |
50ad1254 L |
622 | RANLIB_PLUGIN_OPTION |
623 | AR_PLUGIN_OPTION | |
9e65489a | 624 | PKG_CONFIG_PATH |
228cf97d | 625 | GDCFLAGS |
b121d7d4 | 626 | READELF |
228cf97d | 627 | OTOOL |
81ecdfbb RW |
628 | OBJDUMP |
629 | OBJCOPY | |
630 | WINDMC | |
631 | WINDRES | |
632 | STRIP | |
633 | RANLIB | |
634 | NM | |
635 | LIPO | |
636 | LD | |
228cf97d | 637 | DSYMUTIL |
81ecdfbb RW |
638 | DLLTOOL |
639 | AS | |
640 | AR | |
641 | RUNTEST | |
642 | EXPECT | |
643 | MAKEINFO | |
644 | FLEX | |
645 | LEX | |
646 | M4 | |
647 | BISON | |
648 | YACC | |
81ecdfbb RW |
649 | WINDRES_FOR_BUILD |
650 | WINDMC_FOR_BUILD | |
651 | RANLIB_FOR_BUILD | |
652 | NM_FOR_BUILD | |
653 | LD_FOR_BUILD | |
654 | LDFLAGS_FOR_BUILD | |
228cf97d | 655 | GDC_FOR_BUILD |
e552509b | 656 | GOC_FOR_BUILD |
81ecdfbb | 657 | GFORTRAN_FOR_BUILD |
228cf97d | 658 | DSYMUTIL_FOR_BUILD |
81ecdfbb RW |
659 | DLLTOOL_FOR_BUILD |
660 | CXX_FOR_BUILD | |
661 | CXXFLAGS_FOR_BUILD | |
e472ec9f | 662 | CPPFLAGS_FOR_BUILD |
228cf97d | 663 | CPP_FOR_BUILD |
81ecdfbb RW |
664 | CFLAGS_FOR_BUILD |
665 | CC_FOR_BUILD | |
666 | AS_FOR_BUILD | |
667 | AR_FOR_BUILD | |
911e63d0 | 668 | target_configdirs |
81ecdfbb | 669 | configdirs |
81ecdfbb | 670 | build_configdirs |
81ecdfbb RW |
671 | INSTALL_GDB_TK |
672 | GDB_TK | |
673 | CONFIGURE_GDB_TK | |
674 | build_tooldir | |
675 | tooldir | |
676 | GCC_SHLIB_SUBDIR | |
677 | RPATH_ENVVAR | |
4074d5f2 RW |
678 | target_configargs |
679 | host_configargs | |
680 | build_configargs | |
96655cc4 | 681 | BUILD_CONFIG |
91c1f14c | 682 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
683 | CXXFLAGS_FOR_TARGET |
684 | CFLAGS_FOR_TARGET | |
685 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
686 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 687 | get_gcc_base_ver |
e81d5d05 | 688 | extra_host_zlib_configure_flags |
700d40ca | 689 | extra_host_libiberty_configure_flags |
1b6c0831 | 690 | stage1_languages |
bf41f30d | 691 | host_shared |
1b6c0831 L |
692 | extra_linker_plugin_flags |
693 | extra_linker_plugin_configure_flags | |
7ec59b9e | 694 | islinc |
1b6c0831 | 695 | isllibs |
81ecdfbb | 696 | poststage1_ldflags |
143754cd | 697 | poststage1_libs |
81ecdfbb | 698 | stage1_ldflags |
b3676d82 | 699 | stage1_libs |
7ec59b9e | 700 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
701 | extra_mpc_mpfr_configure_flags |
702 | extra_mpc_gmp_configure_flags | |
703 | extra_mpfr_configure_flags | |
704 | gmpinc | |
705 | gmplibs | |
af019bfd L |
706 | PGO_BUILD_LTO_CFLAGS |
707 | PGO_BUILD_USE_CFLAGS | |
708 | PGO_BUILD_GEN_CFLAGS | |
228cf97d AM |
709 | HAVE_CXX11_FOR_BUILD |
710 | HAVE_CXX11 | |
81ecdfbb | 711 | do_compare |
b95bb526 | 712 | GDC |
81ecdfbb RW |
713 | GNATMAKE |
714 | GNATBIND | |
715 | ac_ct_CXX | |
716 | CXXFLAGS | |
717 | CXX | |
718 | OBJEXT | |
719 | EXEEXT | |
720 | ac_ct_CC | |
721 | CPPFLAGS | |
722 | LDFLAGS | |
723 | CFLAGS | |
724 | CC | |
1b6c0831 | 725 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
726 | target_subdir |
727 | host_subdir | |
728 | build_subdir | |
729 | build_libsubdir | |
8e957354 PB |
730 | AWK |
731 | SED | |
81ecdfbb RW |
732 | LN_S |
733 | LN | |
734 | INSTALL_DATA | |
735 | INSTALL_SCRIPT | |
736 | INSTALL_PROGRAM | |
737 | target_os | |
738 | target_vendor | |
739 | target_cpu | |
740 | target | |
741 | host_os | |
742 | host_vendor | |
743 | host_cpu | |
744 | host | |
745 | target_noncanonical | |
746 | host_noncanonical | |
747 | build_noncanonical | |
748 | build_os | |
749 | build_vendor | |
750 | build_cpu | |
751 | build | |
752 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
753 | target_alias | |
754 | host_alias | |
755 | build_alias | |
756 | LIBS | |
757 | ECHO_T | |
758 | ECHO_N | |
759 | ECHO_C | |
760 | DEFS | |
761 | mandir | |
762 | localedir | |
763 | libdir | |
764 | psdir | |
765 | pdfdir | |
766 | dvidir | |
767 | htmldir | |
768 | infodir | |
769 | docdir | |
770 | oldincludedir | |
771 | includedir | |
772 | localstatedir | |
773 | sharedstatedir | |
774 | sysconfdir | |
775 | datadir | |
776 | datarootdir | |
777 | libexecdir | |
778 | sbindir | |
779 | bindir | |
780 | program_transform_name | |
781 | prefix | |
782 | exec_prefix | |
783 | PACKAGE_URL | |
784 | PACKAGE_BUGREPORT | |
785 | PACKAGE_STRING | |
786 | PACKAGE_VERSION | |
787 | PACKAGE_TARNAME | |
788 | PACKAGE_NAME | |
789 | PATH_SEPARATOR | |
790 | SHELL' | |
791 | ac_subst_files='serialization_dependencies | |
792 | host_makefile_frag | |
793 | target_makefile_frag | |
794 | alphaieee_frag | |
795 | ospace_frag' | |
796 | ac_user_opts=' | |
797 | enable_option_checking | |
798 | with_build_libsubdir | |
cf39cfc5 | 799 | with_system_zlib |
2cac01e3 | 800 | with_zstd |
1b6c0831 L |
801 | enable_as_accelerator_for |
802 | enable_offload_targets | |
228cf97d | 803 | enable_offload_defaulted |
81ecdfbb | 804 | enable_gold |
c7791212 | 805 | enable_ld |
bb368aad | 806 | enable_gprofng |
edeefb67 | 807 | enable_compressed_debug_sections |
b0c295e1 | 808 | enable_default_compressed_debug_sections_algorithm |
e5f2f7d9 | 809 | enable_year2038 |
89a1e9c3 PB |
810 | enable_libquadmath |
811 | enable_libquadmath_support | |
81ecdfbb RW |
812 | enable_libada |
813 | enable_libssp | |
f66a9a70 | 814 | enable_libstdcxx |
1b6c0831 | 815 | enable_liboffloadmic |
ffdd6afc | 816 | enable_bootstrap |
af019bfd | 817 | enable_pgo_build |
81ecdfbb RW |
818 | with_mpc |
819 | with_mpc_include | |
820 | with_mpc_lib | |
81ecdfbb RW |
821 | with_mpfr |
822 | with_mpfr_include | |
823 | with_mpfr_lib | |
81ecdfbb RW |
824 | with_gmp |
825 | with_gmp_include | |
826 | with_gmp_lib | |
81ecdfbb | 827 | with_stage1_libs |
c1a5d03a | 828 | with_static_standard_libraries |
b3676d82 | 829 | with_stage1_ldflags |
81ecdfbb | 830 | with_boot_libs |
143754cd | 831 | with_boot_ldflags |
7ec59b9e L |
832 | with_isl |
833 | with_isl_include | |
834 | with_isl_lib | |
835 | enable_isl_version_check | |
700d40ca | 836 | enable_lto |
1b6c0831 L |
837 | enable_linker_plugin_configure_flags |
838 | enable_linker_plugin_flags | |
bf41f30d | 839 | enable_host_shared |
81ecdfbb RW |
840 | enable_stage1_languages |
841 | enable_objc_gc | |
05a13254 NC |
842 | with_target_bdw_gc |
843 | with_target_bdw_gc_include | |
844 | with_target_bdw_gc_lib | |
bf41f30d | 845 | with_gcc_major_version_only |
81ecdfbb RW |
846 | with_build_sysroot |
847 | with_debug_prefix_map | |
96655cc4 | 848 | with_build_config |
730af8ee | 849 | enable_vtable_verify |
81ecdfbb RW |
850 | enable_serial_configure |
851 | with_build_time_tools | |
852 | enable_maintainer_mode | |
853 | enable_stage1_checking | |
854 | enable_werror | |
81ecdfbb RW |
855 | ' |
856 | ac_precious_vars='build_alias | |
857 | host_alias | |
858 | target_alias | |
859 | CC | |
860 | CFLAGS | |
861 | LDFLAGS | |
862 | LIBS | |
863 | CPPFLAGS | |
864 | CXX | |
865 | CXXFLAGS | |
866 | CCC | |
4074d5f2 RW |
867 | build_configargs |
868 | host_configargs | |
869 | target_configargs | |
81ecdfbb RW |
870 | AR |
871 | AS | |
872 | DLLTOOL | |
228cf97d | 873 | DSYMUTIL |
81ecdfbb RW |
874 | LD |
875 | LIPO | |
876 | NM | |
877 | RANLIB | |
878 | STRIP | |
879 | WINDRES | |
880 | WINDMC | |
881 | OBJCOPY | |
882 | OBJDUMP | |
228cf97d | 883 | OTOOL |
b121d7d4 | 884 | READELF |
81ecdfbb RW |
885 | CC_FOR_TARGET |
886 | CXX_FOR_TARGET | |
887 | GCC_FOR_TARGET | |
81ecdfbb | 888 | GFORTRAN_FOR_TARGET |
e552509b | 889 | GOC_FOR_TARGET |
228cf97d | 890 | GDC_FOR_TARGET |
81ecdfbb RW |
891 | AR_FOR_TARGET |
892 | AS_FOR_TARGET | |
893 | DLLTOOL_FOR_TARGET | |
228cf97d | 894 | DSYMUTIL_FOR_TARGET |
81ecdfbb RW |
895 | LD_FOR_TARGET |
896 | LIPO_FOR_TARGET | |
897 | NM_FOR_TARGET | |
6b91c541 | 898 | OBJCOPY_FOR_TARGET |
81ecdfbb | 899 | OBJDUMP_FOR_TARGET |
228cf97d | 900 | OTOOL_FOR_TARGET |
81ecdfbb | 901 | RANLIB_FOR_TARGET |
b121d7d4 | 902 | READELF_FOR_TARGET |
81ecdfbb RW |
903 | STRIP_FOR_TARGET |
904 | WINDRES_FOR_TARGET | |
905 | WINDMC_FOR_TARGET' | |
906 | ||
a0da8069 NN |
907 | |
908 | # Initialize some variables set by options. | |
c6b750e1 DJ |
909 | ac_init_help= |
910 | ac_init_version=false | |
81ecdfbb RW |
911 | ac_unrecognized_opts= |
912 | ac_unrecognized_sep= | |
a0da8069 NN |
913 | # The variables have the same names as the options, with |
914 | # dashes changed to underlines. | |
c6b750e1 | 915 | cache_file=/dev/null |
a0da8069 | 916 | exec_prefix=NONE |
a0da8069 | 917 | no_create= |
a0da8069 NN |
918 | no_recursion= |
919 | prefix=NONE | |
920 | program_prefix=NONE | |
921 | program_suffix=NONE | |
922 | program_transform_name=s,x,x, | |
923 | silent= | |
924 | site= | |
925 | srcdir= | |
a0da8069 NN |
926 | verbose= |
927 | x_includes=NONE | |
928 | x_libraries=NONE | |
c6b750e1 DJ |
929 | |
930 | # Installation directory options. | |
931 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
932 | # and all the variables that are supposed to be based on exec_prefix | |
933 | # by default will actually change. | |
934 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 935 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
936 | bindir='${exec_prefix}/bin' |
937 | sbindir='${exec_prefix}/sbin' | |
938 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
939 | datarootdir='${prefix}/share' |
940 | datadir='${datarootdir}' | |
a0da8069 NN |
941 | sysconfdir='${prefix}/etc' |
942 | sharedstatedir='${prefix}/com' | |
943 | localstatedir='${prefix}/var' | |
a0da8069 NN |
944 | includedir='${prefix}/include' |
945 | oldincludedir='/usr/include' | |
81ecdfbb RW |
946 | docdir='${datarootdir}/doc/${PACKAGE}' |
947 | infodir='${datarootdir}/info' | |
948 | htmldir='${docdir}' | |
949 | dvidir='${docdir}' | |
950 | pdfdir='${docdir}' | |
951 | psdir='${docdir}' | |
952 | libdir='${exec_prefix}/lib' | |
953 | localedir='${datarootdir}/locale' | |
954 | mandir='${datarootdir}/man' | |
252b5132 | 955 | |
a0da8069 | 956 | ac_prev= |
81ecdfbb | 957 | ac_dashdash= |
a0da8069 NN |
958 | for ac_option |
959 | do | |
a0da8069 NN |
960 | # If the previous option needs an argument, assign it. |
961 | if test -n "$ac_prev"; then | |
81ecdfbb | 962 | eval $ac_prev=\$ac_option |
a0da8069 NN |
963 | ac_prev= |
964 | continue | |
965 | fi | |
252b5132 | 966 | |
81ecdfbb | 967 | case $ac_option in |
d0ac1c44 SM |
968 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
969 | *=) ac_optarg= ;; | |
970 | *) ac_optarg=yes ;; | |
81ecdfbb | 971 | esac |
a0da8069 NN |
972 | |
973 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
974 | ||
81ecdfbb RW |
975 | case $ac_dashdash$ac_option in |
976 | --) | |
977 | ac_dashdash=yes ;; | |
a0da8069 NN |
978 | |
979 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
980 | ac_prev=bindir ;; | |
981 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 982 | bindir=$ac_optarg ;; |
a0da8069 NN |
983 | |
984 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 985 | ac_prev=build_alias ;; |
a0da8069 | 986 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 987 | build_alias=$ac_optarg ;; |
a0da8069 NN |
988 | |
989 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
990 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
991 | ac_prev=cache_file ;; | |
992 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
993 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
994 | cache_file=$ac_optarg ;; |
995 | ||
996 | --config-cache | -C) | |
997 | cache_file=config.cache ;; | |
a0da8069 | 998 | |
81ecdfbb | 999 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 1000 | ac_prev=datadir ;; |
81ecdfbb | 1001 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 1002 | datadir=$ac_optarg ;; |
a0da8069 | 1003 | |
81ecdfbb RW |
1004 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1005 | | --dataroo | --dataro | --datar) | |
1006 | ac_prev=datarootdir ;; | |
1007 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1008 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1009 | datarootdir=$ac_optarg ;; | |
1010 | ||
a0da8069 | 1011 | -disable-* | --disable-*) |
81ecdfbb | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 1013 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
1024 | esac | |
1025 | eval enable_$ac_useropt=no ;; | |
1026 | ||
1027 | -docdir | --docdir | --docdi | --doc | --do) | |
1028 | ac_prev=docdir ;; | |
1029 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1030 | docdir=$ac_optarg ;; | |
1031 | ||
1032 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1033 | ac_prev=dvidir ;; | |
1034 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1035 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1036 | |
1037 | -enable-* | --enable-*) | |
81ecdfbb | 1038 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1039 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1040 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1041 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1042 | ac_useropt_orig=$ac_useropt |
1043 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1044 | case $ac_user_opts in | |
1045 | *" | |
1046 | "enable_$ac_useropt" | |
1047 | "*) ;; | |
1048 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1049 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1050 | esac |
81ecdfbb | 1051 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1052 | |
1053 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1054 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1055 | | --exec | --exe | --ex) | |
1056 | ac_prev=exec_prefix ;; | |
1057 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1058 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1059 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1060 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1061 | |
1062 | -gas | --gas | --ga | --g) | |
1063 | # Obsolete; use --with-gas. | |
1064 | with_gas=yes ;; | |
1065 | ||
c6b750e1 DJ |
1066 | -help | --help | --hel | --he | -h) |
1067 | ac_init_help=long ;; | |
1068 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1069 | ac_init_help=recursive ;; | |
1070 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1071 | ac_init_help=short ;; | |
a0da8069 NN |
1072 | |
1073 | -host | --host | --hos | --ho) | |
c6b750e1 | 1074 | ac_prev=host_alias ;; |
a0da8069 | 1075 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1076 | host_alias=$ac_optarg ;; |
a0da8069 | 1077 | |
81ecdfbb RW |
1078 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1079 | ac_prev=htmldir ;; | |
1080 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1081 | | --ht=*) | |
1082 | htmldir=$ac_optarg ;; | |
1083 | ||
a0da8069 NN |
1084 | -includedir | --includedir | --includedi | --included | --include \ |
1085 | | --includ | --inclu | --incl | --inc) | |
1086 | ac_prev=includedir ;; | |
1087 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1088 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1089 | includedir=$ac_optarg ;; |
a0da8069 NN |
1090 | |
1091 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1092 | ac_prev=infodir ;; | |
1093 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1094 | infodir=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -libdir | --libdir | --libdi | --libd) | |
1097 | ac_prev=libdir ;; | |
1098 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1099 | libdir=$ac_optarg ;; |
a0da8069 NN |
1100 | |
1101 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1102 | | --libexe | --libex | --libe) | |
1103 | ac_prev=libexecdir ;; | |
1104 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1105 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1106 | libexecdir=$ac_optarg ;; |
a0da8069 | 1107 | |
81ecdfbb RW |
1108 | -localedir | --localedir | --localedi | --localed | --locale) |
1109 | ac_prev=localedir ;; | |
1110 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1111 | localedir=$ac_optarg ;; | |
1112 | ||
a0da8069 | 1113 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1114 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1115 | ac_prev=localstatedir ;; |
1116 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1117 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1118 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1119 | |
1120 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1121 | ac_prev=mandir ;; | |
1122 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1123 | mandir=$ac_optarg ;; |
a0da8069 NN |
1124 | |
1125 | -nfp | --nfp | --nf) | |
1126 | # Obsolete; use --without-fp. | |
1127 | with_fp=no ;; | |
1128 | ||
1129 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1130 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1131 | no_create=yes ;; |
1132 | ||
1133 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1134 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1135 | no_recursion=yes ;; | |
1136 | ||
1137 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1138 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1139 | | --oldin | --oldi | --old | --ol | --o) | |
1140 | ac_prev=oldincludedir ;; | |
1141 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1142 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1143 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1144 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1147 | ac_prev=prefix ;; | |
1148 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1149 | prefix=$ac_optarg ;; |
a0da8069 NN |
1150 | |
1151 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1152 | | --program-pre | --program-pr | --program-p) | |
1153 | ac_prev=program_prefix ;; | |
1154 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1155 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1156 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1159 | | --program-suf | --program-su | --program-s) | |
1160 | ac_prev=program_suffix ;; | |
1161 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1162 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1163 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1164 | |
1165 | -program-transform-name | --program-transform-name \ | |
1166 | | --program-transform-nam | --program-transform-na \ | |
1167 | | --program-transform-n | --program-transform- \ | |
1168 | | --program-transform | --program-transfor \ | |
1169 | | --program-transfo | --program-transf \ | |
1170 | | --program-trans | --program-tran \ | |
1171 | | --progr-tra | --program-tr | --program-t) | |
1172 | ac_prev=program_transform_name ;; | |
1173 | -program-transform-name=* | --program-transform-name=* \ | |
1174 | | --program-transform-nam=* | --program-transform-na=* \ | |
1175 | | --program-transform-n=* | --program-transform-=* \ | |
1176 | | --program-transform=* | --program-transfor=* \ | |
1177 | | --program-transfo=* | --program-transf=* \ | |
1178 | | --program-trans=* | --program-tran=* \ | |
1179 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1180 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1181 | |
81ecdfbb RW |
1182 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1183 | ac_prev=pdfdir ;; | |
1184 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1185 | pdfdir=$ac_optarg ;; | |
1186 | ||
1187 | -psdir | --psdir | --psdi | --psd | --ps) | |
1188 | ac_prev=psdir ;; | |
1189 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1190 | psdir=$ac_optarg ;; | |
1191 | ||
a0da8069 NN |
1192 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1193 | | -silent | --silent | --silen | --sile | --sil) | |
1194 | silent=yes ;; | |
1195 | ||
1196 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1197 | ac_prev=sbindir ;; | |
1198 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1199 | | --sbi=* | --sb=*) | |
c6b750e1 | 1200 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1201 | |
1202 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1203 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1204 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1205 | | --sha | --sh) | |
1206 | ac_prev=sharedstatedir ;; | |
1207 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1208 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1209 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1210 | | --sha=* | --sh=*) | |
c6b750e1 | 1211 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1212 | |
1213 | -site | --site | --sit) | |
1214 | ac_prev=site ;; | |
1215 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1216 | site=$ac_optarg ;; |
a0da8069 NN |
1217 | |
1218 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1219 | ac_prev=srcdir ;; | |
1220 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1221 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1222 | |
1223 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1224 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1225 | ac_prev=sysconfdir ;; | |
1226 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1227 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1228 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1229 | |
1230 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1231 | ac_prev=target_alias ;; |
a0da8069 | 1232 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1233 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1234 | |
1235 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1236 | verbose=yes ;; | |
1237 | ||
c6b750e1 DJ |
1238 | -version | --version | --versio | --versi | --vers | -V) |
1239 | ac_init_version=: ;; | |
a0da8069 NN |
1240 | |
1241 | -with-* | --with-*) | |
81ecdfbb | 1242 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1243 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1244 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1245 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1246 | ac_useropt_orig=$ac_useropt |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1254 | esac |
81ecdfbb | 1255 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1256 | |
1257 | -without-* | --without-*) | |
81ecdfbb | 1258 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1259 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1260 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1261 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1262 | ac_useropt_orig=$ac_useropt |
1263 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1264 | case $ac_user_opts in | |
1265 | *" | |
1266 | "with_$ac_useropt" | |
1267 | "*) ;; | |
1268 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1269 | ac_unrecognized_sep=', ';; | |
1270 | esac | |
1271 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1272 | |
1273 | --x) | |
1274 | # Obsolete; use --with-x. | |
1275 | with_x=yes ;; | |
1276 | ||
1277 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1278 | | --x-incl | --x-inc | --x-in | --x-i) | |
1279 | ac_prev=x_includes ;; | |
1280 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1281 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1282 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1283 | |
1284 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1285 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1286 | ac_prev=x_libraries ;; | |
1287 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1288 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1289 | x_libraries=$ac_optarg ;; |
a0da8069 | 1290 | |
d0ac1c44 SM |
1291 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1292 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1293 | ;; |
1294 | ||
c6b750e1 DJ |
1295 | *=*) |
1296 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1297 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1298 | case $ac_envvar in #( |
1299 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1300 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1301 | esac |
1302 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1303 | export $ac_envvar ;; |
1304 | ||
a0da8069 | 1305 | *) |
c6b750e1 | 1306 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1307 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1308 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1309 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1310 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1311 | ;; |
1312 | ||
1313 | esac | |
1314 | done | |
1315 | ||
1316 | if test -n "$ac_prev"; then | |
c6b750e1 | 1317 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1318 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1319 | fi |
a0da8069 | 1320 | |
81ecdfbb RW |
1321 | if test -n "$ac_unrecognized_opts"; then |
1322 | case $enable_option_checking in | |
1323 | no) ;; | |
d0ac1c44 | 1324 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1325 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1326 | esac |
81ecdfbb | 1327 | fi |
a0da8069 | 1328 | |
81ecdfbb RW |
1329 | # Check all directory arguments for consistency. |
1330 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1331 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1332 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1333 | libdir localedir mandir | |
a0da8069 | 1334 | do |
81ecdfbb RW |
1335 | eval ac_val=\$$ac_var |
1336 | # Remove trailing slashes. | |
1337 | case $ac_val in | |
1338 | */ ) | |
1339 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1340 | eval $ac_var=\$ac_val;; | |
1341 | esac | |
1342 | # Be sure to have absolute directory names. | |
c6b750e1 | 1343 | case $ac_val in |
81ecdfbb RW |
1344 | [\\/$]* | ?:[\\/]* ) continue;; |
1345 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1346 | esac |
d0ac1c44 | 1347 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1348 | done |
1349 | ||
c6b750e1 DJ |
1350 | # There might be people who depend on the old broken behavior: `$host' |
1351 | # used to hold the argument of --host etc. | |
1352 | # FIXME: To remove some day. | |
1353 | build=$build_alias | |
1354 | host=$host_alias | |
1355 | target=$target_alias | |
376a0e54 | 1356 | |
c6b750e1 DJ |
1357 | # FIXME: To remove some day. |
1358 | if test "x$host_alias" != x; then | |
1359 | if test "x$build_alias" = x; then | |
1360 | cross_compiling=maybe | |
c6b750e1 DJ |
1361 | elif test "x$build_alias" != "x$host_alias"; then |
1362 | cross_compiling=yes | |
1363 | fi | |
1364 | fi | |
1365 | ||
1366 | ac_tool_prefix= | |
1367 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1368 | ||
1369 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1370 | |
a0da8069 | 1371 | |
81ecdfbb RW |
1372 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1373 | ac_ls_di=`ls -di .` && | |
1374 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1375 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1376 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1377 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1378 | |
1379 | ||
a0da8069 NN |
1380 | # Find the source files, if location was not specified. |
1381 | if test -z "$srcdir"; then | |
1382 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1383 | # Try the directory containing this script, then the parent directory. |
1384 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1385 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1386 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1387 | X"$as_myself" : 'X\(//\)$' \| \ | |
1388 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1389 | $as_echo X"$as_myself" | | |
1390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\/\)[^/].*/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)$/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\).*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | s/.*/./; q'` | |
a0da8069 | 1407 | srcdir=$ac_confdir |
81ecdfbb | 1408 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1409 | srcdir=.. |
1410 | fi | |
1411 | else | |
1412 | ac_srcdir_defaulted=no | |
1413 | fi | |
81ecdfbb RW |
1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
1415 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1416 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1417 | fi |
1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1419 | ac_abs_confdir=`( | |
d0ac1c44 | 1420 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1421 | pwd)` |
1422 | # When building in place, set srcdir=. | |
1423 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1424 | srcdir=. | |
1425 | fi | |
1426 | # Remove unnecessary trailing slashes from srcdir. | |
1427 | # Double slashes in file names in object file debugging info | |
1428 | # mess up M-x gdb in Emacs. | |
1429 | case $srcdir in | |
1430 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1431 | esac | |
6d0cd39e AM |
1432 | case $srcdir in |
1433 | *" "*) | |
d0ac1c44 | 1434 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1435 | ;; |
1436 | esac | |
9cc8ae67 PB |
1437 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1438 | ||
81ecdfbb RW |
1439 | for ac_var in $ac_precious_vars; do |
1440 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1441 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1442 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1443 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1444 | done | |
c6b750e1 DJ |
1445 | |
1446 | # | |
1447 | # Report the --help message. | |
1448 | # | |
1449 | if test "$ac_init_help" = "long"; then | |
1450 | # Omit some internal or obsolete options to make the list less imposing. | |
1451 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1452 | cat <<_ACEOF | |
1453 | \`configure' configures this package to adapt to many kinds of systems. | |
1454 | ||
1455 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1456 | ||
1457 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1458 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1459 | ||
1460 | Defaults for the options are specified in brackets. | |
1461 | ||
1462 | Configuration: | |
1463 | -h, --help display this help and exit | |
1464 | --help=short display options specific to this package | |
1465 | --help=recursive display the short help of all the included packages | |
1466 | -V, --version display version information and exit | |
d0ac1c44 | 1467 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1468 | --cache-file=FILE cache test results in FILE [disabled] |
1469 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1470 | -n, --no-create do not create output files | |
1471 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1472 | ||
c6b750e1 DJ |
1473 | Installation directories: |
1474 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1475 | [$ac_default_prefix] |
c6b750e1 | 1476 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1477 | [PREFIX] |
c6b750e1 DJ |
1478 | |
1479 | By default, \`make install' will install all the files in | |
1480 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1481 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1482 | for instance \`--prefix=\$HOME'. | |
1483 | ||
1484 | For better control, use the options below. | |
1485 | ||
1486 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1487 | --bindir=DIR user executables [EPREFIX/bin] |
1488 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1489 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1490 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1491 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1492 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1493 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1494 | --includedir=DIR C header files [PREFIX/include] | |
1495 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1496 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1497 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1498 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1499 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1500 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1501 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1502 | --htmldir=DIR html documentation [DOCDIR] | |
1503 | --dvidir=DIR dvi documentation [DOCDIR] | |
1504 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1505 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1506 | _ACEOF |
1507 | ||
1508 | cat <<\_ACEOF | |
1509 | ||
1510 | Program names: | |
1511 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1512 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1513 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1514 | ||
1515 | System types: | |
1516 | --build=BUILD configure for building on BUILD [guessed] | |
1517 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1518 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1519 | _ACEOF | |
a0da8069 | 1520 | fi |
a0da8069 | 1521 | |
c6b750e1 DJ |
1522 | if test -n "$ac_init_help"; then |
1523 | ||
1524 | cat <<\_ACEOF | |
1525 | ||
1526 | Optional Features: | |
81ecdfbb | 1527 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1528 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1529 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1530 | --enable-as-accelerator-for=ARG |
1531 | build as offload target compiler. Specify offload | |
1532 | host triple by ARG | |
1533 | --enable-offload-targets=LIST | |
1534 | enable offloading to devices from comma-separated | |
1535 | LIST of TARGET[=DIR]. Use optional path to find | |
1536 | offload target compiler during the build | |
228cf97d AM |
1537 | --enable-offload-defaulted |
1538 | If enabled, configured but not installed offload compilers and | |
1539 | libgomp plugins are silently ignored. Useful for distribution | |
1540 | compilers where those are in separate optional packages. | |
1541 | ||
c7791212 | 1542 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1543 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
bb368aad | 1544 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
6c3bc0f8 | 1545 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1546 | Enable compressed debug sections for gas, gold or ld |
1547 | by default | |
b0c295e1 ML |
1548 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1549 | Default compression algorithm for | |
1550 | --enable-compressed-debug-sections. | |
e5f2f7d9 | 1551 | --enable-year2038 enable support for timestamps past the year 2038 |
89a1e9c3 PB |
1552 | --disable-libquadmath do not build libquadmath directory |
1553 | --disable-libquadmath-support | |
1554 | disable libquadmath support for Fortran | |
521ec477 DD |
1555 | --enable-libada build libada directory |
1556 | --enable-libssp build libssp directory | |
f66a9a70 | 1557 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1558 | --enable-liboffloadmic=ARG |
1559 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1560 | --enable-bootstrap enable bootstrapping [yes if native build] |
af019bfd L |
1561 | --enable-pgo-build[=lto] |
1562 | enable the PGO build | |
7ec59b9e | 1563 | --disable-isl-version-check |
4849dfd8 | 1564 | disable check for isl version |
700d40ca | 1565 | --enable-lto enable link time optimization support |
1b6c0831 L |
1566 | --enable-linker-plugin-configure-flags=FLAGS |
1567 | additional flags for configuring linker plugins | |
1568 | [none] | |
1569 | --enable-linker-plugin-flags=FLAGS | |
1570 | additional flags for configuring and building linker | |
1571 | plugins [none] | |
bf41f30d | 1572 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1573 | --enable-stage1-languages[=all] |
1574 | choose additional languages to build during stage1. | |
1575 | Mostly useful for compiler development | |
1576 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1577 | Objective-C runtime | |
ce6c656d | 1578 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1579 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1580 | force sequential configuration of sub-packages for |
1581 | the host, target or build machine, or all | |
1582 | sub-packages | |
1583 | --enable-maintainer-mode | |
1584 | enable make rules and dependencies not useful (and | |
1585 | sometimes confusing) to the casual installer | |
1586 | --enable-stage1-checking[=all] | |
1587 | choose additional checking for stage1 of the | |
1588 | compiler | |
c6b750e1 DJ |
1589 | --enable-werror enable -Werror in bootstrap stage2 and later |
1590 | ||
1591 | Optional Packages: | |
1592 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1593 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1594 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1595 | --with-system-zlib use installed libz |
2cac01e3 FS |
1596 | --with-zstd Support zstd compressed debug sections |
1597 | (default=auto) | |
7837304f AS |
1598 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1599 | Equivalent to --with-mpc-include=PATH/include plus | |
1600 | --with-mpc-lib=PATH/lib | |
1601 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1602 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 | 1603 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
7837304f AS |
1604 | Equivalent to --with-mpfr-include=PATH/include plus |
1605 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1606 | --with-mpfr-include=PATH |
521ec477 DD |
1607 | specify directory for installed MPFR include files |
1608 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
7837304f AS |
1609 | --with-gmp=PATH specify prefix directory for the installed GMP |
1610 | package. Equivalent to | |
1611 | --with-gmp-include=PATH/include plus | |
1612 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1613 | --with-gmp-include=PATH specify directory for installed GMP include files |
1614 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1615 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1616 | --with-static-standard-libraries |
1617 | use -static-libstdc++ and -static-libgcc | |
1618 | (default=auto) | |
7837304f AS |
1619 | --with-stage1-ldflags=FLAGS |
1620 | linker flags for stage1 | |
7837304f AS |
1621 | --with-boot-libs=LIBS libraries for stage2 and later |
1622 | --with-boot-ldflags=FLAGS | |
1623 | linker flags for stage2 and later | |
4849dfd8 | 1624 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1625 | package. Equivalent to |
7ec59b9e L |
1626 | --with-isl-include=PATH/include plus |
1627 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1628 | --with-isl-include=PATH Specify directory for installed isl include files |
1629 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1630 | --with-target-bdw-gc=PATHLIST |
1631 | specify prefix directory for installed bdw-gc | |
1632 | package. Equivalent to | |
1633 | --with-target-bdw-gc-include=PATH/include plus | |
1634 | --with-target-bdw-gc-lib=PATH/lib | |
1635 | --with-target-bdw-gc-include=PATHLIST | |
1636 | specify directories for installed bdw-gc include | |
1637 | files | |
1638 | --with-target-bdw-gc-lib=PATHLIST | |
1639 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1640 | --with-gcc-major-version-only |
1641 | use only GCC major number in filesystem paths | |
521ec477 | 1642 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1643 | use sysroot as the system root during the build |
8a6ee3ab | 1644 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1645 | map A to B, C to D ... in debug information |
1646 | --with-build-config='NAME NAME2...' | |
1647 | use config/NAME.mk build configuration | |
521ec477 | 1648 | --with-build-time-tools=PATH |
c6b750e1 | 1649 | use given path to find target tools during the build |
c6b750e1 DJ |
1650 | |
1651 | Some influential environment variables: | |
1652 | CC C compiler command | |
1653 | CFLAGS C compiler flags | |
1654 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1655 | nonstandard directory <lib dir> | |
81ecdfbb | 1656 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1657 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1658 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1659 | CXX C++ compiler command |
1660 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1661 | build_configargs |
1662 | additional configure arguments for build directories | |
1663 | host_configargs | |
1664 | additional configure arguments for host directories | |
1665 | target_configargs | |
1666 | additional configure arguments for target directories | |
9a819804 AO |
1667 | AR AR for the host |
1668 | AS AS for the host | |
1669 | DLLTOOL DLLTOOL for the host | |
228cf97d | 1670 | DSYMUTIL DSYMUTIL for the host |
9a819804 AO |
1671 | LD LD for the host |
1672 | LIPO LIPO for the host | |
1673 | NM NM for the host | |
1674 | RANLIB RANLIB for the host | |
1675 | STRIP STRIP for the host | |
1676 | WINDRES WINDRES for the host | |
0c24b341 | 1677 | WINDMC WINDMC for the host |
9a819804 AO |
1678 | OBJCOPY OBJCOPY for the host |
1679 | OBJDUMP OBJDUMP for the host | |
228cf97d | 1680 | OTOOL OTOOL for the host |
b121d7d4 | 1681 | READELF READELF for the host |
9a819804 AO |
1682 | CC_FOR_TARGET |
1683 | CC for the target | |
1684 | CXX_FOR_TARGET | |
1685 | CXX for the target | |
1686 | GCC_FOR_TARGET | |
1687 | GCC for the target | |
9a819804 AO |
1688 | GFORTRAN_FOR_TARGET |
1689 | GFORTRAN for the target | |
e552509b ILT |
1690 | GOC_FOR_TARGET |
1691 | GOC for the target | |
228cf97d AM |
1692 | GDC_FOR_TARGET |
1693 | GDC for the target | |
9a819804 AO |
1694 | AR_FOR_TARGET |
1695 | AR for the target | |
1696 | AS_FOR_TARGET | |
1697 | AS for the target | |
1698 | DLLTOOL_FOR_TARGET | |
1699 | DLLTOOL for the target | |
228cf97d AM |
1700 | DSYMUTIL_FOR_TARGET |
1701 | DSYMUTIL for the target | |
9a819804 AO |
1702 | LD_FOR_TARGET |
1703 | LD for the target | |
1704 | LIPO_FOR_TARGET | |
1705 | LIPO for the target | |
1706 | NM_FOR_TARGET | |
1707 | NM for the target | |
6b91c541 AP |
1708 | OBJCOPY_FOR_TARGET |
1709 | OBJCOPY for the target | |
9a819804 AO |
1710 | OBJDUMP_FOR_TARGET |
1711 | OBJDUMP for the target | |
228cf97d AM |
1712 | OTOOL_FOR_TARGET |
1713 | OTOOL for the target | |
9a819804 AO |
1714 | RANLIB_FOR_TARGET |
1715 | RANLIB for the target | |
b121d7d4 DD |
1716 | READELF_FOR_TARGET |
1717 | READELF for the target | |
9a819804 AO |
1718 | STRIP_FOR_TARGET |
1719 | STRIP for the target | |
1720 | WINDRES_FOR_TARGET | |
1721 | WINDRES for the target | |
0c24b341 NC |
1722 | WINDMC_FOR_TARGET |
1723 | WINDMC for the target | |
c6b750e1 DJ |
1724 | |
1725 | Use these variables to override the choices made by `configure' or to help | |
1726 | it to find libraries and programs with nonstandard names/locations. | |
1727 | ||
81ecdfbb | 1728 | Report bugs to the package provider. |
c6b750e1 | 1729 | _ACEOF |
81ecdfbb | 1730 | ac_status=$? |
c6b750e1 DJ |
1731 | fi |
1732 | ||
1733 | if test "$ac_init_help" = "recursive"; then | |
1734 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1735 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1736 | test -d "$ac_dir" || |
1737 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1738 | continue | |
c6b750e1 DJ |
1739 | ac_builddir=. |
1740 | ||
81ecdfbb RW |
1741 | case "$ac_dir" in |
1742 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1743 | *) | |
1744 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1745 | # A ".." for each directory in $ac_dir_suffix. | |
1746 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1747 | case $ac_top_builddir_sub in | |
1748 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1749 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1750 | esac ;; | |
1751 | esac | |
1752 | ac_abs_top_builddir=$ac_pwd | |
1753 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1754 | # for backward compatibility: | |
1755 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1756 | |
1757 | case $srcdir in | |
81ecdfbb | 1758 | .) # We are building in place. |
c6b750e1 | 1759 | ac_srcdir=. |
81ecdfbb RW |
1760 | ac_top_srcdir=$ac_top_builddir_sub |
1761 | ac_abs_top_srcdir=$ac_pwd ;; | |
1762 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1763 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1764 | ac_top_srcdir=$srcdir |
1765 | ac_abs_top_srcdir=$srcdir ;; | |
1766 | *) # Relative name. | |
1767 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1768 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1769 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1770 | esac |
81ecdfbb RW |
1771 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1772 | ||
1773 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1774 | # Check for guested configure. | |
1775 | if test -f "$ac_srcdir/configure.gnu"; then | |
1776 | echo && | |
1777 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1778 | elif test -f "$ac_srcdir/configure"; then | |
1779 | echo && | |
1780 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1781 | else |
81ecdfbb RW |
1782 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1783 | fi || ac_status=$? | |
1784 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1785 | done |
1786 | fi | |
1787 | ||
81ecdfbb | 1788 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1789 | if $ac_init_version; then |
1790 | cat <<\_ACEOF | |
81ecdfbb | 1791 | configure |
d0ac1c44 | 1792 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1793 | |
d0ac1c44 | 1794 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1795 | This configure script is free software; the Free Software Foundation |
1796 | gives unlimited permission to copy, distribute and modify it. | |
1797 | _ACEOF | |
81ecdfbb | 1798 | exit |
c6b750e1 | 1799 | fi |
81ecdfbb RW |
1800 | |
1801 | ## ------------------------ ## | |
1802 | ## Autoconf initialization. ## | |
1803 | ## ------------------------ ## | |
1804 | ||
1805 | # ac_fn_c_try_compile LINENO | |
1806 | # -------------------------- | |
1807 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1808 | ac_fn_c_try_compile () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | rm -f conftest.$ac_objext | |
1812 | if { { ac_try="$ac_compile" | |
1813 | case "(($ac_try" in | |
1814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1815 | *) ac_try_echo=$ac_try;; | |
1816 | esac | |
1817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1818 | $as_echo "$ac_try_echo"; } >&5 | |
1819 | (eval "$ac_compile") 2>conftest.err | |
1820 | ac_status=$? | |
1821 | if test -s conftest.err; then | |
1822 | grep -v '^ *+' conftest.err >conftest.er1 | |
1823 | cat conftest.er1 >&5 | |
1824 | mv -f conftest.er1 conftest.err | |
1825 | fi | |
1826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1827 | test $ac_status = 0; } && { | |
1828 | test -z "$ac_c_werror_flag" || | |
1829 | test ! -s conftest.err | |
1830 | } && test -s conftest.$ac_objext; then : | |
1831 | ac_retval=0 | |
1832 | else | |
1833 | $as_echo "$as_me: failed program was:" >&5 | |
1834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1835 | ||
1836 | ac_retval=1 | |
1837 | fi | |
d0ac1c44 SM |
1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1839 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1840 | |
1841 | } # ac_fn_c_try_compile | |
1842 | ||
1843 | # ac_fn_cxx_try_compile LINENO | |
1844 | # ---------------------------- | |
1845 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1846 | ac_fn_cxx_try_compile () | |
1847 | { | |
1848 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1849 | rm -f conftest.$ac_objext | |
1850 | if { { ac_try="$ac_compile" | |
1851 | case "(($ac_try" in | |
1852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1853 | *) ac_try_echo=$ac_try;; | |
1854 | esac | |
1855 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1856 | $as_echo "$ac_try_echo"; } >&5 | |
1857 | (eval "$ac_compile") 2>conftest.err | |
1858 | ac_status=$? | |
1859 | if test -s conftest.err; then | |
1860 | grep -v '^ *+' conftest.err >conftest.er1 | |
1861 | cat conftest.er1 >&5 | |
1862 | mv -f conftest.er1 conftest.err | |
1863 | fi | |
1864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1865 | test $ac_status = 0; } && { | |
1866 | test -z "$ac_cxx_werror_flag" || | |
1867 | test ! -s conftest.err | |
1868 | } && test -s conftest.$ac_objext; then : | |
1869 | ac_retval=0 | |
1870 | else | |
1871 | $as_echo "$as_me: failed program was:" >&5 | |
1872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | ||
1874 | ac_retval=1 | |
1875 | fi | |
d0ac1c44 SM |
1876 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1877 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1878 | |
1879 | } # ac_fn_cxx_try_compile | |
1880 | ||
b3676d82 EB |
1881 | # ac_fn_cxx_try_link LINENO |
1882 | # ------------------------- | |
1883 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1884 | ac_fn_cxx_try_link () | |
1885 | { | |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1888 | if { { ac_try="$ac_link" | |
1889 | case "(($ac_try" in | |
1890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1891 | *) ac_try_echo=$ac_try;; | |
1892 | esac | |
1893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1894 | $as_echo "$ac_try_echo"; } >&5 | |
1895 | (eval "$ac_link") 2>conftest.err | |
1896 | ac_status=$? | |
1897 | if test -s conftest.err; then | |
1898 | grep -v '^ *+' conftest.err >conftest.er1 | |
1899 | cat conftest.er1 >&5 | |
1900 | mv -f conftest.er1 conftest.err | |
1901 | fi | |
1902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1903 | test $ac_status = 0; } && { | |
1904 | test -z "$ac_cxx_werror_flag" || | |
1905 | test ! -s conftest.err | |
1906 | } && test -s conftest$ac_exeext && { | |
1907 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1908 | test -x conftest$ac_exeext |
b3676d82 EB |
1909 | }; then : |
1910 | ac_retval=0 | |
1911 | else | |
1912 | $as_echo "$as_me: failed program was:" >&5 | |
1913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1914 | ||
1915 | ac_retval=1 | |
1916 | fi | |
1917 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1918 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1919 | # interfere with the next link command; also delete a directory that is | |
1920 | # left behind by Apple's compiler. We do this before executing the actions. | |
1921 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1922 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1923 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1924 | |
1925 | } # ac_fn_cxx_try_link | |
1926 | ||
81ecdfbb RW |
1927 | # ac_fn_c_try_link LINENO |
1928 | # ----------------------- | |
1929 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1930 | ac_fn_c_try_link () | |
1931 | { | |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1934 | if { { ac_try="$ac_link" | |
1935 | case "(($ac_try" in | |
1936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1937 | *) ac_try_echo=$ac_try;; | |
1938 | esac | |
1939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1940 | $as_echo "$ac_try_echo"; } >&5 | |
1941 | (eval "$ac_link") 2>conftest.err | |
1942 | ac_status=$? | |
1943 | if test -s conftest.err; then | |
1944 | grep -v '^ *+' conftest.err >conftest.er1 | |
1945 | cat conftest.er1 >&5 | |
1946 | mv -f conftest.er1 conftest.err | |
1947 | fi | |
1948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1949 | test $ac_status = 0; } && { | |
1950 | test -z "$ac_c_werror_flag" || | |
1951 | test ! -s conftest.err | |
1952 | } && test -s conftest$ac_exeext && { | |
1953 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1954 | test -x conftest$ac_exeext |
81ecdfbb RW |
1955 | }; then : |
1956 | ac_retval=0 | |
1957 | else | |
1958 | $as_echo "$as_me: failed program was:" >&5 | |
1959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1960 | ||
1961 | ac_retval=1 | |
1962 | fi | |
1963 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1964 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1965 | # interfere with the next link command; also delete a directory that is | |
1966 | # left behind by Apple's compiler. We do this before executing the actions. | |
1967 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1968 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1969 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1970 | |
1971 | } # ac_fn_c_try_link | |
1972 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1973 | This file contains any messages produced by compilers while |
1974 | running configure, to aid debugging if configure makes a mistake. | |
1975 | ||
1976 | It was created by $as_me, which was | |
d0ac1c44 | 1977 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1978 | |
1979 | $ $0 $@ | |
1980 | ||
1981 | _ACEOF | |
81ecdfbb | 1982 | exec 5>>config.log |
c6b750e1 DJ |
1983 | { |
1984 | cat <<_ASUNAME | |
1985 | ## --------- ## | |
1986 | ## Platform. ## | |
1987 | ## --------- ## | |
1988 | ||
1989 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1990 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1991 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1992 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1993 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1994 | ||
1995 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1996 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1997 | ||
1998 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1999 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2000 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2001 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
2002 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2003 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2004 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2005 | ||
2006 | _ASUNAME | |
2007 | ||
2008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2009 | for as_dir in $PATH | |
2010 | do | |
2011 | IFS=$as_save_IFS | |
2012 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2013 | $as_echo "PATH: $as_dir" |
2014 | done | |
2015 | IFS=$as_save_IFS | |
c6b750e1 DJ |
2016 | |
2017 | } >&5 | |
2018 | ||
2019 | cat >&5 <<_ACEOF | |
2020 | ||
2021 | ||
2022 | ## ----------- ## | |
2023 | ## Core tests. ## | |
2024 | ## ----------- ## | |
2025 | ||
2026 | _ACEOF | |
2027 | ||
2028 | ||
2029 | # Keep a trace of the command line. | |
2030 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2031 | # Strip out --silent because we don't want to record it for future runs. | |
2032 | # Also quote any args containing shell meta-characters. | |
2033 | # Make two passes to allow for proper duplicate-argument suppression. | |
2034 | ac_configure_args= | |
2035 | ac_configure_args0= | |
2036 | ac_configure_args1= | |
c6b750e1 DJ |
2037 | ac_must_keep_next=false |
2038 | for ac_pass in 1 2 | |
2039 | do | |
2040 | for ac_arg | |
2041 | do | |
2042 | case $ac_arg in | |
2043 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2044 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2045 | | -silent | --silent | --silen | --sile | --sil) | |
2046 | continue ;; | |
81ecdfbb RW |
2047 | *\'*) |
2048 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2049 | esac |
2050 | case $ac_pass in | |
81ecdfbb | 2051 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2052 | 2) |
81ecdfbb | 2053 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2054 | if test $ac_must_keep_next = true; then |
2055 | ac_must_keep_next=false # Got value, back to normal. | |
2056 | else | |
2057 | case $ac_arg in | |
2058 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2059 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2060 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2061 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2062 | case "$ac_configure_args0 " in | |
2063 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2064 | esac | |
2065 | ;; | |
2066 | -* ) ac_must_keep_next=true ;; | |
2067 | esac | |
2068 | fi | |
81ecdfbb | 2069 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2070 | ;; |
2071 | esac | |
2072 | done | |
2073 | done | |
81ecdfbb RW |
2074 | { ac_configure_args0=; unset ac_configure_args0;} |
2075 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2076 | |
2077 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2078 | # config.log. We remove comments because anyway the quotes in there | |
2079 | # would cause problems or look ugly. | |
81ecdfbb RW |
2080 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2081 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2082 | trap 'exit_status=$? |
2083 | # Save into config.log some information that might help in debugging. | |
2084 | { | |
2085 | echo | |
2086 | ||
d0ac1c44 | 2087 | $as_echo "## ---------------- ## |
c6b750e1 | 2088 | ## Cache variables. ## |
d0ac1c44 | 2089 | ## ---------------- ##" |
c6b750e1 DJ |
2090 | echo |
2091 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2092 | ( |
2093 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2094 | eval ac_val=\$$ac_var | |
2095 | case $ac_val in #( | |
2096 | *${as_nl}*) | |
2097 | case $ac_var in #( | |
2098 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2099 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2100 | esac | |
2101 | case $ac_var in #( | |
2102 | _ | IFS | as_nl) ;; #( | |
2103 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2104 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2105 | esac ;; | |
2106 | esac | |
2107 | done | |
c6b750e1 | 2108 | (set) 2>&1 | |
81ecdfbb RW |
2109 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2110 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2111 | sed -n \ |
81ecdfbb RW |
2112 | "s/'\''/'\''\\\\'\'''\''/g; |
2113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2114 | ;; #( | |
c6b750e1 | 2115 | *) |
81ecdfbb | 2116 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2117 | ;; |
81ecdfbb RW |
2118 | esac | |
2119 | sort | |
2120 | ) | |
c6b750e1 DJ |
2121 | echo |
2122 | ||
d0ac1c44 | 2123 | $as_echo "## ----------------- ## |
c6b750e1 | 2124 | ## Output variables. ## |
d0ac1c44 | 2125 | ## ----------------- ##" |
c6b750e1 DJ |
2126 | echo |
2127 | for ac_var in $ac_subst_vars | |
2128 | do | |
81ecdfbb RW |
2129 | eval ac_val=\$$ac_var |
2130 | case $ac_val in | |
2131 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2132 | esac | |
2133 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2134 | done | sort |
2135 | echo | |
2136 | ||
2137 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2138 | $as_echo "## ------------------- ## |
81ecdfbb | 2139 | ## File substitutions. ## |
d0ac1c44 | 2140 | ## ------------------- ##" |
c6b750e1 DJ |
2141 | echo |
2142 | for ac_var in $ac_subst_files | |
2143 | do | |
81ecdfbb RW |
2144 | eval ac_val=\$$ac_var |
2145 | case $ac_val in | |
2146 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2147 | esac | |
2148 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2149 | done | sort |
2150 | echo | |
2151 | fi | |
2152 | ||
2153 | if test -s confdefs.h; then | |
d0ac1c44 | 2154 | $as_echo "## ----------- ## |
c6b750e1 | 2155 | ## confdefs.h. ## |
d0ac1c44 | 2156 | ## ----------- ##" |
c6b750e1 | 2157 | echo |
81ecdfbb | 2158 | cat confdefs.h |
c6b750e1 DJ |
2159 | echo |
2160 | fi | |
2161 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2162 | $as_echo "$as_me: caught signal $ac_signal" |
2163 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2164 | } >&5 |
81ecdfbb RW |
2165 | rm -f core *.core core.conftest.* && |
2166 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2167 | exit $exit_status |
81ecdfbb | 2168 | ' 0 |
c6b750e1 | 2169 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2170 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2171 | done |
2172 | ac_signal=0 | |
2173 | ||
2174 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2175 | rm -f -r conftest* confdefs.h |
2176 | ||
2177 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2178 | |
2179 | # Predefined preprocessor variables. | |
2180 | ||
2181 | cat >>confdefs.h <<_ACEOF | |
2182 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2183 | _ACEOF | |
2184 | ||
c6b750e1 DJ |
2185 | cat >>confdefs.h <<_ACEOF |
2186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2187 | _ACEOF | |
2188 | ||
c6b750e1 DJ |
2189 | cat >>confdefs.h <<_ACEOF |
2190 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2191 | _ACEOF | |
2192 | ||
c6b750e1 DJ |
2193 | cat >>confdefs.h <<_ACEOF |
2194 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2195 | _ACEOF | |
2196 | ||
c6b750e1 DJ |
2197 | cat >>confdefs.h <<_ACEOF |
2198 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2199 | _ACEOF | |
2200 | ||
81ecdfbb RW |
2201 | cat >>confdefs.h <<_ACEOF |
2202 | #define PACKAGE_URL "$PACKAGE_URL" | |
2203 | _ACEOF | |
2204 | ||
c6b750e1 DJ |
2205 | |
2206 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2207 | # Prefer an explicitly selected file to automatically selected ones. |
2208 | ac_site_file1=NONE | |
2209 | ac_site_file2=NONE | |
2210 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2211 | # We do not want a PATH search for config.site. |
2212 | case $CONFIG_SITE in #(( | |
2213 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2214 | */*) ac_site_file1=$CONFIG_SITE;; | |
2215 | *) ac_site_file1=./$CONFIG_SITE;; | |
2216 | esac | |
81ecdfbb RW |
2217 | elif test "x$prefix" != xNONE; then |
2218 | ac_site_file1=$prefix/share/config.site | |
2219 | ac_site_file2=$prefix/etc/config.site | |
2220 | else | |
2221 | ac_site_file1=$ac_default_prefix/share/config.site | |
2222 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2223 | fi |
81ecdfbb RW |
2224 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2225 | do | |
2226 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2227 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2229 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2230 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2231 | . "$ac_site_file" \ |
2232 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2233 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2234 | as_fn_error $? "failed to load site script $ac_site_file | |
2235 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2236 | fi |
2237 | done | |
2238 | ||
2239 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2240 | # Some versions of bash will fail to source /dev/null (special files |
2241 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2242 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2244 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2245 | case $cache_file in |
81ecdfbb RW |
2246 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2247 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2248 | esac |
2249 | fi | |
a0da8069 | 2250 | else |
81ecdfbb RW |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2252 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2253 | >$cache_file |
2254 | fi | |
2255 | ||
2256 | # Check that the precious variables saved in the cache have kept the same | |
2257 | # value. | |
2258 | ac_cache_corrupted=false | |
81ecdfbb | 2259 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2260 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2261 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2262 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2263 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2264 | case $ac_old_set,$ac_new_set in |
2265 | set,) | |
81ecdfbb RW |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2267 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2268 | ac_cache_corrupted=: ;; |
2269 | ,set) | |
81ecdfbb RW |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2271 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2272 | ac_cache_corrupted=: ;; |
2273 | ,);; | |
2274 | *) | |
2275 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2276 | # differences in whitespace do not lead to failure. |
2277 | ac_old_val_w=`echo x $ac_old_val` | |
2278 | ac_new_val_w=`echo x $ac_new_val` | |
2279 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2281 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2282 | ac_cache_corrupted=: | |
2283 | else | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2285 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2286 | eval $ac_var=\$ac_old_val | |
2287 | fi | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2289 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2291 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2292 | fi;; |
2293 | esac | |
2294 | # Pass precious variables to config.status. | |
2295 | if test "$ac_new_set" = set; then | |
2296 | case $ac_new_val in | |
81ecdfbb | 2297 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2298 | *) ac_arg=$ac_var=$ac_new_val ;; |
2299 | esac | |
2300 | case " $ac_configure_args " in | |
2301 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2302 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2303 | esac |
2304 | fi | |
2305 | done | |
2306 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2310 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2311 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2312 | fi |
81ecdfbb RW |
2313 | ## -------------------- ## |
2314 | ## Main body of script. ## | |
2315 | ## -------------------- ## | |
a0da8069 NN |
2316 | |
2317 | ac_ext=c | |
a0da8069 | 2318 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2322 | ||
2323 | ||
2324 | ||
2325 | ||
c6b750e1 DJ |
2326 | |
2327 | ||
34a0f3cf | 2328 | |
c6b750e1 | 2329 | |
5b553f7e RW |
2330 | progname=$0 |
2331 | # if PWD already has a value, it is probably wrong. | |
2332 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2333 | ||
2334 | # Export original configure arguments for use by sub-configures. | |
2335 | # Quote arguments with shell meta charatcers. | |
2336 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2337 | set -- "$progname" "$@" | |
2338 | for ac_arg | |
2339 | do | |
2340 | case "$ac_arg" in | |
2341 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2342 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2343 | # if the argument is of the form -foo=baz, quote the baz part only | |
2344 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2345 | *) ;; | |
2346 | esac | |
2347 | # Add the quoted argument to the list. | |
2348 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2349 | done | |
2350 | if test "$silent" = yes; then | |
2351 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2352 | fi | |
2353 | # Remove the initial space we just introduced and, as these will be | |
2354 | # expanded by make, quote '$'. | |
2355 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2356 | ||
c6b750e1 DJ |
2357 | |
2358 | # Find the build, host, and target systems. | |
a0da8069 | 2359 | ac_aux_dir= |
81ecdfbb | 2360 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2361 | if test -f "$ac_dir/install-sh"; then |
2362 | ac_aux_dir=$ac_dir | |
2363 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2364 | break | |
2365 | elif test -f "$ac_dir/install.sh"; then | |
2366 | ac_aux_dir=$ac_dir | |
2367 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2368 | break | |
2369 | elif test -f "$ac_dir/shtool"; then | |
2370 | ac_aux_dir=$ac_dir | |
2371 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2372 | break | |
2373 | fi | |
a0da8069 NN |
2374 | done |
2375 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2376 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2377 | fi |
81ecdfbb RW |
2378 | |
2379 | # These three variables are undocumented and unsupported, | |
2380 | # and are intended to be withdrawn in a future Autoconf release. | |
2381 | # They can cause serious problems if a builder's source tree is in a directory | |
2382 | # whose full name contains unusual characters. | |
2383 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2384 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2385 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2386 | ||
a0da8069 | 2387 | |
c6b750e1 | 2388 | # Make sure we can run config.sub. |
81ecdfbb | 2389 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2390 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2391 | |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2393 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2394 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2395 | $as_echo_n "(cached) " >&6 |
2396 | else | |
2397 | ac_build_alias=$build_alias | |
2398 | test "x$ac_build_alias" = x && | |
2399 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2400 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2401 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2402 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2403 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2404 | |
2405 | fi | |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2407 | $as_echo "$ac_cv_build" >&6; } | |
2408 | case $ac_cv_build in | |
2409 | *-*-*) ;; | |
d0ac1c44 | 2410 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2411 | esac |
c6b750e1 | 2412 | build=$ac_cv_build |
81ecdfbb RW |
2413 | ac_save_IFS=$IFS; IFS='-' |
2414 | set x $ac_cv_build | |
2415 | shift | |
2416 | build_cpu=$1 | |
2417 | build_vendor=$2 | |
2418 | shift; shift | |
2419 | # Remember, the first character of IFS is used to create $*, | |
2420 | # except with old shells: | |
2421 | build_os=$* | |
2422 | IFS=$ac_save_IFS | |
2423 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2424 | |
a0da8069 | 2425 | |
c6b750e1 DJ |
2426 | case ${build_alias} in |
2427 | "") build_noncanonical=${build} ;; | |
2428 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2429 | esac |
2430 | ||
2431 | ||
cac3d6c4 | 2432 | |
c6b750e1 DJ |
2433 | case ${host_alias} in |
2434 | "") host_noncanonical=${build_noncanonical} ;; | |
2435 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2436 | esac |
2437 | ||
cac3d6c4 | 2438 | |
c6b750e1 DJ |
2439 | |
2440 | case ${target_alias} in | |
2441 | "") target_noncanonical=${host_noncanonical} ;; | |
2442 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2443 | esac |
2444 | ||
cac3d6c4 | 2445 | |
c6b750e1 DJ |
2446 | |
2447 | ||
2448 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2449 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2450 | NONENONEs,x,x, && | |
c6b750e1 | 2451 | program_transform_name=s,y,y, |
cac3d6c4 | 2452 | |
81ecdfbb RW |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2454 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2455 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2456 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2457 | else |
81ecdfbb RW |
2458 | if test "x$host_alias" = x; then |
2459 | ac_cv_host=$ac_cv_build | |
2460 | else | |
2461 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2462 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2463 | fi |
c6b750e1 DJ |
2464 | |
2465 | fi | |
81ecdfbb RW |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2467 | $as_echo "$ac_cv_host" >&6; } | |
2468 | case $ac_cv_host in | |
2469 | *-*-*) ;; | |
d0ac1c44 | 2470 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2471 | esac |
c6b750e1 | 2472 | host=$ac_cv_host |
81ecdfbb RW |
2473 | ac_save_IFS=$IFS; IFS='-' |
2474 | set x $ac_cv_host | |
2475 | shift | |
2476 | host_cpu=$1 | |
2477 | host_vendor=$2 | |
2478 | shift; shift | |
2479 | # Remember, the first character of IFS is used to create $*, | |
2480 | # except with old shells: | |
2481 | host_os=$* | |
2482 | IFS=$ac_save_IFS | |
2483 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2484 | |
2485 | ||
81ecdfbb RW |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2487 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2488 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2489 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2490 | else |
81ecdfbb RW |
2491 | if test "x$target_alias" = x; then |
2492 | ac_cv_target=$ac_cv_host | |
2493 | else | |
2494 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2495 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2496 | fi |
c6b750e1 | 2497 | |
cac3d6c4 | 2498 | fi |
81ecdfbb RW |
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2500 | $as_echo "$ac_cv_target" >&6; } | |
2501 | case $ac_cv_target in | |
2502 | *-*-*) ;; | |
d0ac1c44 | 2503 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2504 | esac |
c6b750e1 | 2505 | target=$ac_cv_target |
81ecdfbb RW |
2506 | ac_save_IFS=$IFS; IFS='-' |
2507 | set x $ac_cv_target | |
2508 | shift | |
2509 | target_cpu=$1 | |
2510 | target_vendor=$2 | |
2511 | shift; shift | |
2512 | # Remember, the first character of IFS is used to create $*, | |
2513 | # except with old shells: | |
2514 | target_os=$* | |
2515 | IFS=$ac_save_IFS | |
2516 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2517 | |
2518 | ||
2519 | # The aliases save the names the user supplied, while $host etc. | |
2520 | # will get canonicalized. | |
2521 | test -n "$target_alias" && | |
2522 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2523 | NONENONEs,x,x, && | |
2524 | program_prefix=${target_alias}- | |
81ecdfbb | 2525 | |
a0da8069 | 2526 | test "$program_prefix" != NONE && |
81ecdfbb | 2527 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2528 | # Use a double $ so make ignores it. |
2529 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2530 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2531 | # Double any \ or $. | |
c6b750e1 | 2532 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2533 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2534 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2535 | |
a0da8069 NN |
2536 | |
2537 | ||
e5c3f801 NN |
2538 | # Get 'install' or 'install-sh' and its variants. |
2539 | # Find a good install program. We prefer a C program (faster), | |
2540 | # so one script is as good as another. But avoid the broken or | |
2541 | # incompatible versions: | |
2542 | # SysV /etc/install, /usr/sbin/install | |
2543 | # SunOS /usr/etc/install | |
2544 | # IRIX /sbin/install | |
2545 | # AIX /bin/install | |
c6b750e1 | 2546 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2547 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2548 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2549 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2550 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2551 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2552 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2554 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2555 | if test -z "$INSTALL"; then |
d0ac1c44 | 2556 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2557 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2558 | else |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2564 | # Account for people who put trailing slashes in PATH elements. |
2565 | case $as_dir/ in #(( | |
2566 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2567 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2568 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2569 | /usr/ucb/* ) ;; |
2570 | *) | |
2571 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2572 | # Don't use installbsd from OSF since it installs stuff as root | |
2573 | # by default. | |
2574 | for ac_prog in ginstall scoinst install; do | |
2575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2576 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2577 | if test $ac_prog = install && |
c6b750e1 | 2578 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2579 | # AIX install. It has an incompatible calling convention. |
2580 | : | |
c6b750e1 DJ |
2581 | elif test $ac_prog = install && |
2582 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2583 | # program-specific install script used by HP pwplus--don't use. | |
2584 | : | |
e5c3f801 | 2585 | else |
58c85be7 RW |
2586 | rm -rf conftest.one conftest.two conftest.dir |
2587 | echo one > conftest.one | |
2588 | echo two > conftest.two | |
2589 | mkdir conftest.dir | |
2590 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2591 | test -s conftest.one && test -s conftest.two && | |
2592 | test -s conftest.dir/conftest.one && | |
2593 | test -s conftest.dir/conftest.two | |
2594 | then | |
2595 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2596 | break 3 | |
2597 | fi | |
e5c3f801 NN |
2598 | fi |
2599 | fi | |
2600 | done | |
c6b750e1 DJ |
2601 | done |
2602 | ;; | |
2603 | esac | |
81ecdfbb RW |
2604 | |
2605 | done | |
2606 | IFS=$as_save_IFS | |
c6b750e1 | 2607 | |
58c85be7 | 2608 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2609 | |
2610 | fi | |
2611 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2612 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2613 | else |
58c85be7 RW |
2614 | # As a last resort, use the slow shell script. Don't cache a |
2615 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2616 | # break other packages using the cache if that directory is |
58c85be7 | 2617 | # removed, or if the value is a relative name. |
c6b750e1 | 2618 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2619 | fi |
2620 | fi | |
81ecdfbb RW |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2622 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2623 | |
2624 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2625 | # It thinks the first close brace ends the variable substitution. | |
2626 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2627 | ||
c6b750e1 | 2628 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2629 | |
2630 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2631 | ||
81ecdfbb RW |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2633 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2634 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2635 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2636 | else |
2637 | rm -f conftestdata_t | |
2638 | echo >conftestdata_f | |
2639 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2640 | then | |
2641 | acx_cv_prog_LN=ln | |
2642 | else | |
2643 | acx_cv_prog_LN=no | |
2644 | fi | |
2645 | rm -f conftestdata_f conftestdata_t | |
2646 | ||
2647 | fi | |
2648 | if test $acx_cv_prog_LN = no; then | |
2649 | LN="cp" | |
81ecdfbb RW |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2651 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2652 | else |
2653 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2655 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2656 | fi |
2657 | ||
81ecdfbb RW |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2659 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2660 | LN_S=$as_ln_s |
2661 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2663 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2664 | else |
81ecdfbb RW |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2666 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2667 | fi |
2668 | ||
8e957354 PB |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2670 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2671 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2672 | $as_echo_n "(cached) " >&6 |
2673 | else | |
2674 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2675 | for ac_i in 1 2 3 4 5 6 7; do | |
2676 | ac_script="$ac_script$as_nl$ac_script" | |
2677 | done | |
2678 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2679 | { ac_script=; unset ac_script;} | |
2680 | if test -z "$SED"; then | |
2681 | ac_path_SED_found=false | |
2682 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 | for as_dir in $PATH | |
2685 | do | |
2686 | IFS=$as_save_IFS | |
2687 | test -z "$as_dir" && as_dir=. | |
2688 | for ac_prog in sed gsed; do | |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2690 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2691 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2692 | # Check for GNU ac_path_SED and select it if it is found. |
2693 | # Check for GNU $ac_path_SED | |
2694 | case `"$ac_path_SED" --version 2>&1` in | |
2695 | *GNU*) | |
2696 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2697 | *) | |
2698 | ac_count=0 | |
2699 | $as_echo_n 0123456789 >"conftest.in" | |
2700 | while : | |
2701 | do | |
2702 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2703 | mv "conftest.tmp" "conftest.in" | |
2704 | cp "conftest.in" "conftest.nl" | |
2705 | $as_echo '' >> "conftest.nl" | |
2706 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2707 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2708 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2709 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2710 | # Best one so far, save it but keep looking for a better one | |
2711 | ac_cv_path_SED="$ac_path_SED" | |
2712 | ac_path_SED_max=$ac_count | |
2713 | fi | |
2714 | # 10*(2^10) chars as input seems more than enough | |
2715 | test $ac_count -gt 10 && break | |
2716 | done | |
2717 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2718 | esac | |
2719 | ||
2720 | $ac_path_SED_found && break 3 | |
2721 | done | |
2722 | done | |
2723 | done | |
2724 | IFS=$as_save_IFS | |
2725 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2726 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2727 | fi |
2728 | else | |
2729 | ac_cv_path_SED=$SED | |
2730 | fi | |
2731 | ||
2732 | fi | |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2734 | $as_echo "$ac_cv_path_SED" >&6; } | |
2735 | SED="$ac_cv_path_SED" | |
2736 | rm -f conftest.sed | |
2737 | ||
2738 | for ac_prog in gawk mawk nawk awk | |
2739 | do | |
2740 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2741 | set dummy $ac_prog; ac_word=$2 | |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2743 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2744 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2745 | $as_echo_n "(cached) " >&6 |
2746 | else | |
2747 | if test -n "$AWK"; then | |
2748 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2749 | else | |
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2751 | for as_dir in $PATH | |
2752 | do | |
2753 | IFS=$as_save_IFS | |
2754 | test -z "$as_dir" && as_dir=. | |
2755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2757 | ac_cv_prog_AWK="$ac_prog" |
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2759 | break 2 | |
2760 | fi | |
2761 | done | |
2762 | done | |
2763 | IFS=$as_save_IFS | |
2764 | ||
2765 | fi | |
2766 | fi | |
2767 | AWK=$ac_cv_prog_AWK | |
2768 | if test -n "$AWK"; then | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2770 | $as_echo "$AWK" >&6; } | |
2771 | else | |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2773 | $as_echo "no" >&6; } | |
2774 | fi | |
2775 | ||
2776 | ||
2777 | test -n "$AWK" && break | |
2778 | done | |
2779 | ||
e5c3f801 | 2780 | |
0fdbe983 DJ |
2781 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2782 | ||
2783 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2784 | # a relative path. | |
2785 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2786 | INSTALL="${srcpwd}/install-sh -c" | |
2787 | fi | |
2788 | ||
a0da8069 NN |
2789 | # Set srcdir to "." if that's what it is. |
2790 | # This is important for multilib support. | |
2791 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2792 | if test "${pwd}" = "${srcpwd}" ; then |
2793 | srcdir=. | |
252b5132 RH |
2794 | fi |
2795 | ||
a0da8069 | 2796 | topsrcdir=$srcpwd |
252b5132 | 2797 | |
a0da8069 | 2798 | extra_host_args= |
afefada0 | 2799 | |
a0da8069 NN |
2800 | ### To add a new directory to the tree, first choose whether it is a target |
2801 | ### or a host dependent tool. Then put it into the appropriate list | |
2802 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2803 | |
c6b750e1 | 2804 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2805 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2806 | |
c6b750e1 DJ |
2807 | # Dependency sorting is only needed when *configuration* must be done in |
2808 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2809 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2810 | |
a0da8069 NN |
2811 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2812 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2813 | |
6a9cf61e PB |
2814 | # these library is used by various programs built for the build |
2815 | # environment | |
2816 | # | |
1b6c0831 | 2817 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2818 | |
2819 | # these tools are built for the build environment | |
a90ef4bf | 2820 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2821 | |
a0da8069 | 2822 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2823 | #f |
19e559f1 | 2824 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe" |
a0da8069 | 2825 | |
a0da8069 NN |
2826 | # these tools are built for the host environment |
2827 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2828 | # know that we are building the simulator. | |
2829 | # binutils, gas and ld appear in that order because it makes sense to run | |
2830 | # "make check" in that particular order. | |
e6de499b | 2831 | # If --enable-gold is used, "gold" may replace "ld". |
228cf97d | 2832 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools" |
a0da8069 | 2833 | |
a0da8069 NN |
2834 | # these libraries are built for the target environment, and are built after |
2835 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2836 | # Note that libiberty is not a target library. |
b1299c4e | 2837 | target_libraries="target-libgcc \ |
2bf680c4 | 2838 | target-libbacktrace \ |
a0da8069 NN |
2839 | target-libgloss \ |
2840 | target-newlib \ | |
cff87f51 | 2841 | target-libgomp \ |
1b6c0831 | 2842 | target-liboffloadmic \ |
7ec59b9e | 2843 | target-libatomic \ |
d32e2926 | 2844 | target-libitm \ |
b9459e83 | 2845 | target-libstdc++-v3 \ |
5286fdef | 2846 | target-libsanitizer \ |
95e43135 | 2847 | target-libvtv \ |
bb780410 | 2848 | target-libssp \ |
e552509b | 2849 | target-libquadmath \ |
4b1cb4fe | 2850 | target-libgfortran \ |
05a13254 | 2851 | target-libffi \ |
a2592b1b | 2852 | target-libobjc \ |
e552509b | 2853 | target-libada \ |
228cf97d AM |
2854 | target-libgo \ |
2855 | target-libphobos \ | |
2856 | target-zlib" | |
a0da8069 | 2857 | |
9c14acb8 NN |
2858 | # these tools are built using the target libraries, and are intended to |
2859 | # run only in the target environment | |
a0da8069 | 2860 | # |
9c14acb8 | 2861 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2862 | # list belongs in this list. |
a0da8069 | 2863 | # |
a90ef4bf | 2864 | target_tools="target-rda" |
252b5132 | 2865 | |
a0da8069 | 2866 | ################################################################################ |
252b5132 | 2867 | |
a0da8069 NN |
2868 | ## All tools belong in one of the four categories, and are assigned above |
2869 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2870 | ## is important because configure will choke if they ever get through. | |
2871 | ## ${configdirs} is directories we build using the host tools. | |
2872 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2873 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2874 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2875 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2876 | |
9cc8ae67 PB |
2877 | |
2878 | ||
a0da8069 | 2879 | ################################################################################ |
252b5132 | 2880 | |
a0da8069 | 2881 | srcname="gnu development package" |
252b5132 | 2882 | |
a0da8069 NN |
2883 | # This gets set non-empty for some net releases of packages. |
2884 | appdirs="" | |
252b5132 | 2885 | |
a0da8069 NN |
2886 | # Define is_cross_compiler to save on calls to 'test'. |
2887 | is_cross_compiler= | |
2888 | if test x"${host}" = x"${target}" ; then | |
2889 | is_cross_compiler=no | |
252b5132 | 2890 | else |
a0da8069 | 2891 | is_cross_compiler=yes |
c6b750e1 | 2892 | fi |
252b5132 | 2893 | |
9175bfc0 | 2894 | # Find the build and target subdir names. |
dd12c3a8 | 2895 | |
66a79c16 DJ |
2896 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2897 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2898 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2899 | # However, they still use the build modules, because the corresponding | |
2900 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2901 | # finishes. So: | |
2902 | # - build_subdir is where we find build modules, and never changes. | |
2903 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2904 | ||
2905 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2906 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2907 | |
81ecdfbb RW |
2908 | # Check whether --with-build-libsubdir was given. |
2909 | if test "${with_build_libsubdir+set}" = set; then : | |
2910 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2911 | else |
2912 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2913 | fi |
2914 | ||
b00612cc PB |
2915 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2916 | if ( test $srcdir = . && test -d gcc ) \ | |
2917 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2918 | host_subdir="host-${host_noncanonical}" | |
2919 | else | |
2920 | host_subdir=. | |
2921 | fi | |
dd12c3a8 NN |
2922 | # No prefix. |
2923 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2924 | |
2fd0b40b RW |
2925 | # Be sure to cover against remnants of an in-tree build. |
2926 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2927 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2928 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2929 | fi | |
252b5132 | 2930 | |
a0da8069 NN |
2931 | # Skipdirs are removed silently. |
2932 | skipdirs= | |
2933 | # Noconfigdirs are removed loudly. | |
2934 | noconfigdirs="" | |
252b5132 | 2935 | |
a0da8069 NN |
2936 | use_gnu_ld= |
2937 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2938 | if test x$with_gnu_ld = xno ; then | |
2939 | use_gnu_ld=no | |
93f9b408 | 2940 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2941 | fi |
2942 | ||
a0da8069 NN |
2943 | use_gnu_as= |
2944 | # Make sure we don't let GNU as be added if we didn't want it. | |
2945 | if test x$with_gnu_as = xno ; then | |
2946 | use_gnu_as=no | |
2947 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2948 | fi |
2949 | ||
700d40ca | 2950 | use_included_zlib= |
cf39cfc5 L |
2951 | |
2952 | # Check whether --with-system-zlib was given. | |
2953 | if test "${with_system_zlib+set}" = set; then : | |
2954 | withval=$with_system_zlib; | |
2955 | fi | |
2956 | ||
700d40ca ILT |
2957 | # Make sure we don't let ZLIB be added if we didn't want it. |
2958 | if test x$with_system_zlib = xyes ; then | |
2959 | use_included_zlib=no | |
2960 | noconfigdirs="$noconfigdirs zlib" | |
2961 | fi | |
2962 | ||
1c232ab0 ДП |
2963 | # Don't compile the bundled readline/libreadline.a if --with-system-readline |
2964 | # is provided. | |
2965 | if test x$with_system_readline = xyes ; then | |
2966 | noconfigdirs="$noconfigdirs readline" | |
2967 | fi | |
2968 | ||
2cac01e3 FS |
2969 | |
2970 | # Check whether --with-zstd was given. | |
2971 | if test "${with_zstd+set}" = set; then : | |
2972 | withval=$with_zstd; | |
2973 | fi | |
2974 | ||
2975 | ||
c6b750e1 | 2976 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2977 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2978 | |
a0da8069 NN |
2979 | case ${with_x} in |
2980 | yes | "") ;; # the default value for this tree is that X11 is available | |
2981 | no) | |
675c6968 | 2982 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2983 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2984 | enable_gdbtk=no |
a0da8069 NN |
2985 | ;; |
2986 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2987 | esac | |
252b5132 | 2988 | |
0377a422 | 2989 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2990 | # Remove these if host=target. |
2991 | cross_only="target-libgloss target-newlib target-opcodes" | |
2992 | ||
2993 | case $is_cross_compiler in | |
2994 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2995 | esac |
252b5132 | 2996 | |
a0da8069 NN |
2997 | # If both --with-headers and --with-libs are specified, default to |
2998 | # --without-newlib. | |
32be62b5 RS |
2999 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
3000 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
3001 | if test x"${with_newlib}" = x ; then |
3002 | with_newlib=no | |
3003 | fi | |
252b5132 RH |
3004 | fi |
3005 | ||
a0da8069 NN |
3006 | # Recognize --with-newlib/--without-newlib. |
3007 | case ${with_newlib} in | |
3008 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3009 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3010 | esac | |
252b5132 | 3011 | |
1b6c0831 L |
3012 | # Check whether --enable-as-accelerator-for was given. |
3013 | if test "${enable_as_accelerator_for+set}" = set; then : | |
3014 | enableval=$enable_as_accelerator_for; | |
3015 | fi | |
3016 | ||
3017 | ||
3018 | # Check whether --enable-offload-targets was given. | |
3019 | if test "${enable_offload_targets+set}" = set; then : | |
3020 | enableval=$enable_offload_targets; | |
3021 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 3022 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
3023 | fi |
3024 | ||
3025 | else | |
3026 | enable_offload_targets= | |
3027 | fi | |
3028 | ||
3029 | ||
228cf97d AM |
3030 | # Check whether --enable-offload-defaulted was given. |
3031 | if test "${enable_offload_defaulted+set}" = set; then : | |
3032 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3033 | else | |
3034 | enable_offload_defaulted= | |
3035 | fi | |
3036 | ||
3037 | ||
c7791212 NC |
3038 | # Handle --enable-gold, --enable-ld. |
3039 | # --disable-gold [--enable-ld] | |
3040 | # Build only ld. Default option. | |
d3b50760 L |
3041 | # --enable-gold [--enable-ld] |
3042 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3043 | # as "ld.bfd" and "ld". | |
3044 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
3045 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3046 | # install ld as "ld.bfd". | |
3047 | # --enable-gold[=default] --disable-ld | |
3048 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3049 | # --enable-gold --enable-ld=default | |
d3b50760 L |
3050 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3051 | # and ld.bfd). | |
c7791212 NC |
3052 | # In other words, ld is default |
3053 | # --enable-gold=default --enable-ld=default | |
3054 | # Error. | |
3055 | ||
3056 | default_ld= | |
81ecdfbb RW |
3057 | # Check whether --enable-gold was given. |
3058 | if test "${enable_gold+set}" = set; then : | |
3059 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3060 | else |
3061 | ENABLE_GOLD=no | |
81ecdfbb RW |
3062 | fi |
3063 | ||
c7791212 NC |
3064 | case "${ENABLE_GOLD}" in |
3065 | yes|default) | |
e6de499b NC |
3066 | # Check for ELF target. |
3067 | is_elf=no | |
3068 | case "${target}" in | |
3069 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3070 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3071 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
228cf97d | 3072 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3073 | case "${target}" in |
3074 | *-*-linux*aout* | *-*-linux*oldld*) | |
3075 | ;; | |
3076 | *) | |
3077 | is_elf=yes | |
3078 | ;; | |
3079 | esac | |
3080 | esac | |
3081 | ||
3082 | if test "$is_elf" = "yes"; then | |
3083 | # Check for target supported by gold. | |
93f9b408 | 3084 | case "${target}" in |
6d26190c | 3085 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
228cf97d | 3086 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
c7791212 NC |
3087 | configdirs="$configdirs gold" |
3088 | if test x${ENABLE_GOLD} = xdefault; then | |
3089 | default_ld=gold | |
3090 | fi | |
e6de499b | 3091 | ENABLE_GOLD=yes |
93f9b408 ILT |
3092 | ;; |
3093 | esac | |
e6de499b NC |
3094 | fi |
3095 | ;; | |
3096 | no) | |
3097 | ;; | |
3098 | *) | |
d0ac1c44 | 3099 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3100 | ;; |
c7791212 NC |
3101 | esac |
3102 | ||
3103 | # Check whether --enable-ld was given. | |
3104 | if test "${enable_ld+set}" = set; then : | |
3105 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3106 | else | |
3107 | ENABLE_LD=yes | |
3108 | fi | |
3109 | ||
3110 | ||
3111 | case "${ENABLE_LD}" in | |
3112 | default) | |
d3b50760 | 3113 | if test x${default_ld} != x; then |
d0ac1c44 | 3114 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3115 | fi |
3116 | ;; | |
3117 | yes) | |
3118 | ;; | |
3119 | no) | |
3120 | if test x${ENABLE_GOLD} != xyes; then | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3122 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3123 | fi | |
3124 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3125 | ;; | |
3126 | *) | |
d0ac1c44 | 3127 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3128 | ;; |
3129 | esac | |
93f9b408 | 3130 | |
bb368aad VM |
3131 | # Check whether --enable-gprofng was given. |
3132 | if test "${enable_gprofng+set}" = set; then : | |
3133 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3134 | else | |
3135 | enable_gprofng=yes | |
3136 | fi | |
3137 | ||
3138 | if test "$enable_gprofng" = "yes"; then | |
3139 | case "${target}" in | |
3140 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3141 | configdirs="$configdirs gprofng" | |
3142 | ;; | |
3143 | esac | |
3144 | fi | |
3145 | ||
3146 | ||
edeefb67 L |
3147 | # PR gas/19109 |
3148 | # Decide the default method for compressing debug sections. | |
3149 | # Provide a configure time option to override our default. | |
3150 | # Check whether --enable-compressed_debug_sections was given. | |
3151 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3152 | enableval=$enable_compressed_debug_sections; | |
3153 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3154 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3155 | fi |
3156 | ||
3157 | else | |
3158 | enable_compressed_debug_sections= | |
3159 | fi | |
3160 | ||
3161 | ||
b0c295e1 ML |
3162 | # Select default compression algorithm. |
3163 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3164 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3165 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3166 | else | |
3167 | default_compressed_debug_sections_algorithm= | |
3168 | fi | |
3169 | ||
3170 | ||
a0da8069 | 3171 | # Configure extra directories which are host specific |
252b5132 | 3172 | |
a0da8069 NN |
3173 | case "${host}" in |
3174 | *-cygwin*) | |
3175 | configdirs="$configdirs libtermcap" ;; | |
3176 | esac | |
252b5132 | 3177 | |
59f7ec45 HPN |
3178 | # A target can indicate whether a language isn't supported for some reason. |
3179 | # Only spaces may be used in this macro; not newlines or tabs. | |
3180 | unsupported_languages= | |
3181 | ||
c6b750e1 | 3182 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3183 | # target this usually means that a port of the program doesn't |
3184 | # exist yet. | |
252b5132 | 3185 | |
a0da8069 | 3186 | case "${host}" in |
3516a403 | 3187 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3188 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3189 | ;; |
a0da8069 | 3190 | esac |
252b5132 | 3191 | |
e5f2f7d9 LM |
3192 | # Default to --disable-year2038 until we can handle differences between |
3193 | # projects that use gnulib (which understands year 2038) and projects that | |
3194 | # do not (like BFD). | |
3195 | # Check whether --enable-year2038 was given. | |
3196 | if test "${enable_year2038+set}" = set; then : | |
3197 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3198 | else | |
3199 | ENABLE_YEAR2038=no | |
3200 | fi | |
3201 | ||
3202 | enable_year2038= | |
3203 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3204 | enable_year2038=no | |
3205 | fi | |
4b1cb4fe | 3206 | |
89a1e9c3 PB |
3207 | # Check whether --enable-libquadmath was given. |
3208 | if test "${enable_libquadmath+set}" = set; then : | |
3209 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3210 | else | |
3211 | ENABLE_LIBQUADMATH=yes | |
3212 | fi | |
3213 | ||
3214 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3215 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | # Check whether --enable-libquadmath-support was given. | |
3220 | if test "${enable_libquadmath_support+set}" = set; then : | |
3221 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3222 | else | |
3223 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3224 | fi | |
3225 | ||
3226 | enable_libquadmath_support= | |
3227 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3228 | enable_libquadmath_support=no | |
3229 | fi | |
3230 | ||
3231 | ||
81ecdfbb RW |
3232 | # Check whether --enable-libada was given. |
3233 | if test "${enable_libada+set}" = set; then : | |
3234 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3235 | else |
3236 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3237 | fi |
3238 | ||
a2592b1b | 3239 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3240 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3241 | fi |
3242 | ||
81ecdfbb RW |
3243 | # Check whether --enable-libssp was given. |
3244 | if test "${enable_libssp+set}" = set; then : | |
3245 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3246 | else |
3247 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3248 | fi |
3249 | ||
5f128533 | 3250 | |
f66a9a70 L |
3251 | # Check whether --enable-libstdcxx was given. |
3252 | if test "${enable_libstdcxx+set}" = set; then : | |
3253 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3254 | else | |
3255 | ENABLE_LIBSTDCXX=default | |
3256 | fi | |
3257 | ||
3258 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3259 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3260 | fi | |
3261 | ||
3262 | # If this is accelerator compiler and its target is intelmic we enable | |
3263 | # target liboffloadmic by default. If this is compiler with offloading | |
3264 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3265 | # liboffloadmic is disabled by default. | |
3266 | # Check whether --enable-liboffloadmic was given. | |
3267 | if test "${enable_liboffloadmic+set}" = set; then : | |
3268 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3269 | no | host | target) | |
3270 | enable_liboffloadmic=$enableval ;; | |
3271 | *) | |
d0ac1c44 | 3272 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3273 | esac |
3274 | else | |
3275 | if test x"$enable_as_accelerator_for" != x; then | |
3276 | case "${target}" in | |
3277 | *-intelmic-* | *-intelmicemul-*) | |
3278 | enable_liboffloadmic=target | |
3279 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3280 | ;; | |
3281 | *) | |
3282 | enable_liboffloadmic=no | |
3283 | ;; | |
3284 | esac | |
3285 | else | |
3286 | case "${enable_offload_targets}" in | |
3287 | *-intelmic-* | *-intelmicemul-*) | |
3288 | enable_liboffloadmic=host | |
3289 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3290 | ;; | |
3291 | *) | |
3292 | enable_liboffloadmic=no | |
3293 | ;; | |
3294 | esac | |
3295 | fi | |
f66a9a70 L |
3296 | fi |
3297 | ||
1b6c0831 L |
3298 | |
3299 | ||
68996839 | 3300 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3301 | if test x$enable_libgomp = x ; then |
b3ded179 | 3302 | case "${target}" in |
29383458 | 3303 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3304 | ;; |
5b806d27 | 3305 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3306 | ;; |
2479f722 | 3307 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3308 | ;; |
3309 | *-*-darwin* | *-*-aix*) | |
3310 | ;; | |
228cf97d | 3311 | nvptx*-*-* | amdgcn*-*-*) |
68996839 | 3312 | ;; |
b3ded179 PB |
3313 | *) |
3314 | noconfigdirs="$noconfigdirs target-libgomp" | |
3315 | ;; | |
3316 | esac | |
a6df5a19 | 3317 | fi |
b3ded179 | 3318 | |
7ec59b9e L |
3319 | # Disable libatomic on unsupported systems. |
3320 | if test -d ${srcdir}/libatomic; then | |
3321 | if test x$enable_libatomic = x; then | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3323 | $as_echo_n "checking for libatomic support... " >&6; } | |
3324 | if (srcdir=${srcdir}/libatomic; \ | |
3325 | . ${srcdir}/configure.tgt; \ | |
3326 | test -n "$UNSUPPORTED") | |
3327 | then | |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3329 | $as_echo "no" >&6; } | |
3330 | noconfigdirs="$noconfigdirs target-libatomic" | |
3331 | else | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3333 | $as_echo "yes" >&6; } | |
3334 | fi | |
3335 | fi | |
3336 | fi | |
3337 | ||
1b6c0831 L |
3338 | # Disable liboffloadmic on unsupported systems. |
3339 | if test -d ${srcdir}/liboffloadmic; then | |
3340 | if test x$enable_liboffloadmic != xno; then | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3342 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3343 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3344 | . ${srcdir}/configure.tgt; \ | |
3345 | test -n "$UNSUPPORTED") | |
3346 | then | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3348 | $as_echo "no" >&6; } | |
3349 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3350 | else | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3352 | $as_echo "yes" >&6; } | |
3353 | fi | |
3354 | fi | |
3355 | fi | |
3356 | ||
d32e2926 RH |
3357 | # Disable libitm on unsupported systems. |
3358 | if test -d ${srcdir}/libitm; then | |
3359 | if test x$enable_libitm = x; then | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3361 | $as_echo_n "checking for libitm support... " >&6; } | |
3362 | if (srcdir=${srcdir}/libitm; \ | |
3363 | . ${srcdir}/configure.tgt; \ | |
3364 | test -n "$UNSUPPORTED") | |
3365 | then | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3367 | $as_echo "no" >&6; } | |
3368 | noconfigdirs="$noconfigdirs target-libitm" | |
3369 | else | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3371 | $as_echo "yes" >&6; } | |
3372 | fi | |
3373 | fi | |
3374 | fi | |
3375 | ||
5286fdef L |
3376 | # Disable libsanitizer on unsupported systems. |
3377 | if test -d ${srcdir}/libsanitizer; then | |
3378 | if test x$enable_libsanitizer = x; then | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3380 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3381 | if (srcdir=${srcdir}/libsanitizer; \ | |
3382 | . ${srcdir}/configure.tgt; \ | |
3383 | test -n "$UNSUPPORTED") | |
3384 | then | |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3386 | $as_echo "no" >&6; } | |
3387 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3388 | else | |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3390 | $as_echo "yes" >&6; } | |
3391 | fi | |
3392 | fi | |
3393 | fi | |
3394 | ||
95e43135 JBG |
3395 | # Disable libvtv on unsupported systems. |
3396 | if test -d ${srcdir}/libvtv; then | |
3397 | if test x$enable_libvtv = x; then | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3399 | $as_echo_n "checking for libvtv support... " >&6; } | |
3400 | if (srcdir=${srcdir}/libvtv; \ | |
3401 | . ${srcdir}/configure.tgt; \ | |
3402 | test "$VTV_SUPPORTED" != "yes") | |
3403 | then | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3405 | $as_echo "no" >&6; } | |
3406 | noconfigdirs="$noconfigdirs target-libvtv" | |
3407 | else | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3409 | $as_echo "yes" >&6; } | |
3410 | fi | |
3411 | fi | |
3412 | fi | |
3413 | ||
1488e230 DE |
3414 | # Disable libquadmath for some systems. |
3415 | case "${target}" in | |
5286fdef L |
3416 | avr-*-*) |
3417 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3418 | ;; | |
1488e230 DE |
3419 | # libquadmath is unused on AIX and libquadmath build process use of |
3420 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3421 | powerpc-*-aix* | rs6000-*-aix*) | |
3422 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3423 | ;; | |
3424 | esac | |
3425 | ||
065a5627 JM |
3426 | # Disable libssp for some systems. |
3427 | case "${target}" in | |
3428 | avr-*-*) | |
c5f5c3c2 | 3429 | # No hosted I/O support. |
065a5627 JM |
3430 | noconfigdirs="$noconfigdirs target-libssp" |
3431 | ;; | |
228cf97d AM |
3432 | bpf-*-*) |
3433 | noconfigdirs="$noconfigdirs target-libssp" | |
3434 | ;; | |
065a5627 JM |
3435 | powerpc-*-aix* | rs6000-*-aix*) |
3436 | noconfigdirs="$noconfigdirs target-libssp" | |
3437 | ;; | |
228cf97d AM |
3438 | pru-*-*) |
3439 | # No hosted I/O support. | |
3440 | noconfigdirs="$noconfigdirs target-libssp" | |
3441 | ;; | |
99c513f6 | 3442 | rl78-*-*) |
202e2356 NC |
3443 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3444 | # doesn't fault for those - instead, it gives a build-time error | |
3445 | # for explicit misaligned loads. | |
99c513f6 DD |
3446 | noconfigdirs="$noconfigdirs target-libssp" |
3447 | ;; | |
1b6c0831 L |
3448 | visium-*-*) |
3449 | # No hosted I/O support. | |
3450 | noconfigdirs="$noconfigdirs target-libssp" | |
3451 | ;; | |
065a5627 JM |
3452 | esac |
3453 | ||
065a5627 | 3454 | # Disable libstdc++-v3 for some systems. |
228cf97d | 3455 | # Allow user to override this if they pass --enable-libstdcxx |
f66a9a70 L |
3456 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3457 | case "${target}" in | |
3458 | *-*-vxworks*) | |
3459 | # VxWorks uses the Dinkumware C++ library. | |
3460 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3461 | ;; | |
228cf97d AM |
3462 | amdgcn*-*-*) |
3463 | # Not ported/fails to build when using newlib. | |
3464 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3465 | ;; | |
f66a9a70 L |
3466 | arm*-wince-pe*) |
3467 | # the C++ libraries don't build on top of CE's C libraries | |
3468 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3469 | ;; | |
3470 | avr-*-*) | |
3471 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3472 | ;; | |
228cf97d AM |
3473 | bpf-*-*) |
3474 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3475 | ;; | |
969b1713 L |
3476 | ft32-*-*) |
3477 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3478 | ;; | |
f66a9a70 L |
3479 | esac |
3480 | fi | |
065a5627 | 3481 | |
228cf97d AM |
3482 | # Disable C++ on systems where it is known to not work. |
3483 | # For testing, you can override this with --enable-languages=c++. | |
3484 | case ,${enable_languages}, in | |
3485 | *,c++,*) | |
3486 | ;; | |
3487 | *) | |
3488 | case "${target}" in | |
3489 | bpf-*-*) | |
3490 | unsupported_languages="$unsupported_languages c++" | |
3491 | ;; | |
3492 | esac | |
3493 | ;; | |
3494 | esac | |
3495 | ||
3496 | # Disable Objc on systems where it is known to not work. | |
3497 | # For testing, you can override this with --enable-languages=objc. | |
3498 | case ,${enable_languages}, in | |
3499 | *,objc,*) | |
3500 | ;; | |
3501 | *) | |
3502 | case "${target}" in | |
3503 | bpf-*-*) | |
3504 | unsupported_languages="$unsupported_languages objc" | |
3505 | ;; | |
3506 | esac | |
3507 | ;; | |
3508 | esac | |
3509 | ||
3510 | # Disable D on systems where it is known to not work. | |
3511 | # For testing, you can override this with --enable-languages=d. | |
3512 | case ,${enable_languages}, in | |
3513 | *,d,*) | |
3514 | ;; | |
3515 | *) | |
3516 | case "${target}" in | |
3517 | bpf-*-*) | |
3518 | unsupported_languages="$unsupported_languages d" | |
3519 | ;; | |
3520 | esac | |
3521 | ;; | |
3522 | esac | |
3523 | ||
3524 | # Disable libphobos on unsupported systems. | |
3525 | # For testing, you can override this with --enable-libphobos. | |
3526 | if test -d ${srcdir}/libphobos; then | |
3527 | if test x$enable_libphobos = x; then | |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3529 | $as_echo_n "checking for libphobos support... " >&6; } | |
3530 | if (srcdir=${srcdir}/libphobos; \ | |
3531 | . ${srcdir}/configure.tgt; \ | |
3532 | test "$LIBPHOBOS_SUPPORTED" != "yes") | |
3533 | then | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3535 | $as_echo "no" >&6; } | |
3536 | noconfigdirs="$noconfigdirs target-libphobos" | |
3537 | else | |
3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3539 | $as_echo "yes" >&6; } | |
3540 | fi | |
3541 | fi | |
3542 | fi | |
3543 | ||
065a5627 JM |
3544 | # Disable Fortran for some systems. |
3545 | case "${target}" in | |
3546 | mmix-*-*) | |
3547 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3548 | unsupported_languages="$unsupported_languages fortran" | |
3549 | ;; | |
228cf97d AM |
3550 | bpf-*-*) |
3551 | unsupported_languages="$unsupported_languages fortran" | |
3552 | ;; | |
065a5627 JM |
3553 | esac |
3554 | ||
05a13254 | 3555 | # Disable libffi for some systems. |
0827f9a6 | 3556 | case "${target}" in |
9863d716 JM |
3557 | powerpc-*-darwin*) |
3558 | ;; | |
3559 | i[3456789]86-*-darwin*) | |
3560 | ;; | |
3561 | x86_64-*-darwin[912]*) | |
3562 | ;; | |
3563 | *-*-darwin*) | |
05a13254 | 3564 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3565 | ;; |
9863d716 | 3566 | *-*-netware*) |
05a13254 NC |
3567 | noconfigdirs="$noconfigdirs target-libffi" |
3568 | ;; | |
3569 | *-*-phoenix*) | |
3570 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3571 | ;; |
3572 | *-*-rtems*) | |
05a13254 | 3573 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3574 | ;; |
3575 | *-*-tpf*) | |
05a13254 | 3576 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3577 | ;; |
3578 | *-*-uclinux*) | |
05a13254 | 3579 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3580 | ;; |
3581 | *-*-vxworks*) | |
05a13254 NC |
3582 | noconfigdirs="$noconfigdirs target-libffi" |
3583 | ;; | |
3584 | aarch64*-*-freebsd*) | |
3585 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3586 | ;; |
9863d716 | 3587 | alpha*-*-*vms*) |
05a13254 | 3588 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3589 | ;; |
1b6c0831 | 3590 | arm*-*-freebsd*) |
05a13254 | 3591 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3592 | ;; |
0827f9a6 | 3593 | arm-wince-pe) |
05a13254 | 3594 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3595 | ;; |
228cf97d AM |
3596 | arm*-*-symbianelf*) |
3597 | noconfigdirs="$noconfigdirs target-libffi" | |
3598 | ;; | |
3599 | bpf-*-*) | |
3600 | noconfigdirs="$noconfigdirs target-libffi" | |
3601 | ;; | |
9863d716 | 3602 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3603 | case "${target}" in |
3604 | *-*-linux*) | |
3605 | ;; | |
3606 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3607 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3608 | esac |
3609 | ;; | |
82ae827f | 3610 | hppa*64*-*-hpux*) |
05a13254 | 3611 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3612 | ;; |
3613 | hppa*-hp-hpux11*) | |
3614 | ;; | |
82ae827f | 3615 | hppa*-*-hpux*) |
05a13254 | 3616 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3617 | ;; |
9863d716 | 3618 | ia64*-*-*vms*) |
05a13254 | 3619 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3620 | ;; |
9863d716 | 3621 | i[3456789]86-w64-mingw*) |
05a13254 | 3622 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3623 | ;; |
3624 | i[3456789]86-*-mingw*) | |
05a13254 | 3625 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3626 | ;; |
3627 | x86_64-*-mingw*) | |
05a13254 | 3628 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3629 | ;; |
9863d716 | 3630 | mmix-*-*) |
05a13254 | 3631 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3632 | ;; |
3633 | powerpc-*-aix*) | |
9863d716 | 3634 | ;; |
9863d716 | 3635 | rs6000-*-aix*) |
9863d716 | 3636 | ;; |
3f8107ab | 3637 | ft32-*-*) |
05a13254 | 3638 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3639 | ;; |
9863d716 | 3640 | *-*-lynxos*) |
05a13254 | 3641 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3642 | ;; |
9863d716 JM |
3643 | esac |
3644 | ||
1b6c0831 L |
3645 | # Disable the go frontend on systems where it is known to not work. Please keep |
3646 | # this in sync with contrib/config-list.mk. | |
3647 | case "${target}" in | |
228cf97d | 3648 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
1b6c0831 L |
3649 | unsupported_languages="$unsupported_languages go" |
3650 | ;; | |
3651 | esac | |
3652 | ||
919adfe8 TT |
3653 | # Only allow gdbserver on some systems. |
3654 | if test -d ${srcdir}/gdbserver; then | |
3655 | if test x$enable_gdbserver = x; then | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3657 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3658 | if (srcdir=${srcdir}/gdbserver; \ | |
3659 | . ${srcdir}/configure.srv; \ | |
3660 | test -n "$UNSUPPORTED") | |
3661 | then | |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3663 | $as_echo "no" >&6; } | |
3664 | noconfigdirs="$noconfigdirs gdbserver" | |
3665 | else | |
3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3667 | $as_echo "yes" >&6; } | |
3668 | fi | |
3669 | fi | |
3670 | fi | |
3671 | ||
a413f71a ILT |
3672 | # Disable libgo for some systems where it is known to not work. |
3673 | # For testing, you can easily override this with --enable-libgo. | |
3674 | if test x$enable_libgo = x; then | |
3675 | case "${target}" in | |
3676 | *-*-darwin*) | |
3677 | # PR 46986 | |
3678 | noconfigdirs="$noconfigdirs target-libgo" | |
3679 | ;; | |
3680 | *-*-cygwin* | *-*-mingw*) | |
3681 | noconfigdirs="$noconfigdirs target-libgo" | |
3682 | ;; | |
228cf97d AM |
3683 | bpf-*-*) |
3684 | noconfigdirs="$noconfigdirs target-libgo" | |
3685 | ;; | |
a413f71a ILT |
3686 | esac |
3687 | fi | |
3688 | ||
691bb5a1 DD |
3689 | # Default libgloss CPU subdirectory. |
3690 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3691 | |
ff46fb8f JM |
3692 | case "${target}" in |
3693 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3694 | libgloss_dir=wince | |
3695 | ;; | |
f1dd87fc YZ |
3696 | aarch64*-*-* ) |
3697 | libgloss_dir=aarch64 | |
3698 | ;; | |
ff46fb8f JM |
3699 | arm*-*-*) |
3700 | libgloss_dir=arm | |
3701 | ;; | |
3702 | cris-*-* | crisv32-*-*) | |
3703 | libgloss_dir=cris | |
3704 | ;; | |
3705 | hppa*-*-*) | |
3706 | libgloss_dir=pa | |
3707 | ;; | |
3708 | i[3456789]86-*-*) | |
3709 | libgloss_dir=i386 | |
3710 | ;; | |
228cf97d AM |
3711 | loongarch*-*-*) |
3712 | libgloss_dir=loongarch | |
3713 | ;; | |
ff46fb8f JM |
3714 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3715 | libgloss_dir=m68hc11 | |
3716 | ;; | |
3717 | m68*-*-* | fido-*-*) | |
3718 | libgloss_dir=m68k | |
3719 | ;; | |
3720 | mips*-*-*) | |
3721 | libgloss_dir=mips | |
3722 | ;; | |
3723 | powerpc*-*-*) | |
3724 | libgloss_dir=rs6000 | |
3725 | ;; | |
228cf97d AM |
3726 | pru-*-*) |
3727 | libgloss_dir=pru | |
3728 | ;; | |
ff46fb8f JM |
3729 | sparc*-*-*) |
3730 | libgloss_dir=sparc | |
3731 | ;; | |
3732 | esac | |
3733 | ||
c7e4b184 | 3734 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3735 | case "${target}" in |
c7e4b184 JM |
3736 | alpha*-dec-osf*) |
3737 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3738 | ;; | |
3739 | i[3456789]86-*-linux*) | |
3740 | # This section makes it possible to build newlib natively on linux. | |
3741 | # If we are using a cross compiler then don't configure newlib. | |
3742 | if test x${is_cross_compiler} != xno ; then | |
3743 | noconfigdirs="$noconfigdirs target-newlib" | |
3744 | fi | |
3745 | noconfigdirs="$noconfigdirs target-libgloss" | |
3746 | # If we are not using a cross compiler, do configure newlib. | |
3747 | # Note however, that newlib will only be configured in this situation | |
3748 | # if the --with-newlib option has been given, because otherwise | |
3749 | # 'target-newlib' will appear in skipdirs. | |
3750 | ;; | |
3751 | i[3456789]86-*-rdos*) | |
3752 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3753 | ;; | |
3754 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3755 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3756 | ;; | |
3757 | sparc-*-sunos4*) | |
3758 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3759 | ;; | |
228cf97d AM |
3760 | bpf-*-*) |
3761 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3762 | ;; | |
c7e4b184 JM |
3763 | *-*-aix*) |
3764 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3765 | ;; | |
3766 | *-*-beos*) | |
3767 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3768 | ;; | |
a0da8069 | 3769 | *-*-chorusos) |
b2f14e4a | 3770 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3771 | ;; |
c7e4b184 JM |
3772 | *-*-dragonfly*) |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | ;; | |
3775 | *-*-freebsd*) | |
3776 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3777 | ;; | |
3778 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3779 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3780 | ;; | |
3781 | *-*-lynxos*) | |
3782 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3783 | ;; | |
3784 | *-*-mingw*) | |
3785 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3786 | ;; | |
3787 | *-*-netbsd*) | |
3788 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3789 | ;; | |
3790 | *-*-netware*) | |
3791 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3792 | ;; | |
3793 | *-*-tpf*) | |
3794 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3795 | ;; | |
3796 | *-*-uclinux*) | |
3797 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3798 | ;; | |
3799 | *-*-vxworks*) | |
3800 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3801 | ;; | |
3802 | esac | |
3803 | ||
3804 | case "${target}" in | |
3805 | *-*-chorusos) | |
3806 | ;; | |
f075eb5e TG |
3807 | aarch64-*-darwin*) |
3808 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3809 | noconfigdirs="$noconfigdirs sim target-rda" | |
3810 | ;; | |
228cf97d AM |
3811 | amdgcn*-*-*) |
3812 | ;; | |
f075eb5e TG |
3813 | arm-*-darwin*) |
3814 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3815 | noconfigdirs="$noconfigdirs sim target-rda" | |
3816 | ;; | |
24741ab2 | 3817 | powerpc-*-darwin*) |
9d39db92 | 3818 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3819 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3820 | ;; |
85bd1942 TG |
3821 | i[3456789]86-*-darwin*) |
3822 | noconfigdirs="$noconfigdirs ld gprof" | |
3823 | noconfigdirs="$noconfigdirs sim target-rda" | |
3824 | ;; | |
e8a5fa9c | 3825 | x86_64-*-darwin[912]*) |
652dec25 TG |
3826 | noconfigdirs="$noconfigdirs ld gas gprof" |
3827 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3828 | ;; |
04d1ab34 | 3829 | *-*-darwin*) |
d320aacb | 3830 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3831 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3832 | ;; |
5b806d27 | 3833 | *-*-dragonfly*) |
5b806d27 | 3834 | ;; |
de0b4a87 | 3835 | *-*-freebsd*) |
228cf97d AM |
3836 | if test "x$with_gmp" = x \ |
3837 | && ! test -d ${srcdir}/gmp \ | |
4b1cb4fe DD |
3838 | && test -f /usr/local/include/gmp.h; then |
3839 | with_gmp=/usr/local | |
3840 | fi | |
4b1cb4fe | 3841 | ;; |
f8a495c8 NC |
3842 | *-*-kaos*) |
3843 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3844 | noconfigdirs="$noconfigdirs target-libgloss" |
3845 | ;; | |
a0da8069 | 3846 | *-*-netbsd*) |
a0da8069 | 3847 | ;; |
2a3124ca | 3848 | *-*-netware*) |
a0da8069 | 3849 | ;; |
05a13254 NC |
3850 | *-*-phoenix*) |
3851 | noconfigdirs="$noconfigdirs target-libgloss" | |
3852 | ;; | |
a0da8069 | 3853 | *-*-rtems*) |
9863d716 | 3854 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3855 | ;; |
1587117a EC |
3856 | # The tpf target doesn't support gdb yet. |
3857 | *-*-tpf*) | |
c7e4b184 | 3858 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3859 | ;; |
c1968181 | 3860 | *-*-uclinux*) |
c7e4b184 | 3861 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3862 | ;; |
a0da8069 | 3863 | *-*-vxworks*) |
a0da8069 NN |
3864 | ;; |
3865 | alpha*-dec-osf*) | |
3866 | # ld works, but does not support shared libraries. | |
a0da8069 | 3867 | # gas doesn't generate exception information. |
c7e4b184 | 3868 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3869 | ;; |
3870 | alpha*-*-*vms*) | |
9863d716 | 3871 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3872 | ;; |
a0da8069 NN |
3873 | alpha*-*-*) |
3874 | # newlib is not 64 bit ready | |
9863d716 | 3875 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3876 | ;; |
228cf97d AM |
3877 | bpf-*-*) |
3878 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3879 | ;; | |
a0da8069 | 3880 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3881 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3882 | ;; |
05a13254 NC |
3883 | arc*-*-*) |
3884 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3885 | ;; |
a0da8069 | 3886 | arm-*-pe*) |
9863d716 | 3887 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3888 | ;; |
a0da8069 | 3889 | arm-*-riscix*) |
b2f14e4a | 3890 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3891 | ;; |
8e71395b L |
3892 | avr-*-*) |
3893 | if test x${with_avrlibc} != xno; then | |
3894 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3895 | fi | |
3896 | ;; | |
a0da8069 | 3897 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3898 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3899 | ;; |
b2f14e4a JM |
3900 | tic54x-*-*) |
3901 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3902 | ;; |
a0da8069 | 3903 | d10v-*-*) |
b2f14e4a | 3904 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3905 | ;; |
3906 | d30v-*-*) | |
b2f14e4a | 3907 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3908 | ;; |
3909 | fr30-*-elf*) | |
9863d716 | 3910 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3911 | ;; |
3f8107ab AM |
3912 | ft32-*-*) |
3913 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3914 | ;; | |
20135e4c | 3915 | moxie-*-*) |
10b8fe5e | 3916 | noconfigdirs="$noconfigdirs" |
20135e4c | 3917 | ;; |
a0da8069 | 3918 | h8300*-*-*) |
9863d716 | 3919 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3920 | ;; |
3921 | h8500-*-*) | |
b2f14e4a | 3922 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3923 | ;; |
caeba88f | 3924 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3925 | ;; |
5569a85f JDA |
3926 | hppa*64*-*-hpux*) |
3927 | noconfigdirs="$noconfigdirs gdb" | |
3928 | ;; | |
3929 | hppa*-*-hpux11*) | |
3930 | noconfigdirs="$noconfigdirs gdb ld" | |
3931 | ;; | |
93cc359e | 3932 | hppa*64*-*-linux*) |
a0da8069 | 3933 | ;; |
f0ff0f90 | 3934 | hppa*-*-linux*) |
5dcac624 | 3935 | ;; |
a0da8069 | 3936 | hppa*-*-*elf* | \ |
a0da8069 NN |
3937 | hppa*-*-lites* | \ |
3938 | hppa*-*-openbsd* | \ | |
3939 | hppa*64*-*-*) | |
4f0ef2d8 | 3940 | ;; |
691bb5a1 | 3941 | hppa*-*-pro*) |
691bb5a1 | 3942 | ;; |
a0da8069 | 3943 | hppa*-*-*) |
9863d716 | 3944 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3945 | ;; |
b07c2aad | 3946 | i960-*-*) |
b2f14e4a | 3947 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3948 | ;; |
a0da8069 NN |
3949 | ia64*-*-elf*) |
3950 | # No gdb support yet. | |
0377a422 | 3951 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3952 | ;; |
3953 | ia64*-**-hpux*) | |
92c9a463 | 3954 | # No ld support yet. |
5569a85f | 3955 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3956 | ;; |
19e99079 | 3957 | ia64*-*-*vms*) |
7ec59b9e L |
3958 | # No ld support yet. |
3959 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3960 | ;; |
1f53ca9a | 3961 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3962 | ;; |
3963 | i[3456789]86-*-mingw*) | |
45055374 | 3964 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3965 | ;; |
a0da8069 NN |
3966 | *-*-cygwin*) |
3967 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3968 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3969 | # always build newlib if winsup directory is present. |
45055374 | 3970 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3971 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3972 | elif test -d "$srcdir/newlib"; then |
45055374 | 3973 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3974 | fi |
c6b750e1 | 3975 | ;; |
ec11bdc6 | 3976 | i[3456789]86-*-pe) |
782cb41f | 3977 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3978 | ;; |
ec11bdc6 | 3979 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3980 | # The linker does not yet know about weak symbols in COFF, |
3981 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3982 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3983 | ;; |
ec11bdc6 | 3984 | i[3456789]86-*-sco*) |
b2f14e4a | 3985 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3986 | ;; |
cff32a7c | 3987 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3988 | noconfigdirs="$noconfigdirs target-libgloss" |
3989 | ;; | |
ec11bdc6 | 3990 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3991 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3992 | ;; |
ec11bdc6 | 3993 | i[3456789]86-*-beos*) |
c7e4b184 | 3994 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3995 | ;; |
b59bea8a | 3996 | i[3456789]86-*-rdos*) |
c7e4b184 | 3997 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3998 | ;; |
a0da8069 | 3999 | mmix-*-*) |
9863d716 | 4000 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4001 | ;; |
4970f871 | 4002 | mt-*-*) |
cdb9b172 AH |
4003 | noconfigdirs="$noconfigdirs sim" |
4004 | ;; | |
1063beb5 FT |
4005 | nfp-*-*) |
4006 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
4007 | noconfigdirs="$noconfigdirs $target_libraries" | |
4008 | ;; | |
11104e42 SC |
4009 | pdp11-*-*) |
4010 | noconfigdirs="$noconfigdirs gdb gprof" | |
4011 | ;; | |
a0da8069 NN |
4012 | powerpc-*-aix*) |
4013 | # copied from rs6000-*-* entry | |
c7e4b184 | 4014 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4015 | ;; |
93cc359e | 4016 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 4017 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 4018 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
4019 | # always build newlib. |
4020 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
4021 | ;; | |
4022 | # This is temporary until we can link against shared libraries | |
4023 | powerpcle-*-solaris*) | |
b2f14e4a | 4024 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
4025 | ;; |
4026 | powerpc-*-beos*) | |
c7e4b184 | 4027 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4028 | ;; |
a0da8069 | 4029 | rs6000-*-lynxos*) |
c7e4b184 | 4030 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4031 | ;; |
4032 | rs6000-*-aix*) | |
c7e4b184 | 4033 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4034 | ;; |
4035 | rs6000-*-*) | |
9863d716 | 4036 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4037 | ;; |
4038 | m68k-apollo-*) | |
b2f14e4a | 4039 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 4040 | ;; |
25a07265 | 4041 | microblaze*) |
9863d716 | 4042 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 4043 | ;; |
a9d58c06 | 4044 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
4045 | if test x$with_newlib = xyes; then |
4046 | noconfigdirs="$noconfigdirs gprof" | |
4047 | fi | |
5bd8be13 | 4048 | ;; |
a0da8069 | 4049 | mips*-*-irix5*) |
b2f14e4a | 4050 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
4051 | ;; |
4052 | mips*-*-irix6*) | |
9863d716 | 4053 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 4054 | ;; |
a0da8069 | 4055 | mips*-*-bsd*) |
e8044f35 | 4056 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 4057 | ;; |
a0da8069 | 4058 | mips*-*-linux*) |
a0da8069 | 4059 | ;; |
e8044f35 RS |
4060 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4061 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4062 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4063 | ;; | |
a0da8069 | 4064 | mips*-*-*) |
9863d716 | 4065 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4066 | ;; |
1b6c0831 | 4067 | nvptx*-*-*) |
1b6c0831 L |
4068 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4069 | ;; | |
05a13254 | 4070 | sh-*-*) |
e8a5fa9c RW |
4071 | case "${target}" in |
4072 | sh*-*-elf) | |
9863d716 | 4073 | ;; |
e8a5fa9c | 4074 | *) |
9863d716 | 4075 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 4076 | esac |
a0da8069 | 4077 | ;; |
a0da8069 | 4078 | sparc-*-sunos4*) |
c7e4b184 | 4079 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
4080 | use_gnu_ld=no |
4081 | fi | |
4082 | ;; | |
619a3713 | 4083 | tic6x-*-*) |
40ae9136 | 4084 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 4085 | ;; |
05a13254 | 4086 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
4087 | noconfigdirs="$noconfigdirs sim" |
4088 | ;; | |
a0da8069 | 4089 | v810-*-*) |
b2f14e4a | 4090 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
4091 | ;; |
4092 | vax-*-*) | |
9863d716 | 4093 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 4094 | ;; |
b29d2641 MR |
4095 | wasm32-*-*) |
4096 | noconfigdirs="$noconfigdirs ld" | |
4097 | ;; | |
228cf97d AM |
4098 | loongarch*-*-linux*) |
4099 | ;; | |
4100 | loongarch*-*-*) | |
4101 | noconfigdirs="$noconfigdirs gprof" | |
4102 | ;; | |
a0da8069 | 4103 | esac |
252b5132 | 4104 | |
a0da8069 NN |
4105 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4106 | # depends upon some newlib header files. | |
4107 | case "${noconfigdirs}" in | |
4108 | *target-libgloss*) ;; | |
4109 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4110 | esac | |
4111 | ||
a0da8069 | 4112 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
4113 | host_makefile_frag=/dev/null |
4114 | if test -d ${srcdir}/config ; then | |
4115 | case "${host}" in | |
ec11bdc6 | 4116 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
4117 | host_makefile_frag="config/mh-djgpp" |
4118 | ;; | |
4119 | *-cygwin*) | |
e33b51a6 | 4120 | |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4122 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 4123 | echo a >cygwin-cat-check |
1f53ca9a | 4124 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 4125 | rm cygwin-cat-check |
81ecdfbb RW |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4127 | $as_echo "yes" >&6; } | |
e33b51a6 | 4128 | else |
8ade07e9 | 4129 | rm cygwin-cat-check |
81ecdfbb RW |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4131 | $as_echo "no" >&6; } | |
d0ac1c44 | 4132 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
4133 | Please either mount the build directory in binary mode or run the following |
4134 | commands before running any configure script: | |
4135 | set -o igncr | |
4136 | export SHELLOPTS | |
81ecdfbb | 4137 | " "$LINENO" 5 |
e33b51a6 | 4138 | fi |
e33b51a6 | 4139 | |
a0da8069 NN |
4140 | host_makefile_frag="config/mh-cygwin" |
4141 | ;; | |
8a1599ab | 4142 | *-mingw*) |
84e7906e | 4143 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4144 | ;; |
ce6c656d L |
4145 | alpha*-linux*) |
4146 | host_makefile_frag="config/mh-alpha-linux" | |
4147 | ;; | |
da888c87 | 4148 | hppa*-hp-hpux10*) |
da888c87 | 4149 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4150 | ;; |
3516a403 | 4151 | hppa*-hp-hpux*) |
da888c87 PB |
4152 | host_makefile_frag="config/mh-pa" |
4153 | ;; | |
4154 | hppa*-*) | |
4155 | host_makefile_frag="config/mh-pa" | |
4156 | ;; | |
228cf97d | 4157 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
e552509b | 4158 | host_makefile_frag="config/mh-darwin" |
0df3d27f | 4159 | ;; |
f6d183c0 PB |
4160 | powerpc-*-aix*) |
4161 | host_makefile_frag="config/mh-ppc-aix" | |
4162 | ;; | |
4163 | rs6000-*-aix*) | |
4164 | host_makefile_frag="config/mh-ppc-aix" | |
4165 | ;; | |
a0da8069 NN |
4166 | esac |
4167 | fi | |
4168 | ||
9e07f89d | 4169 | if test "${build}" != "${host}" ; then |
1576798e PB |
4170 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4171 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4172 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
228cf97d | 4173 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
1576798e | 4174 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
228cf97d | 4175 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
1576798e | 4176 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4177 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
228cf97d | 4178 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
1576798e PB |
4179 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4180 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4181 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4182 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4183 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4184 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4185 | else | |
4186 | AR_FOR_BUILD="\$(AR)" | |
4187 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4188 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4189 | CXX_FOR_BUILD="\$(CXX)" |
228cf97d | 4190 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
1576798e | 4191 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4192 | GOC_FOR_BUILD="\$(GOC)" |
228cf97d | 4193 | GDC_FOR_BUILD="\$(GDC)" |
1576798e PB |
4194 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4195 | LD_FOR_BUILD="\$(LD)" | |
4196 | NM_FOR_BUILD="\$(NM)" | |
4197 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4198 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4199 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4200 | fi |
4201 | ||
4202 | ac_ext=c | |
c6b750e1 DJ |
4203 | ac_cpp='$CPP $CPPFLAGS' |
4204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4207 | if test -n "$ac_tool_prefix"; then | |
4208 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4209 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4211 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4212 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4213 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4214 | else |
4215 | if test -n "$CC"; then | |
4216 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4217 | else | |
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4219 | for as_dir in $PATH | |
4220 | do | |
4221 | IFS=$as_save_IFS | |
4222 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4225 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4227 | break 2 |
4228 | fi | |
4229 | done | |
81ecdfbb RW |
4230 | done |
4231 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4232 | |
4233 | fi | |
4234 | fi | |
4235 | CC=$ac_cv_prog_CC | |
4236 | if test -n "$CC"; then | |
81ecdfbb RW |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4238 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4239 | else |
81ecdfbb RW |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4241 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4242 | fi |
4243 | ||
81ecdfbb | 4244 | |
c6b750e1 DJ |
4245 | fi |
4246 | if test -z "$ac_cv_prog_CC"; then | |
4247 | ac_ct_CC=$CC | |
6a9cf61e | 4248 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4249 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4251 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4252 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4253 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4254 | else |
4255 | if test -n "$ac_ct_CC"; then | |
4256 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4257 | else | |
4258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4259 | for as_dir in $PATH | |
4260 | do | |
4261 | IFS=$as_save_IFS | |
4262 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4264 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4265 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4267 | break 2 |
4268 | fi | |
4269 | done | |
81ecdfbb RW |
4270 | done |
4271 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4272 | |
4273 | fi | |
4274 | fi | |
4275 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4276 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4278 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4279 | else |
81ecdfbb RW |
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4281 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4282 | fi |
4283 | ||
81ecdfbb RW |
4284 | if test "x$ac_ct_CC" = x; then |
4285 | CC="" | |
4286 | else | |
4287 | case $cross_compiling:$ac_tool_warned in | |
4288 | yes:) | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4290 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4291 | ac_tool_warned=yes ;; | |
4292 | esac | |
4293 | CC=$ac_ct_CC | |
4294 | fi | |
c6b750e1 DJ |
4295 | else |
4296 | CC="$ac_cv_prog_CC" | |
4297 | fi | |
4298 | ||
4299 | if test -z "$CC"; then | |
81ecdfbb RW |
4300 | if test -n "$ac_tool_prefix"; then |
4301 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4302 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4304 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4305 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4306 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4307 | else |
4308 | if test -n "$CC"; then | |
4309 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4310 | else | |
c6b750e1 DJ |
4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4312 | for as_dir in $PATH | |
4313 | do | |
4314 | IFS=$as_save_IFS | |
4315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4316 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4318 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4320 | break 2 |
4321 | fi | |
4322 | done | |
81ecdfbb RW |
4323 | done |
4324 | IFS=$as_save_IFS | |
c6b750e1 | 4325 | |
9e07f89d NN |
4326 | fi |
4327 | fi | |
c6b750e1 | 4328 | CC=$ac_cv_prog_CC |
9e07f89d | 4329 | if test -n "$CC"; then |
81ecdfbb RW |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4331 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4332 | else |
81ecdfbb RW |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4334 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4335 | fi |
4336 | ||
c6b750e1 | 4337 | |
81ecdfbb | 4338 | fi |
c6b750e1 | 4339 | fi |
9e07f89d NN |
4340 | if test -z "$CC"; then |
4341 | # Extract the first word of "cc", so it can be a program name with args. | |
4342 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4344 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4345 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4346 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4347 | else |
4348 | if test -n "$CC"; then | |
4349 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4350 | else | |
9e07f89d | 4351 | ac_prog_rejected=no |
c6b750e1 DJ |
4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4353 | for as_dir in $PATH | |
4354 | do | |
4355 | IFS=$as_save_IFS | |
4356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4357 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4359 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4360 | ac_prog_rejected=yes | |
4361 | continue | |
4362 | fi | |
4363 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4365 | break 2 |
4366 | fi | |
4367 | done | |
81ecdfbb RW |
4368 | done |
4369 | IFS=$as_save_IFS | |
c6b750e1 | 4370 | |
9e07f89d NN |
4371 | if test $ac_prog_rejected = yes; then |
4372 | # We found a bogon in the path, so make sure we never use it. | |
4373 | set dummy $ac_cv_prog_CC | |
4374 | shift | |
c6b750e1 | 4375 | if test $# != 0; then |
9e07f89d NN |
4376 | # We chose a different compiler from the bogus one. |
4377 | # However, it has the same basename, so the bogon will be chosen | |
4378 | # first if we set CC to just the basename; use the full file name. | |
4379 | shift | |
c6b750e1 | 4380 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4381 | fi |
4382 | fi | |
4383 | fi | |
4384 | fi | |
c6b750e1 | 4385 | CC=$ac_cv_prog_CC |
9e07f89d | 4386 | if test -n "$CC"; then |
81ecdfbb RW |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4388 | $as_echo "$CC" >&6; } | |
9e07f89d | 4389 | else |
81ecdfbb RW |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4391 | $as_echo "no" >&6; } | |
9e07f89d NN |
4392 | fi |
4393 | ||
81ecdfbb | 4394 | |
c6b750e1 DJ |
4395 | fi |
4396 | if test -z "$CC"; then | |
4397 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4398 | for ac_prog in cl.exe |
c6b750e1 DJ |
4399 | do |
4400 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4401 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4403 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4404 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4405 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4406 | else |
4407 | if test -n "$CC"; then | |
4408 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4409 | else | |
c6b750e1 DJ |
4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4411 | for as_dir in $PATH | |
4412 | do | |
4413 | IFS=$as_save_IFS | |
4414 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4415 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4417 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4419 | break 2 |
376a0e54 | 4420 | fi |
c6b750e1 | 4421 | done |
81ecdfbb RW |
4422 | done |
4423 | IFS=$as_save_IFS | |
cac3d6c4 | 4424 | |
c6b750e1 DJ |
4425 | fi |
4426 | fi | |
4427 | CC=$ac_cv_prog_CC | |
4428 | if test -n "$CC"; then | |
81ecdfbb RW |
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4430 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4431 | else |
81ecdfbb RW |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4433 | $as_echo "no" >&6; } | |
9e07f89d | 4434 | fi |
cac3d6c4 | 4435 | |
81ecdfbb | 4436 | |
c6b750e1 DJ |
4437 | test -n "$CC" && break |
4438 | done | |
cac3d6c4 | 4439 | fi |
c6b750e1 DJ |
4440 | if test -z "$CC"; then |
4441 | ac_ct_CC=$CC | |
81ecdfbb | 4442 | for ac_prog in cl.exe |
c6b750e1 DJ |
4443 | do |
4444 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4445 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4447 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4448 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4449 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4450 | else |
c6b750e1 DJ |
4451 | if test -n "$ac_ct_CC"; then |
4452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4453 | else |
c6b750e1 DJ |
4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4455 | for as_dir in $PATH | |
4456 | do | |
4457 | IFS=$as_save_IFS | |
4458 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4459 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4461 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4463 | break 2 |
4464 | fi | |
4465 | done | |
81ecdfbb RW |
4466 | done |
4467 | IFS=$as_save_IFS | |
c6b750e1 | 4468 | |
cac3d6c4 CM |
4469 | fi |
4470 | fi | |
c6b750e1 DJ |
4471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4472 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4474 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4475 | else |
81ecdfbb RW |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4477 | $as_echo "no" >&6; } | |
cac3d6c4 | 4478 | fi |
376a0e54 | 4479 | |
81ecdfbb | 4480 | |
c6b750e1 DJ |
4481 | test -n "$ac_ct_CC" && break |
4482 | done | |
4483 | ||
81ecdfbb RW |
4484 | if test "x$ac_ct_CC" = x; then |
4485 | CC="" | |
4486 | else | |
4487 | case $cross_compiling:$ac_tool_warned in | |
4488 | yes:) | |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4491 | ac_tool_warned=yes ;; | |
4492 | esac | |
4493 | CC=$ac_ct_CC | |
4494 | fi | |
c6b750e1 DJ |
4495 | fi |
4496 | ||
4497 | fi | |
4498 | ||
4499 | ||
81ecdfbb RW |
4500 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4502 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4503 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4504 | |
4505 | # Provide some information about the compiler. | |
81ecdfbb RW |
4506 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4507 | set X $ac_compile | |
4508 | ac_compiler=$2 | |
4509 | for ac_option in --version -v -V -qversion; do | |
4510 | { { ac_try="$ac_compiler $ac_option >&5" | |
4511 | case "(($ac_try" in | |
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4513 | *) ac_try_echo=$ac_try;; | |
4514 | esac | |
4515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4516 | $as_echo "$ac_try_echo"; } >&5 | |
4517 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4518 | ac_status=$? |
81ecdfbb RW |
4519 | if test -s conftest.err; then |
4520 | sed '10a\ | |
4521 | ... rest of stderr output deleted ... | |
4522 | 10q' conftest.err >conftest.er1 | |
4523 | cat conftest.er1 >&5 | |
81ecdfbb | 4524 | fi |
d0ac1c44 | 4525 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4527 | test $ac_status = 0; } | |
4528 | done | |
c6b750e1 | 4529 | |
81ecdfbb | 4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4531 | /* end confdefs.h. */ |
4532 | ||
4533 | int | |
4534 | main () | |
4535 | { | |
4536 | ||
4537 | ; | |
4538 | return 0; | |
4539 | } | |
4540 | _ACEOF | |
4541 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4542 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4543 | # Try to create an executable without -o first, disregard a.out. |
4544 | # It will help us diagnose broken compilers, and finding out an intuition | |
4545 | # of exeext. | |
d0ac1c44 SM |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4547 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4548 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4549 | ||
4550 | # The possible output files: | |
4551 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4552 | ||
4553 | ac_rmfiles= | |
4554 | for ac_file in $ac_files | |
4555 | do | |
4556 | case $ac_file in | |
4557 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4558 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4559 | esac | |
4560 | done | |
4561 | rm -f $ac_rmfiles | |
4562 | ||
4563 | if { { ac_try="$ac_link_default" | |
4564 | case "(($ac_try" in | |
4565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4566 | *) ac_try_echo=$ac_try;; | |
4567 | esac | |
4568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4569 | $as_echo "$ac_try_echo"; } >&5 | |
4570 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4571 | ac_status=$? |
81ecdfbb RW |
4572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4573 | test $ac_status = 0; }; then : | |
4574 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4575 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4576 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4577 | # so that the user can short-circuit this test for compilers unknown to | |
4578 | # Autoconf. | |
4579 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4580 | do |
4581 | test -f "$ac_file" || continue | |
4582 | case $ac_file in | |
81ecdfbb | 4583 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4584 | ;; |
4585 | [ab].out ) | |
4586 | # We found the default executable, but exeext='' is most | |
4587 | # certainly right. | |
4588 | break;; | |
4589 | *.* ) | |
81ecdfbb RW |
4590 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4591 | then :; else | |
4592 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4593 | fi | |
4594 | # We set ac_cv_exeext here because the later test for it is not | |
4595 | # safe: cross compilers may not add the suffix if given an `-o' | |
4596 | # argument, so we may need to know it at that point already. | |
4597 | # Even if this section looks crufty: it has the advantage of | |
4598 | # actually working. | |
c6b750e1 DJ |
4599 | break;; |
4600 | * ) | |
4601 | break;; | |
4602 | esac | |
4603 | done | |
81ecdfbb RW |
4604 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4605 | ||
c6b750e1 | 4606 | else |
81ecdfbb RW |
4607 | ac_file='' |
4608 | fi | |
81ecdfbb | 4609 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4611 | $as_echo "no" >&6; } | |
4612 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4613 | sed 's/^/| /' conftest.$ac_ext >&5 |
4614 | ||
81ecdfbb RW |
4615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4616 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4617 | as_fn_error 77 "C compiler cannot create executables |
4618 | See \`config.log' for more details" "$LINENO" 5; } | |
4619 | else | |
4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4621 | $as_echo "yes" >&6; } | |
c6b750e1 | 4622 | fi |
d0ac1c44 SM |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4624 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4626 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4627 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4628 | |
d0ac1c44 | 4629 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4630 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4632 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4633 | if { { ac_try="$ac_link" | |
4634 | case "(($ac_try" in | |
4635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4636 | *) ac_try_echo=$ac_try;; | |
4637 | esac | |
4638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4639 | $as_echo "$ac_try_echo"; } >&5 | |
4640 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4641 | ac_status=$? |
81ecdfbb RW |
4642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4643 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4644 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4645 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4646 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4647 | # `rm'. | |
4648 | for ac_file in conftest.exe conftest conftest.*; do | |
4649 | test -f "$ac_file" || continue | |
4650 | case $ac_file in | |
81ecdfbb | 4651 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4652 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4653 | break;; |
4654 | * ) break;; | |
4655 | esac | |
4656 | done | |
4657 | else | |
81ecdfbb RW |
4658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4660 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4661 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4662 | fi |
d0ac1c44 | 4663 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4665 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4666 | |
4667 | rm -f conftest.$ac_ext | |
4668 | EXEEXT=$ac_cv_exeext | |
4669 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4671 | /* end confdefs.h. */ | |
4672 | #include <stdio.h> | |
4673 | int | |
4674 | main () | |
4675 | { | |
4676 | FILE *f = fopen ("conftest.out", "w"); | |
4677 | return ferror (f) || fclose (f) != 0; | |
4678 | ||
4679 | ; | |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
4683 | ac_clean_files="$ac_clean_files conftest.out" | |
4684 | # Check that the compiler produces executables we can run. If not, either | |
4685 | # the compiler is broken, or we cross compile. | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4687 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4688 | if test "$cross_compiling" != yes; then | |
4689 | { { ac_try="$ac_link" | |
4690 | case "(($ac_try" in | |
4691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4692 | *) ac_try_echo=$ac_try;; | |
4693 | esac | |
4694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4695 | $as_echo "$ac_try_echo"; } >&5 | |
4696 | (eval "$ac_link") 2>&5 | |
4697 | ac_status=$? | |
4698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4699 | test $ac_status = 0; } | |
4700 | if { ac_try='./conftest$ac_cv_exeext' | |
4701 | { { case "(($ac_try" in | |
4702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4703 | *) ac_try_echo=$ac_try;; | |
4704 | esac | |
4705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4706 | $as_echo "$ac_try_echo"; } >&5 | |
4707 | (eval "$ac_try") 2>&5 | |
4708 | ac_status=$? | |
4709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4710 | test $ac_status = 0; }; }; then | |
4711 | cross_compiling=no | |
4712 | else | |
4713 | if test "$cross_compiling" = maybe; then | |
4714 | cross_compiling=yes | |
4715 | else | |
4716 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4717 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4718 | as_fn_error $? "cannot run C compiled programs. | |
4719 | If you meant to cross compile, use \`--host'. | |
4720 | See \`config.log' for more details" "$LINENO" 5; } | |
4721 | fi | |
4722 | fi | |
4723 | fi | |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4725 | $as_echo "$cross_compiling" >&6; } | |
4726 | ||
4727 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4728 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4730 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4731 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4732 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4733 | else |
81ecdfbb | 4734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4735 | /* end confdefs.h. */ |
4736 | ||
4737 | int | |
4738 | main () | |
4739 | { | |
4740 | ||
4741 | ; | |
4742 | return 0; | |
4743 | } | |
4744 | _ACEOF | |
4745 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4746 | if { { ac_try="$ac_compile" |
4747 | case "(($ac_try" in | |
4748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4749 | *) ac_try_echo=$ac_try;; | |
4750 | esac | |
4751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4752 | $as_echo "$ac_try_echo"; } >&5 | |
4753 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4754 | ac_status=$? |
81ecdfbb RW |
4755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4756 | test $ac_status = 0; }; then : | |
4757 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4758 | test -f "$ac_file" || continue; | |
c6b750e1 | 4759 | case $ac_file in |
81ecdfbb | 4760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4761 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4762 | break;; | |
4763 | esac | |
4764 | done | |
cac3d6c4 | 4765 | else |
81ecdfbb | 4766 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
4768 | ||
81ecdfbb RW |
4769 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4770 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4771 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4772 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4773 | fi |
c6b750e1 DJ |
4774 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4775 | fi | |
81ecdfbb RW |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4777 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4778 | OBJEXT=$ac_cv_objext |
4779 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4781 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4782 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4783 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4784 | else |
81ecdfbb | 4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4786 | /* end confdefs.h. */ |
4787 | ||
4788 | int | |
4789 | main () | |
4790 | { | |
4791 | #ifndef __GNUC__ | |
4792 | choke me | |
4793 | #endif | |
4794 | ||
4795 | ; | |
4796 | return 0; | |
4797 | } | |
4798 | _ACEOF | |
81ecdfbb | 4799 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4800 | ac_compiler_gnu=yes |
4801 | else | |
81ecdfbb | 4802 | ac_compiler_gnu=no |
c6b750e1 | 4803 | fi |
81ecdfbb | 4804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4805 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4806 | ||
4807 | fi | |
81ecdfbb RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4809 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4810 | if test $ac_compiler_gnu = yes; then | |
4811 | GCC=yes | |
4812 | else | |
4813 | GCC= | |
4814 | fi | |
c6b750e1 DJ |
4815 | ac_test_CFLAGS=${CFLAGS+set} |
4816 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4818 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4819 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4820 | $as_echo_n "(cached) " >&6 |
4821 | else | |
4822 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4823 | ac_c_werror_flag=yes | |
4824 | ac_cv_prog_cc_g=no | |
4825 | CFLAGS="-g" | |
4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4827 | /* end confdefs.h. */ |
4828 | ||
4829 | int | |
4830 | main () | |
4831 | { | |
4832 | ||
4833 | ; | |
4834 | return 0; | |
4835 | } | |
4836 | _ACEOF | |
81ecdfbb | 4837 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4838 | ac_cv_prog_cc_g=yes |
4839 | else | |
81ecdfbb RW |
4840 | CFLAGS="" |
4841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4842 | /* end confdefs.h. */ | |
4843 | ||
4844 | int | |
4845 | main () | |
4846 | { | |
4847 | ||
4848 | ; | |
4849 | return 0; | |
4850 | } | |
4851 | _ACEOF | |
4852 | if ac_fn_c_try_compile "$LINENO"; then : | |
4853 | ||
4854 | else | |
4855 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4856 | CFLAGS="-g" | |
4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4858 | /* end confdefs.h. */ | |
cac3d6c4 | 4859 | |
81ecdfbb RW |
4860 | int |
4861 | main () | |
4862 | { | |
4863 | ||
4864 | ; | |
4865 | return 0; | |
4866 | } | |
4867 | _ACEOF | |
4868 | if ac_fn_c_try_compile "$LINENO"; then : | |
4869 | ac_cv_prog_cc_g=yes | |
4870 | fi | |
4871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4872 | fi |
81ecdfbb | 4873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4874 | fi |
81ecdfbb RW |
4875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4876 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4877 | fi | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4879 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4880 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4881 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4882 | elif test $ac_cv_prog_cc_g = yes; then |
4883 | if test "$GCC" = yes; then | |
4884 | CFLAGS="-g -O2" | |
4885 | else | |
4886 | CFLAGS="-g" | |
4887 | fi | |
4888 | else | |
4889 | if test "$GCC" = yes; then | |
4890 | CFLAGS="-O2" | |
4891 | else | |
4892 | CFLAGS= | |
4893 | fi | |
4894 | fi | |
81ecdfbb RW |
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4896 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4897 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4898 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4899 | else |
81ecdfbb | 4900 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4901 | ac_save_CC=$CC |
81ecdfbb | 4902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4903 | /* end confdefs.h. */ |
4904 | #include <stdarg.h> | |
4905 | #include <stdio.h> | |
d0ac1c44 | 4906 | struct stat; |
c6b750e1 DJ |
4907 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4908 | struct buf { int x; }; | |
4909 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4910 | static char *e (p, i) | |
4911 | char **p; | |
4912 | int i; | |
4913 | { | |
4914 | return p[i]; | |
4915 | } | |
4916 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4917 | { | |
4918 | char *s; | |
4919 | va_list v; | |
4920 | va_start (v,p); | |
4921 | s = g (p, va_arg (v,int)); | |
4922 | va_end (v); | |
4923 | return s; | |
4924 | } | |
4925 | ||
4926 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4927 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4928 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4929 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4930 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4931 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4932 | that's true only with -std. */ |
c6b750e1 DJ |
4933 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4934 | ||
81ecdfbb RW |
4935 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4936 | inside strings and character constants. */ | |
4937 | #define FOO(x) 'x' | |
4938 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4939 | ||
c6b750e1 DJ |
4940 | int test (int i, double x); |
4941 | struct s1 {int (*f) (int a);}; | |
4942 | struct s2 {int (*f) (double a);}; | |
4943 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4944 | int argc; | |
4945 | char **argv; | |
4946 | int | |
4947 | main () | |
4948 | { | |
4949 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4950 | ; | |
4951 | return 0; | |
4952 | } | |
4953 | _ACEOF | |
81ecdfbb RW |
4954 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4955 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4956 | do |
4957 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4958 | if ac_fn_c_try_compile "$LINENO"; then : |
4959 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4960 | fi |
81ecdfbb RW |
4961 | rm -f core conftest.err conftest.$ac_objext |
4962 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4963 | done |
81ecdfbb | 4964 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4965 | CC=$ac_save_CC |
4966 | ||
4967 | fi | |
81ecdfbb RW |
4968 | # AC_CACHE_VAL |
4969 | case "x$ac_cv_prog_cc_c89" in | |
4970 | x) | |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4972 | $as_echo "none needed" >&6; } ;; | |
4973 | xno) | |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4975 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4976 | *) |
81ecdfbb RW |
4977 | CC="$CC $ac_cv_prog_cc_c89" |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4979 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4980 | esac |
81ecdfbb | 4981 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4982 | |
c6b750e1 DJ |
4983 | fi |
4984 | ||
c6b750e1 DJ |
4985 | ac_ext=c |
4986 | ac_cpp='$CPP $CPPFLAGS' | |
4987 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4988 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4989 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4990 | |
a8d6316b NC |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4992 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4993 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4994 | $as_echo_n "(cached) " >&6 | |
4995 | else | |
4996 | ac_cv_prog_cc_c99=no | |
4997 | ac_save_CC=$CC | |
4998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4999 | /* end confdefs.h. */ | |
5000 | #include <stdarg.h> | |
5001 | #include <stdbool.h> | |
5002 | #include <stdlib.h> | |
5003 | #include <wchar.h> | |
5004 | #include <stdio.h> | |
5005 | ||
5006 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5007 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5008 | #define showlist(...) puts (#__VA_ARGS__) | |
5009 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5010 | static void | |
5011 | test_varargs_macros (void) | |
5012 | { | |
5013 | int x = 1234; | |
5014 | int y = 5678; | |
5015 | debug ("Flag"); | |
5016 | debug ("X = %d\n", x); | |
5017 | showlist (The first, second, and third items.); | |
5018 | report (x>y, "x is %d but y is %d", x, y); | |
5019 | } | |
5020 | ||
5021 | // Check long long types. | |
5022 | #define BIG64 18446744073709551615ull | |
5023 | #define BIG32 4294967295ul | |
5024 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5025 | #if !BIG_OK | |
5026 | your preprocessor is broken; | |
5027 | #endif | |
5028 | #if BIG_OK | |
5029 | #else | |
5030 | your preprocessor is broken; | |
5031 | #endif | |
5032 | static long long int bignum = -9223372036854775807LL; | |
5033 | static unsigned long long int ubignum = BIG64; | |
5034 | ||
5035 | struct incomplete_array | |
5036 | { | |
5037 | int datasize; | |
5038 | double data[]; | |
5039 | }; | |
5040 | ||
5041 | struct named_init { | |
5042 | int number; | |
5043 | const wchar_t *name; | |
5044 | double average; | |
5045 | }; | |
5046 | ||
5047 | typedef const char *ccp; | |
5048 | ||
5049 | static inline int | |
5050 | test_restrict (ccp restrict text) | |
5051 | { | |
5052 | // See if C++-style comments work. | |
5053 | // Iterate through items via the restricted pointer. | |
5054 | // Also check for declarations in for loops. | |
5055 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5056 | continue; | |
5057 | return 0; | |
5058 | } | |
5059 | ||
5060 | // Check varargs and va_copy. | |
5061 | static void | |
5062 | test_varargs (const char *format, ...) | |
5063 | { | |
5064 | va_list args; | |
5065 | va_start (args, format); | |
5066 | va_list args_copy; | |
5067 | va_copy (args_copy, args); | |
5068 | ||
5069 | const char *str; | |
5070 | int number; | |
5071 | float fnumber; | |
5072 | ||
5073 | while (*format) | |
5074 | { | |
5075 | switch (*format++) | |
5076 | { | |
5077 | case 's': // string | |
5078 | str = va_arg (args_copy, const char *); | |
5079 | break; | |
5080 | case 'd': // int | |
5081 | number = va_arg (args_copy, int); | |
5082 | break; | |
5083 | case 'f': // float | |
5084 | fnumber = va_arg (args_copy, double); | |
5085 | break; | |
5086 | default: | |
5087 | break; | |
5088 | } | |
5089 | } | |
5090 | va_end (args_copy); | |
5091 | va_end (args); | |
5092 | } | |
5093 | ||
5094 | int | |
5095 | main () | |
5096 | { | |
5097 | ||
5098 | // Check bool. | |
5099 | _Bool success = false; | |
5100 | ||
5101 | // Check restrict. | |
5102 | if (test_restrict ("String literal") == 0) | |
5103 | success = true; | |
5104 | char *restrict newvar = "Another string"; | |
5105 | ||
5106 | // Check varargs. | |
5107 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5108 | test_varargs_macros (); | |
5109 | ||
5110 | // Check flexible array members. | |
5111 | struct incomplete_array *ia = | |
5112 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5113 | ia->datasize = 10; | |
5114 | for (int i = 0; i < ia->datasize; ++i) | |
5115 | ia->data[i] = i * 1.234; | |
5116 | ||
5117 | // Check named initializers. | |
5118 | struct named_init ni = { | |
5119 | .number = 34, | |
5120 | .name = L"Test wide string", | |
5121 | .average = 543.34343, | |
5122 | }; | |
5123 | ||
5124 | ni.number = 58; | |
5125 | ||
5126 | int dynamic_array[ni.number]; | |
5127 | dynamic_array[ni.number - 1] = 543; | |
5128 | ||
5129 | // work around unused variable warnings | |
5130 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5131 | || dynamic_array[ni.number - 1] != 543); | |
5132 | ||
5133 | ; | |
5134 | return 0; | |
5135 | } | |
5136 | _ACEOF | |
5137 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5138 | do | |
5139 | CC="$ac_save_CC $ac_arg" | |
5140 | if ac_fn_c_try_compile "$LINENO"; then : | |
5141 | ac_cv_prog_cc_c99=$ac_arg | |
5142 | fi | |
5143 | rm -f core conftest.err conftest.$ac_objext | |
5144 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5145 | done | |
5146 | rm -f conftest.$ac_ext | |
5147 | CC=$ac_save_CC | |
5148 | ||
5149 | fi | |
5150 | # AC_CACHE_VAL | |
5151 | case "x$ac_cv_prog_cc_c99" in | |
5152 | x) | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5154 | $as_echo "none needed" >&6; } ;; | |
5155 | xno) | |
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5157 | $as_echo "unsupported" >&6; } ;; | |
5158 | *) | |
5159 | CC="$CC $ac_cv_prog_cc_c99" | |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5161 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5162 | esac | |
5163 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5164 | ||
5165 | fi | |
5166 | ||
5167 | ||
81ecdfbb | 5168 | ac_ext=cpp |
18f6b6ee PB |
5169 | ac_cpp='$CXXCPP $CPPFLAGS' |
5170 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5171 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5172 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
5173 | if test -z "$CXX"; then |
5174 | if test -n "$CCC"; then | |
5175 | CXX=$CCC | |
5176 | else | |
5177 | if test -n "$ac_tool_prefix"; then | |
5178 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
5179 | do |
5180 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5181 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5184 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 5185 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5186 | else |
5187 | if test -n "$CXX"; then | |
5188 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5189 | else | |
5190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5191 | for as_dir in $PATH | |
5192 | do | |
5193 | IFS=$as_save_IFS | |
5194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5195 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5197 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
5199 | break 2 |
5200 | fi | |
5201 | done | |
81ecdfbb RW |
5202 | done |
5203 | IFS=$as_save_IFS | |
512b7dfb | 5204 | |
18f6b6ee PB |
5205 | fi |
5206 | fi | |
5207 | CXX=$ac_cv_prog_CXX | |
5208 | if test -n "$CXX"; then | |
81ecdfbb RW |
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5210 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 5211 | else |
81ecdfbb RW |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5213 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5214 | fi |
5215 | ||
81ecdfbb | 5216 | |
18f6b6ee PB |
5217 | test -n "$CXX" && break |
5218 | done | |
5219 | fi | |
5220 | if test -z "$CXX"; then | |
5221 | ac_ct_CXX=$CXX | |
81ecdfbb | 5222 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
5223 | do |
5224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5225 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5227 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5228 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5229 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5230 | else |
5231 | if test -n "$ac_ct_CXX"; then | |
5232 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5233 | else | |
5234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5235 | for as_dir in $PATH | |
5236 | do | |
5237 | IFS=$as_save_IFS | |
5238 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5239 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5241 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 5243 | break 2 |
512b7dfb | 5244 | fi |
18f6b6ee | 5245 | done |
81ecdfbb RW |
5246 | done |
5247 | IFS=$as_save_IFS | |
512b7dfb | 5248 | |
18f6b6ee PB |
5249 | fi |
5250 | fi | |
5251 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5252 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5254 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 5255 | else |
81ecdfbb RW |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5257 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5258 | fi |
5259 | ||
81ecdfbb | 5260 | |
18f6b6ee PB |
5261 | test -n "$ac_ct_CXX" && break |
5262 | done | |
18f6b6ee | 5263 | |
81ecdfbb RW |
5264 | if test "x$ac_ct_CXX" = x; then |
5265 | CXX="g++" | |
5266 | else | |
5267 | case $cross_compiling:$ac_tool_warned in | |
5268 | yes:) | |
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5270 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5271 | ac_tool_warned=yes ;; | |
5272 | esac | |
5273 | CXX=$ac_ct_CXX | |
5274 | fi | |
18f6b6ee PB |
5275 | fi |
5276 | ||
81ecdfbb RW |
5277 | fi |
5278 | fi | |
18f6b6ee | 5279 | # Provide some information about the compiler. |
81ecdfbb RW |
5280 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5281 | set X $ac_compile | |
5282 | ac_compiler=$2 | |
5283 | for ac_option in --version -v -V -qversion; do | |
5284 | { { ac_try="$ac_compiler $ac_option >&5" | |
5285 | case "(($ac_try" in | |
5286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5287 | *) ac_try_echo=$ac_try;; | |
5288 | esac | |
5289 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5290 | $as_echo "$ac_try_echo"; } >&5 | |
5291 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 5292 | ac_status=$? |
81ecdfbb RW |
5293 | if test -s conftest.err; then |
5294 | sed '10a\ | |
5295 | ... rest of stderr output deleted ... | |
5296 | 10q' conftest.err >conftest.er1 | |
5297 | cat conftest.er1 >&5 | |
81ecdfbb | 5298 | fi |
d0ac1c44 | 5299 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5301 | test $ac_status = 0; } | |
5302 | done | |
18f6b6ee | 5303 | |
81ecdfbb RW |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5305 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5306 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5307 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 5308 | else |
81ecdfbb | 5309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
5310 | /* end confdefs.h. */ |
5311 | ||
5312 | int | |
5313 | main () | |
5314 | { | |
5315 | #ifndef __GNUC__ | |
5316 | choke me | |
5317 | #endif | |
5318 | ||
5319 | ; | |
5320 | return 0; | |
5321 | } | |
5322 | _ACEOF | |
81ecdfbb | 5323 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5324 | ac_compiler_gnu=yes |
5325 | else | |
81ecdfbb | 5326 | ac_compiler_gnu=no |
18f6b6ee | 5327 | fi |
81ecdfbb | 5328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5329 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5330 | ||
5331 | fi | |
81ecdfbb RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5333 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5334 | if test $ac_compiler_gnu = yes; then | |
5335 | GXX=yes | |
5336 | else | |
5337 | GXX= | |
5338 | fi | |
18f6b6ee PB |
5339 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5340 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5342 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5343 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5344 | $as_echo_n "(cached) " >&6 |
5345 | else | |
5346 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5347 | ac_cxx_werror_flag=yes | |
5348 | ac_cv_prog_cxx_g=no | |
5349 | CXXFLAGS="-g" | |
5350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5351 | /* end confdefs.h. */ |
5352 | ||
5353 | int | |
5354 | main () | |
5355 | { | |
5356 | ||
5357 | ; | |
5358 | return 0; | |
5359 | } | |
5360 | _ACEOF | |
81ecdfbb | 5361 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5362 | ac_cv_prog_cxx_g=yes |
5363 | else | |
81ecdfbb RW |
5364 | CXXFLAGS="" |
5365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5366 | /* end confdefs.h. */ |
81ecdfbb | 5367 | |
18f6b6ee PB |
5368 | int |
5369 | main () | |
5370 | { | |
81ecdfbb | 5371 | |
18f6b6ee PB |
5372 | ; |
5373 | return 0; | |
5374 | } | |
5375 | _ACEOF | |
81ecdfbb | 5376 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5377 | |
81ecdfbb RW |
5378 | else |
5379 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5380 | CXXFLAGS="-g" | |
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5382 | /* end confdefs.h. */ |
81ecdfbb | 5383 | |
18f6b6ee PB |
5384 | int |
5385 | main () | |
5386 | { | |
81ecdfbb | 5387 | |
18f6b6ee PB |
5388 | ; |
5389 | return 0; | |
5390 | } | |
5391 | _ACEOF | |
81ecdfbb RW |
5392 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5393 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5394 | fi |
81ecdfbb RW |
5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5396 | fi | |
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5398 | fi | |
5399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5400 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5401 | fi | |
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5403 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5404 | if test "$ac_test_CXXFLAGS" = set; then | |
5405 | CXXFLAGS=$ac_save_CXXFLAGS | |
5406 | elif test $ac_cv_prog_cxx_g = yes; then | |
5407 | if test "$GXX" = yes; then | |
5408 | CXXFLAGS="-g -O2" | |
5409 | else | |
5410 | CXXFLAGS="-g" | |
5411 | fi | |
5412 | else | |
5413 | if test "$GXX" = yes; then | |
5414 | CXXFLAGS="-O2" | |
5415 | else | |
5416 | CXXFLAGS= | |
5417 | fi | |
18f6b6ee | 5418 | fi |
18f6b6ee PB |
5419 | ac_ext=c |
5420 | ac_cpp='$CPP $CPPFLAGS' | |
5421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5424 | ||
5425 | ||
5426 | # We must set the default linker to the linker used by gcc for the correct | |
5427 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5428 | # set the LD default to the ld used by gcc. | |
5429 | if test -z "$LD"; then | |
5430 | if test "$GCC" = yes; then | |
5431 | case $build in | |
5432 | *-*-mingw*) | |
5433 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5434 | *) | |
5435 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5436 | esac | |
5437 | case $gcc_prog_ld in | |
5438 | # Accept absolute paths. | |
5439 | [\\/]* | [A-Za-z]:[\\/]*) | |
5440 | LD="$gcc_prog_ld" ;; | |
5441 | esac | |
5442 | fi | |
512b7dfb PB |
5443 | fi |
5444 | ||
b3676d82 EB |
5445 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5446 | have_static_libs=no | |
5447 | if test "$GCC" = yes; then | |
5448 | saved_LDFLAGS="$LDFLAGS" | |
5449 | ||
5450 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5452 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5453 | ac_ext=cpp | |
5454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5458 | ||
5459 | ||
5460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5461 | /* end confdefs.h. */ | |
a882be68 EB |
5462 | |
5463 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5464 | #error -static-libstdc++ not implemented | |
5465 | #endif | |
b3676d82 EB |
5466 | int main() {} |
5467 | _ACEOF | |
5468 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5470 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5471 | else | |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5473 | $as_echo "no" >&6; } | |
5474 | fi | |
5475 | rm -f core conftest.err conftest.$ac_objext \ | |
5476 | conftest$ac_exeext conftest.$ac_ext | |
5477 | ac_ext=c | |
5478 | ac_cpp='$CPP $CPPFLAGS' | |
5479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5482 | ||
5483 | ||
5484 | LDFLAGS="$saved_LDFLAGS" | |
5485 | fi | |
5486 | ||
512b7dfb PB |
5487 | |
5488 | ||
5489 | ||
c6b750e1 | 5490 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5491 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5492 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5494 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5495 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5496 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5497 | else |
512b7dfb PB |
5498 | if test -n "$GNATBIND"; then |
5499 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5500 | else |
c6b750e1 DJ |
5501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5502 | for as_dir in $PATH | |
5503 | do | |
5504 | IFS=$as_save_IFS | |
5505 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5506 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5508 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5510 | break 2 |
5511 | fi | |
5512 | done | |
81ecdfbb RW |
5513 | done |
5514 | IFS=$as_save_IFS | |
c6b750e1 | 5515 | |
9e07f89d NN |
5516 | fi |
5517 | fi | |
512b7dfb PB |
5518 | GNATBIND=$ac_cv_prog_GNATBIND |
5519 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5521 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5522 | else |
81ecdfbb RW |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5524 | $as_echo "no" >&6; } | |
9e07f89d NN |
5525 | fi |
5526 | ||
81ecdfbb | 5527 | |
c6b750e1 | 5528 | fi |
512b7dfb PB |
5529 | if test -z "$ac_cv_prog_GNATBIND"; then |
5530 | ac_ct_GNATBIND=$GNATBIND | |
5531 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5532 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5534 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5535 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5536 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5537 | else |
512b7dfb PB |
5538 | if test -n "$ac_ct_GNATBIND"; then |
5539 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5540 | else |
c6b750e1 DJ |
5541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5542 | for as_dir in $PATH | |
5543 | do | |
5544 | IFS=$as_save_IFS | |
5545 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5546 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5548 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5550 | break 2 |
5551 | fi | |
5552 | done | |
81ecdfbb RW |
5553 | done |
5554 | IFS=$as_save_IFS | |
c6b750e1 | 5555 | |
9e07f89d NN |
5556 | fi |
5557 | fi | |
512b7dfb PB |
5558 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5559 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5561 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5562 | else |
81ecdfbb RW |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5564 | $as_echo "no" >&6; } | |
9e07f89d NN |
5565 | fi |
5566 | ||
81ecdfbb RW |
5567 | if test "x$ac_ct_GNATBIND" = x; then |
5568 | GNATBIND="no" | |
5569 | else | |
5570 | case $cross_compiling:$ac_tool_warned in | |
5571 | yes:) | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5574 | ac_tool_warned=yes ;; | |
5575 | esac | |
5576 | GNATBIND=$ac_ct_GNATBIND | |
5577 | fi | |
24ff9987 | 5578 | else |
512b7dfb | 5579 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5580 | fi |
5581 | ||
7df2cd5d | 5582 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5583 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5584 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5586 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5587 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5588 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5589 | else |
512b7dfb PB |
5590 | if test -n "$GNATMAKE"; then |
5591 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5592 | else |
5593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5594 | for as_dir in $PATH | |
5595 | do | |
5596 | IFS=$as_save_IFS | |
5597 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5598 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5600 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5602 | break 2 |
5603 | fi | |
5604 | done | |
81ecdfbb RW |
5605 | done |
5606 | IFS=$as_save_IFS | |
7df2cd5d PB |
5607 | |
5608 | fi | |
5609 | fi | |
512b7dfb PB |
5610 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5611 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5613 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5614 | else |
81ecdfbb RW |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5616 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5617 | fi |
5618 | ||
81ecdfbb | 5619 | |
7df2cd5d | 5620 | fi |
512b7dfb PB |
5621 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5622 | ac_ct_GNATMAKE=$GNATMAKE | |
5623 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5624 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5626 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5627 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5628 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5629 | else |
512b7dfb PB |
5630 | if test -n "$ac_ct_GNATMAKE"; then |
5631 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5632 | else |
5633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5634 | for as_dir in $PATH | |
5635 | do | |
5636 | IFS=$as_save_IFS | |
5637 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5638 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5640 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5642 | break 2 |
5643 | fi | |
5644 | done | |
81ecdfbb RW |
5645 | done |
5646 | IFS=$as_save_IFS | |
7df2cd5d | 5647 | |
7df2cd5d PB |
5648 | fi |
5649 | fi | |
512b7dfb PB |
5650 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5651 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5653 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5654 | else |
81ecdfbb RW |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5656 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5657 | fi |
5658 | ||
81ecdfbb RW |
5659 | if test "x$ac_ct_GNATMAKE" = x; then |
5660 | GNATMAKE="no" | |
5661 | else | |
5662 | case $cross_compiling:$ac_tool_warned in | |
5663 | yes:) | |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5666 | ac_tool_warned=yes ;; | |
5667 | esac | |
5668 | GNATMAKE=$ac_ct_GNATMAKE | |
5669 | fi | |
7df2cd5d | 5670 | else |
512b7dfb | 5671 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5672 | fi |
5673 | ||
b95bb526 AM |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5675 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
d0ac1c44 | 5676 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5677 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5678 | else |
5679 | cat >conftest.adb <<EOF | |
b95bb526 AM |
5680 | pragma Warnings (Off); |
5681 | with System.CRTL; | |
5682 | pragma Warnings (On); | |
5683 | use type System.CRTL.int64; | |
9e07f89d NN |
5684 | procedure conftest is begin null; end conftest; |
5685 | EOF | |
5686 | acx_cv_cc_gcc_supports_ada=no | |
5687 | # There is a bug in old released versions of GCC which causes the | |
5688 | # driver to exit successfully when the appropriate language module | |
5689 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5690 | # Therefore we must check for the error message as well as an | |
5691 | # unsuccessful exit. | |
b8908782 DD |
5692 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5693 | # given a .adb file, but produce no object file. So we must check | |
5694 | # if an object file was really produced to guard against this. | |
9e07f89d | 5695 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5696 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5697 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5698 | fi |
5699 | rm -f conftest.* | |
5700 | fi | |
81ecdfbb RW |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5702 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5703 | |
64b986c0 | 5704 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5705 | have_gnat=yes |
5706 | else | |
5707 | have_gnat=no | |
5708 | fi | |
5709 | ||
b95bb526 AM |
5710 | |
5711 | ||
5712 | if test -n "$ac_tool_prefix"; then | |
5713 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5714 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5716 | $as_echo_n "checking for $ac_word... " >&6; } | |
5717 | if ${ac_cv_prog_GDC+:} false; then : | |
5718 | $as_echo_n "(cached) " >&6 | |
5719 | else | |
5720 | if test -n "$GDC"; then | |
5721 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5722 | else | |
5723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5724 | for as_dir in $PATH | |
5725 | do | |
5726 | IFS=$as_save_IFS | |
5727 | test -z "$as_dir" && as_dir=. | |
5728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5730 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5732 | break 2 | |
5733 | fi | |
5734 | done | |
5735 | done | |
5736 | IFS=$as_save_IFS | |
5737 | ||
5738 | fi | |
5739 | fi | |
5740 | GDC=$ac_cv_prog_GDC | |
5741 | if test -n "$GDC"; then | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5743 | $as_echo "$GDC" >&6; } | |
5744 | else | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5746 | $as_echo "no" >&6; } | |
5747 | fi | |
5748 | ||
5749 | ||
5750 | fi | |
5751 | if test -z "$ac_cv_prog_GDC"; then | |
5752 | ac_ct_GDC=$GDC | |
5753 | # Extract the first word of "gdc", so it can be a program name with args. | |
5754 | set dummy gdc; ac_word=$2 | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5756 | $as_echo_n "checking for $ac_word... " >&6; } | |
5757 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5758 | $as_echo_n "(cached) " >&6 | |
5759 | else | |
5760 | if test -n "$ac_ct_GDC"; then | |
5761 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5762 | else | |
5763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5764 | for as_dir in $PATH | |
5765 | do | |
5766 | IFS=$as_save_IFS | |
5767 | test -z "$as_dir" && as_dir=. | |
5768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5770 | ac_cv_prog_ac_ct_GDC="gdc" | |
5771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5772 | break 2 | |
5773 | fi | |
5774 | done | |
5775 | done | |
5776 | IFS=$as_save_IFS | |
5777 | ||
5778 | fi | |
5779 | fi | |
5780 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5781 | if test -n "$ac_ct_GDC"; then | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5783 | $as_echo "$ac_ct_GDC" >&6; } | |
5784 | else | |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5786 | $as_echo "no" >&6; } | |
5787 | fi | |
5788 | ||
5789 | if test "x$ac_ct_GDC" = x; then | |
5790 | GDC="no" | |
5791 | else | |
5792 | case $cross_compiling:$ac_tool_warned in | |
5793 | yes:) | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5796 | ac_tool_warned=yes ;; | |
5797 | esac | |
5798 | GDC=$ac_ct_GDC | |
5799 | fi | |
5800 | else | |
5801 | GDC="$ac_cv_prog_GDC" | |
5802 | fi | |
5803 | ||
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 | |
5805 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5806 | if ${acx_cv_d_compiler_works+:} false; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | cat >conftest.d <<EOF | |
5810 | module conftest; int main() { return 0; } | |
5811 | EOF | |
5812 | acx_cv_d_compiler_works=no | |
5813 | if test "x$GDC" != xno; then | |
5814 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` | |
5815 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5816 | acx_cv_d_compiler_works=yes | |
5817 | fi | |
5818 | rm -f conftest.* | |
5819 | fi | |
5820 | fi | |
5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5822 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5823 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5824 | have_gdc=yes | |
5825 | else | |
5826 | have_gdc=no | |
5827 | fi | |
5828 | ||
81ecdfbb RW |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5830 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5831 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5832 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5833 | else |
5834 | echo abfoo >t1 | |
5835 | echo cdfoo >t2 | |
da17fe9d | 5836 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5837 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5838 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5839 | : | |
5840 | else | |
5841 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5842 | fi | |
5843 | fi | |
b8908782 DD |
5844 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5845 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5846 | : |
b8908782 DD |
5847 | else |
5848 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5849 | fi | |
5850 | fi | |
5851 | rm t1 t2 | |
5852 | ||
5853 | fi | |
81ecdfbb RW |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5855 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5856 | do_compare="$gcc_cv_prog_cmp_skip" |
5857 | ||
5858 | ||
9e07f89d | 5859 | |
ffdd6afc ILT |
5860 | # Check whether --enable-bootstrap was given. |
5861 | if test "${enable_bootstrap+set}" = set; then : | |
5862 | enableval=$enable_bootstrap; | |
5863 | else | |
5864 | enable_bootstrap=default | |
5865 | fi | |
5866 | ||
5867 | ||
5868 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5869 | if test -r $srcdir/gcc/configure; then | |
5870 | have_compiler=yes | |
5871 | else | |
5872 | have_compiler=no | |
5873 | fi | |
5874 | ||
5875 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5876 | *:*:*:no) ;; | |
5877 | ||
5878 | # Default behavior. Enable bootstrap if we have a compiler | |
5879 | # and we are in a native configuration. | |
5880 | yes:$build:$build:default) | |
5881 | enable_bootstrap=yes ;; | |
5882 | ||
5883 | *:*:*:default) | |
5884 | enable_bootstrap=no ;; | |
5885 | ||
5886 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5887 | yes:$build:$build:yes) | |
5888 | ;; | |
5889 | ||
5890 | # Other configurations, but we have a compiler. Assume the user knows | |
5891 | # what he's doing. | |
5892 | yes:*:*:yes) | |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5894 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5895 | ;; | |
5896 | ||
5897 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5898 | no:*:*:yes) | |
d0ac1c44 | 5899 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5900 | |
5901 | # Fail if wrong command line | |
5902 | *) | |
d0ac1c44 | 5903 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5904 | ;; |
5905 | esac | |
5906 | ||
228cf97d AM |
5907 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
5908 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, | |
5909 | # require C++11 (or higher). | |
ce6c656d | 5910 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
228cf97d AM |
5911 | CXX="$CXX -std=c++11" |
5912 | elif test "$have_compiler" = yes; then | |
5913 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5914 | ac_ext=cpp | |
5915 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5916 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5917 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5918 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5919 | ac_success=no | |
ce6c656d | 5920 | |
228cf97d AM |
5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
5922 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5923 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5924 | $as_echo_n "(cached) " >&6 | |
af019bfd | 5925 | else |
228cf97d AM |
5926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5927 | /* end confdefs.h. */ | |
af019bfd L |
5928 | |
5929 | ||
228cf97d AM |
5930 | // If the compiler admits that it is not ready for C++11, why torture it? |
5931 | // Hopefully, this will speed up the test. | |
af019bfd | 5932 | |
228cf97d | 5933 | #ifndef __cplusplus |
af019bfd | 5934 | |
228cf97d | 5935 | #error "This is not a C++ compiler" |
af019bfd | 5936 | |
228cf97d | 5937 | #elif __cplusplus < 201103L |
af019bfd | 5938 | |
228cf97d | 5939 | #error "This is not a C++11 compiler" |
af019bfd | 5940 | |
228cf97d | 5941 | #else |
af019bfd | 5942 | |
228cf97d AM |
5943 | namespace cxx11 |
5944 | { | |
af019bfd | 5945 | |
228cf97d AM |
5946 | namespace test_static_assert |
5947 | { | |
af019bfd | 5948 | |
228cf97d AM |
5949 | template <typename T> |
5950 | struct check | |
5951 | { | |
5952 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5953 | }; | |
af019bfd | 5954 | |
228cf97d | 5955 | } |
af019bfd | 5956 | |
228cf97d AM |
5957 | namespace test_final_override |
5958 | { | |
af019bfd | 5959 | |
228cf97d AM |
5960 | struct Base |
5961 | { | |
5962 | virtual ~Base() {} | |
5963 | virtual void f() {} | |
5964 | }; | |
af019bfd | 5965 | |
228cf97d AM |
5966 | struct Derived : public Base |
5967 | { | |
5968 | virtual ~Derived() override {} | |
5969 | virtual void f() override {} | |
5970 | }; | |
d5f2ee2e | 5971 | |
228cf97d | 5972 | } |
d5f2ee2e | 5973 | |
228cf97d AM |
5974 | namespace test_double_right_angle_brackets |
5975 | { | |
d5f2ee2e | 5976 | |
228cf97d AM |
5977 | template < typename T > |
5978 | struct check {}; | |
d5f2ee2e | 5979 | |
228cf97d AM |
5980 | typedef check<void> single_type; |
5981 | typedef check<check<void>> double_type; | |
5982 | typedef check<check<check<void>>> triple_type; | |
5983 | typedef check<check<check<check<void>>>> quadruple_type; | |
d5f2ee2e | 5984 | |
228cf97d | 5985 | } |
d5f2ee2e | 5986 | |
228cf97d AM |
5987 | namespace test_decltype |
5988 | { | |
d5f2ee2e | 5989 | |
228cf97d AM |
5990 | int |
5991 | f() | |
5992 | { | |
5993 | int a = 1; | |
5994 | decltype(a) b = 2; | |
5995 | return a + b; | |
5996 | } | |
d5f2ee2e | 5997 | |
228cf97d | 5998 | } |
e8a5fa9c | 5999 | |
228cf97d AM |
6000 | namespace test_type_deduction |
6001 | { | |
e8a5fa9c | 6002 | |
228cf97d AM |
6003 | template < typename T1, typename T2 > |
6004 | struct is_same | |
6005 | { | |
6006 | static const bool value = false; | |
6007 | }; | |
e8a5fa9c | 6008 | |
228cf97d AM |
6009 | template < typename T > |
6010 | struct is_same<T, T> | |
6011 | { | |
6012 | static const bool value = true; | |
6013 | }; | |
e8a5fa9c | 6014 | |
228cf97d AM |
6015 | template < typename T1, typename T2 > |
6016 | auto | |
6017 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6018 | { | |
6019 | return a1 + a2; | |
6020 | } | |
e8a5fa9c | 6021 | |
228cf97d AM |
6022 | int |
6023 | test(const int c, volatile int v) | |
6024 | { | |
6025 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6026 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6027 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6028 | auto ac = c; | |
6029 | auto av = v; | |
6030 | auto sumi = ac + av + 'x'; | |
6031 | auto sumf = ac + av + 1.0; | |
6032 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6033 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6034 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6035 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6036 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6037 | return (sumf > 0.0) ? sumi : add(c, v); | |
6038 | } | |
e8a5fa9c | 6039 | |
228cf97d | 6040 | } |
e8a5fa9c | 6041 | |
228cf97d AM |
6042 | namespace test_noexcept |
6043 | { | |
e8a5fa9c | 6044 | |
228cf97d AM |
6045 | int f() { return 0; } |
6046 | int g() noexcept { return 0; } | |
4b900473 | 6047 | |
228cf97d AM |
6048 | static_assert(noexcept(f()) == false, ""); |
6049 | static_assert(noexcept(g()) == true, ""); | |
c6b750e1 | 6050 | |
228cf97d | 6051 | } |
81ecdfbb | 6052 | |
228cf97d AM |
6053 | namespace test_constexpr |
6054 | { | |
11b04d1f | 6055 | |
228cf97d AM |
6056 | template < typename CharT > |
6057 | unsigned long constexpr | |
6058 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6059 | { | |
6060 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6061 | } | |
11b04d1f | 6062 | |
228cf97d AM |
6063 | template < typename CharT > |
6064 | unsigned long constexpr | |
6065 | strlen_c(const CharT *const s) noexcept | |
6066 | { | |
6067 | return strlen_c_r(s, 0UL); | |
6068 | } | |
6069 | ||
6070 | static_assert(strlen_c("") == 0UL, ""); | |
6071 | static_assert(strlen_c("1") == 1UL, ""); | |
6072 | static_assert(strlen_c("example") == 7UL, ""); | |
6073 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6074 | ||
6075 | } | |
6076 | ||
6077 | namespace test_rvalue_references | |
6078 | { | |
6079 | ||
6080 | template < int N > | |
6081 | struct answer | |
6082 | { | |
6083 | static constexpr int value = N; | |
6084 | }; | |
6085 | ||
6086 | answer<1> f(int&) { return answer<1>(); } | |
6087 | answer<2> f(const int&) { return answer<2>(); } | |
6088 | answer<3> f(int&&) { return answer<3>(); } | |
6089 | ||
6090 | void | |
6091 | test() | |
6092 | { | |
6093 | int i = 0; | |
6094 | const int c = 0; | |
6095 | static_assert(decltype(f(i))::value == 1, ""); | |
6096 | static_assert(decltype(f(c))::value == 2, ""); | |
6097 | static_assert(decltype(f(0))::value == 3, ""); | |
6098 | } | |
6099 | ||
6100 | } | |
6101 | ||
6102 | namespace test_uniform_initialization | |
6103 | { | |
6104 | ||
6105 | struct test | |
6106 | { | |
6107 | static const int zero {}; | |
6108 | static const int one {1}; | |
6109 | }; | |
6110 | ||
6111 | static_assert(test::zero == 0, ""); | |
6112 | static_assert(test::one == 1, ""); | |
6113 | ||
6114 | } | |
6115 | ||
6116 | namespace test_lambdas | |
6117 | { | |
6118 | ||
6119 | void | |
6120 | test1() | |
6121 | { | |
6122 | auto lambda1 = [](){}; | |
6123 | auto lambda2 = lambda1; | |
6124 | lambda1(); | |
6125 | lambda2(); | |
6126 | } | |
6127 | ||
6128 | int | |
6129 | test2() | |
6130 | { | |
6131 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6132 | auto b = []() -> int { return '0'; }(); | |
6133 | auto c = [=](){ return a + b; }(); | |
6134 | auto d = [&](){ return c; }(); | |
6135 | auto e = [a, &b](int x) mutable { | |
6136 | const auto identity = [](int y){ return y; }; | |
6137 | for (auto i = 0; i < a; ++i) | |
6138 | a += b--; | |
6139 | return x + identity(a + b); | |
6140 | }(0); | |
6141 | return a + b + c + d + e; | |
6142 | } | |
6143 | ||
6144 | int | |
6145 | test3() | |
6146 | { | |
6147 | const auto nullary = [](){ return 0; }; | |
6148 | const auto unary = [](int x){ return x; }; | |
6149 | using nullary_t = decltype(nullary); | |
6150 | using unary_t = decltype(unary); | |
6151 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6152 | const auto higher2nd = [unary](nullary_t f1){ | |
6153 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6154 | }; | |
6155 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6156 | } | |
6157 | ||
6158 | } | |
6159 | ||
6160 | namespace test_variadic_templates | |
6161 | { | |
6162 | ||
6163 | template <int...> | |
6164 | struct sum; | |
6165 | ||
6166 | template <int N0, int... N1toN> | |
6167 | struct sum<N0, N1toN...> | |
6168 | { | |
6169 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6170 | }; | |
6171 | ||
6172 | template <> | |
6173 | struct sum<> | |
6174 | { | |
6175 | static constexpr auto value = 0; | |
6176 | }; | |
6177 | ||
6178 | static_assert(sum<>::value == 0, ""); | |
6179 | static_assert(sum<1>::value == 1, ""); | |
6180 | static_assert(sum<23>::value == 23, ""); | |
6181 | static_assert(sum<1, 2>::value == 3, ""); | |
6182 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6183 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6184 | ||
6185 | } | |
6186 | ||
6187 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6188 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6189 | // because of this. | |
6190 | namespace test_template_alias_sfinae | |
6191 | { | |
6192 | ||
6193 | struct foo {}; | |
6194 | ||
6195 | template<typename T> | |
6196 | using member = typename T::member_type; | |
6197 | ||
6198 | template<typename T> | |
6199 | void func(...) {} | |
6200 | ||
6201 | template<typename T> | |
6202 | void func(member<T>*) {} | |
6203 | ||
6204 | void test(); | |
6205 | ||
6206 | void test() { func<foo>(0); } | |
6207 | ||
6208 | } | |
6209 | ||
6210 | } // namespace cxx11 | |
6211 | ||
6212 | #endif // __cplusplus >= 201103L | |
6213 | ||
6214 | ||
6215 | ||
6216 | _ACEOF | |
6217 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6218 | ax_cv_cxx_compile_cxx11=yes | |
6219 | else | |
6220 | ax_cv_cxx_compile_cxx11=no | |
6221 | fi | |
6222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6223 | fi | |
6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6225 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6226 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6227 | ac_success=yes | |
6228 | fi | |
6229 | ||
6230 | if test x$ac_success = xno; then | |
6231 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6232 | switch="-std=gnu++${alternative}" | |
6233 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6235 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6236 | if eval \${$cachevar+:} false; then : | |
6237 | $as_echo_n "(cached) " >&6 | |
6238 | else | |
6239 | ac_save_CXX="$CXX" | |
6240 | CXX="$CXX $switch" | |
6241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6242 | /* end confdefs.h. */ | |
6243 | ||
6244 | ||
6245 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6246 | // Hopefully, this will speed up the test. | |
6247 | ||
6248 | #ifndef __cplusplus | |
6249 | ||
6250 | #error "This is not a C++ compiler" | |
6251 | ||
6252 | #elif __cplusplus < 201103L | |
6253 | ||
6254 | #error "This is not a C++11 compiler" | |
6255 | ||
6256 | #else | |
6257 | ||
6258 | namespace cxx11 | |
6259 | { | |
6260 | ||
6261 | namespace test_static_assert | |
6262 | { | |
6263 | ||
6264 | template <typename T> | |
6265 | struct check | |
6266 | { | |
6267 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6268 | }; | |
6269 | ||
6270 | } | |
6271 | ||
6272 | namespace test_final_override | |
6273 | { | |
6274 | ||
6275 | struct Base | |
6276 | { | |
6277 | virtual ~Base() {} | |
6278 | virtual void f() {} | |
6279 | }; | |
6280 | ||
6281 | struct Derived : public Base | |
6282 | { | |
6283 | virtual ~Derived() override {} | |
6284 | virtual void f() override {} | |
6285 | }; | |
6286 | ||
6287 | } | |
6288 | ||
6289 | namespace test_double_right_angle_brackets | |
6290 | { | |
6291 | ||
6292 | template < typename T > | |
6293 | struct check {}; | |
6294 | ||
6295 | typedef check<void> single_type; | |
6296 | typedef check<check<void>> double_type; | |
6297 | typedef check<check<check<void>>> triple_type; | |
6298 | typedef check<check<check<check<void>>>> quadruple_type; | |
6299 | ||
6300 | } | |
6301 | ||
6302 | namespace test_decltype | |
6303 | { | |
6304 | ||
6305 | int | |
6306 | f() | |
6307 | { | |
6308 | int a = 1; | |
6309 | decltype(a) b = 2; | |
6310 | return a + b; | |
6311 | } | |
6312 | ||
6313 | } | |
6314 | ||
6315 | namespace test_type_deduction | |
6316 | { | |
6317 | ||
6318 | template < typename T1, typename T2 > | |
6319 | struct is_same | |
6320 | { | |
6321 | static const bool value = false; | |
6322 | }; | |
6323 | ||
6324 | template < typename T > | |
6325 | struct is_same<T, T> | |
6326 | { | |
6327 | static const bool value = true; | |
6328 | }; | |
6329 | ||
6330 | template < typename T1, typename T2 > | |
6331 | auto | |
6332 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6333 | { | |
6334 | return a1 + a2; | |
6335 | } | |
6336 | ||
6337 | int | |
6338 | test(const int c, volatile int v) | |
6339 | { | |
6340 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6341 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6342 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6343 | auto ac = c; | |
6344 | auto av = v; | |
6345 | auto sumi = ac + av + 'x'; | |
6346 | auto sumf = ac + av + 1.0; | |
6347 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6348 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6349 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6350 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6351 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6352 | return (sumf > 0.0) ? sumi : add(c, v); | |
6353 | } | |
6354 | ||
6355 | } | |
6356 | ||
6357 | namespace test_noexcept | |
6358 | { | |
6359 | ||
6360 | int f() { return 0; } | |
6361 | int g() noexcept { return 0; } | |
6362 | ||
6363 | static_assert(noexcept(f()) == false, ""); | |
6364 | static_assert(noexcept(g()) == true, ""); | |
6365 | ||
6366 | } | |
6367 | ||
6368 | namespace test_constexpr | |
6369 | { | |
6370 | ||
6371 | template < typename CharT > | |
6372 | unsigned long constexpr | |
6373 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6374 | { | |
6375 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6376 | } | |
6377 | ||
6378 | template < typename CharT > | |
6379 | unsigned long constexpr | |
6380 | strlen_c(const CharT *const s) noexcept | |
6381 | { | |
6382 | return strlen_c_r(s, 0UL); | |
6383 | } | |
6384 | ||
6385 | static_assert(strlen_c("") == 0UL, ""); | |
6386 | static_assert(strlen_c("1") == 1UL, ""); | |
6387 | static_assert(strlen_c("example") == 7UL, ""); | |
6388 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6389 | ||
6390 | } | |
6391 | ||
6392 | namespace test_rvalue_references | |
6393 | { | |
6394 | ||
6395 | template < int N > | |
6396 | struct answer | |
6397 | { | |
6398 | static constexpr int value = N; | |
6399 | }; | |
6400 | ||
6401 | answer<1> f(int&) { return answer<1>(); } | |
6402 | answer<2> f(const int&) { return answer<2>(); } | |
6403 | answer<3> f(int&&) { return answer<3>(); } | |
6404 | ||
6405 | void | |
6406 | test() | |
6407 | { | |
6408 | int i = 0; | |
6409 | const int c = 0; | |
6410 | static_assert(decltype(f(i))::value == 1, ""); | |
6411 | static_assert(decltype(f(c))::value == 2, ""); | |
6412 | static_assert(decltype(f(0))::value == 3, ""); | |
6413 | } | |
6414 | ||
6415 | } | |
6416 | ||
6417 | namespace test_uniform_initialization | |
6418 | { | |
6419 | ||
6420 | struct test | |
6421 | { | |
6422 | static const int zero {}; | |
6423 | static const int one {1}; | |
6424 | }; | |
6425 | ||
6426 | static_assert(test::zero == 0, ""); | |
6427 | static_assert(test::one == 1, ""); | |
6428 | ||
6429 | } | |
6430 | ||
6431 | namespace test_lambdas | |
6432 | { | |
6433 | ||
6434 | void | |
6435 | test1() | |
6436 | { | |
6437 | auto lambda1 = [](){}; | |
6438 | auto lambda2 = lambda1; | |
6439 | lambda1(); | |
6440 | lambda2(); | |
6441 | } | |
6442 | ||
6443 | int | |
6444 | test2() | |
6445 | { | |
6446 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6447 | auto b = []() -> int { return '0'; }(); | |
6448 | auto c = [=](){ return a + b; }(); | |
6449 | auto d = [&](){ return c; }(); | |
6450 | auto e = [a, &b](int x) mutable { | |
6451 | const auto identity = [](int y){ return y; }; | |
6452 | for (auto i = 0; i < a; ++i) | |
6453 | a += b--; | |
6454 | return x + identity(a + b); | |
6455 | }(0); | |
6456 | return a + b + c + d + e; | |
6457 | } | |
6458 | ||
6459 | int | |
6460 | test3() | |
6461 | { | |
6462 | const auto nullary = [](){ return 0; }; | |
6463 | const auto unary = [](int x){ return x; }; | |
6464 | using nullary_t = decltype(nullary); | |
6465 | using unary_t = decltype(unary); | |
6466 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6467 | const auto higher2nd = [unary](nullary_t f1){ | |
6468 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6469 | }; | |
6470 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6471 | } | |
6472 | ||
6473 | } | |
6474 | ||
6475 | namespace test_variadic_templates | |
6476 | { | |
6477 | ||
6478 | template <int...> | |
6479 | struct sum; | |
6480 | ||
6481 | template <int N0, int... N1toN> | |
6482 | struct sum<N0, N1toN...> | |
6483 | { | |
6484 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6485 | }; | |
6486 | ||
6487 | template <> | |
6488 | struct sum<> | |
6489 | { | |
6490 | static constexpr auto value = 0; | |
6491 | }; | |
6492 | ||
6493 | static_assert(sum<>::value == 0, ""); | |
6494 | static_assert(sum<1>::value == 1, ""); | |
6495 | static_assert(sum<23>::value == 23, ""); | |
6496 | static_assert(sum<1, 2>::value == 3, ""); | |
6497 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6498 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6499 | ||
6500 | } | |
6501 | ||
6502 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6503 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6504 | // because of this. | |
6505 | namespace test_template_alias_sfinae | |
6506 | { | |
6507 | ||
6508 | struct foo {}; | |
6509 | ||
6510 | template<typename T> | |
6511 | using member = typename T::member_type; | |
6512 | ||
6513 | template<typename T> | |
6514 | void func(...) {} | |
6515 | ||
6516 | template<typename T> | |
6517 | void func(member<T>*) {} | |
6518 | ||
6519 | void test(); | |
6520 | ||
6521 | void test() { func<foo>(0); } | |
6522 | ||
6523 | } | |
6524 | ||
6525 | } // namespace cxx11 | |
6526 | ||
6527 | #endif // __cplusplus >= 201103L | |
6528 | ||
6529 | ||
6530 | ||
6531 | _ACEOF | |
6532 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6533 | eval $cachevar=yes | |
6534 | else | |
6535 | eval $cachevar=no | |
6536 | fi | |
6537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6538 | CXX="$ac_save_CXX" | |
6539 | fi | |
6540 | eval ac_res=\$$cachevar | |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6542 | $as_echo "$ac_res" >&6; } | |
6543 | if eval test x\$$cachevar = xyes; then | |
6544 | CXX="$CXX $switch" | |
6545 | if test -n "$CXXCPP" ; then | |
6546 | CXXCPP="$CXXCPP $switch" | |
6547 | fi | |
6548 | ac_success=yes | |
6549 | break | |
6550 | fi | |
6551 | done | |
6552 | fi | |
6553 | ||
6554 | if test x$ac_success = xno; then | |
6555 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6556 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6557 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6559 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6560 | if eval \${$cachevar+:} false; then : | |
6561 | $as_echo_n "(cached) " >&6 | |
6562 | else | |
6563 | ac_save_CXX="$CXX" | |
6564 | CXX="$CXX $switch" | |
6565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6566 | /* end confdefs.h. */ | |
6567 | ||
6568 | ||
6569 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6570 | // Hopefully, this will speed up the test. | |
6571 | ||
6572 | #ifndef __cplusplus | |
6573 | ||
6574 | #error "This is not a C++ compiler" | |
6575 | ||
6576 | #elif __cplusplus < 201103L | |
6577 | ||
6578 | #error "This is not a C++11 compiler" | |
6579 | ||
6580 | #else | |
6581 | ||
6582 | namespace cxx11 | |
6583 | { | |
6584 | ||
6585 | namespace test_static_assert | |
6586 | { | |
6587 | ||
6588 | template <typename T> | |
6589 | struct check | |
6590 | { | |
6591 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6592 | }; | |
6593 | ||
6594 | } | |
6595 | ||
6596 | namespace test_final_override | |
6597 | { | |
6598 | ||
6599 | struct Base | |
6600 | { | |
6601 | virtual ~Base() {} | |
6602 | virtual void f() {} | |
6603 | }; | |
6604 | ||
6605 | struct Derived : public Base | |
6606 | { | |
6607 | virtual ~Derived() override {} | |
6608 | virtual void f() override {} | |
6609 | }; | |
6610 | ||
6611 | } | |
6612 | ||
6613 | namespace test_double_right_angle_brackets | |
6614 | { | |
6615 | ||
6616 | template < typename T > | |
6617 | struct check {}; | |
6618 | ||
6619 | typedef check<void> single_type; | |
6620 | typedef check<check<void>> double_type; | |
6621 | typedef check<check<check<void>>> triple_type; | |
6622 | typedef check<check<check<check<void>>>> quadruple_type; | |
6623 | ||
6624 | } | |
6625 | ||
6626 | namespace test_decltype | |
6627 | { | |
6628 | ||
6629 | int | |
6630 | f() | |
6631 | { | |
6632 | int a = 1; | |
6633 | decltype(a) b = 2; | |
6634 | return a + b; | |
6635 | } | |
6636 | ||
6637 | } | |
6638 | ||
6639 | namespace test_type_deduction | |
6640 | { | |
6641 | ||
6642 | template < typename T1, typename T2 > | |
6643 | struct is_same | |
6644 | { | |
6645 | static const bool value = false; | |
6646 | }; | |
6647 | ||
6648 | template < typename T > | |
6649 | struct is_same<T, T> | |
6650 | { | |
6651 | static const bool value = true; | |
6652 | }; | |
6653 | ||
6654 | template < typename T1, typename T2 > | |
6655 | auto | |
6656 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6657 | { | |
6658 | return a1 + a2; | |
6659 | } | |
6660 | ||
6661 | int | |
6662 | test(const int c, volatile int v) | |
6663 | { | |
6664 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6665 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6666 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6667 | auto ac = c; | |
6668 | auto av = v; | |
6669 | auto sumi = ac + av + 'x'; | |
6670 | auto sumf = ac + av + 1.0; | |
6671 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6672 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6673 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6674 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6675 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6676 | return (sumf > 0.0) ? sumi : add(c, v); | |
6677 | } | |
6678 | ||
6679 | } | |
6680 | ||
6681 | namespace test_noexcept | |
6682 | { | |
6683 | ||
6684 | int f() { return 0; } | |
6685 | int g() noexcept { return 0; } | |
6686 | ||
6687 | static_assert(noexcept(f()) == false, ""); | |
6688 | static_assert(noexcept(g()) == true, ""); | |
6689 | ||
6690 | } | |
6691 | ||
6692 | namespace test_constexpr | |
6693 | { | |
6694 | ||
6695 | template < typename CharT > | |
6696 | unsigned long constexpr | |
6697 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6698 | { | |
6699 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6700 | } | |
6701 | ||
6702 | template < typename CharT > | |
6703 | unsigned long constexpr | |
6704 | strlen_c(const CharT *const s) noexcept | |
6705 | { | |
6706 | return strlen_c_r(s, 0UL); | |
6707 | } | |
6708 | ||
6709 | static_assert(strlen_c("") == 0UL, ""); | |
6710 | static_assert(strlen_c("1") == 1UL, ""); | |
6711 | static_assert(strlen_c("example") == 7UL, ""); | |
6712 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6713 | ||
6714 | } | |
6715 | ||
6716 | namespace test_rvalue_references | |
6717 | { | |
6718 | ||
6719 | template < int N > | |
6720 | struct answer | |
6721 | { | |
6722 | static constexpr int value = N; | |
6723 | }; | |
6724 | ||
6725 | answer<1> f(int&) { return answer<1>(); } | |
6726 | answer<2> f(const int&) { return answer<2>(); } | |
6727 | answer<3> f(int&&) { return answer<3>(); } | |
6728 | ||
6729 | void | |
6730 | test() | |
6731 | { | |
6732 | int i = 0; | |
6733 | const int c = 0; | |
6734 | static_assert(decltype(f(i))::value == 1, ""); | |
6735 | static_assert(decltype(f(c))::value == 2, ""); | |
6736 | static_assert(decltype(f(0))::value == 3, ""); | |
6737 | } | |
6738 | ||
6739 | } | |
6740 | ||
6741 | namespace test_uniform_initialization | |
6742 | { | |
6743 | ||
6744 | struct test | |
6745 | { | |
6746 | static const int zero {}; | |
6747 | static const int one {1}; | |
6748 | }; | |
6749 | ||
6750 | static_assert(test::zero == 0, ""); | |
6751 | static_assert(test::one == 1, ""); | |
6752 | ||
6753 | } | |
6754 | ||
6755 | namespace test_lambdas | |
6756 | { | |
6757 | ||
6758 | void | |
6759 | test1() | |
6760 | { | |
6761 | auto lambda1 = [](){}; | |
6762 | auto lambda2 = lambda1; | |
6763 | lambda1(); | |
6764 | lambda2(); | |
6765 | } | |
6766 | ||
6767 | int | |
6768 | test2() | |
6769 | { | |
6770 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6771 | auto b = []() -> int { return '0'; }(); | |
6772 | auto c = [=](){ return a + b; }(); | |
6773 | auto d = [&](){ return c; }(); | |
6774 | auto e = [a, &b](int x) mutable { | |
6775 | const auto identity = [](int y){ return y; }; | |
6776 | for (auto i = 0; i < a; ++i) | |
6777 | a += b--; | |
6778 | return x + identity(a + b); | |
6779 | }(0); | |
6780 | return a + b + c + d + e; | |
6781 | } | |
6782 | ||
6783 | int | |
6784 | test3() | |
6785 | { | |
6786 | const auto nullary = [](){ return 0; }; | |
6787 | const auto unary = [](int x){ return x; }; | |
6788 | using nullary_t = decltype(nullary); | |
6789 | using unary_t = decltype(unary); | |
6790 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6791 | const auto higher2nd = [unary](nullary_t f1){ | |
6792 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6793 | }; | |
6794 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6795 | } | |
6796 | ||
6797 | } | |
6798 | ||
6799 | namespace test_variadic_templates | |
6800 | { | |
6801 | ||
6802 | template <int...> | |
6803 | struct sum; | |
6804 | ||
6805 | template <int N0, int... N1toN> | |
6806 | struct sum<N0, N1toN...> | |
6807 | { | |
6808 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6809 | }; | |
6810 | ||
6811 | template <> | |
6812 | struct sum<> | |
6813 | { | |
6814 | static constexpr auto value = 0; | |
6815 | }; | |
6816 | ||
6817 | static_assert(sum<>::value == 0, ""); | |
6818 | static_assert(sum<1>::value == 1, ""); | |
6819 | static_assert(sum<23>::value == 23, ""); | |
6820 | static_assert(sum<1, 2>::value == 3, ""); | |
6821 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6822 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6823 | ||
6824 | } | |
6825 | ||
6826 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6827 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6828 | // because of this. | |
6829 | namespace test_template_alias_sfinae | |
6830 | { | |
6831 | ||
6832 | struct foo {}; | |
6833 | ||
6834 | template<typename T> | |
6835 | using member = typename T::member_type; | |
6836 | ||
6837 | template<typename T> | |
6838 | void func(...) {} | |
6839 | ||
6840 | template<typename T> | |
6841 | void func(member<T>*) {} | |
6842 | ||
6843 | void test(); | |
6844 | ||
6845 | void test() { func<foo>(0); } | |
6846 | ||
6847 | } | |
6848 | ||
6849 | } // namespace cxx11 | |
6850 | ||
6851 | #endif // __cplusplus >= 201103L | |
6852 | ||
6853 | ||
6854 | ||
6855 | _ACEOF | |
6856 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6857 | eval $cachevar=yes | |
6858 | else | |
6859 | eval $cachevar=no | |
6860 | fi | |
6861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6862 | CXX="$ac_save_CXX" | |
6863 | fi | |
6864 | eval ac_res=\$$cachevar | |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6866 | $as_echo "$ac_res" >&6; } | |
6867 | if eval test x\$$cachevar = xyes; then | |
6868 | CXX="$CXX $switch" | |
6869 | if test -n "$CXXCPP" ; then | |
6870 | CXXCPP="$CXXCPP $switch" | |
6871 | fi | |
6872 | ac_success=yes | |
6873 | break | |
6874 | fi | |
6875 | done | |
6876 | if test x$ac_success = xyes; then | |
6877 | break | |
6878 | fi | |
6879 | done | |
6880 | fi | |
6881 | ||
6882 | ac_ext=c | |
6883 | ac_cpp='$CPP $CPPFLAGS' | |
6884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6887 | ||
6888 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6889 | if test x$ac_success = xno; then | |
6890 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6891 | fi | |
6892 | fi | |
6893 | if test x$ac_success = xno; then | |
6894 | HAVE_CXX11=0 | |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6896 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6897 | else | |
6898 | HAVE_CXX11=1 | |
6899 | ||
6900 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6901 | ||
6902 | fi | |
6903 | ||
6904 | ||
6905 | ||
6906 | if test "${build}" != "${host}"; then | |
6907 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6908 | ac_ext=cpp | |
6909 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6913 | ac_success=no | |
6914 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6915 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6916 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6917 | CXX="$CXX_FOR_BUILD" | |
6918 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6919 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6921 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6922 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6923 | $as_echo_n "(cached) " >&6 | |
6924 | else | |
6925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6926 | /* end confdefs.h. */ | |
6927 | ||
6928 | ||
6929 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6930 | // Hopefully, this will speed up the test. | |
6931 | ||
6932 | #ifndef __cplusplus | |
6933 | ||
6934 | #error "This is not a C++ compiler" | |
6935 | ||
6936 | #elif __cplusplus < 201103L | |
6937 | ||
6938 | #error "This is not a C++11 compiler" | |
6939 | ||
6940 | #else | |
6941 | ||
6942 | namespace cxx11 | |
6943 | { | |
6944 | ||
6945 | namespace test_static_assert | |
6946 | { | |
6947 | ||
6948 | template <typename T> | |
6949 | struct check | |
6950 | { | |
6951 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6952 | }; | |
6953 | ||
6954 | } | |
6955 | ||
6956 | namespace test_final_override | |
6957 | { | |
6958 | ||
6959 | struct Base | |
6960 | { | |
6961 | virtual ~Base() {} | |
6962 | virtual void f() {} | |
6963 | }; | |
6964 | ||
6965 | struct Derived : public Base | |
6966 | { | |
6967 | virtual ~Derived() override {} | |
6968 | virtual void f() override {} | |
6969 | }; | |
6970 | ||
6971 | } | |
6972 | ||
6973 | namespace test_double_right_angle_brackets | |
6974 | { | |
6975 | ||
6976 | template < typename T > | |
6977 | struct check {}; | |
6978 | ||
6979 | typedef check<void> single_type; | |
6980 | typedef check<check<void>> double_type; | |
6981 | typedef check<check<check<void>>> triple_type; | |
6982 | typedef check<check<check<check<void>>>> quadruple_type; | |
6983 | ||
6984 | } | |
6985 | ||
6986 | namespace test_decltype | |
6987 | { | |
6988 | ||
6989 | int | |
6990 | f() | |
6991 | { | |
6992 | int a = 1; | |
6993 | decltype(a) b = 2; | |
6994 | return a + b; | |
6995 | } | |
6996 | ||
6997 | } | |
6998 | ||
6999 | namespace test_type_deduction | |
7000 | { | |
7001 | ||
7002 | template < typename T1, typename T2 > | |
7003 | struct is_same | |
7004 | { | |
7005 | static const bool value = false; | |
7006 | }; | |
7007 | ||
7008 | template < typename T > | |
7009 | struct is_same<T, T> | |
7010 | { | |
7011 | static const bool value = true; | |
7012 | }; | |
7013 | ||
7014 | template < typename T1, typename T2 > | |
7015 | auto | |
7016 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7017 | { | |
7018 | return a1 + a2; | |
7019 | } | |
7020 | ||
7021 | int | |
7022 | test(const int c, volatile int v) | |
7023 | { | |
7024 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7025 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7026 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7027 | auto ac = c; | |
7028 | auto av = v; | |
7029 | auto sumi = ac + av + 'x'; | |
7030 | auto sumf = ac + av + 1.0; | |
7031 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7032 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7033 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7034 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7035 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7036 | return (sumf > 0.0) ? sumi : add(c, v); | |
7037 | } | |
7038 | ||
7039 | } | |
7040 | ||
7041 | namespace test_noexcept | |
7042 | { | |
7043 | ||
7044 | int f() { return 0; } | |
7045 | int g() noexcept { return 0; } | |
7046 | ||
7047 | static_assert(noexcept(f()) == false, ""); | |
7048 | static_assert(noexcept(g()) == true, ""); | |
7049 | ||
7050 | } | |
7051 | ||
7052 | namespace test_constexpr | |
7053 | { | |
7054 | ||
7055 | template < typename CharT > | |
7056 | unsigned long constexpr | |
7057 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7058 | { | |
7059 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7060 | } | |
7061 | ||
7062 | template < typename CharT > | |
7063 | unsigned long constexpr | |
7064 | strlen_c(const CharT *const s) noexcept | |
7065 | { | |
7066 | return strlen_c_r(s, 0UL); | |
7067 | } | |
7068 | ||
7069 | static_assert(strlen_c("") == 0UL, ""); | |
7070 | static_assert(strlen_c("1") == 1UL, ""); | |
7071 | static_assert(strlen_c("example") == 7UL, ""); | |
7072 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7073 | ||
7074 | } | |
7075 | ||
7076 | namespace test_rvalue_references | |
7077 | { | |
7078 | ||
7079 | template < int N > | |
7080 | struct answer | |
7081 | { | |
7082 | static constexpr int value = N; | |
7083 | }; | |
7084 | ||
7085 | answer<1> f(int&) { return answer<1>(); } | |
7086 | answer<2> f(const int&) { return answer<2>(); } | |
7087 | answer<3> f(int&&) { return answer<3>(); } | |
7088 | ||
7089 | void | |
7090 | test() | |
7091 | { | |
7092 | int i = 0; | |
7093 | const int c = 0; | |
7094 | static_assert(decltype(f(i))::value == 1, ""); | |
7095 | static_assert(decltype(f(c))::value == 2, ""); | |
7096 | static_assert(decltype(f(0))::value == 3, ""); | |
7097 | } | |
7098 | ||
7099 | } | |
7100 | ||
7101 | namespace test_uniform_initialization | |
7102 | { | |
7103 | ||
7104 | struct test | |
7105 | { | |
7106 | static const int zero {}; | |
7107 | static const int one {1}; | |
7108 | }; | |
7109 | ||
7110 | static_assert(test::zero == 0, ""); | |
7111 | static_assert(test::one == 1, ""); | |
7112 | ||
7113 | } | |
7114 | ||
7115 | namespace test_lambdas | |
7116 | { | |
7117 | ||
7118 | void | |
7119 | test1() | |
7120 | { | |
7121 | auto lambda1 = [](){}; | |
7122 | auto lambda2 = lambda1; | |
7123 | lambda1(); | |
7124 | lambda2(); | |
7125 | } | |
7126 | ||
7127 | int | |
7128 | test2() | |
7129 | { | |
7130 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7131 | auto b = []() -> int { return '0'; }(); | |
7132 | auto c = [=](){ return a + b; }(); | |
7133 | auto d = [&](){ return c; }(); | |
7134 | auto e = [a, &b](int x) mutable { | |
7135 | const auto identity = [](int y){ return y; }; | |
7136 | for (auto i = 0; i < a; ++i) | |
7137 | a += b--; | |
7138 | return x + identity(a + b); | |
7139 | }(0); | |
7140 | return a + b + c + d + e; | |
7141 | } | |
7142 | ||
7143 | int | |
7144 | test3() | |
7145 | { | |
7146 | const auto nullary = [](){ return 0; }; | |
7147 | const auto unary = [](int x){ return x; }; | |
7148 | using nullary_t = decltype(nullary); | |
7149 | using unary_t = decltype(unary); | |
7150 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7151 | const auto higher2nd = [unary](nullary_t f1){ | |
7152 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7153 | }; | |
7154 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7155 | } | |
7156 | ||
7157 | } | |
7158 | ||
7159 | namespace test_variadic_templates | |
7160 | { | |
7161 | ||
7162 | template <int...> | |
7163 | struct sum; | |
7164 | ||
7165 | template <int N0, int... N1toN> | |
7166 | struct sum<N0, N1toN...> | |
7167 | { | |
7168 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7169 | }; | |
7170 | ||
7171 | template <> | |
7172 | struct sum<> | |
7173 | { | |
7174 | static constexpr auto value = 0; | |
7175 | }; | |
7176 | ||
7177 | static_assert(sum<>::value == 0, ""); | |
7178 | static_assert(sum<1>::value == 1, ""); | |
7179 | static_assert(sum<23>::value == 23, ""); | |
7180 | static_assert(sum<1, 2>::value == 3, ""); | |
7181 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7182 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7183 | ||
7184 | } | |
7185 | ||
7186 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7187 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7188 | // because of this. | |
7189 | namespace test_template_alias_sfinae | |
7190 | { | |
7191 | ||
7192 | struct foo {}; | |
7193 | ||
7194 | template<typename T> | |
7195 | using member = typename T::member_type; | |
7196 | ||
7197 | template<typename T> | |
7198 | void func(...) {} | |
7199 | ||
7200 | template<typename T> | |
7201 | void func(member<T>*) {} | |
7202 | ||
7203 | void test(); | |
7204 | ||
7205 | void test() { func<foo>(0); } | |
7206 | ||
7207 | } | |
7208 | ||
7209 | } // namespace cxx11 | |
7210 | ||
7211 | #endif // __cplusplus >= 201103L | |
7212 | ||
7213 | ||
7214 | ||
7215 | _ACEOF | |
7216 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7217 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7218 | else | |
7219 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7220 | fi | |
7221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7222 | fi | |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7224 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7225 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7226 | ac_success=yes | |
7227 | fi | |
7228 | ||
7229 | if test x$ac_success = xno; then | |
7230 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7231 | switch="-std=gnu++${alternative}" | |
7232 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7234 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7235 | if eval \${$cachevar+:} false; then : | |
7236 | $as_echo_n "(cached) " >&6 | |
7237 | else | |
7238 | ac_save_CXX="$CXX" | |
7239 | CXX="$CXX $switch" | |
7240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7241 | /* end confdefs.h. */ | |
7242 | ||
7243 | ||
7244 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7245 | // Hopefully, this will speed up the test. | |
7246 | ||
7247 | #ifndef __cplusplus | |
7248 | ||
7249 | #error "This is not a C++ compiler" | |
7250 | ||
7251 | #elif __cplusplus < 201103L | |
7252 | ||
7253 | #error "This is not a C++11 compiler" | |
7254 | ||
7255 | #else | |
7256 | ||
7257 | namespace cxx11 | |
7258 | { | |
7259 | ||
7260 | namespace test_static_assert | |
7261 | { | |
7262 | ||
7263 | template <typename T> | |
7264 | struct check | |
7265 | { | |
7266 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7267 | }; | |
7268 | ||
7269 | } | |
7270 | ||
7271 | namespace test_final_override | |
7272 | { | |
7273 | ||
7274 | struct Base | |
7275 | { | |
7276 | virtual ~Base() {} | |
7277 | virtual void f() {} | |
7278 | }; | |
7279 | ||
7280 | struct Derived : public Base | |
7281 | { | |
7282 | virtual ~Derived() override {} | |
7283 | virtual void f() override {} | |
7284 | }; | |
7285 | ||
7286 | } | |
7287 | ||
7288 | namespace test_double_right_angle_brackets | |
7289 | { | |
7290 | ||
7291 | template < typename T > | |
7292 | struct check {}; | |
7293 | ||
7294 | typedef check<void> single_type; | |
7295 | typedef check<check<void>> double_type; | |
7296 | typedef check<check<check<void>>> triple_type; | |
7297 | typedef check<check<check<check<void>>>> quadruple_type; | |
7298 | ||
7299 | } | |
7300 | ||
7301 | namespace test_decltype | |
7302 | { | |
7303 | ||
7304 | int | |
7305 | f() | |
7306 | { | |
7307 | int a = 1; | |
7308 | decltype(a) b = 2; | |
7309 | return a + b; | |
7310 | } | |
7311 | ||
7312 | } | |
7313 | ||
7314 | namespace test_type_deduction | |
7315 | { | |
7316 | ||
7317 | template < typename T1, typename T2 > | |
7318 | struct is_same | |
7319 | { | |
7320 | static const bool value = false; | |
7321 | }; | |
7322 | ||
7323 | template < typename T > | |
7324 | struct is_same<T, T> | |
7325 | { | |
7326 | static const bool value = true; | |
7327 | }; | |
7328 | ||
7329 | template < typename T1, typename T2 > | |
7330 | auto | |
7331 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7332 | { | |
7333 | return a1 + a2; | |
7334 | } | |
7335 | ||
7336 | int | |
7337 | test(const int c, volatile int v) | |
7338 | { | |
7339 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7340 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7341 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7342 | auto ac = c; | |
7343 | auto av = v; | |
7344 | auto sumi = ac + av + 'x'; | |
7345 | auto sumf = ac + av + 1.0; | |
7346 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7347 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7348 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7349 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7350 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7351 | return (sumf > 0.0) ? sumi : add(c, v); | |
7352 | } | |
7353 | ||
7354 | } | |
7355 | ||
7356 | namespace test_noexcept | |
7357 | { | |
7358 | ||
7359 | int f() { return 0; } | |
7360 | int g() noexcept { return 0; } | |
7361 | ||
7362 | static_assert(noexcept(f()) == false, ""); | |
7363 | static_assert(noexcept(g()) == true, ""); | |
7364 | ||
7365 | } | |
7366 | ||
7367 | namespace test_constexpr | |
7368 | { | |
7369 | ||
7370 | template < typename CharT > | |
7371 | unsigned long constexpr | |
7372 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7373 | { | |
7374 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7375 | } | |
7376 | ||
7377 | template < typename CharT > | |
7378 | unsigned long constexpr | |
7379 | strlen_c(const CharT *const s) noexcept | |
7380 | { | |
7381 | return strlen_c_r(s, 0UL); | |
7382 | } | |
7383 | ||
7384 | static_assert(strlen_c("") == 0UL, ""); | |
7385 | static_assert(strlen_c("1") == 1UL, ""); | |
7386 | static_assert(strlen_c("example") == 7UL, ""); | |
7387 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7388 | ||
7389 | } | |
7390 | ||
7391 | namespace test_rvalue_references | |
7392 | { | |
7393 | ||
7394 | template < int N > | |
7395 | struct answer | |
7396 | { | |
7397 | static constexpr int value = N; | |
7398 | }; | |
7399 | ||
7400 | answer<1> f(int&) { return answer<1>(); } | |
7401 | answer<2> f(const int&) { return answer<2>(); } | |
7402 | answer<3> f(int&&) { return answer<3>(); } | |
7403 | ||
7404 | void | |
7405 | test() | |
7406 | { | |
7407 | int i = 0; | |
7408 | const int c = 0; | |
7409 | static_assert(decltype(f(i))::value == 1, ""); | |
7410 | static_assert(decltype(f(c))::value == 2, ""); | |
7411 | static_assert(decltype(f(0))::value == 3, ""); | |
7412 | } | |
7413 | ||
7414 | } | |
7415 | ||
7416 | namespace test_uniform_initialization | |
7417 | { | |
7418 | ||
7419 | struct test | |
7420 | { | |
7421 | static const int zero {}; | |
7422 | static const int one {1}; | |
7423 | }; | |
7424 | ||
7425 | static_assert(test::zero == 0, ""); | |
7426 | static_assert(test::one == 1, ""); | |
7427 | ||
7428 | } | |
7429 | ||
7430 | namespace test_lambdas | |
7431 | { | |
7432 | ||
7433 | void | |
7434 | test1() | |
7435 | { | |
7436 | auto lambda1 = [](){}; | |
7437 | auto lambda2 = lambda1; | |
7438 | lambda1(); | |
7439 | lambda2(); | |
7440 | } | |
7441 | ||
7442 | int | |
7443 | test2() | |
7444 | { | |
7445 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7446 | auto b = []() -> int { return '0'; }(); | |
7447 | auto c = [=](){ return a + b; }(); | |
7448 | auto d = [&](){ return c; }(); | |
7449 | auto e = [a, &b](int x) mutable { | |
7450 | const auto identity = [](int y){ return y; }; | |
7451 | for (auto i = 0; i < a; ++i) | |
7452 | a += b--; | |
7453 | return x + identity(a + b); | |
7454 | }(0); | |
7455 | return a + b + c + d + e; | |
7456 | } | |
7457 | ||
7458 | int | |
7459 | test3() | |
7460 | { | |
7461 | const auto nullary = [](){ return 0; }; | |
7462 | const auto unary = [](int x){ return x; }; | |
7463 | using nullary_t = decltype(nullary); | |
7464 | using unary_t = decltype(unary); | |
7465 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7466 | const auto higher2nd = [unary](nullary_t f1){ | |
7467 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7468 | }; | |
7469 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7470 | } | |
7471 | ||
7472 | } | |
7473 | ||
7474 | namespace test_variadic_templates | |
7475 | { | |
7476 | ||
7477 | template <int...> | |
7478 | struct sum; | |
7479 | ||
7480 | template <int N0, int... N1toN> | |
7481 | struct sum<N0, N1toN...> | |
7482 | { | |
7483 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7484 | }; | |
7485 | ||
7486 | template <> | |
7487 | struct sum<> | |
7488 | { | |
7489 | static constexpr auto value = 0; | |
7490 | }; | |
7491 | ||
7492 | static_assert(sum<>::value == 0, ""); | |
7493 | static_assert(sum<1>::value == 1, ""); | |
7494 | static_assert(sum<23>::value == 23, ""); | |
7495 | static_assert(sum<1, 2>::value == 3, ""); | |
7496 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7497 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7498 | ||
7499 | } | |
7500 | ||
7501 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7502 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7503 | // because of this. | |
7504 | namespace test_template_alias_sfinae | |
7505 | { | |
7506 | ||
7507 | struct foo {}; | |
7508 | ||
7509 | template<typename T> | |
7510 | using member = typename T::member_type; | |
7511 | ||
7512 | template<typename T> | |
7513 | void func(...) {} | |
7514 | ||
7515 | template<typename T> | |
7516 | void func(member<T>*) {} | |
7517 | ||
7518 | void test(); | |
7519 | ||
7520 | void test() { func<foo>(0); } | |
7521 | ||
7522 | } | |
7523 | ||
7524 | } // namespace cxx11 | |
7525 | ||
7526 | #endif // __cplusplus >= 201103L | |
7527 | ||
7528 | ||
7529 | ||
7530 | _ACEOF | |
7531 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7532 | eval $cachevar=yes | |
7533 | else | |
7534 | eval $cachevar=no | |
7535 | fi | |
7536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7537 | CXX="$ac_save_CXX" | |
7538 | fi | |
7539 | eval ac_res=\$$cachevar | |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7541 | $as_echo "$ac_res" >&6; } | |
7542 | if eval test x\$$cachevar = xyes; then | |
7543 | CXX="$CXX $switch" | |
7544 | if test -n "$CXXCPP" ; then | |
7545 | CXXCPP="$CXXCPP $switch" | |
7546 | fi | |
7547 | ac_success=yes | |
7548 | break | |
7549 | fi | |
7550 | done | |
7551 | fi | |
7552 | ||
7553 | if test x$ac_success = xno; then | |
7554 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7555 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7556 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7558 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7559 | if eval \${$cachevar+:} false; then : | |
7560 | $as_echo_n "(cached) " >&6 | |
7561 | else | |
7562 | ac_save_CXX="$CXX" | |
7563 | CXX="$CXX $switch" | |
7564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7565 | /* end confdefs.h. */ | |
7566 | ||
7567 | ||
7568 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7569 | // Hopefully, this will speed up the test. | |
7570 | ||
7571 | #ifndef __cplusplus | |
7572 | ||
7573 | #error "This is not a C++ compiler" | |
7574 | ||
7575 | #elif __cplusplus < 201103L | |
7576 | ||
7577 | #error "This is not a C++11 compiler" | |
7578 | ||
7579 | #else | |
7580 | ||
7581 | namespace cxx11 | |
7582 | { | |
7583 | ||
7584 | namespace test_static_assert | |
7585 | { | |
7586 | ||
7587 | template <typename T> | |
7588 | struct check | |
7589 | { | |
7590 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7591 | }; | |
7592 | ||
7593 | } | |
7594 | ||
7595 | namespace test_final_override | |
7596 | { | |
7597 | ||
7598 | struct Base | |
7599 | { | |
7600 | virtual ~Base() {} | |
7601 | virtual void f() {} | |
7602 | }; | |
7603 | ||
7604 | struct Derived : public Base | |
7605 | { | |
7606 | virtual ~Derived() override {} | |
7607 | virtual void f() override {} | |
7608 | }; | |
7609 | ||
7610 | } | |
7611 | ||
7612 | namespace test_double_right_angle_brackets | |
7613 | { | |
7614 | ||
7615 | template < typename T > | |
7616 | struct check {}; | |
7617 | ||
7618 | typedef check<void> single_type; | |
7619 | typedef check<check<void>> double_type; | |
7620 | typedef check<check<check<void>>> triple_type; | |
7621 | typedef check<check<check<check<void>>>> quadruple_type; | |
7622 | ||
7623 | } | |
7624 | ||
7625 | namespace test_decltype | |
7626 | { | |
7627 | ||
7628 | int | |
7629 | f() | |
7630 | { | |
7631 | int a = 1; | |
7632 | decltype(a) b = 2; | |
7633 | return a + b; | |
7634 | } | |
7635 | ||
7636 | } | |
7637 | ||
7638 | namespace test_type_deduction | |
7639 | { | |
7640 | ||
7641 | template < typename T1, typename T2 > | |
7642 | struct is_same | |
7643 | { | |
7644 | static const bool value = false; | |
7645 | }; | |
7646 | ||
7647 | template < typename T > | |
7648 | struct is_same<T, T> | |
7649 | { | |
7650 | static const bool value = true; | |
7651 | }; | |
7652 | ||
7653 | template < typename T1, typename T2 > | |
7654 | auto | |
7655 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7656 | { | |
7657 | return a1 + a2; | |
7658 | } | |
7659 | ||
7660 | int | |
7661 | test(const int c, volatile int v) | |
7662 | { | |
7663 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7664 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7665 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7666 | auto ac = c; | |
7667 | auto av = v; | |
7668 | auto sumi = ac + av + 'x'; | |
7669 | auto sumf = ac + av + 1.0; | |
7670 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7671 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7672 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7673 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7674 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7675 | return (sumf > 0.0) ? sumi : add(c, v); | |
7676 | } | |
7677 | ||
7678 | } | |
7679 | ||
7680 | namespace test_noexcept | |
7681 | { | |
7682 | ||
7683 | int f() { return 0; } | |
7684 | int g() noexcept { return 0; } | |
7685 | ||
7686 | static_assert(noexcept(f()) == false, ""); | |
7687 | static_assert(noexcept(g()) == true, ""); | |
7688 | ||
7689 | } | |
7690 | ||
7691 | namespace test_constexpr | |
7692 | { | |
7693 | ||
7694 | template < typename CharT > | |
7695 | unsigned long constexpr | |
7696 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7697 | { | |
7698 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7699 | } | |
7700 | ||
7701 | template < typename CharT > | |
7702 | unsigned long constexpr | |
7703 | strlen_c(const CharT *const s) noexcept | |
7704 | { | |
7705 | return strlen_c_r(s, 0UL); | |
7706 | } | |
7707 | ||
7708 | static_assert(strlen_c("") == 0UL, ""); | |
7709 | static_assert(strlen_c("1") == 1UL, ""); | |
7710 | static_assert(strlen_c("example") == 7UL, ""); | |
7711 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7712 | ||
7713 | } | |
7714 | ||
7715 | namespace test_rvalue_references | |
7716 | { | |
7717 | ||
7718 | template < int N > | |
7719 | struct answer | |
7720 | { | |
7721 | static constexpr int value = N; | |
7722 | }; | |
7723 | ||
7724 | answer<1> f(int&) { return answer<1>(); } | |
7725 | answer<2> f(const int&) { return answer<2>(); } | |
7726 | answer<3> f(int&&) { return answer<3>(); } | |
7727 | ||
7728 | void | |
7729 | test() | |
7730 | { | |
7731 | int i = 0; | |
7732 | const int c = 0; | |
7733 | static_assert(decltype(f(i))::value == 1, ""); | |
7734 | static_assert(decltype(f(c))::value == 2, ""); | |
7735 | static_assert(decltype(f(0))::value == 3, ""); | |
7736 | } | |
7737 | ||
7738 | } | |
7739 | ||
7740 | namespace test_uniform_initialization | |
7741 | { | |
7742 | ||
7743 | struct test | |
7744 | { | |
7745 | static const int zero {}; | |
7746 | static const int one {1}; | |
7747 | }; | |
7748 | ||
7749 | static_assert(test::zero == 0, ""); | |
7750 | static_assert(test::one == 1, ""); | |
7751 | ||
7752 | } | |
7753 | ||
7754 | namespace test_lambdas | |
7755 | { | |
7756 | ||
7757 | void | |
7758 | test1() | |
7759 | { | |
7760 | auto lambda1 = [](){}; | |
7761 | auto lambda2 = lambda1; | |
7762 | lambda1(); | |
7763 | lambda2(); | |
7764 | } | |
7765 | ||
7766 | int | |
7767 | test2() | |
7768 | { | |
7769 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7770 | auto b = []() -> int { return '0'; }(); | |
7771 | auto c = [=](){ return a + b; }(); | |
7772 | auto d = [&](){ return c; }(); | |
7773 | auto e = [a, &b](int x) mutable { | |
7774 | const auto identity = [](int y){ return y; }; | |
7775 | for (auto i = 0; i < a; ++i) | |
7776 | a += b--; | |
7777 | return x + identity(a + b); | |
7778 | }(0); | |
7779 | return a + b + c + d + e; | |
7780 | } | |
7781 | ||
7782 | int | |
7783 | test3() | |
7784 | { | |
7785 | const auto nullary = [](){ return 0; }; | |
7786 | const auto unary = [](int x){ return x; }; | |
7787 | using nullary_t = decltype(nullary); | |
7788 | using unary_t = decltype(unary); | |
7789 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7790 | const auto higher2nd = [unary](nullary_t f1){ | |
7791 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7792 | }; | |
7793 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7794 | } | |
7795 | ||
7796 | } | |
7797 | ||
7798 | namespace test_variadic_templates | |
7799 | { | |
7800 | ||
7801 | template <int...> | |
7802 | struct sum; | |
7803 | ||
7804 | template <int N0, int... N1toN> | |
7805 | struct sum<N0, N1toN...> | |
7806 | { | |
7807 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7808 | }; | |
7809 | ||
7810 | template <> | |
7811 | struct sum<> | |
7812 | { | |
7813 | static constexpr auto value = 0; | |
7814 | }; | |
7815 | ||
7816 | static_assert(sum<>::value == 0, ""); | |
7817 | static_assert(sum<1>::value == 1, ""); | |
7818 | static_assert(sum<23>::value == 23, ""); | |
7819 | static_assert(sum<1, 2>::value == 3, ""); | |
7820 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7821 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7822 | ||
7823 | } | |
7824 | ||
7825 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7826 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7827 | // because of this. | |
7828 | namespace test_template_alias_sfinae | |
7829 | { | |
7830 | ||
7831 | struct foo {}; | |
7832 | ||
7833 | template<typename T> | |
7834 | using member = typename T::member_type; | |
7835 | ||
7836 | template<typename T> | |
7837 | void func(...) {} | |
7838 | ||
7839 | template<typename T> | |
7840 | void func(member<T>*) {} | |
7841 | ||
7842 | void test(); | |
7843 | ||
7844 | void test() { func<foo>(0); } | |
7845 | ||
7846 | } | |
7847 | ||
7848 | } // namespace cxx11 | |
7849 | ||
7850 | #endif // __cplusplus >= 201103L | |
7851 | ||
7852 | ||
7853 | ||
7854 | _ACEOF | |
7855 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7856 | eval $cachevar=yes | |
7857 | else | |
7858 | eval $cachevar=no | |
7859 | fi | |
7860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7861 | CXX="$ac_save_CXX" | |
7862 | fi | |
7863 | eval ac_res=\$$cachevar | |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7865 | $as_echo "$ac_res" >&6; } | |
7866 | if eval test x\$$cachevar = xyes; then | |
7867 | CXX="$CXX $switch" | |
7868 | if test -n "$CXXCPP" ; then | |
7869 | CXXCPP="$CXXCPP $switch" | |
7870 | fi | |
7871 | ac_success=yes | |
7872 | break | |
7873 | fi | |
7874 | done | |
7875 | if test x$ac_success = xyes; then | |
7876 | break | |
7877 | fi | |
7878 | done | |
7879 | fi | |
7880 | CXX_FOR_BUILD="$CXX" | |
7881 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7882 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7883 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7884 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7885 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7886 | ac_ext=c | |
7887 | ac_cpp='$CPP $CPPFLAGS' | |
7888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7891 | ||
7892 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7893 | if test x$ac_success = xno; then | |
7894 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7895 | fi | |
7896 | fi | |
7897 | if test x$ac_success = xno; then | |
7898 | HAVE_CXX11_FOR_BUILD=0 | |
7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7900 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7901 | else | |
7902 | HAVE_CXX11_FOR_BUILD=1 | |
7903 | ||
7904 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7905 | ||
7906 | fi | |
7907 | ||
7908 | ||
7909 | fi | |
7910 | fi | |
7911 | ||
7912 | # Check whether --enable-pgo-build was given. | |
7913 | if test "${enable_pgo_build+set}" = set; then : | |
7914 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7915 | else | |
7916 | enable_pgo_build=no | |
7917 | fi | |
7918 | ||
7919 | ||
7920 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7921 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7922 | *:*:*:no) ;; | |
7923 | ||
7924 | # Allow the PGO build only if we aren't building a compiler and | |
7925 | # we are in a native configuration. | |
7926 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7927 | ||
7928 | # Disallow the PGO bootstrap if we are building a compiler. | |
7929 | yes:*:*:yes | yes:*:*:lto) | |
7930 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7931 | ||
7932 | *) | |
7933 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7934 | ;; | |
7935 | esac | |
7936 | ||
7937 | if test "$enable_pgo_build" != "no"; then | |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7939 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7940 | old_CFLAGS="$CFLAGS" | |
7941 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7942 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7943 | ||
7944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7945 | /* end confdefs.h. */ | |
7946 | int foo; | |
7947 | _ACEOF | |
7948 | if ac_fn_c_try_compile "$LINENO"; then : | |
7949 | ||
7950 | else | |
7951 | PGO_BUILD_GEN_CFLAGS= | |
7952 | fi | |
7953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7954 | CFLAGS="$old_CFLAGS" | |
7955 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7957 | $as_echo "yes" >&6; } | |
7958 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7959 | else | |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7961 | $as_echo "no" >&6; } | |
7962 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7963 | fi | |
7964 | ||
7965 | if test "$enable_pgo_build" = "lto"; then | |
7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7967 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7968 | old_CFLAGS="$CFLAGS" | |
7969 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7970 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7972 | /* end confdefs.h. */ | |
7973 | int foo; | |
7974 | _ACEOF | |
7975 | if ac_fn_c_try_compile "$LINENO"; then : | |
7976 | ||
7977 | else | |
7978 | PGO_BUILD_LTO_CFLAGS= | |
7979 | fi | |
7980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7981 | CFLAGS="$old_CFLAGS" | |
7982 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7984 | $as_echo "yes" >&6; } | |
7985 | else | |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7987 | $as_echo "no" >&6; } | |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7989 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7990 | fi | |
7991 | fi | |
7992 | fi | |
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | # Used for setting $lt_cv_objdir | |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7999 | $as_echo_n "checking for objdir... " >&6; } | |
8000 | if ${lt_cv_objdir+:} false; then : | |
8001 | $as_echo_n "(cached) " >&6 | |
8002 | else | |
8003 | rm -f .libs 2>/dev/null | |
8004 | mkdir .libs 2>/dev/null | |
8005 | if test -d .libs; then | |
8006 | lt_cv_objdir=.libs | |
8007 | else | |
8008 | # MS-DOS does not allow filenames that begin with a dot. | |
8009 | lt_cv_objdir=_libs | |
8010 | fi | |
8011 | rmdir .libs 2>/dev/null | |
8012 | fi | |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8014 | $as_echo "$lt_cv_objdir" >&6; } | |
8015 | objdir=$lt_cv_objdir | |
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | cat >>confdefs.h <<_ACEOF | |
8022 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8023 | _ACEOF | |
8024 | ||
8025 | ||
8026 | ||
8027 | # Check for GMP, MPFR and MPC | |
8028 | gmplibs="-lmpc -lmpfr -lgmp" | |
8029 | gmpinc= | |
8030 | have_gmp=no | |
8031 | ||
8032 | # Specify a location for mpc | |
8033 | # check for this first so it ends up on the link line before mpfr. | |
8034 | ||
8035 | # Check whether --with-mpc was given. | |
8036 | if test "${with_mpc+set}" = set; then : | |
8037 | withval=$with_mpc; | |
8038 | fi | |
8039 | ||
8040 | ||
8041 | # Check whether --with-mpc-include was given. | |
8042 | if test "${with_mpc_include+set}" = set; then : | |
8043 | withval=$with_mpc_include; | |
8044 | fi | |
8045 | ||
8046 | ||
8047 | # Check whether --with-mpc-lib was given. | |
8048 | if test "${with_mpc_lib+set}" = set; then : | |
8049 | withval=$with_mpc_lib; | |
8050 | fi | |
8051 | ||
8052 | ||
8053 | if test "x$with_mpc" != x; then | |
8054 | gmplibs="-L$with_mpc/lib $gmplibs" | |
8055 | gmpinc="-I$with_mpc/include $gmpinc" | |
8056 | fi | |
8057 | if test "x$with_mpc_include" != x; then | |
8058 | gmpinc="-I$with_mpc_include $gmpinc" | |
8059 | fi | |
8060 | if test "x$with_mpc_lib" != x; then | |
8061 | gmplibs="-L$with_mpc_lib $gmplibs" | |
8062 | fi | |
8063 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
8064 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" | |
8065 | gmpinc='-I$$s/mpc/src '"$gmpinc" | |
8066 | # Do not test the mpc version. Assume that it is sufficient, since | |
8067 | # it is in the source tree, and the library has not been built yet | |
8068 | # but it would be included on the link line in the version check below | |
8069 | # hence making the test fail. | |
8070 | have_gmp=yes | |
8071 | fi | |
8072 | ||
8073 | # Specify a location for mpfr | |
8074 | # check for this first so it ends up on the link line before gmp. | |
8075 | ||
8076 | # Check whether --with-mpfr was given. | |
8077 | if test "${with_mpfr+set}" = set; then : | |
8078 | withval=$with_mpfr; | |
8079 | fi | |
c6b750e1 | 8080 | |
11b04d1f | 8081 | |
e552509b | 8082 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
8083 | if test "${with_mpfr_include+set}" = set; then : |
8084 | withval=$with_mpfr_include; | |
8085 | fi | |
c6b750e1 | 8086 | |
8a0d8a5c | 8087 | |
e552509b | 8088 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
8089 | if test "${with_mpfr_lib+set}" = set; then : |
8090 | withval=$with_mpfr_lib; | |
8091 | fi | |
8a0d8a5c | 8092 | |
11b04d1f DD |
8093 | |
8094 | if test "x$with_mpfr" != x; then | |
8095 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 8096 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 8097 | fi |
8a0d8a5c | 8098 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 8099 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
8100 | fi |
8101 | if test "x$with_mpfr_lib" != x; then | |
8102 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8103 | fi | |
4b900473 | 8104 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 8105 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 8106 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 8107 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 8108 | fi |
05a13254 NC |
8109 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8110 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8111 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
8112 | # Do not test the mpfr version. Assume that it is sufficient, since |
8113 | # it is in the source tree, and the library has not been built yet | |
8114 | # but it would be included on the link line in the version check below | |
8115 | # hence making the test fail. | |
8116 | have_gmp=yes | |
8117 | fi | |
11b04d1f | 8118 | |
4b1cb4fe | 8119 | # Specify a location for gmp |
c6b750e1 | 8120 | |
81ecdfbb RW |
8121 | # Check whether --with-gmp was given. |
8122 | if test "${with_gmp+set}" = set; then : | |
8123 | withval=$with_gmp; | |
8124 | fi | |
c6b750e1 | 8125 | |
4b1cb4fe | 8126 | |
e552509b | 8127 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
8128 | if test "${with_gmp_include+set}" = set; then : |
8129 | withval=$with_gmp_include; | |
8130 | fi | |
c6b750e1 | 8131 | |
8a0d8a5c | 8132 | |
e552509b | 8133 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
8134 | if test "${with_gmp_lib+set}" = set; then : |
8135 | withval=$with_gmp_lib; | |
8136 | fi | |
8a0d8a5c PB |
8137 | |
8138 | ||
4b1cb4fe | 8139 | |
11b04d1f DD |
8140 | if test "x$with_gmp" != x; then |
8141 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8142 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 8143 | fi |
8a0d8a5c PB |
8144 | if test "x$with_gmp_include" != x; then |
8145 | gmpinc="-I$with_gmp_include $gmpinc" | |
8146 | fi | |
8147 | if test "x$with_gmp_lib" != x; then | |
8148 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8149 | fi | |
4b900473 | 8150 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 8151 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 8152 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 8153 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 8154 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 8155 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
8156 | # Do not test the gmp version. Assume that it is sufficient, since |
8157 | # it is in the source tree, and the library has not been built yet | |
8158 | # but it would be included on the link line in the version check below | |
8159 | # hence making the test fail. | |
8160 | have_gmp=yes | |
8161 | fi | |
4b1cb4fe | 8162 | |
ceb92e78 | 8163 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
8164 | have_gmp=yes |
8165 | saved_CFLAGS="$CFLAGS" | |
8166 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
8167 | # Check for the recommended and required versions of GMP. |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8169 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
af019bfd | 8170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
8171 | /* end confdefs.h. */ |
8172 | #include "gmp.h" | |
8173 | int | |
8174 | main () | |
8175 | { | |
8176 | ||
8177 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8178 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 8179 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
8180 | choke me |
8181 | #endif | |
8182 | ||
8183 | ; | |
8184 | return 0; | |
8185 | } | |
8186 | _ACEOF | |
8187 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 8188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8189 | /* end confdefs.h. */ |
a6b5846e | 8190 | #include <gmp.h> |
c6b750e1 DJ |
8191 | int |
8192 | main () | |
8193 | { | |
4b1cb4fe | 8194 | |
a6b5846e KG |
8195 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8196 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8197 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
8198 | choke me |
8199 | #endif | |
c6b750e1 DJ |
8200 | |
8201 | ; | |
8202 | return 0; | |
8203 | } | |
8204 | _ACEOF | |
81ecdfbb RW |
8205 | if ac_fn_c_try_compile "$LINENO"; then : |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8207 | $as_echo "yes" >&6; } | |
a6b5846e KG |
8208 | else |
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8210 | $as_echo "buggy but acceptable" >&6; } | |
8211 | fi | |
8212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 8213 | else |
81ecdfbb RW |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8215 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8216 | fi |
81ecdfbb | 8217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 8218 | |
e8a5fa9c | 8219 | # If we have GMP, check the MPFR version. |
4b900473 | 8220 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
8221 | # Check for the recommended and required versions of MPFR. |
8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8223 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 8224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8225 | /* end confdefs.h. */ |
9b134994 | 8226 | #include <gmp.h> |
4b900473 | 8227 | #include <mpfr.h> |
c6b750e1 DJ |
8228 | int |
8229 | main () | |
8230 | { | |
9b134994 | 8231 | |
228cf97d | 8232 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
4b900473 PB |
8233 | choke me |
8234 | #endif | |
c6b750e1 DJ |
8235 | |
8236 | ; | |
8237 | return 0; | |
8238 | } | |
8239 | _ACEOF | |
81ecdfbb RW |
8240 | if ac_fn_c_try_compile "$LINENO"; then : |
8241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 8242 | /* end confdefs.h. */ |
4b1cb4fe | 8243 | #include <gmp.h> |
4b900473 | 8244 | #include <mpfr.h> |
c6b750e1 DJ |
8245 | int |
8246 | main () | |
8247 | { | |
9dbaa842 | 8248 | |
228cf97d | 8249 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
4b900473 PB |
8250 | choke me |
8251 | #endif | |
e8a5fa9c RW |
8252 | |
8253 | ; | |
8254 | return 0; | |
8255 | } | |
8256 | _ACEOF | |
81ecdfbb RW |
8257 | if ac_fn_c_try_compile "$LINENO"; then : |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8259 | $as_echo "yes" >&6; } | |
e8a5fa9c | 8260 | else |
81ecdfbb RW |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8262 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 8263 | fi |
81ecdfbb | 8264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 8265 | else |
81ecdfbb RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8267 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 8268 | fi |
81ecdfbb | 8269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8270 | fi |
8271 | ||
8272 | # Check for the MPC header version. | |
d9b76ff9 | 8273 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 8274 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8276 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
8278 | /* end confdefs.h. */ |
8279 | #include <mpc.h> | |
8280 | int | |
8281 | main () | |
8282 | { | |
8283 | ||
a6b5846e KG |
8284 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8285 | choke me | |
8286 | #endif | |
8287 | ||
8288 | ; | |
8289 | return 0; | |
8290 | } | |
8291 | _ACEOF | |
8292 | if ac_fn_c_try_compile "$LINENO"; then : | |
8293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8294 | /* end confdefs.h. */ | |
8295 | #include <mpc.h> | |
8296 | int | |
8297 | main () | |
8298 | { | |
8299 | ||
8300 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
8301 | choke me |
8302 | #endif | |
8303 | ||
8304 | ; | |
8305 | return 0; | |
8306 | } | |
8307 | _ACEOF | |
81ecdfbb RW |
8308 | if ac_fn_c_try_compile "$LINENO"; then : |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 8310 | $as_echo "yes" >&6; } |
a6b5846e KG |
8311 | else |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8313 | $as_echo "buggy but acceptable" >&6; } | |
8314 | fi | |
8315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 8316 | else |
81ecdfbb | 8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 8318 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 8319 | fi |
81ecdfbb | 8320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8321 | fi |
8322 | ||
8323 | # Now check the MPFR library. | |
8324 | if test x"$have_gmp" = xyes; then | |
8325 | saved_LIBS="$LIBS" | |
8326 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8328 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 8329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 8330 | /* end confdefs.h. */ |
d9b76ff9 | 8331 | #include <mpc.h> |
e8a5fa9c RW |
8332 | int |
8333 | main () | |
8334 | { | |
8335 | ||
8336 | mpfr_t n; | |
8337 | mpfr_t x; | |
d9b76ff9 | 8338 | mpc_t c; |
e8a5fa9c RW |
8339 | int t; |
8340 | mpfr_init (n); | |
8341 | mpfr_init (x); | |
228cf97d AM |
8342 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8343 | mpfr_erfc (n, x, MPFR_RNDN); | |
8344 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
d9b76ff9 KG |
8345 | mpfr_clear(n); |
8346 | mpfr_clear(x); | |
8347 | mpc_init2 (c, 53); | |
8348 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8349 | mpc_cosh (c, c, MPC_RNDNN); | |
8350 | mpc_pow (c, c, c, MPC_RNDNN); | |
8351 | mpc_acosh (c, c, MPC_RNDNN); | |
8352 | mpc_clear (c); | |
c6b750e1 DJ |
8353 | |
8354 | ; | |
8355 | return 0; | |
8356 | } | |
8357 | _ACEOF | |
81ecdfbb RW |
8358 | if ac_fn_c_try_link "$LINENO"; then : |
8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8360 | $as_echo "yes" >&6; } | |
c6b750e1 | 8361 | else |
81ecdfbb RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8363 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8364 | fi |
81ecdfbb RW |
8365 | rm -f core conftest.err conftest.$ac_objext \ |
8366 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
8367 | LIBS="$saved_LIBS" |
8368 | fi | |
8369 | ||
4b900473 | 8370 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 8371 | |
a6b5846e KG |
8372 | # The library versions listed in the error message below should match |
8373 | # the HARD-minimums enforced above. | |
4b900473 | 8374 | if test x$have_gmp != xyes; then |
228cf97d | 8375 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
8376 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8377 | their locations. Source code for these libraries can be found at | |
8378 | their respective hosting sites as well as at | |
228cf97d | 8379 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
d9b76ff9 KG |
8380 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8381 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8382 | make sure that you have installed both the libraries and the header | |
8383 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 8384 | fi |
9dbaa842 DD |
8385 | fi |
8386 | ||
e8a5fa9c RW |
8387 | # Flags needed for both GMP, MPFR and/or MPC. |
8388 | ||
8389 | ||
8390 | ||
4b1cb4fe DD |
8391 | |
8392 | ||
8393 | ||
7ec59b9e | 8394 | |
b3676d82 | 8395 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8396 | |
b3676d82 EB |
8397 | # Check whether --with-stage1-libs was given. |
8398 | if test "${with_stage1_libs+set}" = set; then : | |
8399 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8400 | stage1_libs= | |
e8a5fa9c | 8401 | else |
b3676d82 | 8402 | stage1_libs=$withval |
e8a5fa9c RW |
8403 | fi |
8404 | else | |
68996839 | 8405 | stage1_libs= |
81ecdfbb RW |
8406 | fi |
8407 | ||
e8a5fa9c RW |
8408 | |
8409 | ||
c1a5d03a TT |
8410 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8411 | # default is yes if gcc is being built; no otherwise. The reason for | |
8412 | # this default is that gdb is sometimes linked against GNU Source | |
8413 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8414 | # this case, -static-libstdc++ will cause crashes. | |
8415 | ||
8416 | # Check whether --with-static-standard-libraries was given. | |
8417 | if test "${with_static_standard_libraries+set}" = set; then : | |
8418 | withval=$with_static_standard_libraries; | |
8419 | else | |
8420 | with_static_standard_libraries=auto | |
8421 | fi | |
8422 | ||
8423 | if test "$with_static_standard_libraries" = auto; then | |
8424 | with_static_standard_libraries=$have_compiler | |
8425 | fi | |
8426 | ||
b3676d82 | 8427 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8428 | |
b3676d82 EB |
8429 | # Check whether --with-stage1-ldflags was given. |
8430 | if test "${with_stage1_ldflags+set}" = set; then : | |
8431 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8432 | stage1_ldflags= | |
e8a5fa9c | 8433 | else |
b3676d82 | 8434 | stage1_ldflags=$withval |
e8a5fa9c RW |
8435 | fi |
8436 | else | |
b3676d82 EB |
8437 | stage1_ldflags= |
8438 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8439 | # if supported. But if the user explicitly specified the libraries to use, | |
8440 | # trust that they are doing what they want. | |
c1a5d03a TT |
8441 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8442 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
8443 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8444 | fi | |
81ecdfbb RW |
8445 | fi |
8446 | ||
e8a5fa9c RW |
8447 | |
8448 | ||
68996839 | 8449 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 8450 | |
81ecdfbb RW |
8451 | # Check whether --with-boot-libs was given. |
8452 | if test "${with_boot_libs+set}" = set; then : | |
8453 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
8454 | poststage1_libs= |
8455 | else | |
8456 | poststage1_libs=$withval | |
8457 | fi | |
8458 | else | |
68996839 | 8459 | poststage1_libs= |
81ecdfbb RW |
8460 | fi |
8461 | ||
e8a5fa9c RW |
8462 | |
8463 | ||
143754cd NC |
8464 | # Linker flags to use for stage2 and later builds. |
8465 | ||
8466 | # Check whether --with-boot-ldflags was given. | |
8467 | if test "${with_boot_ldflags+set}" = set; then : | |
8468 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8469 | poststage1_ldflags= | |
8470 | else | |
8471 | poststage1_ldflags=$withval | |
8472 | fi | |
8473 | else | |
8474 | poststage1_ldflags= | |
4f11b223 ILT |
8475 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8476 | # statically. But if the user explicitly specified the libraries to | |
8477 | # use, trust that they are doing what they want. | |
8478 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
8479 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8480 | fi | |
8481 | fi | |
8482 | ||
8483 | ||
8484 | ||
4849dfd8 | 8485 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 8486 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
8487 | |
8488 | ||
7ec59b9e L |
8489 | # Check whether --with-isl was given. |
8490 | if test "${with_isl+set}" = set; then : | |
8491 | withval=$with_isl; | |
81ecdfbb | 8492 | fi |
e28c595f | 8493 | |
e28c595f | 8494 | |
1b6c0831 | 8495 | # Treat --without-isl as a request to disable |
8e71395b | 8496 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 8497 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 8498 | # Check for isl |
8e71395b L |
8499 | |
8500 | ||
7ec59b9e L |
8501 | # Check whether --with-isl-include was given. |
8502 | if test "${with_isl_include+set}" = set; then : | |
8503 | withval=$with_isl_include; | |
81ecdfbb RW |
8504 | fi |
8505 | ||
e28c595f | 8506 | |
7ec59b9e L |
8507 | # Check whether --with-isl-lib was given. |
8508 | if test "${with_isl_lib+set}" = set; then : | |
8509 | withval=$with_isl_lib; | |
81ecdfbb | 8510 | fi |
e28c595f | 8511 | |
e28c595f | 8512 | |
7ec59b9e L |
8513 | # Check whether --enable-isl-version-check was given. |
8514 | if test "${enable_isl_version_check+set}" = set; then : | |
8515 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8516 | else | |
8517 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
8518 | fi |
8519 | ||
8520 | ||
7ec59b9e L |
8521 | # Initialize isllibs and islinc. |
8522 | case $with_isl in | |
8523 | no) | |
8524 | isllibs= | |
8525 | islinc= | |
8526 | ;; | |
8527 | "" | yes) | |
8528 | ;; | |
8529 | *) | |
8530 | isllibs="-L$with_isl/lib" | |
8531 | islinc="-I$with_isl/include" | |
8532 | ;; | |
8533 | esac | |
8534 | if test "x${with_isl_include}" != x ; then | |
8535 | islinc="-I$with_isl_include" | |
8536 | fi | |
8537 | if test "x${with_isl_lib}" != x; then | |
8538 | isllibs="-L$with_isl_lib" | |
8539 | fi | |
8540 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8541 | && test -d ${srcdir}/isl; then | |
8542 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8543 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8544 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8546 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 8547 | fi |
b123da99 | 8548 | |
1b6c0831 | 8549 | isllibs="${isllibs} -lisl" |
b123da99 | 8550 | |
e28c595f | 8551 | |
b3fc79f8 JBG |
8552 | |
8553 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
8554 | _isl_saved_CFLAGS=$CFLAGS | |
8555 | _isl_saved_LDFLAGS=$LDFLAGS | |
8556 | _isl_saved_LIBS=$LIBS | |
8557 | ||
8558 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
8559 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8560 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 8561 | |
bf41f30d NC |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8563 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 8564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 8565 | /* end confdefs.h. */ |
bf41f30d | 8566 | #include <isl/schedule.h> |
b3fc79f8 JBG |
8567 | int |
8568 | main () | |
8569 | { | |
bf41f30d | 8570 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
8571 | ; |
8572 | return 0; | |
8573 | } | |
8574 | _ACEOF | |
1b6c0831 | 8575 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
8576 | gcc_cv_isl=yes |
8577 | else | |
8578 | gcc_cv_isl=no | |
8579 | fi | |
1b6c0831 L |
8580 | rm -f core conftest.err conftest.$ac_objext \ |
8581 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8583 | $as_echo "$gcc_cv_isl" >&6; } | |
8584 | ||
4849dfd8 | 8585 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8587 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
8588 | fi |
8589 | ||
b3fc79f8 JBG |
8590 | CFLAGS=$_isl_saved_CFLAGS |
8591 | LDFLAGS=$_isl_saved_LDFLAGS | |
8592 | LIBS=$_isl_saved_LIBS | |
8593 | fi | |
8594 | ||
8595 | ||
e28c595f | 8596 | |
e28c595f | 8597 | |
7ec59b9e L |
8598 | |
8599 | ||
7ec59b9e L |
8600 | if test "x${with_isl}" = xno; then |
8601 | graphite_requested=no | |
8602 | elif test "x${with_isl}" != x \ | |
8603 | || test "x${with_isl_include}" != x \ | |
8604 | || test "x${with_isl_lib}" != x ; then | |
8605 | graphite_requested=yes | |
8606 | else | |
8607 | graphite_requested=no | |
b123da99 | 8608 | fi |
e28c595f | 8609 | |
e28c595f JM |
8610 | |
8611 | ||
7ec59b9e L |
8612 | if test "${gcc_cv_isl}" = no ; then |
8613 | isllibs= | |
8614 | islinc= | |
8615 | fi | |
e28c595f | 8616 | |
7ec59b9e L |
8617 | if test "${graphite_requested}" = yes \ |
8618 | && test "x${isllibs}" = x \ | |
8619 | && test "x${islinc}" = x ; then | |
e28c595f | 8620 | |
d0ac1c44 | 8621 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 8622 | fi |
e552509b | 8623 | |
e28c595f | 8624 | |
e552509b ILT |
8625 | fi |
8626 | ||
4849dfd8 | 8627 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 8628 | if test "x$with_isl" = xno || |
8e71395b | 8629 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 8630 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 8631 | islinc= |
7ec59b9e L |
8632 | fi |
8633 | ||
8e71395b L |
8634 | |
8635 | ||
8636 | ||
700d40ca ILT |
8637 | # Check for LTO support. |
8638 | # Check whether --enable-lto was given. | |
8639 | if test "${enable_lto+set}" = set; then : | |
8640 | enableval=$enable_lto; enable_lto=$enableval | |
8641 | else | |
8642 | enable_lto=yes; default_enable_lto=yes | |
8643 | fi | |
8644 | ||
8645 | ||
143754cd | 8646 | |
e49e5c92 DK |
8647 | |
8648 | ||
8649 | target_elf=no | |
8650 | case $target in | |
8651 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 8652 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
8653 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8654 | nvptx-*-none) | |
e49e5c92 DK |
8655 | target_elf=no |
8656 | ;; | |
8657 | *) | |
8658 | target_elf=yes | |
8659 | ;; | |
8660 | esac | |
8661 | ||
8662 | if test $target_elf = yes; then : | |
74cea91b DK |
8663 | # ELF platforms build the lto-plugin always. |
8664 | build_lto_plugin=yes | |
e49e5c92 | 8665 | |
e49e5c92 DK |
8666 | else |
8667 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 8668 | case $target in |
bf41f30d | 8669 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 8670 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
8671 | *) enable_lto=no ;; |
8672 | esac | |
e49e5c92 | 8673 | else |
29821356 RW |
8674 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8675 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
8676 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8677 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8678 | # -flto it won't be needed until after installation anyway. | |
8679 | case $target in | |
52cf9762 | 8680 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 8681 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 8682 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
8683 | fi |
8684 | ;; | |
8685 | esac | |
8686 | fi | |
a8eb3f0a | 8687 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 8688 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 8689 | case $target in |
74cea91b | 8690 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
8691 | *) ;; |
8692 | esac | |
74cea91b | 8693 | |
e49e5c92 DK |
8694 | fi |
8695 | ||
700d40ca | 8696 | |
1b6c0831 L |
8697 | # Check whether --enable-linker-plugin-configure-flags was given. |
8698 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8699 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8700 | else | |
8701 | extra_linker_plugin_configure_flags= | |
8702 | fi | |
8703 | ||
8704 | ||
8705 | # Check whether --enable-linker-plugin-flags was given. | |
8706 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8707 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8708 | else | |
8709 | extra_linker_plugin_flags= | |
8710 | fi | |
8711 | ||
8712 | ||
8713 | ||
bf41f30d NC |
8714 | # Enable --enable-host-shared. |
8715 | # Checked early to determine whether jit is an 'all' language | |
8716 | # Check whether --enable-host-shared was given. | |
8717 | if test "${enable_host_shared+set}" = set; then : | |
8718 | enableval=$enable_host_shared; host_shared=$enableval | |
228cf97d AM |
8719 | case $host in |
8720 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8721 | if test x$host_shared != xyes ; then | |
8722 | # PIC is the default, and actually cannot be switched off. | |
8723 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8724 | host_shared=yes | |
8725 | fi ;; | |
8726 | *) ;; | |
8727 | esac | |
bf41f30d | 8728 | else |
228cf97d AM |
8729 | case $host in |
8730 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8731 | *) host_shared=no ;; | |
8732 | esac | |
bf41f30d NC |
8733 | fi |
8734 | ||
8735 | ||
e28c595f | 8736 | |
7ec59b9e | 8737 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 8738 | stage1_languages=,c, |
1d39f329 | 8739 | |
e8a5fa9c | 8740 | # Target libraries that we bootstrap. |
2aa2364a | 8741 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 8742 | |
9e07f89d NN |
8743 | # Figure out what language subdirectories are present. |
8744 | # Look if the user specified --enable-languages="..."; if not, use | |
8745 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8746 | # go away some day. | |
8747 | # NB: embedded tabs in this IF block -- do not untabify | |
8748 | if test -d ${srcdir}/gcc; then | |
8749 | if test x"${enable_languages+set}" != xset; then | |
8750 | if test x"${LANGUAGES+set}" = xset; then | |
8751 | enable_languages="${LANGUAGES}" | |
136bb21f | 8752 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 8753 | else |
bf41f30d | 8754 | enable_languages=default |
9e07f89d NN |
8755 | fi |
8756 | else | |
8757 | if test x"${enable_languages}" = x || | |
8758 | test x"${enable_languages}" = xyes; | |
8759 | then | |
136bb21f | 8760 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
8761 | exit 1 |
8762 | fi | |
8763 | fi | |
8764 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8765 | ||
096f7d00 DE |
8766 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8767 | # and make the substitution. | |
8768 | case ,${enable_languages}, in | |
8769 | *,f95,*) | |
136bb21f | 8770 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
8771 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8772 | ;; | |
8773 | esac | |
8774 | ||
7ec59b9e L |
8775 | # If bootstrapping, C++ must be enabled. |
8776 | case ",$enable_languages,:$enable_bootstrap" in | |
8777 | *,c++,*:*) ;; | |
8778 | *:yes) | |
ffdd6afc ILT |
8779 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8780 | enable_languages="${enable_languages},c++" | |
8781 | else | |
d0ac1c44 | 8782 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
8783 | fi |
8784 | ;; | |
8785 | esac | |
8786 | ||
9e07f89d NN |
8787 | # First scan to see if an enabled language requires some other language. |
8788 | # We assume that a given config-lang.in will list all the language | |
8789 | # front ends it requires, even if some are required indirectly. | |
8790 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8791 | case ${lang_frag} in | |
8792 | ..) ;; | |
8793 | # The odd quoting in the next line works around | |
8794 | # an apparent bug in bash 1.12 on linux. | |
8795 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8796 | *) | |
e552509b ILT |
8797 | # From the config-lang.in, get $language, $lang_requires, and |
8798 | # $lang_requires_boot_languages. | |
9e07f89d NN |
8799 | language= |
8800 | lang_requires= | |
e552509b | 8801 | lang_requires_boot_languages= |
bf41f30d NC |
8802 | # set srcdir during sourcing lang_frag to the gcc dir. |
8803 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8804 | # polutes this shell | |
8805 | saved_srcdir=${srcdir} | |
8806 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8807 | srcdir=${saved_srcdir} | |
e552509b | 8808 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
8809 | case ,${enable_languages}, in |
8810 | *,$other,*) ;; | |
bf41f30d | 8811 | *,default,*) ;; |
9e07f89d NN |
8812 | *,all,*) ;; |
8813 | *,$language,*) | |
8814 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8815 | enable_languages="${enable_languages},${other}" | |
8816 | ;; | |
8817 | esac | |
8818 | done | |
e552509b ILT |
8819 | for other in ${lang_requires_boot_languages} ; do |
8820 | if test "$other" != "c"; then | |
8821 | case ,${enable_stage1_languages}, in | |
8822 | *,$other,*) ;; | |
bf41f30d | 8823 | *,default,*) ;; |
e552509b ILT |
8824 | *,all,*) ;; |
8825 | *) | |
8826 | case ,${enable_languages}, in | |
8827 | *,$language,*) | |
8828 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8829 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8830 | ;; | |
8831 | esac | |
8832 | ;; | |
8833 | esac | |
8834 | fi | |
8835 | done | |
9e07f89d NN |
8836 | ;; |
8837 | esac | |
8838 | done | |
8839 | ||
9b134994 | 8840 | new_enable_languages=,c, |
700d40ca ILT |
8841 | |
8842 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 8843 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
8844 | case ,${enable_languages}, in |
8845 | *,lto,*) ;; | |
8846 | *) enable_languages="${enable_languages},lto" ;; | |
8847 | esac | |
a8eb3f0a | 8848 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 8849 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
8850 | fi |
8851 | fi | |
8852 | ||
1b6c0831 L |
8853 | # If we're building an offloading compiler, add the LTO front end. |
8854 | if test x"$enable_as_accelerator_for" != x ; then | |
8855 | case ,${enable_languages}, in | |
8856 | *,lto,*) ;; | |
8857 | *) enable_languages="${enable_languages},lto" ;; | |
8858 | esac | |
8859 | fi | |
700d40ca | 8860 | |
bf41f30d | 8861 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 8862 | potential_languages=,c, |
9e07f89d | 8863 | |
9e1a94f4 ILT |
8864 | enabled_target_libs= |
8865 | disabled_target_libs= | |
8866 | ||
9e07f89d NN |
8867 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8868 | case ${lang_frag} in | |
8869 | ..) ;; | |
8870 | # The odd quoting in the next line works around | |
8871 | # an apparent bug in bash 1.12 on linux. | |
8872 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8873 | *) | |
c6b750e1 | 8874 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 8875 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
8876 | language= |
8877 | target_libs= | |
8878 | lang_dirs= | |
64ce424c | 8879 | subdir_requires= |
9b134994 PB |
8880 | boot_language=no |
8881 | build_by_default=yes | |
bf41f30d NC |
8882 | # set srcdir during sourcing. See above about save & restore |
8883 | saved_srcdir=${srcdir} | |
8884 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8885 | srcdir=${saved_srcdir} | |
9b134994 PB |
8886 | if test x${language} = x; then |
8887 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8888 | exit 1 | |
8889 | fi | |
8890 | ||
ffdd6afc | 8891 | if test "$language" = "c++"; then |
7ec59b9e | 8892 | boot_language=yes |
e8a5fa9c RW |
8893 | fi |
8894 | ||
8e71395b | 8895 | add_this_lang=no |
bf41f30d NC |
8896 | # C is always enabled, so no need to add it again |
8897 | if test "$language" != "c"; then | |
8898 | case ,${enable_languages}, in | |
8899 | *,${language},*) | |
8900 | # Language was explicitly selected; include it | |
7ec59b9e | 8901 | add_this_lang=yes |
bf41f30d NC |
8902 | ;; |
8903 | *,all,*) | |
8904 | # All languages are enabled | |
8905 | add_this_lang=all | |
8906 | ;; | |
8907 | *,default,*) | |
8908 | # 'default' was selected, select it if it is a default language | |
8e71395b | 8909 | add_this_lang=${build_by_default} |
bf41f30d NC |
8910 | ;; |
8911 | esac | |
8912 | fi | |
4b1cb4fe | 8913 | |
64ce424c | 8914 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 8915 | for i in $subdir_requires; do |
3d3adb43 | 8916 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
8917 | case ${add_this_lang} in |
8918 | yes) | |
64ce424c | 8919 | # Specifically requested language; tell them. |
d0ac1c44 | 8920 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 8921 | ;; |
bf41f30d NC |
8922 | all) |
8923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8924 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8925 | add_this_lang=unsupported | |
8926 | ;; | |
64ce424c PB |
8927 | *) |
8928 | # Silently disable. | |
9b134994 | 8929 | add_this_lang=unsupported |
64ce424c PB |
8930 | ;; |
8931 | esac | |
8932 | done | |
8933 | ||
9b134994 | 8934 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
8935 | case ${add_this_lang}:${language}:${have_gnat} in |
8936 | yes:ada:no) | |
9b134994 | 8937 | # Specifically requested language; tell them. |
d0ac1c44 | 8938 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 8939 | ;; |
bf41f30d NC |
8940 | all:ada:no) |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8942 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8943 | add_this_lang=unsupported | |
8944 | ;; | |
9b134994 PB |
8945 | *:ada:no) |
8946 | # Silently disable. | |
8947 | add_this_lang=unsupported | |
8948 | ;; | |
8949 | esac | |
8950 | ||
228cf97d AM |
8951 | # Disable D if no preexisting GDC is available. |
8952 | case ${add_this_lang}:${language}:${have_gdc} in | |
8953 | yes:d:no) | |
8954 | # Specifically requested language; tell them. | |
8955 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8956 | ;; | |
8957 | all:d:no) | |
8958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8959 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8960 | add_this_lang=unsupported | |
8961 | ;; | |
8962 | *:d:no) | |
8963 | # Silently disable. | |
8964 | add_this_lang=unsupported | |
8965 | ;; | |
8966 | esac | |
8967 | ||
bf41f30d | 8968 | # Disable jit if -enable-host-shared not specified |
228cf97d AM |
8969 | # but not if building for Mingw. All code in Windows |
8970 | # is position independent code (PIC). | |
8971 | case $target in | |
8972 | *mingw*) ;; | |
8973 | *) | |
8974 | case ${add_this_lang}:${language}:${host_shared} in | |
8975 | yes:jit:no) | |
8976 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 8977 | as_fn_error $? " |
bf41f30d NC |
8978 | Enabling language \"jit\" requires --enable-host-shared. |
8979 | ||
8980 | --enable-host-shared typically slows the rest of the compiler down by | |
8981 | a few %, so you must explicitly enable it. | |
8982 | ||
8983 | If you want to build both the jit and the regular compiler, it is often | |
8984 | best to do this via two separate configure/builds, in separate | |
8985 | directories, to avoid imposing the performance cost of | |
8986 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
228cf97d AM |
8987 | ;; |
8988 | all:jit:no) | |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
bf41f30d | 8990 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
228cf97d AM |
8991 | add_this_lang=unsupported |
8992 | ;; | |
8993 | *:jit:no) | |
8994 | # Silently disable. | |
8995 | add_this_lang=unsupported | |
8996 | ;; | |
8997 | esac | |
8998 | ;; | |
8999 | esac | |
bf41f30d NC |
9000 | |
9001 | # Disable a language that is unsupported by the target. | |
9002 | case "${add_this_lang}: $unsupported_languages " in | |
9003 | no:*) ;; | |
9004 | unsupported:*) ;; | |
9005 | *:*" $language "*) | |
9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9007 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 9008 | add_this_lang=unsupported |
59f7ec45 HPN |
9009 | ;; |
9010 | esac | |
9011 | ||
4b1cb4fe | 9012 | case $add_this_lang in |
9b134994 | 9013 | unsupported) |
9e07f89d | 9014 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
9015 | disabled_target_libs="$disabled_target_libs $target_libs" |
9016 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 9017 | ;; |
9b134994 PB |
9018 | no) |
9019 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
9020 | disabled_target_libs="$disabled_target_libs $target_libs" |
9021 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
9022 | potential_languages="${potential_languages}${language}," |
9023 | ;; | |
bf41f30d | 9024 | all|yes) |
9b134994 PB |
9025 | new_enable_languages="${new_enable_languages}${language}," |
9026 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 9027 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 9028 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
9029 | case "${boot_language}:,$enable_stage1_languages," in |
9030 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 9031 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
9032 | case ",$stage1_languages," in |
9033 | *,$language,* | ,yes, | ,all,) ;; | |
9034 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9035 | esac | |
e8a5fa9c | 9036 | # We need to bootstrap any supporting libraries. |
228cf97d | 9037 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
1d39f329 NN |
9038 | ;; |
9039 | esac | |
9040 | ;; | |
9e07f89d NN |
9041 | esac |
9042 | ;; | |
9043 | esac | |
9044 | done | |
9045 | ||
9e1a94f4 ILT |
9046 | # Add target libraries which are only needed for disabled languages |
9047 | # to noconfigdirs. | |
9048 | if test -n "$disabled_target_libs"; then | |
9049 | for dir in $disabled_target_libs; do | |
9050 | case " $enabled_target_libs " in | |
9051 | *" ${dir} "*) ;; | |
9052 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9053 | esac | |
9054 | done | |
9055 | fi | |
9056 | ||
81ecdfbb RW |
9057 | # Check whether --enable-stage1-languages was given. |
9058 | if test "${enable_stage1_languages+set}" = set; then : | |
9059 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
9060 | ,no,|,,) |
9061 | # Set it to something that will have no effect in the loop below | |
9062 | enable_stage1_languages=c ;; | |
9063 | ,yes,) | |
9064 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9065 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9066 | *,all,*) | |
9067 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9068 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9069 | esac | |
9070 | ||
9071 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9072 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9073 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9074 | case $potential_languages in | |
9075 | *,$i,*) | |
9076 | case $stage1_languages in | |
9077 | *,$i,*) ;; | |
9078 | *) stage1_languages="$stage1_languages$i," ;; | |
9079 | esac ;; | |
9080 | *) | |
9081 | case $missing_languages in | |
9082 | *,$i,*) ;; | |
9083 | *) missing_languages="$missing_languages$i," ;; | |
9084 | esac ;; | |
9085 | esac | |
9086 | done | |
81ecdfbb RW |
9087 | fi |
9088 | ||
9b134994 PB |
9089 | |
9090 | # Remove leading/trailing commas that were added for simplicity | |
9091 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 9092 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
9093 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9094 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9095 | ||
9e07f89d | 9096 | if test "x$missing_languages" != x; then |
d0ac1c44 | 9097 | as_fn_error $? " |
27258dd4 | 9098 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 9099 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 9100 | fi |
9e07f89d NN |
9101 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9102 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 9103 | enable_languages="$new_enable_languages" |
9e07f89d | 9104 | fi |
9b134994 | 9105 | |
c6b750e1 | 9106 | |
81ec575a | 9107 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
9108 | fi |
9109 | ||
a6df5a19 PB |
9110 | # Handle --disable-<component> generically. |
9111 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9112 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
9113 | varname=`echo $dirname | sed -e s/+/_/g` |
9114 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
9115 | noconfigdirs="$noconfigdirs $dir" |
9116 | fi | |
9117 | done | |
9118 | ||
4f0ef2d8 | 9119 | # Check for Boehm's garbage collector |
81ecdfbb RW |
9120 | # Check whether --enable-objc-gc was given. |
9121 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 9122 | enableval=$enable_objc_gc; |
81ecdfbb RW |
9123 | fi |
9124 | ||
4f0ef2d8 | 9125 | |
05a13254 NC |
9126 | # Check whether --with-target-bdw-gc was given. |
9127 | if test "${with_target_bdw_gc+set}" = set; then : | |
9128 | withval=$with_target_bdw_gc; | |
9129 | fi | |
9130 | ||
9131 | ||
9132 | # Check whether --with-target-bdw-gc-include was given. | |
9133 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9134 | withval=$with_target_bdw_gc_include; | |
9135 | fi | |
9136 | ||
9137 | ||
9138 | # Check whether --with-target-bdw-gc-lib was given. | |
9139 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9140 | withval=$with_target_bdw_gc_lib; | |
9141 | fi | |
9142 | ||
9143 | ||
9144 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9146 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9147 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
9149 | $as_echo "using bdw-gc in default locations" >&6; } | |
9150 | else | |
9151 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 9152 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 9153 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 9154 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
9155 | else |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9157 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 9158 | fi |
05a13254 | 9159 | fi |
4f0ef2d8 CD |
9160 | esac |
9161 | ||
bf41f30d | 9162 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 9163 | case ,${enable_languages}, in |
1b6c0831 | 9164 | *,c++,*) |
bf41f30d | 9165 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
9166 | case "${noconfigdirs}" in |
9167 | *target-libstdc++-v3*) | |
bf41f30d | 9168 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
9169 | ;; |
9170 | *) ;; | |
9171 | esac | |
9172 | ;; | |
7ec59b9e | 9173 | *) |
bf41f30d | 9174 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
9175 | ;; |
9176 | esac | |
9177 | ||
d33228c9 AB |
9178 | # If gcc/ is not in the source tree then we'll not be building a |
9179 | # target compiler, assume in that case we don't want to build any | |
9180 | # target libraries or tools. | |
9181 | # | |
9182 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9183 | # this configure script, but don't always have target tools available. | |
9184 | if test ! -d ${srcdir}/gcc; then | |
9185 | skipdirs="${skipdirs} ${target_configdirs}" | |
9186 | fi | |
9187 | ||
caeba88f AL |
9188 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9189 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
9190 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9191 | ||
9192 | notsupp="" | |
9193 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 9194 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
9195 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9196 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9197 | if test -r $srcdir/$dirname/configure ; then | |
9198 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9199 | true | |
9200 | else | |
9201 | notsupp="$notsupp $dir" | |
9202 | fi | |
9203 | fi | |
9204 | fi | |
caeba88f AL |
9205 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9206 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9207 | if test -r $srcdir/$dirname/configure ; then | |
9208 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9209 | true | |
9210 | else | |
9211 | notsupp="$notsupp $dir" | |
9212 | fi | |
9213 | fi | |
9214 | fi | |
9e07f89d NN |
9215 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9216 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9217 | if test -r $srcdir/$dirname/configure ; then | |
9218 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9219 | true | |
9220 | else | |
9221 | notsupp="$notsupp $dir" | |
9222 | fi | |
9223 | fi | |
9224 | fi | |
9225 | done | |
9226 | ||
9e07f89d NN |
9227 | # Quietly strip out all directories which aren't configurable in this tree. |
9228 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9229 | # is now the case. | |
6a9cf61e PB |
9230 | build_configdirs_all="$build_configdirs" |
9231 | build_configdirs= | |
9232 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 9233 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
9234 | if test -f ${srcdir}/$j/configure ; then |
9235 | build_configdirs="${build_configdirs} $i" | |
9236 | fi | |
9237 | done | |
9238 | ||
9e07f89d NN |
9239 | configdirs_all="$configdirs" |
9240 | configdirs= | |
9241 | for i in ${configdirs_all} ; do | |
9242 | if test -f ${srcdir}/$i/configure ; then | |
9243 | configdirs="${configdirs} $i" | |
9244 | fi | |
9245 | done | |
6a9cf61e | 9246 | |
9e07f89d NN |
9247 | target_configdirs_all="$target_configdirs" |
9248 | target_configdirs= | |
9249 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 9250 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
9251 | if test -f ${srcdir}/$j/configure ; then |
9252 | target_configdirs="${target_configdirs} $i" | |
9253 | fi | |
9254 | done | |
9255 | ||
1b6c0831 L |
9256 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9257 | # so we have to add it after the preceding checks. | |
9258 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9259 | then | |
9260 | case " $configdirs " in | |
9261 | *" libiberty "*) | |
9262 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9263 | configdirs="$configdirs libiberty-linker-plugin" | |
9264 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9265 | --with-libiberty=../libiberty-linker-plugin";; | |
9266 | *) | |
d0ac1c44 | 9267 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
9268 | esac |
9269 | fi | |
9270 | ||
9271 | # Sometimes we have special requirements for the host libiberty. | |
9272 | extra_host_libiberty_configure_flags= | |
9273 | case " $configdirs " in | |
a08bdb15 | 9274 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
1b6c0831 L |
9275 | # When these are to be built as shared libraries, the same applies to |
9276 | # libiberty. | |
9277 | extra_host_libiberty_configure_flags=--enable-shared | |
9278 | ;; | |
95127faf TV |
9279 | esac |
9280 | ||
9281 | ||
9282 | # Sometimes we have special requirements for the host zlib. | |
9283 | extra_host_zlib_configure_flags= | |
9284 | case " $configdirs " in | |
e81d5d05 L |
9285 | *" bfd "*) |
9286 | # When bfd is to be built as a shared library, the same applies to | |
9287 | # zlib. | |
9288 | if test "$enable_shared" = "yes"; then | |
9289 | extra_host_zlib_configure_flags=--enable-host-shared | |
9290 | fi | |
9291 | ;; | |
1b6c0831 L |
9292 | esac |
9293 | ||
9294 | ||
9e07f89d NN |
9295 | # Produce a warning message for the subdirs we can't configure. |
9296 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9297 | # FSF releases, it's important to let people know when their machine isn't | |
9298 | # supported by the one or two programs in a package. | |
9299 | ||
9300 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9301 | # If $appdirs is non-empty, at least one of those directories must still | |
9302 | # be configured, or we error out. (E.g., if the gas release supports a | |
9303 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9304 | # pretend that all is well.) | |
9305 | if test -n "$appdirs" ; then | |
9306 | for dir in $appdirs ; do | |
9307 | if test -r $dir/Makefile.in ; then | |
9308 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9309 | appdirs="" | |
9310 | break | |
9311 | fi | |
6a9cf61e | 9312 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
9313 | appdirs="" |
9314 | break | |
9315 | fi | |
9316 | fi | |
9317 | done | |
9318 | if test -n "$appdirs" ; then | |
9319 | echo "*** This configuration is not supported by this package." 1>&2 | |
9320 | exit 1 | |
9321 | fi | |
9322 | fi | |
9323 | # Okay, some application will build, or we don't care to check. Still | |
9324 | # notify of subdirs not getting built. | |
9325 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9326 | echo " ${notsupp}" 1>&2 | |
9327 | echo " (Any other directories should still work fine.)" 1>&2 | |
9328 | fi | |
9329 | ||
9330 | case "$host" in | |
9331 | *msdosdjgpp*) | |
9332 | enable_gdbtk=no ;; | |
9333 | esac | |
9334 | ||
18f6b6ee PB |
9335 | # To find our prefix, in gcc_cv_tool_prefix. |
9336 | ||
9337 | # The user is always right. | |
9338 | if test "${PATH_SEPARATOR+set}" != set; then | |
9339 | echo "#! /bin/sh" >conf$$.sh | |
9340 | echo "exit 0" >>conf$$.sh | |
9341 | chmod +x conf$$.sh | |
9342 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9343 | PATH_SEPARATOR=';' | |
9344 | else | |
9345 | PATH_SEPARATOR=: | |
9346 | fi | |
9347 | rm -f conf$$.sh | |
9348 | fi | |
9349 | ||
9350 | ||
bf41f30d NC |
9351 | get_gcc_base_ver="cat" |
9352 | ||
9353 | # Check whether --with-gcc-major-version-only was given. | |
9354 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9355 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 9356 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
9357 | fi |
9358 | ||
9359 | fi | |
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
18f6b6ee PB |
9365 | |
9366 | if test "x$exec_prefix" = xNONE; then | |
9367 | if test "x$prefix" = xNONE; then | |
9368 | gcc_cv_tool_prefix=$ac_default_prefix | |
9369 | else | |
9370 | gcc_cv_tool_prefix=$prefix | |
9371 | fi | |
9372 | else | |
9373 | gcc_cv_tool_prefix=$exec_prefix | |
9374 | fi | |
9375 | ||
9376 | # If there is no compiler in the tree, use the PATH only. In any | |
9377 | # case, if there is no compiler in the tree nobody should use | |
9378 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9379 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
9380 | if test x$with_gcc_major_version_only = xyes ; then |
9381 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9382 | else | |
9383 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9384 | fi | |
18f6b6ee PB |
9385 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9386 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9387 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9388 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9389 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9390 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9391 | else | |
9392 | gcc_cv_tool_dirs= | |
9393 | fi | |
9394 | ||
9395 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9396 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9397 | fi | |
9398 | ||
9399 | ||
9400 | ||
9e07f89d NN |
9401 | copy_dirs= |
9402 | ||
c6b750e1 | 9403 | |
81ecdfbb RW |
9404 | # Check whether --with-build-sysroot was given. |
9405 | if test "${with_build_sysroot+set}" = set; then : | |
9406 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
9407 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9408 | fi | |
9409 | else | |
9410 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 9411 | fi |
a19b6204 MM |
9412 | |
9413 | ||
8a6ee3ab | 9414 | |
81ecdfbb RW |
9415 | |
9416 | # Check whether --with-debug-prefix-map was given. | |
9417 | if test "${with_debug_prefix_map+set}" = set; then : | |
9418 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
9419 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9420 | for debug_map in $withval; do | |
9421 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9422 | done | |
9423 | fi | |
9424 | else | |
9425 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
9426 | fi |
9427 | ||
8a6ee3ab JM |
9428 | |
9429 | ||
7f6ef0c0 PB |
9430 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9431 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9432 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9433 | # We want to ensure that TARGET libraries (which we know are built with | |
9434 | # gcc) are built with "-O2 -g", so include those options when setting | |
9435 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9436 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9437 | if test "x${is_cross_compiler}" = xyes; then |
9438 | CFLAGS_FOR_TARGET="-g -O2" | |
9439 | else | |
9440 | CFLAGS_FOR_TARGET=$CFLAGS | |
9441 | case " $CFLAGS " in | |
9442 | *" -O2 "*) ;; | |
9443 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9444 | esac | |
9445 | case " $CFLAGS " in | |
9446 | *" -g "* | *" -g3 "*) ;; | |
9447 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9448 | esac | |
9449 | fi | |
7f6ef0c0 PB |
9450 | fi |
9451 | ||
9452 | ||
9453 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9454 | if test "x${is_cross_compiler}" = xyes; then |
9455 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9456 | else | |
9457 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9458 | case " $CXXFLAGS " in | |
9459 | *" -O2 "*) ;; | |
9460 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9461 | esac | |
9462 | case " $CXXFLAGS " in | |
9463 | *" -g "* | *" -g3 "*) ;; | |
9464 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9465 | esac | |
9466 | fi | |
7f6ef0c0 PB |
9467 | fi |
9468 | ||
9469 | ||
91c1f14c DK |
9470 | |
9471 | ||
9e07f89d NN |
9472 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9473 | # the named directory are copied to $(tooldir)/sys-include. | |
9474 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9475 | if test x${is_cross_compiler} = xno ; then | |
9476 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9477 | exit 1 | |
9478 | fi | |
9479 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 9480 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 9481 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
9482 | fi |
9483 | fi | |
9484 | ||
9485 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9486 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9487 | # are permitted. | |
9488 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9489 | if test x${is_cross_compiler} = xno ; then | |
9490 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9491 | exit 1 | |
9492 | fi | |
9493 | if test x"${with_libs}" != xyes ; then | |
9494 | # Copy the libraries in reverse order, so that files in the first named | |
9495 | # library override files in subsequent libraries. | |
18f6b6ee | 9496 | x=${gcc_cv_tool_prefix} |
9e07f89d | 9497 | for l in ${with_libs}; do |
c6b750e1 | 9498 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
9499 | done |
9500 | fi | |
9501 | fi | |
9502 | ||
700d40ca | 9503 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
9504 | # |
9505 | # This is done by determining whether or not the appropriate directory | |
9506 | # is available, and by checking whether or not specific configurations | |
9507 | # have requested that this magic not happen. | |
c6b750e1 DJ |
9508 | # |
9509 | # The command line options always override the explicit settings in | |
136bb21f | 9510 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 9511 | # |
c6b750e1 | 9512 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 9513 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
9514 | # --without-gnu-ld options for the configure script. Similarly, if |
9515 | # the default is to use the included zlib and you don't want to do that, | |
9516 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
9517 | |
9518 | if test x${use_gnu_as} = x && | |
9519 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9520 | with_gnu_as=yes | |
9521 | extra_host_args="$extra_host_args --with-gnu-as" | |
9522 | fi | |
9523 | ||
9524 | if test x${use_gnu_ld} = x && | |
93f9b408 | 9525 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
9526 | with_gnu_ld=yes |
9527 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9528 | fi | |
9529 | ||
700d40ca ILT |
9530 | if test x${use_included_zlib} = x && |
9531 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9532 | : | |
9533 | else | |
9534 | with_system_zlib=yes | |
9535 | extra_host_args="$extra_host_args --with-system-zlib" | |
9536 | fi | |
9537 | ||
2429c060 PB |
9538 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9539 | # can detect this case. | |
9540 | ||
9541 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9542 | with_newlib=yes | |
9543 | extra_host_args="$extra_host_args --with-newlib" | |
9544 | fi | |
9545 | ||
9e07f89d NN |
9546 | # Handle ${copy_dirs} |
9547 | set fnord ${copy_dirs} | |
9548 | shift | |
9549 | while test $# != 0 ; do | |
9550 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9551 | : | |
9552 | else | |
9553 | echo Copying $1 to $2 | |
9554 | ||
9555 | # Use the install script to create the directory and all required | |
9556 | # parent directories. | |
9557 | if test -d $2 ; then | |
9558 | : | |
9559 | else | |
9560 | echo >config.temp | |
9561 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9562 | fi | |
9563 | ||
9564 | # Copy the directory, assuming we have tar. | |
9565 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9566 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9567 | ||
9568 | # It is the responsibility of the user to correctly adjust all | |
9569 | # symlinks. If somebody can figure out how to handle them correctly | |
9570 | # here, feel free to add the code. | |
9571 | ||
9572 | echo $1 > $2/COPIED | |
9573 | fi | |
9574 | shift; shift | |
9575 | done | |
9576 | ||
2429c060 PB |
9577 | # Determine a target-dependent exec_prefix that the installed |
9578 | # gcc will search in. Keep this list sorted by triplet, with | |
9579 | # the *-*-osname triplets last. | |
9580 | md_exec_prefix= | |
9581 | case "${target}" in | |
521ec477 | 9582 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
9583 | md_exec_prefix=/dev/env/DJDIR/bin |
9584 | ;; | |
2429c060 | 9585 | *-*-hpux* | \ |
2429c060 | 9586 | *-*-nto-qnx* | \ |
1f111696 | 9587 | *-*-solaris2*) |
2429c060 PB |
9588 | md_exec_prefix=/usr/ccs/bin |
9589 | ;; | |
9590 | esac | |
9591 | ||
a0da8069 NN |
9592 | extra_arflags_for_target= |
9593 | extra_nmflags_for_target= | |
9594 | extra_ranlibflags_for_target= | |
9595 | target_makefile_frag=/dev/null | |
9596 | case "${target}" in | |
77d7106f AM |
9597 | spu-*-*) |
9598 | target_makefile_frag="config/mt-spu" | |
9599 | ;; | |
a9d58c06 | 9600 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
9601 | target_makefile_frag="config/mt-sde" |
9602 | ;; | |
f3b1e08e RS |
9603 | mipsisa*-*-elfoabi*) |
9604 | target_makefile_frag="config/mt-mips-elfoabi" | |
9605 | ;; | |
e7c8859c RS |
9606 | mips*-*-*linux* | mips*-*-gnu*) |
9607 | target_makefile_frag="config/mt-mips-gnu" | |
9608 | ;; | |
d9e042ac SL |
9609 | nios2-*-elf*) |
9610 | target_makefile_frag="config/mt-nios2-elf" | |
9611 | ;; | |
bf41f30d NC |
9612 | *-*-linux-android*) |
9613 | target_makefile_frag="config/mt-android" | |
9614 | ;; | |
29383458 | 9615 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 9616 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
9617 | ;; |
9618 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 9619 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
9620 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9621 | # harmless if we're using GNU nm or ar. | |
9622 | extra_arflags_for_target=" -X32_64" | |
9623 | extra_nmflags_for_target=" -B -X32_64" | |
9624 | ;; | |
a0da8069 NN |
9625 | esac |
9626 | ||
9627 | alphaieee_frag=/dev/null | |
9628 | case $target in | |
9629 | alpha*-*-*) | |
9630 | # This just makes sure to use the -mieee option to build target libs. | |
9631 | # This should probably be set individually by each library. | |
9632 | alphaieee_frag="config/mt-alphaieee" | |
9633 | ;; | |
9634 | esac | |
9635 | ||
9636 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9637 | # the target libraries, similarly if it is not specified, use -Os | |
9638 | # on selected platforms. | |
9639 | ospace_frag=/dev/null | |
9640 | case "${enable_target_optspace}:${target}" in | |
9641 | yes:*) | |
9642 | ospace_frag="config/mt-ospace" | |
9643 | ;; | |
9644 | :d30v-*) | |
9645 | ospace_frag="config/mt-d30v" | |
9646 | ;; | |
16beab3d | 9647 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
9648 | ospace_frag="config/mt-ospace" |
9649 | ;; | |
9650 | no:* | :*) | |
9651 | ;; | |
9652 | *) | |
9653 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9654 | ;; | |
9655 | esac | |
9656 | ||
a0da8069 NN |
9657 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9658 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 9659 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
9660 | build_tooldir=${tooldir} |
9661 | ||
a0da8069 NN |
9662 | # Create a .gdbinit file which runs the one in srcdir |
9663 | # and tells GDB to look there for source files. | |
9664 | ||
9665 | if test -r ${srcdir}/.gdbinit ; then | |
9666 | case ${srcdir} in | |
9667 | .) ;; | |
9668 | *) cat > ./.gdbinit <<EOF | |
9669 | # ${NO_EDIT} | |
9670 | dir ${srcdir} | |
9671 | dir . | |
9672 | source ${srcdir}/.gdbinit | |
9673 | EOF | |
9674 | ;; | |
9675 | esac | |
9676 | fi | |
9677 | ||
a0da8069 NN |
9678 | # Make sure that the compiler is able to generate an executable. If it |
9679 | # can't, we are probably in trouble. We don't care whether we can run the | |
9680 | # executable--we might be using a cross compiler--we only care whether it | |
9681 | # can be created. At this point the main configure script has set CC. | |
9682 | we_are_ok=no | |
9683 | echo "int main () { return 0; }" > conftest.c | |
9684 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9685 | if test $? = 0 ; then | |
9686 | if test -s conftest || test -s conftest.exe ; then | |
9687 | we_are_ok=yes | |
9688 | fi | |
c6b750e1 | 9689 | fi |
a0da8069 NN |
9690 | case $we_are_ok in |
9691 | no) | |
9692 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9693 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9694 | rm -f conftest* | |
9695 | exit 1 | |
9696 | ;; | |
9697 | esac | |
9698 | rm -f conftest* | |
9699 | ||
3bbd2f8f | 9700 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
9701 | case "${host}" in |
9702 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 9703 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 9704 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
9705 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9706 | esac | |
9707 | ||
3bbd2f8f | 9708 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
9709 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
9710 | # built executables to PATH. | |
3bbd2f8f AL |
9711 | if test "$RPATH_ENVVAR" = PATH; then |
9712 | GCC_SHLIB_SUBDIR=/shlib | |
9713 | else | |
9714 | GCC_SHLIB_SUBDIR= | |
9715 | fi | |
9716 | ||
730af8ee | 9717 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9718 | case $enable_bootstrap in | |
9719 | yes) | |
9720 | bootstrap_suffix=bootstrap | |
9721 | BUILD_CONFIG=bootstrap-debug | |
9722 | ;; | |
9723 | no) | |
9724 | bootstrap_suffix=no-bootstrap | |
9725 | BUILD_CONFIG= | |
9726 | ;; | |
9727 | esac | |
9728 | ||
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9730 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9731 | ||
9732 | ||
9733 | # Check whether --with-build-config was given. | |
9734 | if test "${with_build_config+set}" = set; then : | |
9735 | withval=$with_build_config; case $with_build_config in | |
9736 | yes) with_build_config= ;; | |
9737 | no) with_build_config= BUILD_CONFIG= ;; | |
9738 | esac | |
9739 | fi | |
9740 | ||
9741 | ||
9742 | if test "x${with_build_config}" != x; then | |
9743 | BUILD_CONFIG=$with_build_config | |
9744 | else | |
9745 | case $BUILD_CONFIG in | |
9746 | bootstrap-debug) | |
9747 | if echo "int f (void) { return 0; }" > conftest.c && | |
9748 | ${CC} -c conftest.c && | |
9749 | mv conftest.o conftest.o.g0 && | |
9750 | ${CC} -c -g conftest.c && | |
9751 | mv conftest.o conftest.o.g && | |
9752 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9753 | : | |
9754 | else | |
9755 | BUILD_CONFIG= | |
9756 | fi | |
9757 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9758 | ;; | |
9759 | esac | |
9760 | fi | |
9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9762 | $as_echo "$BUILD_CONFIG" >&6; } | |
9763 | ||
9764 | ||
9765 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9767 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9768 | # Check whether --enable-vtable-verify was given. | |
9769 | if test "${enable_vtable_verify+set}" = set; then : | |
9770 | enableval=$enable_vtable_verify; case "$enableval" in | |
9771 | yes) enable_vtable_verify=yes ;; | |
9772 | no) enable_vtable_verify=no ;; | |
9773 | *) enable_vtable_verify=no;; | |
9774 | esac | |
9775 | else | |
9776 | enable_vtable_verify=no | |
9777 | fi | |
9778 | ||
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9780 | $as_echo "$enable_vtable_verify" >&6; } | |
9781 | ||
a0da8069 NN |
9782 | # Record target_configdirs and the configure arguments for target and |
9783 | # build configuration in Makefile. | |
9784 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 9785 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 9786 | bootstrap_fixincludes=no |
a0da8069 | 9787 | |
2aa2364a JR |
9788 | # If we are building libgomp, bootstrap it. |
9789 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9790 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9791 | fi | |
9792 | ||
730af8ee | 9793 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9794 | # or bootstrap-ubsan, bootstrap it. | |
9795 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9796 | case "$BUILD_CONFIG" in | |
228cf97d | 9797 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
730af8ee | 9798 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
201f096f | 9799 | bootstrap_fixincludes=yes |
730af8ee | 9800 | ;; |
9801 | esac | |
5eb08693 L |
9802 | fi |
9803 | ||
730af8ee | 9804 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9805 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9806 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
9807 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9808 | fi | |
9809 | ||
228cf97d AM |
9810 | # If we are building libatomic and the list of enabled languages includes the |
9811 | # D frontend, bootstrap it. | |
9812 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9813 | case ,${enable_languages}, in | |
9814 | *,d,*) | |
9815 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9816 | ;; | |
9817 | esac | |
9818 | fi | |
9819 | ||
a0da8069 NN |
9820 | # Determine whether gdb needs tk/tcl or not. |
9821 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9822 | # and in that case we want gdb to be built without tk. Ugh! | |
9823 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9824 | # so we should be able to put the 'maybe's in unconditionally and | |
9825 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9826 | # 100% sure that that's safe though. | |
c180f501 | 9827 | |
675c6968 | 9828 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
9829 | case "$enable_gdbtk" in |
9830 | no) | |
9831 | GDB_TK="" ;; | |
c180f501 AC |
9832 | yes) |
9833 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 9834 | *) |
c180f501 AC |
9835 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9836 | # distro. Eventually someone will fix this and move Insight, nee | |
9837 | # gdbtk to a separate directory. | |
9838 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9839 | GDB_TK="${gdb_tk}" | |
9840 | else | |
9841 | GDB_TK="" | |
9842 | fi | |
9843 | ;; | |
a0da8069 | 9844 | esac |
907be67c DJ |
9845 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9846 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 9847 | |
b6f9caee TT |
9848 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9849 | # else does, only include them if one of these is built. The Makefile | |
9850 | # provides the ordering, so it's enough here to add to the list. | |
9851 | case " ${configdirs} " in | |
9852 | *\ gdb\ *) | |
9853 | configdirs="${configdirs} gnulib gdbsupport" | |
9854 | ;; | |
9855 | *\ gdbserver\ *) | |
9856 | configdirs="${configdirs} gnulib gdbsupport" | |
9857 | ;; | |
5c9e84c2 MF |
9858 | *\ sim\ *) |
9859 | configdirs="${configdirs} gnulib" | |
9860 | ;; | |
b6f9caee | 9861 | esac |
73cc7272 | 9862 | |
6bd3dfaa | 9863 | # Strip out unwanted targets. |
dd12c3a8 NN |
9864 | |
9865 | # While at that, we remove Makefiles if we were started for recursive | |
9866 | # configuration, so that the top-level Makefile reconfigures them, | |
9867 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 9868 | |
06a51eac RW |
9869 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9870 | # but now we're fixing up the Makefile ourselves with the additional | |
9871 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9872 | # extrasub-{build,host,target} not because there is any reason to split | |
9873 | # the substitutions up that way, but only to remain below the limit of | |
9874 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
9875 | |
9876 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9877 | # configure will not warn you at all. | |
dd12c3a8 | 9878 | |
16b1ad29 RW |
9879 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9880 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9881 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 9882 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
9883 | ;; |
9884 | esac | |
9885 | ||
06a51eac | 9886 | extrasub_build= |
6a9cf61e | 9887 | for module in ${build_configdirs} ; do |
498d4a71 CF |
9888 | if test -z "${no_recursion}" \ |
9889 | && test -f ${build_subdir}/${module}/Makefile; then | |
9890 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9891 | rm -f ${build_subdir}/${module}/Makefile | |
9892 | fi | |
06a51eac | 9893 | extrasub_build="$extrasub_build |
498d4a71 CF |
9894 | /^@if build-$module\$/d |
9895 | /^@endif build-$module\$/d | |
4119873a | 9896 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 9897 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
9898 | /^@endif build-$module-$bootstrap_suffix\$/d |
9899 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 9900 | done |
06a51eac | 9901 | extrasub_host= |
498d4a71 | 9902 | for module in ${configdirs} ; do |
80911fe1 | 9903 | if test -z "${no_recursion}"; then |
8cf39b1b | 9904 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
9905 | if test -f ${file}; then |
9906 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9907 | rm -f ${file} | |
9908 | fi | |
9909 | done | |
498d4a71 | 9910 | fi |
201f096f | 9911 | case ${module},${bootstrap_fixincludes} in |
9912 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9913 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9914 | esac | |
06a51eac | 9915 | extrasub_host="$extrasub_host |
498d4a71 CF |
9916 | /^@if $module\$/d |
9917 | /^@endif $module\$/d | |
4119873a | 9918 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 9919 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
9920 | /^@endif $module-$host_bootstrap_suffix\$/d |
9921 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 9922 | done |
06a51eac | 9923 | extrasub_target= |
498d4a71 CF |
9924 | for module in ${target_configdirs} ; do |
9925 | if test -z "${no_recursion}" \ | |
9926 | && test -f ${target_subdir}/${module}/Makefile; then | |
9927 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9928 | rm -f ${target_subdir}/${module}/Makefile | |
9929 | fi | |
e8a5fa9c RW |
9930 | |
9931 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9932 | case $bootstrap_target_libs in | |
9933 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9934 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9935 | esac | |
9936 | ||
06a51eac | 9937 | extrasub_target="$extrasub_target |
498d4a71 CF |
9938 | /^@if target-$module\$/d |
9939 | /^@endif target-$module\$/d | |
4119873a | 9940 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 9941 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
9942 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9943 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
9944 | done |
9945 | ||
06a51eac RW |
9946 | # Do the final fixup along with target modules. |
9947 | extrasub_target="$extrasub_target | |
4119873a AO |
9948 | /^@if /,/^@endif /d |
9949 | /^@unless /d | |
9950 | /^@endunless /d" | |
a0da8069 | 9951 | |
af019bfd L |
9952 | if test "$enable_pgo_build" != "no"; then |
9953 | extrasub_build="$extrasub_build | |
9954 | /^@if pgo-build\$/d | |
9955 | /^@endif pgo-build\$/d" | |
9956 | fi | |
9957 | ||
a0da8069 NN |
9958 | # Create the serialization dependencies. This uses a temporary file. |
9959 | ||
81ecdfbb RW |
9960 | # Check whether --enable-serial-configure was given. |
9961 | if test "${enable_serial_configure+set}" = set; then : | |
9962 | enableval=$enable_serial_configure; | |
9963 | fi | |
e6bfb94a AO |
9964 | |
9965 | ||
1047cb91 DD |
9966 | case ${enable_serial_configure} in |
9967 | yes) | |
9968 | enable_serial_build_configure=yes | |
9969 | enable_serial_host_configure=yes | |
9970 | enable_serial_target_configure=yes | |
9971 | ;; | |
9972 | esac | |
9973 | ||
a0da8069 NN |
9974 | # These force 'configure's to be done one at a time, to avoid problems |
9975 | # with contention over a shared config.cache. | |
9976 | rm -f serdep.tmp | |
e6bfb94a | 9977 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 9978 | olditem= |
1047cb91 | 9979 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
9980 | for item in ${build_configdirs} ; do |
9981 | case ${olditem} in | |
9982 | "") ;; | |
e6bfb94a | 9983 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9984 | esac |
9985 | olditem=${item} | |
9986 | done | |
9987 | olditem= | |
1047cb91 | 9988 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
9989 | for item in ${configdirs} ; do |
9990 | case ${olditem} in | |
9991 | "") ;; | |
e6bfb94a | 9992 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9993 | esac |
9994 | olditem=${item} | |
9995 | done | |
9996 | olditem= | |
1047cb91 | 9997 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
9998 | for item in ${target_configdirs} ; do |
9999 | case ${olditem} in | |
10000 | "") ;; | |
e6bfb94a | 10001 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
10002 | esac |
10003 | olditem=${item} | |
10004 | done | |
10005 | serialization_dependencies=serdep.tmp | |
10006 | ||
10007 | ||
e6bfb94a | 10008 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 10009 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
10010 | # might not want to pass down to subconfigures. The exception being |
10011 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10012 | # files altogether, and which should be passed on to subconfigures. | |
10013 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10014 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 10015 | baseargs= |
65b4571a | 10016 | tbaseargs= |
c6b750e1 DJ |
10017 | keep_next=no |
10018 | skip_next=no | |
10019 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
10020 | for ac_arg |
10021 | do | |
c6b750e1 DJ |
10022 | if test X"$skip_next" = X"yes"; then |
10023 | skip_next=no | |
10024 | continue | |
10025 | fi | |
10026 | if test X"$keep_next" = X"yes"; then | |
10027 | case $ac_arg in | |
10028 | *\'*) | |
10029 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10030 | esac | |
10031 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10032 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
10033 | keep_next=no |
10034 | continue | |
10035 | fi | |
10036 | ||
10037 | # Handle separated arguments. Based on the logic generated by | |
10038 | # autoconf 2.59. | |
10039 | case $ac_arg in | |
10040 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10041 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10042 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10043 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10044 | separate_arg=no | |
10045 | ;; | |
10046 | -*) | |
10047 | separate_arg=yes | |
10048 | ;; | |
10049 | *) | |
10050 | separate_arg=no | |
10051 | ;; | |
10052 | esac | |
10053 | ||
65b4571a AO |
10054 | skip_targ=no |
10055 | case $ac_arg in | |
10056 | ||
10057 | --with-* | --without-*) | |
10058 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10059 | ||
10060 | case $libopt in | |
10061 | *[-_]include) | |
10062 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10063 | ;; | |
10064 | *[-_]lib) | |
10065 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10066 | ;; | |
10067 | *) | |
10068 | lib=$libopt | |
10069 | ;; | |
10070 | esac | |
10071 | ||
10072 | ||
10073 | case $lib in | |
1b6c0831 | 10074 | mpc | mpfr | gmp | isl) |
65b4571a AO |
10075 | # If we're processing --with-$lib, --with-$lib-include or |
10076 | # --with-$lib-lib, for one of the libs above, and target is | |
10077 | # different from host, don't pass the current argument to any | |
10078 | # target library's configure. | |
10079 | if test x$is_cross_compiler = xyes; then | |
10080 | skip_targ=yes | |
10081 | fi | |
10082 | ;; | |
10083 | esac | |
10084 | ;; | |
10085 | esac | |
10086 | ||
c6b750e1 | 10087 | case "$ac_arg" in |
30167e0a NC |
10088 | --cache-file=/dev/null | \ |
10089 | -cache-file=/dev/null ) | |
10090 | # Handled here to avoid the test to skip args below. | |
10091 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10092 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
10093 | # Assert: $separate_arg should always be no. |
10094 | keep_next=$separate_arg | |
10095 | ;; | |
c6b750e1 DJ |
10096 | --no*) |
10097 | continue | |
10098 | ;; | |
10099 | --c* | \ | |
10100 | --sr* | \ | |
10101 | --ho* | \ | |
10102 | --bu* | \ | |
10103 | --t* | \ | |
10104 | --program-* | \ | |
10105 | -cache_file* | \ | |
10106 | -srcdir* | \ | |
10107 | -host* | \ | |
10108 | -build* | \ | |
10109 | -target* | \ | |
10110 | -program-prefix* | \ | |
10111 | -program-suffix* | \ | |
10112 | -program-transform-name* ) | |
10113 | skip_next=$separate_arg | |
10114 | continue | |
10115 | ;; | |
10116 | -*) | |
10117 | # An option. Add it. | |
10118 | case $ac_arg in | |
10119 | *\'*) | |
10120 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10121 | esac | |
10122 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
10123 | if test X"$skip_targ" = Xno; then |
10124 | tbaseargs="$tbaseargs '$ac_arg'" | |
10125 | fi | |
c6b750e1 DJ |
10126 | keep_next=$separate_arg |
10127 | ;; | |
10128 | *) | |
10129 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10130 | # pass it down; let the Makefile handle this. | |
10131 | continue | |
10132 | ;; | |
10133 | esac | |
10134 | done | |
10135 | # Remove the initial space we just introduced and, as these will be | |
10136 | # expanded by make, quote '$'. | |
10137 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 10138 | |
f27d4f92 DJ |
10139 | # Add in --program-transform-name, after --program-prefix and |
10140 | # --program-suffix have been applied to it. Autoconf has already | |
10141 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10142 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 10143 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
10144 | # Also, because we want to override the logic in subdir configure scripts to |
10145 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10146 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10147 | ${program_transform_name} | |
10148 | EOF_SED | |
10149 | gcc_transform_name=`cat conftestsed.out` | |
10150 | rm -f conftestsed.out | |
10151 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 10152 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
10153 | if test "$silent" = yes; then |
10154 | baseargs="$baseargs --silent" | |
65b4571a | 10155 | tbaseargs="$tbaseargs --silent" |
2444379b | 10156 | fi |
e5f2f7d9 | 10157 | |
34a0f3cf | 10158 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 10159 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 10160 | |
e5f2f7d9 LM |
10161 | if test "$enable_year2038" = no; then |
10162 | baseargs="$baseargs --disable-year2038" | |
10163 | tbaseargs="$tbaseargs --disable-year2038" | |
10164 | fi | |
10165 | ||
4074d5f2 RW |
10166 | # Record and document user additions to sub configure arguments. |
10167 | ||
10168 | ||
10169 | ||
10170 | ||
a0da8069 NN |
10171 | # For the build-side libraries, we just need to pretend we're native, |
10172 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
10173 | # desired. We can't even use the same cache file for all build-side |
10174 | # libraries, as they're compiled differently; some with C, some with | |
10175 | # C++ or with different feature-enabling options. | |
10176 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
10177 | |
10178 | # For host modules, accept cache file option, or specification as blank. | |
10179 | case "${cache_file}" in | |
10180 | "") # empty | |
10181 | cache_file_option="" ;; | |
10182 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10183 | cache_file_option="--cache-file=${cache_file}" ;; | |
10184 | *) # relative path | |
10185 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10186 | esac | |
10187 | ||
82252c06 NN |
10188 | # Host dirs don't like to share a cache file either, horribly enough. |
10189 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 10190 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 10191 | |
65b4571a | 10192 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
10193 | |
10194 | # Passing a --with-cross-host argument lets the target libraries know | |
10195 | # whether they are being built with a cross-compiler or being built | |
10196 | # native. However, it would be better to use other mechanisms to make the | |
10197 | # sorts of decisions they want to make on this basis. Please consider | |
10198 | # this option to be deprecated. FIXME. | |
10199 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 10200 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
10201 | fi |
10202 | ||
afc0578d | 10203 | # Special user-friendly check for native x86_64-linux build, if |
10204 | # multilib is not explicitly enabled. | |
10205 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10206 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 10207 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 10208 | dev64=no |
10209 | echo "int main () { return 0; }" > conftest.c | |
10210 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10211 | if test $? = 0 ; then | |
10212 | if test -s conftest || test -s conftest.exe ; then | |
10213 | dev64=yes | |
10214 | fi | |
10215 | fi | |
10216 | rm -f conftest* | |
10217 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 10218 | 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 |
afc0578d | 10219 | fi |
10220 | ;; | |
10221 | esac | |
10222 | ||
938d2b74 RW |
10223 | # Default to --enable-multilib. |
10224 | if test x${enable_multilib} = x ; then | |
a0da8069 | 10225 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 10226 | fi |
a0da8069 NN |
10227 | |
10228 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10229 | # changed from the earlier setting of with_newlib. | |
10230 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10231 | target_configargs="--with-newlib ${target_configargs}" | |
10232 | fi | |
10233 | ||
95036d20 NN |
10234 | # Different target subdirs use different values of certain variables |
10235 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10236 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10237 | # it doesn't automatically accept command-line overrides of them. | |
10238 | # This means it's not safe for target subdirs to share a cache file, | |
10239 | # which is disgusting, but there you have it. Hopefully this can be | |
10240 | # fixed in future. It's still worthwhile to use a cache file for each | |
10241 | # directory. I think. | |
10242 | ||
ae380b45 MS |
10243 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10244 | # We need to pass --target, as newer autoconf's requires consistency | |
10245 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 10246 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 10247 | |
a0da8069 NN |
10248 | FLAGS_FOR_TARGET= |
10249 | case " $target_configdirs " in | |
10250 | *" newlib "*) | |
10251 | case " $target_configargs " in | |
10252 | *" --with-newlib "*) | |
10253 | case "$target" in | |
1f53ca9a | 10254 | *-cygwin*) |
6d94c122 | 10255 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 10256 | ;; |
a0da8069 NN |
10257 | esac |
10258 | ||
10259 | # If we're not building GCC, don't discard standard headers. | |
10260 | if test -d ${srcdir}/gcc; then | |
10261 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10262 | ||
10263 | if test "${build}" != "${host}"; then | |
10264 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10265 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10266 | # to it. This is right: we don't want to search that directory | |
10267 | # for binaries, but we want the header files in there, so add | |
10268 | # them explicitly. | |
e552509b | 10269 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
10270 | |
10271 | # Someone might think of using the pre-installed headers on | |
10272 | # Canadian crosses, in case the installed compiler is not fully | |
10273 | # compatible with the compiler being built. In this case, it | |
10274 | # would be better to flag an error than risking having | |
10275 | # incompatible object files being constructed. We can't | |
10276 | # guarantee that an error will be flagged, but let's hope the | |
10277 | # compiler will do it, when presented with incompatible header | |
10278 | # files. | |
10279 | fi | |
10280 | fi | |
10281 | ||
10282 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 10283 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
10284 | # Here host == target, so we don't need to build gcc, |
10285 | # so we don't want to discard standard headers. | |
10286 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10287 | ;; | |
10288 | *) | |
10289 | # If we're building newlib, use its generic headers last, but search | |
10290 | # for any libc-related directories first (so make it the last -B | |
10291 | # switch). | |
10292 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
10293 | |
10294 | # If we're building libgloss, find the startup file, simulator library | |
10295 | # and linker script. | |
10296 | case " $target_configdirs " in | |
10297 | *" libgloss "*) | |
10298 | # Look for startup file, simulator library and maybe linker script. | |
10299 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10300 | # Look for libnosys.a in case the target needs it. | |
10301 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10302 | # Most targets have the linker script in the source directory. | |
10303 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10304 | ;; | |
10305 | esac | |
a0da8069 NN |
10306 | ;; |
10307 | esac | |
10308 | ;; | |
10309 | esac | |
10310 | ;; | |
10311 | esac | |
1f53ca9a | 10312 | |
45055374 | 10313 | case "$target" in |
1f53ca9a AO |
10314 | x86_64-*mingw* | *-w64-mingw*) |
10315 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10316 | # however, use a symlink named 'mingw' in ${prefix} . | |
10317 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10318 | ;; | |
10319 | *-mingw*) | |
10320 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10321 | 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' | |
10322 | ;; | |
45055374 | 10323 | esac |
a0da8069 | 10324 | |
5fbad20a DD |
10325 | # Allow the user to override the flags for |
10326 | # our build compiler if desired. | |
c66487f8 NC |
10327 | if test x"${build}" = x"${host}" ; then |
10328 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
e472ec9f | 10329 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
c66487f8 NC |
10330 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10331 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10332 | fi | |
5fbad20a | 10333 | |
a0da8069 NN |
10334 | # On Canadian crosses, we'll be searching the right directories for |
10335 | # the previously-installed cross compiler, so don't bother to add | |
10336 | # flags for directories within the install tree of the compiler | |
10337 | # being built; programs in there won't even run. | |
10338 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10339 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 10340 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
10341 | fi |
10342 | ||
10343 | if test "x${use_gnu_ld}" = x && | |
10344 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10345 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 10346 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
10347 | fi |
10348 | ||
a481dbb7 DD |
10349 | # Search for other target-specific linker scripts and such. |
10350 | case "${target}" in | |
4e206d7e DB |
10351 | mep*) |
10352 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10353 | ;; | |
228cf97d AM |
10354 | # The VxWorks support for shared libraries is getting in |
10355 | # incrementally. Make sure it doesn't get activated implicitly: | |
10356 | *vxworks*) | |
10357 | if test "${enable_shared-unset}" = unset ; then | |
10358 | enable_shared=no | |
10359 | # So the build of libraries knows ... | |
10360 | target_configargs="${target_configargs} --disable-shared" | |
10361 | # So gcc knows ... | |
10362 | host_configargs="${host_configargs} --disable-shared" | |
10363 | fi | |
10364 | ;; | |
4e206d7e DB |
10365 | esac |
10366 | ||
a0da8069 | 10367 | # Makefile fragments. |
3e707e94 PB |
10368 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10369 | do | |
10370 | eval fragval=\$$frag | |
10371 | if test $fragval != /dev/null; then | |
10372 | eval $frag=${srcdir}/$fragval | |
10373 | fi | |
10374 | done | |
a0da8069 NN |
10375 | |
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | # Miscellanea: directories, flags, etc. | |
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
3bbd2f8f | 10388 | |
6a9cf61e | 10389 | # Build module lists & subconfigure args. |
a0da8069 NN |
10390 | |
10391 | ||
10392 | ||
be01d343 PB |
10393 | # Host module lists & subconfigure args. |
10394 | ||
10395 | ||
10396 | ||
911e63d0 | 10397 | |
be01d343 PB |
10398 | # Target module lists & subconfigure args. |
10399 | ||
10400 | ||
10401 | ||
10402 | # Build tools. | |
10403 | ||
10404 | ||
10405 | ||
1576798e PB |
10406 | |
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
e472ec9f | 10419 | |
228cf97d AM |
10420 | |
10421 | ||
10422 | ||
be01d343 PB |
10423 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10424 | # on the build machine. These are used if the Makefile can't locate these | |
10425 | # programs in objdir. | |
10426 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10427 | ||
10428 | for ac_prog in 'bison -y' byacc yacc | |
10429 | do | |
c6b750e1 | 10430 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10431 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10433 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10434 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 10435 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10436 | else |
10437 | if test -n "$YACC"; then | |
10438 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10439 | else | |
c6b750e1 DJ |
10440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10441 | for as_dir in $PATH | |
10442 | do | |
10443 | IFS=$as_save_IFS | |
10444 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10445 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10447 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 10448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10449 | break 2 |
10450 | fi | |
10451 | done | |
81ecdfbb RW |
10452 | done |
10453 | IFS=$as_save_IFS | |
c6b750e1 | 10454 | |
be01d343 PB |
10455 | fi |
10456 | fi | |
c6b750e1 | 10457 | YACC=$ac_cv_prog_YACC |
be01d343 | 10458 | if test -n "$YACC"; then |
81ecdfbb RW |
10459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10460 | $as_echo "$YACC" >&6; } | |
be01d343 | 10461 | else |
81ecdfbb RW |
10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10463 | $as_echo "no" >&6; } | |
be01d343 PB |
10464 | fi |
10465 | ||
81ecdfbb | 10466 | |
c6b750e1 | 10467 | test -n "$YACC" && break |
be01d343 PB |
10468 | done |
10469 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10470 | ||
10471 | case " $build_configdirs " in | |
10472 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
10473 | esac |
10474 | ||
10475 | for ac_prog in bison | |
10476 | do | |
c6b750e1 | 10477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10478 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10480 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10481 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 10482 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10483 | else |
10484 | if test -n "$BISON"; then | |
10485 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10486 | else | |
c6b750e1 DJ |
10487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10488 | for as_dir in $PATH | |
10489 | do | |
10490 | IFS=$as_save_IFS | |
10491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10492 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10493 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10494 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 10495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10496 | break 2 |
10497 | fi | |
10498 | done | |
81ecdfbb RW |
10499 | done |
10500 | IFS=$as_save_IFS | |
c6b750e1 | 10501 | |
be01d343 PB |
10502 | fi |
10503 | fi | |
c6b750e1 | 10504 | BISON=$ac_cv_prog_BISON |
be01d343 | 10505 | if test -n "$BISON"; then |
81ecdfbb RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10507 | $as_echo "$BISON" >&6; } | |
be01d343 | 10508 | else |
81ecdfbb RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10510 | $as_echo "no" >&6; } | |
be01d343 PB |
10511 | fi |
10512 | ||
81ecdfbb | 10513 | |
c6b750e1 | 10514 | test -n "$BISON" && break |
be01d343 PB |
10515 | done |
10516 | test -n "$BISON" || BISON="$MISSING bison" | |
10517 | ||
10518 | case " $build_configdirs " in | |
10519 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10520 | esac | |
10521 | ||
10522 | for ac_prog in gm4 gnum4 m4 | |
10523 | do | |
c6b750e1 | 10524 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10525 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10527 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10528 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 10529 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10530 | else |
10531 | if test -n "$M4"; then | |
10532 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10533 | else | |
c6b750e1 DJ |
10534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10535 | for as_dir in $PATH | |
10536 | do | |
10537 | IFS=$as_save_IFS | |
10538 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10539 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10541 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 10542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10543 | break 2 |
10544 | fi | |
10545 | done | |
81ecdfbb RW |
10546 | done |
10547 | IFS=$as_save_IFS | |
c6b750e1 | 10548 | |
be01d343 PB |
10549 | fi |
10550 | fi | |
c6b750e1 | 10551 | M4=$ac_cv_prog_M4 |
be01d343 | 10552 | if test -n "$M4"; then |
81ecdfbb RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10554 | $as_echo "$M4" >&6; } | |
be01d343 | 10555 | else |
81ecdfbb RW |
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10557 | $as_echo "no" >&6; } | |
be01d343 PB |
10558 | fi |
10559 | ||
81ecdfbb | 10560 | |
c6b750e1 | 10561 | test -n "$M4" && break |
be01d343 PB |
10562 | done |
10563 | test -n "$M4" || M4="$MISSING m4" | |
10564 | ||
10565 | case " $build_configdirs " in | |
10566 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10567 | esac | |
10568 | ||
10569 | for ac_prog in flex lex | |
10570 | do | |
c6b750e1 | 10571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10572 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10574 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10575 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 10576 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10577 | else |
10578 | if test -n "$LEX"; then | |
10579 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10580 | else | |
c6b750e1 DJ |
10581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10582 | for as_dir in $PATH | |
10583 | do | |
10584 | IFS=$as_save_IFS | |
10585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10586 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10588 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 10589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10590 | break 2 |
10591 | fi | |
10592 | done | |
81ecdfbb RW |
10593 | done |
10594 | IFS=$as_save_IFS | |
c6b750e1 | 10595 | |
be01d343 PB |
10596 | fi |
10597 | fi | |
c6b750e1 | 10598 | LEX=$ac_cv_prog_LEX |
be01d343 | 10599 | if test -n "$LEX"; then |
81ecdfbb RW |
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10601 | $as_echo "$LEX" >&6; } | |
be01d343 | 10602 | else |
81ecdfbb RW |
10603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10604 | $as_echo "no" >&6; } | |
be01d343 PB |
10605 | fi |
10606 | ||
81ecdfbb | 10607 | |
c6b750e1 | 10608 | test -n "$LEX" && break |
be01d343 PB |
10609 | done |
10610 | test -n "$LEX" || LEX="$MISSING flex" | |
10611 | ||
10612 | case " $build_configdirs " in | |
10613 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10614 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10615 | esac | |
10616 | ||
10617 | for ac_prog in flex | |
10618 | do | |
c6b750e1 | 10619 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10620 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10622 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10623 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 10624 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10625 | else |
10626 | if test -n "$FLEX"; then | |
10627 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10628 | else | |
c6b750e1 DJ |
10629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10630 | for as_dir in $PATH | |
10631 | do | |
10632 | IFS=$as_save_IFS | |
10633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10634 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10636 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 10637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10638 | break 2 |
10639 | fi | |
10640 | done | |
81ecdfbb RW |
10641 | done |
10642 | IFS=$as_save_IFS | |
c6b750e1 | 10643 | |
be01d343 PB |
10644 | fi |
10645 | fi | |
c6b750e1 | 10646 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 10647 | if test -n "$FLEX"; then |
81ecdfbb RW |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10649 | $as_echo "$FLEX" >&6; } | |
be01d343 | 10650 | else |
81ecdfbb RW |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10652 | $as_echo "no" >&6; } | |
be01d343 PB |
10653 | fi |
10654 | ||
81ecdfbb | 10655 | |
c6b750e1 | 10656 | test -n "$FLEX" && break |
be01d343 PB |
10657 | done |
10658 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10659 | ||
10660 | case " $build_configdirs " in | |
10661 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10662 | esac | |
10663 | ||
10664 | for ac_prog in makeinfo | |
10665 | do | |
c6b750e1 | 10666 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10667 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10669 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10670 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 10671 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10672 | else |
10673 | if test -n "$MAKEINFO"; then | |
10674 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10675 | else | |
c6b750e1 DJ |
10676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10677 | for as_dir in $PATH | |
10678 | do | |
10679 | IFS=$as_save_IFS | |
10680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10681 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10683 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 10684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10685 | break 2 |
10686 | fi | |
10687 | done | |
81ecdfbb RW |
10688 | done |
10689 | IFS=$as_save_IFS | |
c6b750e1 | 10690 | |
be01d343 PB |
10691 | fi |
10692 | fi | |
c6b750e1 | 10693 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 10694 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10696 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 10697 | else |
81ecdfbb RW |
10698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10699 | $as_echo "no" >&6; } | |
be01d343 PB |
10700 | fi |
10701 | ||
81ecdfbb | 10702 | |
c6b750e1 | 10703 | test -n "$MAKEINFO" && break |
be01d343 PB |
10704 | done |
10705 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10706 | ||
10707 | case " $build_configdirs " in | |
10708 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10709 | *) | |
10710 | ||
10ad8ef3 | 10711 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
10712 | # higher, else we use the "missing" dummy. |
10713 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 10714 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
10715 | : |
10716 | else | |
10717 | MAKEINFO="$MISSING makeinfo" | |
10718 | fi | |
10719 | ;; | |
10720 | ||
10721 | esac | |
a0da8069 | 10722 | |
be01d343 | 10723 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 10724 | |
be01d343 PB |
10725 | for ac_prog in expect |
10726 | do | |
c6b750e1 | 10727 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10728 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10730 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10731 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 10732 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10733 | else |
10734 | if test -n "$EXPECT"; then | |
10735 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10736 | else | |
c6b750e1 DJ |
10737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10738 | for as_dir in $PATH | |
10739 | do | |
10740 | IFS=$as_save_IFS | |
10741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10742 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10744 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 10745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10746 | break 2 |
10747 | fi | |
10748 | done | |
81ecdfbb RW |
10749 | done |
10750 | IFS=$as_save_IFS | |
c6b750e1 | 10751 | |
be01d343 PB |
10752 | fi |
10753 | fi | |
c6b750e1 | 10754 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 10755 | if test -n "$EXPECT"; then |
81ecdfbb RW |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10757 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 10758 | else |
81ecdfbb RW |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10760 | $as_echo "no" >&6; } | |
be01d343 | 10761 | fi |
a0da8069 | 10762 | |
81ecdfbb | 10763 | |
c6b750e1 | 10764 | test -n "$EXPECT" && break |
be01d343 PB |
10765 | done |
10766 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 10767 | |
be01d343 PB |
10768 | case " $configdirs " in |
10769 | *" expect "*) | |
10770 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10771 | ;; | |
10772 | esac | |
a0da8069 | 10773 | |
be01d343 PB |
10774 | for ac_prog in runtest |
10775 | do | |
c6b750e1 | 10776 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10777 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10779 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10780 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 10781 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10782 | else |
10783 | if test -n "$RUNTEST"; then | |
10784 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
10785 | else | |
c6b750e1 DJ |
10786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10787 | for as_dir in $PATH | |
10788 | do | |
10789 | IFS=$as_save_IFS | |
10790 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10791 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10793 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 10794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10795 | break 2 |
10796 | fi | |
10797 | done | |
81ecdfbb RW |
10798 | done |
10799 | IFS=$as_save_IFS | |
c6b750e1 | 10800 | |
be01d343 PB |
10801 | fi |
10802 | fi | |
c6b750e1 | 10803 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 10804 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
10805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10806 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 10807 | else |
81ecdfbb RW |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10809 | $as_echo "no" >&6; } | |
be01d343 | 10810 | fi |
a0da8069 | 10811 | |
81ecdfbb | 10812 | |
c6b750e1 | 10813 | test -n "$RUNTEST" && break |
be01d343 PB |
10814 | done |
10815 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 10816 | |
be01d343 PB |
10817 | case " $configdirs " in |
10818 | *" dejagnu "*) | |
6b89cc21 | 10819 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
10820 | ;; |
10821 | esac | |
a0da8069 NN |
10822 | |
10823 | ||
a0da8069 | 10824 | # Host tools. |
859789af AC |
10825 | ncn_tool_prefix= |
10826 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10827 | ncn_target_tool_prefix= | |
10828 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10829 | ||
9a819804 AO |
10830 | |
10831 | ||
10832 | if test -n "$AR"; then | |
10833 | ac_cv_prog_AR=$AR | |
10834 | elif test -n "$ac_cv_prog_AR"; then | |
10835 | AR=$ac_cv_prog_AR | |
10836 | fi | |
10837 | ||
10838 | if test -n "$ac_cv_prog_AR"; then | |
10839 | for ncn_progname in ar; do | |
10840 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10841 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10843 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10844 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10845 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10846 | else |
10847 | if test -n "$AR"; then | |
10848 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10849 | else | |
10850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10851 | for as_dir in $PATH | |
10852 | do | |
10853 | IFS=$as_save_IFS | |
10854 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10855 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10857 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10859 | break 2 |
10860 | fi | |
10861 | done | |
81ecdfbb RW |
10862 | done |
10863 | IFS=$as_save_IFS | |
9a819804 AO |
10864 | |
10865 | fi | |
10866 | fi | |
10867 | AR=$ac_cv_prog_AR | |
10868 | if test -n "$AR"; then | |
81ecdfbb RW |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10870 | $as_echo "$AR" >&6; } | |
9a819804 | 10871 | else |
81ecdfbb RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10873 | $as_echo "no" >&6; } | |
9a819804 AO |
10874 | fi |
10875 | ||
81ecdfbb | 10876 | |
9a819804 AO |
10877 | done |
10878 | fi | |
10879 | ||
10880 | for ncn_progname in ar; do | |
05cbd757 PB |
10881 | if test -n "$ncn_tool_prefix"; then |
10882 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10883 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10885 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10886 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10887 | $as_echo_n "(cached) " >&6 |
859789af AC |
10888 | else |
10889 | if test -n "$AR"; then | |
10890 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10891 | else | |
c6b750e1 DJ |
10892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10893 | for as_dir in $PATH | |
10894 | do | |
10895 | IFS=$as_save_IFS | |
10896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10897 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10899 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 10900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10901 | break 2 |
10902 | fi | |
10903 | done | |
81ecdfbb RW |
10904 | done |
10905 | IFS=$as_save_IFS | |
c6b750e1 | 10906 | |
859789af AC |
10907 | fi |
10908 | fi | |
c6b750e1 | 10909 | AR=$ac_cv_prog_AR |
859789af | 10910 | if test -n "$AR"; then |
81ecdfbb RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10912 | $as_echo "$AR" >&6; } | |
859789af | 10913 | else |
81ecdfbb RW |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10915 | $as_echo "no" >&6; } | |
859789af AC |
10916 | fi |
10917 | ||
81ecdfbb | 10918 | |
05cbd757 PB |
10919 | fi |
10920 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10922 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10924 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10925 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10926 | $as_echo_n "(cached) " >&6 |
859789af | 10927 | else |
05cbd757 PB |
10928 | if test -n "$AR"; then |
10929 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 10930 | else |
c6b750e1 DJ |
10931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10932 | for as_dir in $PATH | |
10933 | do | |
10934 | IFS=$as_save_IFS | |
10935 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10936 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10937 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10938 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10940 | break 2 |
10941 | fi | |
10942 | done | |
81ecdfbb RW |
10943 | done |
10944 | IFS=$as_save_IFS | |
c6b750e1 | 10945 | |
859789af AC |
10946 | fi |
10947 | fi | |
c6b750e1 | 10948 | AR=$ac_cv_prog_AR |
05cbd757 | 10949 | if test -n "$AR"; then |
81ecdfbb RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10951 | $as_echo "$AR" >&6; } | |
859789af | 10952 | else |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10954 | $as_echo "no" >&6; } | |
859789af | 10955 | fi |
c6b750e1 | 10956 | |
81ecdfbb | 10957 | |
05cbd757 PB |
10958 | fi |
10959 | test -n "$ac_cv_prog_AR" && break | |
10960 | done | |
10961 | ||
10962 | if test -z "$ac_cv_prog_AR" ; then | |
10963 | set dummy ar | |
10964 | if test $build = $host ; then | |
10965 | AR="$2" | |
859789af | 10966 | else |
05cbd757 | 10967 | AR="${ncn_tool_prefix}$2" |
859789af | 10968 | fi |
859789af AC |
10969 | fi |
10970 | ||
9a819804 AO |
10971 | |
10972 | ||
10973 | if test -n "$AS"; then | |
10974 | ac_cv_prog_AS=$AS | |
10975 | elif test -n "$ac_cv_prog_AS"; then | |
10976 | AS=$ac_cv_prog_AS | |
10977 | fi | |
10978 | ||
10979 | if test -n "$ac_cv_prog_AS"; then | |
10980 | for ncn_progname in as; do | |
10981 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10982 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10984 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10985 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 10986 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10987 | else |
10988 | if test -n "$AS"; then | |
10989 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10990 | else | |
10991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10992 | for as_dir in $PATH | |
10993 | do | |
10994 | IFS=$as_save_IFS | |
10995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10996 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10998 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 10999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11000 | break 2 |
11001 | fi | |
11002 | done | |
81ecdfbb RW |
11003 | done |
11004 | IFS=$as_save_IFS | |
9a819804 AO |
11005 | |
11006 | fi | |
11007 | fi | |
11008 | AS=$ac_cv_prog_AS | |
11009 | if test -n "$AS"; then | |
81ecdfbb RW |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11011 | $as_echo "$AS" >&6; } | |
9a819804 | 11012 | else |
81ecdfbb RW |
11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11014 | $as_echo "no" >&6; } | |
9a819804 AO |
11015 | fi |
11016 | ||
81ecdfbb | 11017 | |
9a819804 AO |
11018 | done |
11019 | fi | |
11020 | ||
11021 | for ncn_progname in as; do | |
05cbd757 PB |
11022 | if test -n "$ncn_tool_prefix"; then |
11023 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11024 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11026 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11027 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11028 | $as_echo_n "(cached) " >&6 |
859789af AC |
11029 | else |
11030 | if test -n "$AS"; then | |
11031 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
11032 | else |
11033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11034 | for as_dir in $PATH | |
11035 | do | |
11036 | IFS=$as_save_IFS | |
11037 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11038 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11040 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11042 | break 2 |
11043 | fi | |
11044 | done | |
81ecdfbb RW |
11045 | done |
11046 | IFS=$as_save_IFS | |
c6b750e1 | 11047 | |
859789af AC |
11048 | fi |
11049 | fi | |
c6b750e1 | 11050 | AS=$ac_cv_prog_AS |
859789af | 11051 | if test -n "$AS"; then |
81ecdfbb RW |
11052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11053 | $as_echo "$AS" >&6; } | |
859789af | 11054 | else |
81ecdfbb RW |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11056 | $as_echo "no" >&6; } | |
859789af AC |
11057 | fi |
11058 | ||
81ecdfbb | 11059 | |
05cbd757 PB |
11060 | fi |
11061 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11062 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11063 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11065 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11066 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11067 | $as_echo_n "(cached) " >&6 |
859789af | 11068 | else |
05cbd757 PB |
11069 | if test -n "$AS"; then |
11070 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 11071 | else |
c6b750e1 DJ |
11072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11073 | for as_dir in $PATH | |
11074 | do | |
11075 | IFS=$as_save_IFS | |
11076 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11077 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11079 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 11080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11081 | break 2 |
11082 | fi | |
11083 | done | |
81ecdfbb RW |
11084 | done |
11085 | IFS=$as_save_IFS | |
c6b750e1 | 11086 | |
859789af AC |
11087 | fi |
11088 | fi | |
c6b750e1 | 11089 | AS=$ac_cv_prog_AS |
05cbd757 | 11090 | if test -n "$AS"; then |
81ecdfbb RW |
11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11092 | $as_echo "$AS" >&6; } | |
859789af | 11093 | else |
81ecdfbb RW |
11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11095 | $as_echo "no" >&6; } | |
859789af | 11096 | fi |
c6b750e1 | 11097 | |
81ecdfbb | 11098 | |
05cbd757 PB |
11099 | fi |
11100 | test -n "$ac_cv_prog_AS" && break | |
11101 | done | |
11102 | ||
11103 | if test -z "$ac_cv_prog_AS" ; then | |
11104 | set dummy as | |
11105 | if test $build = $host ; then | |
11106 | AS="$2" | |
859789af | 11107 | else |
05cbd757 | 11108 | AS="${ncn_tool_prefix}$2" |
859789af | 11109 | fi |
859789af AC |
11110 | fi |
11111 | ||
9a819804 AO |
11112 | |
11113 | ||
11114 | if test -n "$DLLTOOL"; then | |
11115 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11116 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11117 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11118 | fi | |
11119 | ||
11120 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11121 | for ncn_progname in dlltool; do | |
11122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11123 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11125 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11126 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11127 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11128 | else |
11129 | if test -n "$DLLTOOL"; then | |
11130 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11131 | else | |
11132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11133 | for as_dir in $PATH | |
11134 | do | |
11135 | IFS=$as_save_IFS | |
11136 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11137 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11139 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11141 | break 2 |
11142 | fi | |
11143 | done | |
81ecdfbb RW |
11144 | done |
11145 | IFS=$as_save_IFS | |
9a819804 AO |
11146 | |
11147 | fi | |
11148 | fi | |
11149 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11150 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11152 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 11153 | else |
81ecdfbb RW |
11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11155 | $as_echo "no" >&6; } | |
9a819804 AO |
11156 | fi |
11157 | ||
81ecdfbb | 11158 | |
9a819804 AO |
11159 | done |
11160 | fi | |
11161 | ||
11162 | for ncn_progname in dlltool; do | |
05cbd757 PB |
11163 | if test -n "$ncn_tool_prefix"; then |
11164 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11165 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11167 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11168 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11169 | $as_echo_n "(cached) " >&6 |
859789af AC |
11170 | else |
11171 | if test -n "$DLLTOOL"; then | |
11172 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11173 | else | |
c6b750e1 DJ |
11174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11175 | for as_dir in $PATH | |
11176 | do | |
11177 | IFS=$as_save_IFS | |
11178 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11179 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11181 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11183 | break 2 |
11184 | fi | |
11185 | done | |
81ecdfbb RW |
11186 | done |
11187 | IFS=$as_save_IFS | |
c6b750e1 | 11188 | |
859789af AC |
11189 | fi |
11190 | fi | |
c6b750e1 | 11191 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 11192 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11194 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11195 | else |
81ecdfbb RW |
11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11197 | $as_echo "no" >&6; } | |
859789af AC |
11198 | fi |
11199 | ||
81ecdfbb | 11200 | |
05cbd757 PB |
11201 | fi |
11202 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11203 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11204 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11206 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11207 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11208 | $as_echo_n "(cached) " >&6 |
859789af | 11209 | else |
05cbd757 PB |
11210 | if test -n "$DLLTOOL"; then |
11211 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 11212 | else |
c6b750e1 DJ |
11213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11214 | for as_dir in $PATH | |
11215 | do | |
11216 | IFS=$as_save_IFS | |
11217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11218 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11220 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11222 | break 2 |
11223 | fi | |
11224 | done | |
81ecdfbb RW |
11225 | done |
11226 | IFS=$as_save_IFS | |
c6b750e1 | 11227 | |
859789af AC |
11228 | fi |
11229 | fi | |
c6b750e1 | 11230 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 11231 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11233 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11234 | else |
81ecdfbb RW |
11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11236 | $as_echo "no" >&6; } | |
859789af | 11237 | fi |
c6b750e1 | 11238 | |
81ecdfbb | 11239 | |
05cbd757 PB |
11240 | fi |
11241 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11242 | done | |
11243 | ||
11244 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11245 | set dummy dlltool | |
11246 | if test $build = $host ; then | |
11247 | DLLTOOL="$2" | |
859789af | 11248 | else |
05cbd757 | 11249 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 11250 | fi |
859789af AC |
11251 | fi |
11252 | ||
9a819804 AO |
11253 | |
11254 | ||
228cf97d AM |
11255 | if test -n "$DSYMUTIL"; then |
11256 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11257 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11258 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11259 | fi | |
11260 | ||
11261 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11262 | for ncn_progname in dsymutil; do | |
11263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11264 | set dummy ${ncn_progname}; ac_word=$2 | |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11266 | $as_echo_n "checking for $ac_word... " >&6; } | |
11267 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11268 | $as_echo_n "(cached) " >&6 | |
11269 | else | |
11270 | if test -n "$DSYMUTIL"; then | |
11271 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11272 | else | |
11273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11274 | for as_dir in $PATH | |
11275 | do | |
11276 | IFS=$as_save_IFS | |
11277 | test -z "$as_dir" && as_dir=. | |
11278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11280 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11282 | break 2 | |
11283 | fi | |
11284 | done | |
11285 | done | |
11286 | IFS=$as_save_IFS | |
11287 | ||
11288 | fi | |
11289 | fi | |
11290 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11291 | if test -n "$DSYMUTIL"; then | |
11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11293 | $as_echo "$DSYMUTIL" >&6; } | |
11294 | else | |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11296 | $as_echo "no" >&6; } | |
11297 | fi | |
11298 | ||
11299 | ||
11300 | done | |
11301 | fi | |
11302 | ||
11303 | for ncn_progname in dsymutil; do | |
11304 | if test -n "$ncn_tool_prefix"; then | |
11305 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11306 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11308 | $as_echo_n "checking for $ac_word... " >&6; } | |
11309 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11310 | $as_echo_n "(cached) " >&6 | |
11311 | else | |
11312 | if test -n "$DSYMUTIL"; then | |
11313 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11314 | else | |
11315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11316 | for as_dir in $PATH | |
11317 | do | |
11318 | IFS=$as_save_IFS | |
11319 | test -z "$as_dir" && as_dir=. | |
11320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11322 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11324 | break 2 | |
11325 | fi | |
11326 | done | |
11327 | done | |
11328 | IFS=$as_save_IFS | |
11329 | ||
11330 | fi | |
11331 | fi | |
11332 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11333 | if test -n "$DSYMUTIL"; then | |
11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11335 | $as_echo "$DSYMUTIL" >&6; } | |
11336 | else | |
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11338 | $as_echo "no" >&6; } | |
11339 | fi | |
11340 | ||
11341 | ||
11342 | fi | |
11343 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11344 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11345 | set dummy ${ncn_progname}; ac_word=$2 | |
11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11347 | $as_echo_n "checking for $ac_word... " >&6; } | |
11348 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11349 | $as_echo_n "(cached) " >&6 | |
11350 | else | |
11351 | if test -n "$DSYMUTIL"; then | |
11352 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11353 | else | |
11354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11355 | for as_dir in $PATH | |
11356 | do | |
11357 | IFS=$as_save_IFS | |
11358 | test -z "$as_dir" && as_dir=. | |
11359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11361 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11363 | break 2 | |
11364 | fi | |
11365 | done | |
11366 | done | |
11367 | IFS=$as_save_IFS | |
11368 | ||
11369 | fi | |
11370 | fi | |
11371 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11372 | if test -n "$DSYMUTIL"; then | |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11374 | $as_echo "$DSYMUTIL" >&6; } | |
11375 | else | |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11377 | $as_echo "no" >&6; } | |
11378 | fi | |
11379 | ||
11380 | ||
11381 | fi | |
11382 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11383 | done | |
11384 | ||
11385 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11386 | set dummy dsymutil | |
11387 | if test $build = $host ; then | |
11388 | DSYMUTIL="$2" | |
11389 | else | |
11390 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11391 | fi | |
11392 | fi | |
11393 | ||
11394 | ||
11395 | ||
9a819804 AO |
11396 | if test -n "$LD"; then |
11397 | ac_cv_prog_LD=$LD | |
11398 | elif test -n "$ac_cv_prog_LD"; then | |
11399 | LD=$ac_cv_prog_LD | |
11400 | fi | |
11401 | ||
11402 | if test -n "$ac_cv_prog_LD"; then | |
11403 | for ncn_progname in ld; do | |
11404 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11405 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11407 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11408 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11409 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11410 | else |
11411 | if test -n "$LD"; then | |
11412 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11413 | else | |
11414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11415 | for as_dir in $PATH | |
11416 | do | |
11417 | IFS=$as_save_IFS | |
11418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11419 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11420 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11421 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11423 | break 2 |
11424 | fi | |
11425 | done | |
81ecdfbb RW |
11426 | done |
11427 | IFS=$as_save_IFS | |
9a819804 AO |
11428 | |
11429 | fi | |
11430 | fi | |
11431 | LD=$ac_cv_prog_LD | |
11432 | if test -n "$LD"; then | |
81ecdfbb RW |
11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11434 | $as_echo "$LD" >&6; } | |
9a819804 | 11435 | else |
81ecdfbb RW |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11437 | $as_echo "no" >&6; } | |
9a819804 AO |
11438 | fi |
11439 | ||
81ecdfbb | 11440 | |
9a819804 AO |
11441 | done |
11442 | fi | |
11443 | ||
11444 | for ncn_progname in ld; do | |
05cbd757 PB |
11445 | if test -n "$ncn_tool_prefix"; then |
11446 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11447 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11449 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11450 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11451 | $as_echo_n "(cached) " >&6 |
859789af AC |
11452 | else |
11453 | if test -n "$LD"; then | |
11454 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11455 | else | |
c6b750e1 DJ |
11456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11457 | for as_dir in $PATH | |
11458 | do | |
11459 | IFS=$as_save_IFS | |
11460 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11461 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11463 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11465 | break 2 |
11466 | fi | |
11467 | done | |
81ecdfbb RW |
11468 | done |
11469 | IFS=$as_save_IFS | |
c6b750e1 | 11470 | |
859789af AC |
11471 | fi |
11472 | fi | |
c6b750e1 | 11473 | LD=$ac_cv_prog_LD |
859789af | 11474 | if test -n "$LD"; then |
81ecdfbb RW |
11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11476 | $as_echo "$LD" >&6; } | |
859789af | 11477 | else |
81ecdfbb RW |
11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11479 | $as_echo "no" >&6; } | |
859789af AC |
11480 | fi |
11481 | ||
81ecdfbb | 11482 | |
05cbd757 PB |
11483 | fi |
11484 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11485 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11486 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11488 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11489 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11490 | $as_echo_n "(cached) " >&6 |
859789af | 11491 | else |
05cbd757 PB |
11492 | if test -n "$LD"; then |
11493 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 11494 | else |
c6b750e1 DJ |
11495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11496 | for as_dir in $PATH | |
11497 | do | |
11498 | IFS=$as_save_IFS | |
11499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11500 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11502 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11504 | break 2 |
11505 | fi | |
11506 | done | |
81ecdfbb RW |
11507 | done |
11508 | IFS=$as_save_IFS | |
c6b750e1 | 11509 | |
859789af AC |
11510 | fi |
11511 | fi | |
c6b750e1 | 11512 | LD=$ac_cv_prog_LD |
05cbd757 | 11513 | if test -n "$LD"; then |
81ecdfbb RW |
11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11515 | $as_echo "$LD" >&6; } | |
859789af | 11516 | else |
81ecdfbb RW |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11518 | $as_echo "no" >&6; } | |
859789af | 11519 | fi |
c6b750e1 | 11520 | |
81ecdfbb | 11521 | |
05cbd757 PB |
11522 | fi |
11523 | test -n "$ac_cv_prog_LD" && break | |
11524 | done | |
11525 | ||
11526 | if test -z "$ac_cv_prog_LD" ; then | |
11527 | set dummy ld | |
11528 | if test $build = $host ; then | |
11529 | LD="$2" | |
859789af | 11530 | else |
05cbd757 | 11531 | LD="${ncn_tool_prefix}$2" |
859789af | 11532 | fi |
859789af AC |
11533 | fi |
11534 | ||
9a819804 AO |
11535 | |
11536 | ||
11537 | if test -n "$LIPO"; then | |
11538 | ac_cv_prog_LIPO=$LIPO | |
11539 | elif test -n "$ac_cv_prog_LIPO"; then | |
11540 | LIPO=$ac_cv_prog_LIPO | |
11541 | fi | |
11542 | ||
11543 | if test -n "$ac_cv_prog_LIPO"; then | |
11544 | for ncn_progname in lipo; do | |
11545 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11546 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11548 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11549 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11550 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11551 | else |
11552 | if test -n "$LIPO"; then | |
11553 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11554 | else | |
11555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11556 | for as_dir in $PATH | |
11557 | do | |
11558 | IFS=$as_save_IFS | |
11559 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11560 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11562 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11564 | break 2 |
11565 | fi | |
11566 | done | |
81ecdfbb RW |
11567 | done |
11568 | IFS=$as_save_IFS | |
9a819804 AO |
11569 | |
11570 | fi | |
11571 | fi | |
11572 | LIPO=$ac_cv_prog_LIPO | |
11573 | if test -n "$LIPO"; then | |
81ecdfbb RW |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11575 | $as_echo "$LIPO" >&6; } | |
9a819804 | 11576 | else |
81ecdfbb RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11578 | $as_echo "no" >&6; } | |
9a819804 AO |
11579 | fi |
11580 | ||
81ecdfbb | 11581 | |
9a819804 AO |
11582 | done |
11583 | fi | |
11584 | ||
11585 | for ncn_progname in lipo; do | |
be01d343 PB |
11586 | if test -n "$ncn_tool_prefix"; then |
11587 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11588 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11590 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11591 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11592 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11593 | else |
11594 | if test -n "$LIPO"; then | |
11595 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11596 | else | |
c6b750e1 DJ |
11597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11598 | for as_dir in $PATH | |
11599 | do | |
11600 | IFS=$as_save_IFS | |
11601 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11602 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11604 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11606 | break 2 |
11607 | fi | |
11608 | done | |
81ecdfbb RW |
11609 | done |
11610 | IFS=$as_save_IFS | |
c6b750e1 | 11611 | |
be01d343 PB |
11612 | fi |
11613 | fi | |
c6b750e1 | 11614 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11615 | if test -n "$LIPO"; then |
81ecdfbb RW |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11617 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11618 | else |
81ecdfbb RW |
11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11620 | $as_echo "no" >&6; } | |
be01d343 PB |
11621 | fi |
11622 | ||
81ecdfbb | 11623 | |
be01d343 PB |
11624 | fi |
11625 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11626 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11627 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11629 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11630 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11631 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11632 | else |
11633 | if test -n "$LIPO"; then | |
11634 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11635 | else | |
c6b750e1 DJ |
11636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11637 | for as_dir in $PATH | |
11638 | do | |
11639 | IFS=$as_save_IFS | |
11640 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11641 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11642 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11643 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11645 | break 2 |
11646 | fi | |
11647 | done | |
81ecdfbb RW |
11648 | done |
11649 | IFS=$as_save_IFS | |
c6b750e1 | 11650 | |
be01d343 PB |
11651 | fi |
11652 | fi | |
c6b750e1 | 11653 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11654 | if test -n "$LIPO"; then |
81ecdfbb RW |
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11656 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11657 | else |
81ecdfbb RW |
11658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11659 | $as_echo "no" >&6; } | |
be01d343 | 11660 | fi |
c6b750e1 | 11661 | |
81ecdfbb | 11662 | |
be01d343 PB |
11663 | fi |
11664 | test -n "$ac_cv_prog_LIPO" && break | |
11665 | done | |
11666 | ||
11667 | if test -z "$ac_cv_prog_LIPO" ; then | |
11668 | set dummy lipo | |
11669 | if test $build = $host ; then | |
11670 | LIPO="$2" | |
11671 | else | |
11672 | LIPO="${ncn_tool_prefix}$2" | |
11673 | fi | |
11674 | fi | |
11675 | ||
9a819804 AO |
11676 | |
11677 | ||
11678 | if test -n "$NM"; then | |
11679 | ac_cv_prog_NM=$NM | |
11680 | elif test -n "$ac_cv_prog_NM"; then | |
11681 | NM=$ac_cv_prog_NM | |
11682 | fi | |
11683 | ||
11684 | if test -n "$ac_cv_prog_NM"; then | |
11685 | for ncn_progname in nm; do | |
11686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11687 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11689 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11690 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11691 | $as_echo_n "(cached) " >&6 |
859789af AC |
11692 | else |
11693 | if test -n "$NM"; then | |
11694 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11695 | else | |
c6b750e1 DJ |
11696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11697 | for as_dir in $PATH | |
11698 | do | |
11699 | IFS=$as_save_IFS | |
11700 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11701 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11703 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11705 | break 2 |
11706 | fi | |
11707 | done | |
81ecdfbb RW |
11708 | done |
11709 | IFS=$as_save_IFS | |
c6b750e1 | 11710 | |
859789af AC |
11711 | fi |
11712 | fi | |
c6b750e1 | 11713 | NM=$ac_cv_prog_NM |
859789af | 11714 | if test -n "$NM"; then |
81ecdfbb RW |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11716 | $as_echo "$NM" >&6; } | |
859789af | 11717 | else |
81ecdfbb RW |
11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11719 | $as_echo "no" >&6; } | |
859789af AC |
11720 | fi |
11721 | ||
81ecdfbb | 11722 | |
9a819804 AO |
11723 | done |
11724 | fi | |
11725 | ||
11726 | for ncn_progname in nm; do | |
11727 | if test -n "$ncn_tool_prefix"; then | |
11728 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11729 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11731 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11732 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11733 | $as_echo_n "(cached) " >&6 |
859789af | 11734 | else |
05cbd757 PB |
11735 | if test -n "$NM"; then |
11736 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 11737 | else |
c6b750e1 DJ |
11738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11739 | for as_dir in $PATH | |
11740 | do | |
11741 | IFS=$as_save_IFS | |
11742 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11745 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11747 | break 2 |
11748 | fi | |
11749 | done | |
81ecdfbb RW |
11750 | done |
11751 | IFS=$as_save_IFS | |
c6b750e1 | 11752 | |
859789af AC |
11753 | fi |
11754 | fi | |
c6b750e1 | 11755 | NM=$ac_cv_prog_NM |
05cbd757 | 11756 | if test -n "$NM"; then |
81ecdfbb RW |
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11758 | $as_echo "$NM" >&6; } | |
859789af | 11759 | else |
81ecdfbb RW |
11760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11761 | $as_echo "no" >&6; } | |
859789af | 11762 | fi |
c6b750e1 | 11763 | |
81ecdfbb | 11764 | |
05cbd757 | 11765 | fi |
9a819804 AO |
11766 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11767 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11768 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11770 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11771 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11772 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11773 | else |
11774 | if test -n "$NM"; then | |
11775 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11776 | else | |
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=. | |
81ecdfbb | 11782 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11784 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11786 | break 2 |
11787 | fi | |
11788 | done | |
81ecdfbb RW |
11789 | done |
11790 | IFS=$as_save_IFS | |
9a819804 AO |
11791 | |
11792 | fi | |
11793 | fi | |
11794 | NM=$ac_cv_prog_NM | |
11795 | if test -n "$NM"; then | |
81ecdfbb RW |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11797 | $as_echo "$NM" >&6; } | |
9a819804 | 11798 | else |
81ecdfbb RW |
11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11800 | $as_echo "no" >&6; } | |
9a819804 AO |
11801 | fi |
11802 | ||
81ecdfbb | 11803 | |
9a819804 AO |
11804 | fi |
11805 | test -n "$ac_cv_prog_NM" && break | |
11806 | done | |
11807 | ||
11808 | if test -z "$ac_cv_prog_NM" ; then | |
11809 | set dummy nm | |
11810 | if test $build = $host ; then | |
11811 | NM="$2" | |
11812 | else | |
11813 | NM="${ncn_tool_prefix}$2" | |
11814 | fi | |
11815 | fi | |
11816 | ||
11817 | ||
11818 | ||
11819 | if test -n "$RANLIB"; then | |
11820 | ac_cv_prog_RANLIB=$RANLIB | |
11821 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11822 | RANLIB=$ac_cv_prog_RANLIB | |
11823 | fi | |
11824 | ||
11825 | if test -n "$ac_cv_prog_RANLIB"; then | |
11826 | for ncn_progname in ranlib; do | |
11827 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11828 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11830 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11831 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11832 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11833 | else |
11834 | if test -n "$RANLIB"; then | |
11835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11836 | else | |
11837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11838 | for as_dir in $PATH | |
11839 | do | |
11840 | IFS=$as_save_IFS | |
11841 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11842 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11843 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11844 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11845 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11846 | break 2 |
11847 | fi | |
11848 | done | |
81ecdfbb RW |
11849 | done |
11850 | IFS=$as_save_IFS | |
9a819804 AO |
11851 | |
11852 | fi | |
11853 | fi | |
11854 | RANLIB=$ac_cv_prog_RANLIB | |
11855 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11857 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 11858 | else |
81ecdfbb RW |
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11860 | $as_echo "no" >&6; } | |
9a819804 AO |
11861 | fi |
11862 | ||
81ecdfbb | 11863 | |
9a819804 AO |
11864 | done |
11865 | fi | |
859789af | 11866 | |
9a819804 | 11867 | for ncn_progname in ranlib; do |
05cbd757 PB |
11868 | if test -n "$ncn_tool_prefix"; then |
11869 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11870 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11872 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11873 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11874 | $as_echo_n "(cached) " >&6 |
859789af AC |
11875 | else |
11876 | if test -n "$RANLIB"; then | |
11877 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11878 | else | |
c6b750e1 DJ |
11879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11880 | for as_dir in $PATH | |
11881 | do | |
11882 | IFS=$as_save_IFS | |
11883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11884 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11886 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11888 | break 2 |
11889 | fi | |
11890 | done | |
81ecdfbb RW |
11891 | done |
11892 | IFS=$as_save_IFS | |
c6b750e1 | 11893 | |
859789af AC |
11894 | fi |
11895 | fi | |
c6b750e1 | 11896 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 11897 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11899 | $as_echo "$RANLIB" >&6; } | |
859789af | 11900 | else |
81ecdfbb RW |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11902 | $as_echo "no" >&6; } | |
859789af AC |
11903 | fi |
11904 | ||
81ecdfbb | 11905 | |
05cbd757 PB |
11906 | fi |
11907 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11908 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11909 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11911 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11912 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11913 | $as_echo_n "(cached) " >&6 |
859789af | 11914 | else |
05cbd757 PB |
11915 | if test -n "$RANLIB"; then |
11916 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 11917 | else |
c6b750e1 DJ |
11918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11919 | for as_dir in $PATH | |
11920 | do | |
11921 | IFS=$as_save_IFS | |
11922 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11923 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11925 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11927 | break 2 |
11928 | fi | |
11929 | done | |
81ecdfbb RW |
11930 | done |
11931 | IFS=$as_save_IFS | |
c6b750e1 | 11932 | |
859789af AC |
11933 | fi |
11934 | fi | |
c6b750e1 | 11935 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 11936 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11938 | $as_echo "$RANLIB" >&6; } | |
859789af | 11939 | else |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11941 | $as_echo "no" >&6; } | |
859789af | 11942 | fi |
c6b750e1 | 11943 | |
81ecdfbb | 11944 | |
859789af | 11945 | fi |
05cbd757 PB |
11946 | test -n "$ac_cv_prog_RANLIB" && break |
11947 | done | |
11948 | ||
11949 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 11950 | RANLIB="true" |
859789af AC |
11951 | fi |
11952 | ||
9a819804 AO |
11953 | |
11954 | ||
11955 | if test -n "$STRIP"; then | |
11956 | ac_cv_prog_STRIP=$STRIP | |
11957 | elif test -n "$ac_cv_prog_STRIP"; then | |
11958 | STRIP=$ac_cv_prog_STRIP | |
11959 | fi | |
11960 | ||
11961 | if test -n "$ac_cv_prog_STRIP"; then | |
11962 | for ncn_progname in strip; do | |
11963 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11964 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11966 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11967 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 11968 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11969 | else |
11970 | if test -n "$STRIP"; then | |
11971 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11972 | else | |
11973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11974 | for as_dir in $PATH | |
11975 | do | |
11976 | IFS=$as_save_IFS | |
11977 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11978 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11980 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 11981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11982 | break 2 |
11983 | fi | |
11984 | done | |
81ecdfbb RW |
11985 | done |
11986 | IFS=$as_save_IFS | |
9a819804 AO |
11987 | |
11988 | fi | |
11989 | fi | |
11990 | STRIP=$ac_cv_prog_STRIP | |
11991 | if test -n "$STRIP"; then | |
81ecdfbb RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11993 | $as_echo "$STRIP" >&6; } | |
9a819804 | 11994 | else |
81ecdfbb RW |
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11996 | $as_echo "no" >&6; } | |
9a819804 AO |
11997 | fi |
11998 | ||
81ecdfbb | 11999 | |
9a819804 AO |
12000 | done |
12001 | fi | |
12002 | ||
12003 | for ncn_progname in strip; do | |
be01d343 PB |
12004 | if test -n "$ncn_tool_prefix"; then |
12005 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12006 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12008 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12009 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12010 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12011 | else |
12012 | if test -n "$STRIP"; then | |
12013 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12014 | else | |
c6b750e1 DJ |
12015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12016 | for as_dir in $PATH | |
12017 | do | |
12018 | IFS=$as_save_IFS | |
12019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12020 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12022 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12024 | break 2 |
12025 | fi | |
12026 | done | |
81ecdfbb RW |
12027 | done |
12028 | IFS=$as_save_IFS | |
c6b750e1 | 12029 | |
be01d343 PB |
12030 | fi |
12031 | fi | |
c6b750e1 | 12032 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12033 | if test -n "$STRIP"; then |
81ecdfbb RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12035 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12036 | else |
81ecdfbb RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12038 | $as_echo "no" >&6; } | |
be01d343 PB |
12039 | fi |
12040 | ||
81ecdfbb | 12041 | |
be01d343 PB |
12042 | fi |
12043 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12044 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12045 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12047 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12048 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12049 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12050 | else |
12051 | if test -n "$STRIP"; then | |
12052 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12053 | else | |
c6b750e1 DJ |
12054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12055 | for as_dir in $PATH | |
12056 | do | |
12057 | IFS=$as_save_IFS | |
12058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12059 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12061 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 12062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12063 | break 2 |
12064 | fi | |
12065 | done | |
81ecdfbb RW |
12066 | done |
12067 | IFS=$as_save_IFS | |
c6b750e1 | 12068 | |
be01d343 PB |
12069 | fi |
12070 | fi | |
c6b750e1 | 12071 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12072 | if test -n "$STRIP"; then |
81ecdfbb RW |
12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12074 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12075 | else |
81ecdfbb RW |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12077 | $as_echo "no" >&6; } | |
be01d343 | 12078 | fi |
c6b750e1 | 12079 | |
81ecdfbb | 12080 | |
be01d343 PB |
12081 | fi |
12082 | test -n "$ac_cv_prog_STRIP" && break | |
12083 | done | |
12084 | ||
12085 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 12086 | STRIP="true" |
be01d343 PB |
12087 | fi |
12088 | ||
9a819804 AO |
12089 | |
12090 | ||
12091 | if test -n "$WINDRES"; then | |
12092 | ac_cv_prog_WINDRES=$WINDRES | |
12093 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12094 | WINDRES=$ac_cv_prog_WINDRES | |
12095 | fi | |
12096 | ||
12097 | if test -n "$ac_cv_prog_WINDRES"; then | |
12098 | for ncn_progname in windres; do | |
12099 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12100 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12102 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12103 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12104 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12105 | else |
12106 | if test -n "$WINDRES"; then | |
12107 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12108 | else | |
12109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12110 | for as_dir in $PATH | |
12111 | do | |
12112 | IFS=$as_save_IFS | |
12113 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12114 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12116 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12118 | break 2 |
12119 | fi | |
12120 | done | |
81ecdfbb RW |
12121 | done |
12122 | IFS=$as_save_IFS | |
9a819804 AO |
12123 | |
12124 | fi | |
12125 | fi | |
12126 | WINDRES=$ac_cv_prog_WINDRES | |
12127 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12129 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 12130 | else |
81ecdfbb RW |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12132 | $as_echo "no" >&6; } | |
9a819804 AO |
12133 | fi |
12134 | ||
81ecdfbb | 12135 | |
9a819804 AO |
12136 | done |
12137 | fi | |
12138 | ||
12139 | for ncn_progname in windres; do | |
05cbd757 PB |
12140 | if test -n "$ncn_tool_prefix"; then |
12141 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12142 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12144 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12145 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12146 | $as_echo_n "(cached) " >&6 |
859789af AC |
12147 | else |
12148 | if test -n "$WINDRES"; then | |
12149 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12150 | else | |
c6b750e1 DJ |
12151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12152 | for as_dir in $PATH | |
12153 | do | |
12154 | IFS=$as_save_IFS | |
12155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12158 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12160 | break 2 |
12161 | fi | |
12162 | done | |
81ecdfbb RW |
12163 | done |
12164 | IFS=$as_save_IFS | |
c6b750e1 | 12165 | |
859789af AC |
12166 | fi |
12167 | fi | |
c6b750e1 | 12168 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 12169 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12171 | $as_echo "$WINDRES" >&6; } | |
859789af | 12172 | else |
81ecdfbb RW |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12174 | $as_echo "no" >&6; } | |
859789af AC |
12175 | fi |
12176 | ||
81ecdfbb | 12177 | |
05cbd757 PB |
12178 | fi |
12179 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12180 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12181 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12183 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12184 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12185 | $as_echo_n "(cached) " >&6 |
859789af | 12186 | else |
05cbd757 PB |
12187 | if test -n "$WINDRES"; then |
12188 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 12189 | else |
c6b750e1 DJ |
12190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12191 | for as_dir in $PATH | |
12192 | do | |
12193 | IFS=$as_save_IFS | |
12194 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12195 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12197 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12199 | break 2 |
12200 | fi | |
12201 | done | |
81ecdfbb RW |
12202 | done |
12203 | IFS=$as_save_IFS | |
c6b750e1 | 12204 | |
859789af AC |
12205 | fi |
12206 | fi | |
c6b750e1 | 12207 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 12208 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12210 | $as_echo "$WINDRES" >&6; } | |
859789af | 12211 | else |
81ecdfbb RW |
12212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12213 | $as_echo "no" >&6; } | |
859789af | 12214 | fi |
c6b750e1 | 12215 | |
81ecdfbb | 12216 | |
05cbd757 PB |
12217 | fi |
12218 | test -n "$ac_cv_prog_WINDRES" && break | |
12219 | done | |
12220 | ||
12221 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12222 | set dummy windres | |
12223 | if test $build = $host ; then | |
12224 | WINDRES="$2" | |
859789af | 12225 | else |
05cbd757 | 12226 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 12227 | fi |
859789af AC |
12228 | fi |
12229 | ||
9a819804 AO |
12230 | |
12231 | ||
0c24b341 NC |
12232 | if test -n "$WINDMC"; then |
12233 | ac_cv_prog_WINDMC=$WINDMC | |
12234 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12235 | WINDMC=$ac_cv_prog_WINDMC | |
12236 | fi | |
12237 | ||
12238 | if test -n "$ac_cv_prog_WINDMC"; then | |
12239 | for ncn_progname in windmc; do | |
12240 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12241 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12243 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12244 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12245 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12246 | else |
12247 | if test -n "$WINDMC"; then | |
12248 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12249 | else | |
12250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12251 | for as_dir in $PATH | |
12252 | do | |
12253 | IFS=$as_save_IFS | |
12254 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12255 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12257 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12259 | break 2 |
12260 | fi | |
12261 | done | |
81ecdfbb RW |
12262 | done |
12263 | IFS=$as_save_IFS | |
0c24b341 NC |
12264 | |
12265 | fi | |
12266 | fi | |
12267 | WINDMC=$ac_cv_prog_WINDMC | |
12268 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12270 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12271 | else |
81ecdfbb RW |
12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12273 | $as_echo "no" >&6; } | |
0c24b341 NC |
12274 | fi |
12275 | ||
81ecdfbb | 12276 | |
0c24b341 NC |
12277 | done |
12278 | fi | |
12279 | ||
12280 | for ncn_progname in windmc; do | |
12281 | if test -n "$ncn_tool_prefix"; then | |
12282 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12283 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12285 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12286 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12287 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12288 | else |
12289 | if test -n "$WINDMC"; then | |
12290 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12291 | else | |
12292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12293 | for as_dir in $PATH | |
12294 | do | |
12295 | IFS=$as_save_IFS | |
12296 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12297 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12299 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12301 | break 2 |
12302 | fi | |
12303 | done | |
81ecdfbb RW |
12304 | done |
12305 | IFS=$as_save_IFS | |
0c24b341 NC |
12306 | |
12307 | fi | |
12308 | fi | |
12309 | WINDMC=$ac_cv_prog_WINDMC | |
12310 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12312 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12313 | else |
81ecdfbb RW |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12315 | $as_echo "no" >&6; } | |
0c24b341 NC |
12316 | fi |
12317 | ||
81ecdfbb | 12318 | |
0c24b341 NC |
12319 | fi |
12320 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12321 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12322 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12324 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12325 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12326 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12327 | else |
12328 | if test -n "$WINDMC"; then | |
12329 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12330 | else | |
12331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12332 | for as_dir in $PATH | |
12333 | do | |
12334 | IFS=$as_save_IFS | |
12335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12336 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12338 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12340 | break 2 |
12341 | fi | |
12342 | done | |
81ecdfbb RW |
12343 | done |
12344 | IFS=$as_save_IFS | |
0c24b341 NC |
12345 | |
12346 | fi | |
12347 | fi | |
12348 | WINDMC=$ac_cv_prog_WINDMC | |
12349 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12351 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12352 | else |
81ecdfbb RW |
12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12354 | $as_echo "no" >&6; } | |
0c24b341 NC |
12355 | fi |
12356 | ||
81ecdfbb | 12357 | |
0c24b341 NC |
12358 | fi |
12359 | test -n "$ac_cv_prog_WINDMC" && break | |
12360 | done | |
12361 | ||
12362 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12363 | set dummy windmc | |
12364 | if test $build = $host ; then | |
12365 | WINDMC="$2" | |
12366 | else | |
12367 | WINDMC="${ncn_tool_prefix}$2" | |
12368 | fi | |
12369 | fi | |
12370 | ||
12371 | ||
12372 | ||
9a819804 AO |
12373 | if test -n "$OBJCOPY"; then |
12374 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12375 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12376 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12377 | fi | |
12378 | ||
12379 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12380 | for ncn_progname in objcopy; do | |
12381 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12382 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12384 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12385 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 12386 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12387 | else |
12388 | if test -n "$OBJCOPY"; then | |
12389 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12390 | else | |
12391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12392 | for as_dir in $PATH | |
12393 | do | |
12394 | IFS=$as_save_IFS | |
12395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12396 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12398 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 12399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12400 | break 2 |
12401 | fi | |
12402 | done | |
81ecdfbb RW |
12403 | done |
12404 | IFS=$as_save_IFS | |
9a819804 AO |
12405 | |
12406 | fi | |
12407 | fi | |
228cf97d AM |
12408 | OBJCOPY=$ac_cv_prog_OBJCOPY |
12409 | if test -n "$OBJCOPY"; then | |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12411 | $as_echo "$OBJCOPY" >&6; } | |
12412 | else | |
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12414 | $as_echo "no" >&6; } | |
12415 | fi | |
12416 | ||
12417 | ||
12418 | done | |
12419 | fi | |
12420 | ||
12421 | for ncn_progname in objcopy; do | |
12422 | if test -n "$ncn_tool_prefix"; then | |
12423 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12424 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12426 | $as_echo_n "checking for $ac_word... " >&6; } | |
12427 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12428 | $as_echo_n "(cached) " >&6 | |
12429 | else | |
12430 | if test -n "$OBJCOPY"; then | |
12431 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12432 | else | |
12433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12434 | for as_dir in $PATH | |
12435 | do | |
12436 | IFS=$as_save_IFS | |
12437 | test -z "$as_dir" && as_dir=. | |
12438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12440 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
12441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12442 | break 2 | |
12443 | fi | |
12444 | done | |
12445 | done | |
12446 | IFS=$as_save_IFS | |
12447 | ||
12448 | fi | |
12449 | fi | |
12450 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12451 | if test -n "$OBJCOPY"; then | |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12453 | $as_echo "$OBJCOPY" >&6; } | |
12454 | else | |
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12456 | $as_echo "no" >&6; } | |
12457 | fi | |
12458 | ||
12459 | ||
12460 | fi | |
12461 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12462 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12463 | set dummy ${ncn_progname}; ac_word=$2 | |
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12465 | $as_echo_n "checking for $ac_word... " >&6; } | |
12466 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12467 | $as_echo_n "(cached) " >&6 | |
12468 | else | |
12469 | if test -n "$OBJCOPY"; then | |
12470 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12471 | else | |
12472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12473 | for as_dir in $PATH | |
12474 | do | |
12475 | IFS=$as_save_IFS | |
12476 | test -z "$as_dir" && as_dir=. | |
12477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12479 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
12480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12481 | break 2 | |
12482 | fi | |
12483 | done | |
12484 | done | |
12485 | IFS=$as_save_IFS | |
12486 | ||
12487 | fi | |
12488 | fi | |
12489 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12490 | if test -n "$OBJCOPY"; then | |
12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12492 | $as_echo "$OBJCOPY" >&6; } | |
12493 | else | |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12495 | $as_echo "no" >&6; } | |
12496 | fi | |
12497 | ||
12498 | ||
12499 | fi | |
12500 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12501 | done | |
12502 | ||
12503 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12504 | set dummy objcopy | |
12505 | if test $build = $host ; then | |
12506 | OBJCOPY="$2" | |
12507 | else | |
12508 | OBJCOPY="${ncn_tool_prefix}$2" | |
12509 | fi | |
12510 | fi | |
12511 | ||
12512 | ||
12513 | ||
12514 | if test -n "$OBJDUMP"; then | |
12515 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12516 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12517 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12518 | fi | |
12519 | ||
12520 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12521 | for ncn_progname in objdump; do | |
12522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12523 | set dummy ${ncn_progname}; ac_word=$2 | |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12525 | $as_echo_n "checking for $ac_word... " >&6; } | |
12526 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
12527 | $as_echo_n "(cached) " >&6 | |
12528 | else | |
12529 | if test -n "$OBJDUMP"; then | |
12530 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12531 | else | |
12532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12533 | for as_dir in $PATH | |
12534 | do | |
12535 | IFS=$as_save_IFS | |
12536 | test -z "$as_dir" && as_dir=. | |
12537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12539 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
12540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12541 | break 2 | |
12542 | fi | |
12543 | done | |
12544 | done | |
12545 | IFS=$as_save_IFS | |
12546 | ||
12547 | fi | |
12548 | fi | |
12549 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12550 | if test -n "$OBJDUMP"; then | |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12552 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 12553 | else |
81ecdfbb RW |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12555 | $as_echo "no" >&6; } | |
9a819804 AO |
12556 | fi |
12557 | ||
81ecdfbb | 12558 | |
9a819804 AO |
12559 | done |
12560 | fi | |
12561 | ||
228cf97d | 12562 | for ncn_progname in objdump; do |
05cbd757 PB |
12563 | if test -n "$ncn_tool_prefix"; then |
12564 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12565 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12567 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12568 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12569 | $as_echo_n "(cached) " >&6 |
859789af | 12570 | else |
228cf97d AM |
12571 | if test -n "$OBJDUMP"; then |
12572 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12573 | else |
c6b750e1 DJ |
12574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12575 | for as_dir in $PATH | |
12576 | do | |
12577 | IFS=$as_save_IFS | |
12578 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12579 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12581 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12583 | break 2 |
12584 | fi | |
12585 | done | |
81ecdfbb RW |
12586 | done |
12587 | IFS=$as_save_IFS | |
c6b750e1 | 12588 | |
859789af AC |
12589 | fi |
12590 | fi | |
228cf97d AM |
12591 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12592 | if test -n "$OBJDUMP"; then | |
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12594 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12595 | else |
81ecdfbb RW |
12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12597 | $as_echo "no" >&6; } | |
859789af AC |
12598 | fi |
12599 | ||
81ecdfbb | 12600 | |
05cbd757 | 12601 | fi |
228cf97d | 12602 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then |
05cbd757 PB |
12603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12604 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12606 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12607 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12608 | $as_echo_n "(cached) " >&6 |
859789af | 12609 | else |
228cf97d AM |
12610 | if test -n "$OBJDUMP"; then |
12611 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12612 | else |
c6b750e1 DJ |
12613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12614 | for as_dir in $PATH | |
12615 | do | |
12616 | IFS=$as_save_IFS | |
12617 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12618 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12620 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 12621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12622 | break 2 |
12623 | fi | |
12624 | done | |
81ecdfbb RW |
12625 | done |
12626 | IFS=$as_save_IFS | |
c6b750e1 | 12627 | |
859789af AC |
12628 | fi |
12629 | fi | |
228cf97d AM |
12630 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12631 | if test -n "$OBJDUMP"; then | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12633 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12634 | else |
81ecdfbb RW |
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12636 | $as_echo "no" >&6; } | |
859789af | 12637 | fi |
c6b750e1 | 12638 | |
81ecdfbb | 12639 | |
05cbd757 | 12640 | fi |
228cf97d | 12641 | test -n "$ac_cv_prog_OBJDUMP" && break |
05cbd757 PB |
12642 | done |
12643 | ||
228cf97d AM |
12644 | if test -z "$ac_cv_prog_OBJDUMP" ; then |
12645 | set dummy objdump | |
05cbd757 | 12646 | if test $build = $host ; then |
228cf97d | 12647 | OBJDUMP="$2" |
859789af | 12648 | else |
228cf97d | 12649 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 12650 | fi |
859789af AC |
12651 | fi |
12652 | ||
9a819804 AO |
12653 | |
12654 | ||
228cf97d AM |
12655 | if test -n "$OTOOL"; then |
12656 | ac_cv_prog_OTOOL=$OTOOL | |
12657 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12658 | OTOOL=$ac_cv_prog_OTOOL | |
9a819804 AO |
12659 | fi |
12660 | ||
228cf97d AM |
12661 | if test -n "$ac_cv_prog_OTOOL"; then |
12662 | for ncn_progname in otool; do | |
9a819804 AO |
12663 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12664 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12666 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12667 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12668 | $as_echo_n "(cached) " >&6 |
9a819804 | 12669 | else |
228cf97d AM |
12670 | if test -n "$OTOOL"; then |
12671 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9a819804 AO |
12672 | else |
12673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12674 | for as_dir in $PATH | |
12675 | do | |
12676 | IFS=$as_save_IFS | |
12677 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12678 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12680 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12682 | break 2 |
12683 | fi | |
12684 | done | |
81ecdfbb RW |
12685 | done |
12686 | IFS=$as_save_IFS | |
9a819804 AO |
12687 | |
12688 | fi | |
12689 | fi | |
228cf97d AM |
12690 | OTOOL=$ac_cv_prog_OTOOL |
12691 | if test -n "$OTOOL"; then | |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12693 | $as_echo "$OTOOL" >&6; } | |
9a819804 | 12694 | else |
81ecdfbb RW |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12696 | $as_echo "no" >&6; } | |
9a819804 AO |
12697 | fi |
12698 | ||
81ecdfbb | 12699 | |
9a819804 AO |
12700 | done |
12701 | fi | |
12702 | ||
228cf97d | 12703 | for ncn_progname in otool; do |
05cbd757 PB |
12704 | if test -n "$ncn_tool_prefix"; then |
12705 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12706 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12708 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12709 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12710 | $as_echo_n "(cached) " >&6 |
859789af | 12711 | else |
228cf97d AM |
12712 | if test -n "$OTOOL"; then |
12713 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12714 | else |
c6b750e1 DJ |
12715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12716 | for as_dir in $PATH | |
12717 | do | |
12718 | IFS=$as_save_IFS | |
12719 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12720 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12722 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12724 | break 2 |
12725 | fi | |
12726 | done | |
81ecdfbb RW |
12727 | done |
12728 | IFS=$as_save_IFS | |
c6b750e1 | 12729 | |
859789af AC |
12730 | fi |
12731 | fi | |
228cf97d AM |
12732 | OTOOL=$ac_cv_prog_OTOOL |
12733 | if test -n "$OTOOL"; then | |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12735 | $as_echo "$OTOOL" >&6; } | |
859789af | 12736 | else |
81ecdfbb RW |
12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12738 | $as_echo "no" >&6; } | |
859789af AC |
12739 | fi |
12740 | ||
81ecdfbb | 12741 | |
05cbd757 | 12742 | fi |
228cf97d | 12743 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then |
05cbd757 PB |
12744 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12745 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12747 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12748 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12749 | $as_echo_n "(cached) " >&6 |
859789af | 12750 | else |
228cf97d AM |
12751 | if test -n "$OTOOL"; then |
12752 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12753 | else |
c6b750e1 DJ |
12754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12755 | for as_dir in $PATH | |
12756 | do | |
12757 | IFS=$as_save_IFS | |
12758 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12759 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12760 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12761 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12763 | break 2 |
12764 | fi | |
12765 | done | |
81ecdfbb RW |
12766 | done |
12767 | IFS=$as_save_IFS | |
c6b750e1 | 12768 | |
859789af AC |
12769 | fi |
12770 | fi | |
228cf97d AM |
12771 | OTOOL=$ac_cv_prog_OTOOL |
12772 | if test -n "$OTOOL"; then | |
12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12774 | $as_echo "$OTOOL" >&6; } | |
859789af | 12775 | else |
81ecdfbb RW |
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12777 | $as_echo "no" >&6; } | |
859789af | 12778 | fi |
c6b750e1 | 12779 | |
81ecdfbb | 12780 | |
05cbd757 | 12781 | fi |
228cf97d | 12782 | test -n "$ac_cv_prog_OTOOL" && break |
05cbd757 PB |
12783 | done |
12784 | ||
228cf97d AM |
12785 | if test -z "$ac_cv_prog_OTOOL" ; then |
12786 | set dummy otool | |
05cbd757 | 12787 | if test $build = $host ; then |
228cf97d | 12788 | OTOOL="$2" |
859789af | 12789 | else |
228cf97d | 12790 | OTOOL="${ncn_tool_prefix}$2" |
859789af | 12791 | fi |
859789af AC |
12792 | fi |
12793 | ||
a0da8069 NN |
12794 | |
12795 | ||
b121d7d4 DD |
12796 | if test -n "$READELF"; then |
12797 | ac_cv_prog_READELF=$READELF | |
12798 | elif test -n "$ac_cv_prog_READELF"; then | |
12799 | READELF=$ac_cv_prog_READELF | |
12800 | fi | |
12801 | ||
12802 | if test -n "$ac_cv_prog_READELF"; then | |
12803 | for ncn_progname in readelf; do | |
12804 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12805 | set dummy ${ncn_progname}; ac_word=$2 | |
12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12807 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12808 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12809 | $as_echo_n "(cached) " >&6 |
12810 | else | |
12811 | if test -n "$READELF"; then | |
12812 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12813 | else | |
12814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12815 | for as_dir in $PATH | |
12816 | do | |
12817 | IFS=$as_save_IFS | |
12818 | test -z "$as_dir" && as_dir=. | |
12819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12821 | ac_cv_prog_READELF="${ncn_progname}" |
12822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12823 | break 2 | |
12824 | fi | |
12825 | done | |
12826 | done | |
12827 | IFS=$as_save_IFS | |
12828 | ||
12829 | fi | |
12830 | fi | |
12831 | READELF=$ac_cv_prog_READELF | |
12832 | if test -n "$READELF"; then | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12834 | $as_echo "$READELF" >&6; } | |
12835 | else | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12837 | $as_echo "no" >&6; } | |
12838 | fi | |
12839 | ||
12840 | ||
12841 | done | |
12842 | fi | |
12843 | ||
12844 | for ncn_progname in readelf; do | |
12845 | if test -n "$ncn_tool_prefix"; then | |
12846 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12847 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12849 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12850 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12851 | $as_echo_n "(cached) " >&6 |
12852 | else | |
12853 | if test -n "$READELF"; then | |
12854 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12855 | else | |
12856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12857 | for as_dir in $PATH | |
12858 | do | |
12859 | IFS=$as_save_IFS | |
12860 | test -z "$as_dir" && as_dir=. | |
12861 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12863 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12865 | break 2 | |
12866 | fi | |
12867 | done | |
12868 | done | |
12869 | IFS=$as_save_IFS | |
12870 | ||
12871 | fi | |
12872 | fi | |
12873 | READELF=$ac_cv_prog_READELF | |
12874 | if test -n "$READELF"; then | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12876 | $as_echo "$READELF" >&6; } | |
12877 | else | |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12879 | $as_echo "no" >&6; } | |
12880 | fi | |
12881 | ||
12882 | ||
12883 | fi | |
12884 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12885 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12886 | set dummy ${ncn_progname}; ac_word=$2 | |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12888 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12889 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12890 | $as_echo_n "(cached) " >&6 |
12891 | else | |
12892 | if test -n "$READELF"; then | |
12893 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12894 | else | |
12895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12896 | for as_dir in $PATH | |
12897 | do | |
12898 | IFS=$as_save_IFS | |
12899 | test -z "$as_dir" && as_dir=. | |
12900 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12902 | ac_cv_prog_READELF="${ncn_progname}" |
12903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12904 | break 2 | |
12905 | fi | |
12906 | done | |
12907 | done | |
12908 | IFS=$as_save_IFS | |
12909 | ||
12910 | fi | |
12911 | fi | |
12912 | READELF=$ac_cv_prog_READELF | |
12913 | if test -n "$READELF"; then | |
12914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12915 | $as_echo "$READELF" >&6; } | |
12916 | else | |
12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12918 | $as_echo "no" >&6; } | |
12919 | fi | |
12920 | ||
12921 | ||
12922 | fi | |
12923 | test -n "$ac_cv_prog_READELF" && break | |
12924 | done | |
12925 | ||
12926 | if test -z "$ac_cv_prog_READELF" ; then | |
12927 | set dummy readelf | |
12928 | if test $build = $host ; then | |
12929 | READELF="$2" | |
12930 | else | |
12931 | READELF="${ncn_tool_prefix}$2" | |
12932 | fi | |
12933 | fi | |
12934 | ||
12935 | ||
12936 | ||
a0da8069 NN |
12937 | |
12938 | ||
12939 | ||
de83289e | 12940 | |
228cf97d | 12941 | |
9e65489a | 12942 | |
50ad1254 L |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12944 | $as_echo_n "checking for -plugin option... " >&6; } | |
12945 | ||
12946 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
12947 | plugin_option= | |
12948 | for plugin in $plugin_names; do | |
12949 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
12950 | if test x$plugin_so = x$plugin; then | |
12951 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
12952 | fi | |
12953 | if test x$plugin_so != x$plugin; then | |
12954 | plugin_option="--plugin $plugin_so" | |
12955 | break | |
12956 | fi | |
12957 | done | |
03c02f31 L |
12958 | if test -n "$ac_tool_prefix"; then |
12959 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
12960 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
12961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12962 | $as_echo_n "checking for $ac_word... " >&6; } | |
12963 | if ${ac_cv_prog_AR+:} false; then : | |
12964 | $as_echo_n "(cached) " >&6 | |
12965 | else | |
12966 | if test -n "$AR"; then | |
12967 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12968 | else | |
12969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12970 | for as_dir in $PATH | |
12971 | do | |
12972 | IFS=$as_save_IFS | |
12973 | test -z "$as_dir" && as_dir=. | |
12974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12975 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12976 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
12977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12978 | break 2 | |
12979 | fi | |
12980 | done | |
12981 | done | |
12982 | IFS=$as_save_IFS | |
12983 | ||
12984 | fi | |
12985 | fi | |
12986 | AR=$ac_cv_prog_AR | |
12987 | if test -n "$AR"; then | |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12989 | $as_echo "$AR" >&6; } | |
12990 | else | |
12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12992 | $as_echo "no" >&6; } | |
12993 | fi | |
12994 | ||
12995 | ||
12996 | fi | |
12997 | if test -z "$ac_cv_prog_AR"; then | |
12998 | ac_ct_AR=$AR | |
12999 | # Extract the first word of "ar", so it can be a program name with args. | |
13000 | set dummy ar; ac_word=$2 | |
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13002 | $as_echo_n "checking for $ac_word... " >&6; } | |
13003 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
13004 | $as_echo_n "(cached) " >&6 | |
13005 | else | |
13006 | if test -n "$ac_ct_AR"; then | |
13007 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13008 | else | |
13009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13010 | for as_dir in $PATH | |
13011 | do | |
13012 | IFS=$as_save_IFS | |
13013 | test -z "$as_dir" && as_dir=. | |
13014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13016 | ac_cv_prog_ac_ct_AR="ar" | |
13017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13018 | break 2 | |
13019 | fi | |
13020 | done | |
13021 | done | |
13022 | IFS=$as_save_IFS | |
13023 | ||
13024 | fi | |
13025 | fi | |
13026 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13027 | if test -n "$ac_ct_AR"; then | |
13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13029 | $as_echo "$ac_ct_AR" >&6; } | |
13030 | else | |
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13032 | $as_echo "no" >&6; } | |
13033 | fi | |
13034 | ||
13035 | if test "x$ac_ct_AR" = x; then | |
13036 | AR="" | |
13037 | else | |
13038 | case $cross_compiling:$ac_tool_warned in | |
13039 | yes:) | |
13040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13042 | ac_tool_warned=yes ;; | |
13043 | esac | |
13044 | AR=$ac_ct_AR | |
13045 | fi | |
13046 | else | |
13047 | AR="$ac_cv_prog_AR" | |
13048 | fi | |
13049 | ||
13050 | if test "${AR}" = "" ; then | |
13051 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13052 | fi | |
13053 | touch conftest.c | |
13054 | ${AR} $plugin_option rc conftest.a conftest.c | |
13055 | if test "$?" != 0; then | |
13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13057 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13058 | plugin_option= | |
13059 | fi | |
13060 | rm -f conftest.* | |
50ad1254 L |
13061 | if test -n "$plugin_option"; then |
13062 | PLUGIN_OPTION="$plugin_option" | |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13064 | $as_echo "$plugin_option" >&6; } | |
13065 | else | |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13067 | $as_echo "no" >&6; } | |
13068 | fi | |
13069 | ||
13070 | AR_PLUGIN_OPTION= | |
13071 | RANLIB_PLUGIN_OPTION= | |
13072 | if test -n "$PLUGIN_OPTION"; then | |
13073 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13074 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13075 | fi | |
13076 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13077 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13078 | fi | |
13079 | fi | |
13080 | ||
13081 | ||
13082 | ||
be01d343 | 13083 | # Target tools. |
c6b750e1 | 13084 | |
81ecdfbb RW |
13085 | # Check whether --with-build-time-tools was given. |
13086 | if test "${with_build_time_tools+set}" = set; then : | |
13087 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
13088 | x/*) ;; |
13089 | *) | |
13090 | with_build_time_tools= | |
81ecdfbb RW |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13092 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
13093 | ;; |
13094 | esac | |
859789af | 13095 | else |
2429c060 | 13096 | with_build_time_tools= |
81ecdfbb RW |
13097 | fi |
13098 | ||
859789af | 13099 | |
9a819804 AO |
13100 | |
13101 | ||
13102 | if test -n "$CC_FOR_TARGET"; then | |
13103 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13104 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13105 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13106 | fi | |
13107 | ||
13108 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13109 | for ncn_progname in cc gcc; do | |
13110 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13111 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13113 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13114 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13115 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13116 | else |
13117 | if test -n "$CC_FOR_TARGET"; then | |
13118 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13119 | else | |
13120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13121 | for as_dir in $PATH | |
13122 | do | |
13123 | IFS=$as_save_IFS | |
13124 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13125 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13127 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13129 | break 2 |
13130 | fi | |
13131 | done | |
81ecdfbb RW |
13132 | done |
13133 | IFS=$as_save_IFS | |
9a819804 AO |
13134 | |
13135 | fi | |
13136 | fi | |
13137 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13138 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13140 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 13141 | else |
81ecdfbb RW |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13143 | $as_echo "no" >&6; } | |
9a819804 AO |
13144 | fi |
13145 | ||
81ecdfbb | 13146 | |
9a819804 AO |
13147 | done |
13148 | fi | |
13149 | ||
13150 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13151 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13153 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13154 | if test -x $with_build_time_tools/${ncn_progname}; then |
13155 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13157 | $as_echo "yes" >&6; } | |
cac3d6c4 | 13158 | break |
2429c060 | 13159 | else |
81ecdfbb RW |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13161 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
13162 | fi |
13163 | done | |
55db4b87 PB |
13164 | fi |
13165 | ||
2429c060 PB |
13166 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13167 | for ncn_progname in cc gcc; do | |
13168 | if test -n "$ncn_target_tool_prefix"; then | |
13169 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13170 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13172 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13173 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13174 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13175 | else |
13176 | if test -n "$CC_FOR_TARGET"; then | |
13177 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13178 | else | |
c6b750e1 DJ |
13179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13180 | for as_dir in $PATH | |
13181 | do | |
13182 | IFS=$as_save_IFS | |
13183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13184 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13186 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13188 | break 2 |
13189 | fi | |
13190 | done | |
81ecdfbb RW |
13191 | done |
13192 | IFS=$as_save_IFS | |
c6b750e1 | 13193 | |
55db4b87 PB |
13194 | fi |
13195 | fi | |
c6b750e1 | 13196 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 13197 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13199 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13200 | else |
81ecdfbb RW |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13202 | $as_echo "no" >&6; } | |
55db4b87 PB |
13203 | fi |
13204 | ||
81ecdfbb | 13205 | |
2429c060 PB |
13206 | fi |
13207 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13208 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13209 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13211 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13212 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13213 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13214 | else |
05cbd757 PB |
13215 | if test -n "$CC_FOR_TARGET"; then |
13216 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13217 | else |
c6b750e1 DJ |
13218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13219 | for as_dir in $PATH | |
13220 | do | |
13221 | IFS=$as_save_IFS | |
13222 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13223 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13225 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13227 | break 2 |
13228 | fi | |
13229 | done | |
81ecdfbb RW |
13230 | done |
13231 | IFS=$as_save_IFS | |
c6b750e1 | 13232 | |
55db4b87 PB |
13233 | fi |
13234 | fi | |
c6b750e1 | 13235 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 13236 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13238 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13239 | else |
81ecdfbb RW |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13241 | $as_echo "no" >&6; } | |
55db4b87 | 13242 | fi |
c6b750e1 | 13243 | |
81ecdfbb | 13244 | |
2429c060 PB |
13245 | fi |
13246 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13247 | done | |
13248 | fi | |
c6b750e1 | 13249 | |
05cbd757 PB |
13250 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13251 | set dummy cc gcc | |
13252 | if test $build = $target ; then | |
13253 | CC_FOR_TARGET="$2" | |
55db4b87 | 13254 | else |
05cbd757 | 13255 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13256 | fi |
d3f5afc4 MS |
13257 | else |
13258 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
13259 | fi |
13260 | ||
9a819804 AO |
13261 | |
13262 | ||
13263 | if test -n "$CXX_FOR_TARGET"; then | |
13264 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13265 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13266 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13267 | fi | |
13268 | ||
13269 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13270 | for ncn_progname in c++ g++ cxx gxx; do | |
13271 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13272 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13274 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13275 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13276 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13277 | else |
13278 | if test -n "$CXX_FOR_TARGET"; then | |
13279 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13280 | else | |
13281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13282 | for as_dir in $PATH | |
13283 | do | |
13284 | IFS=$as_save_IFS | |
13285 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13286 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13288 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13290 | break 2 |
13291 | fi | |
13292 | done | |
81ecdfbb RW |
13293 | done |
13294 | IFS=$as_save_IFS | |
9a819804 AO |
13295 | |
13296 | fi | |
13297 | fi | |
13298 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13299 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13301 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 13302 | else |
81ecdfbb RW |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13304 | $as_echo "no" >&6; } | |
9a819804 AO |
13305 | fi |
13306 | ||
81ecdfbb | 13307 | |
9a819804 AO |
13308 | done |
13309 | fi | |
13310 | ||
13311 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13312 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13314 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13315 | if test -x $with_build_time_tools/${ncn_progname}; then |
13316 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13318 | $as_echo "yes" >&6; } | |
2429c060 PB |
13319 | break |
13320 | else | |
81ecdfbb RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13322 | $as_echo "no" >&6; } | |
2429c060 PB |
13323 | fi |
13324 | done | |
13325 | fi | |
13326 | ||
13327 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13328 | for ncn_progname in c++ g++ cxx gxx; do | |
13329 | if test -n "$ncn_target_tool_prefix"; then | |
13330 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13331 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13333 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13334 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13335 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13336 | else |
13337 | if test -n "$CXX_FOR_TARGET"; then | |
13338 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13339 | else | |
c6b750e1 DJ |
13340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13341 | for as_dir in $PATH | |
13342 | do | |
13343 | IFS=$as_save_IFS | |
13344 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13345 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13346 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13347 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13349 | break 2 |
13350 | fi | |
13351 | done | |
81ecdfbb RW |
13352 | done |
13353 | IFS=$as_save_IFS | |
c6b750e1 | 13354 | |
55db4b87 PB |
13355 | fi |
13356 | fi | |
c6b750e1 | 13357 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 13358 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13360 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13361 | else |
81ecdfbb RW |
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13363 | $as_echo "no" >&6; } | |
55db4b87 PB |
13364 | fi |
13365 | ||
81ecdfbb | 13366 | |
2429c060 PB |
13367 | fi |
13368 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13369 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13370 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13372 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13373 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13374 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13375 | else |
05cbd757 PB |
13376 | if test -n "$CXX_FOR_TARGET"; then |
13377 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13378 | else |
c6b750e1 DJ |
13379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13380 | for as_dir in $PATH | |
13381 | do | |
13382 | IFS=$as_save_IFS | |
13383 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13384 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13386 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13388 | break 2 |
13389 | fi | |
13390 | done | |
81ecdfbb RW |
13391 | done |
13392 | IFS=$as_save_IFS | |
c6b750e1 | 13393 | |
55db4b87 PB |
13394 | fi |
13395 | fi | |
c6b750e1 | 13396 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 13397 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13399 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13400 | else |
81ecdfbb RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13402 | $as_echo "no" >&6; } | |
55db4b87 | 13403 | fi |
c6b750e1 | 13404 | |
81ecdfbb | 13405 | |
2429c060 PB |
13406 | fi |
13407 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13408 | done | |
13409 | fi | |
c6b750e1 | 13410 | |
05cbd757 PB |
13411 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13412 | set dummy c++ g++ cxx gxx | |
13413 | if test $build = $target ; then | |
13414 | CXX_FOR_TARGET="$2" | |
55db4b87 | 13415 | else |
05cbd757 | 13416 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13417 | fi |
d3f5afc4 MS |
13418 | else |
13419 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
13420 | fi |
13421 | ||
9a819804 AO |
13422 | |
13423 | ||
13424 | if test -n "$GCC_FOR_TARGET"; then | |
13425 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13426 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13427 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13428 | fi | |
13429 | ||
13430 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13431 | for ncn_progname in gcc; do | |
13432 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13433 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13435 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13436 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13437 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13438 | else |
13439 | if test -n "$GCC_FOR_TARGET"; then | |
13440 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13441 | else | |
13442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13443 | for as_dir in $PATH | |
13444 | do | |
13445 | IFS=$as_save_IFS | |
13446 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13447 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13449 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13451 | break 2 |
13452 | fi | |
13453 | done | |
81ecdfbb RW |
13454 | done |
13455 | IFS=$as_save_IFS | |
9a819804 AO |
13456 | |
13457 | fi | |
13458 | fi | |
13459 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13460 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
13461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13462 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 13463 | else |
81ecdfbb RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13465 | $as_echo "no" >&6; } | |
9a819804 AO |
13466 | fi |
13467 | ||
81ecdfbb | 13468 | |
9a819804 AO |
13469 | done |
13470 | fi | |
13471 | ||
13472 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13473 | for ncn_progname in gcc; do |
81ecdfbb RW |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13475 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13476 | if test -x $with_build_time_tools/${ncn_progname}; then |
13477 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13479 | $as_echo "yes" >&6; } | |
2429c060 PB |
13480 | break |
13481 | else | |
81ecdfbb RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13483 | $as_echo "no" >&6; } | |
2429c060 PB |
13484 | fi |
13485 | done | |
13486 | fi | |
13487 | ||
13488 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13489 | for ncn_progname in gcc; do | |
13490 | if test -n "$ncn_target_tool_prefix"; then | |
13491 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13492 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13494 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13495 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13496 | $as_echo_n "(cached) " >&6 |
859789af | 13497 | else |
2429c060 PB |
13498 | if test -n "$GCC_FOR_TARGET"; then |
13499 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13500 | else |
c6b750e1 DJ |
13501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13502 | for as_dir in $PATH | |
13503 | do | |
13504 | IFS=$as_save_IFS | |
13505 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13506 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13508 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13510 | break 2 |
13511 | fi | |
13512 | done | |
81ecdfbb RW |
13513 | done |
13514 | IFS=$as_save_IFS | |
c6b750e1 | 13515 | |
55db4b87 PB |
13516 | fi |
13517 | fi | |
c6b750e1 | 13518 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 13519 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13521 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13522 | else |
81ecdfbb RW |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13524 | $as_echo "no" >&6; } | |
55db4b87 PB |
13525 | fi |
13526 | ||
81ecdfbb | 13527 | |
2429c060 PB |
13528 | fi |
13529 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13530 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13531 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13533 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13534 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13535 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13536 | else |
05cbd757 PB |
13537 | if test -n "$GCC_FOR_TARGET"; then |
13538 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13539 | else |
c6b750e1 DJ |
13540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13541 | for as_dir in $PATH | |
13542 | do | |
13543 | IFS=$as_save_IFS | |
13544 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13545 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13547 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13549 | break 2 |
13550 | fi | |
13551 | done | |
81ecdfbb RW |
13552 | done |
13553 | IFS=$as_save_IFS | |
c6b750e1 | 13554 | |
55db4b87 PB |
13555 | fi |
13556 | fi | |
c6b750e1 | 13557 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 13558 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13560 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13561 | else |
81ecdfbb RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13563 | $as_echo "no" >&6; } | |
55db4b87 | 13564 | fi |
c6b750e1 | 13565 | |
81ecdfbb | 13566 | |
2429c060 PB |
13567 | fi |
13568 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13569 | done | |
13570 | fi | |
c6b750e1 | 13571 | |
05cbd757 PB |
13572 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13573 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
13574 | else |
13575 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
13576 | fi |
13577 | ||
9a819804 AO |
13578 | |
13579 | ||
9a819804 AO |
13580 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13581 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13582 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13583 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
13584 | fi |
13585 | ||
9a819804 AO |
13586 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13587 | for ncn_progname in gfortran; do | |
13588 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13589 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13591 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13592 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13593 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13594 | else |
9a819804 AO |
13595 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13596 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13597 | else |
c6b750e1 DJ |
13598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13599 | for as_dir in $PATH | |
13600 | do | |
13601 | IFS=$as_save_IFS | |
13602 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13603 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13604 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13605 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13607 | break 2 |
13608 | fi | |
13609 | done | |
81ecdfbb RW |
13610 | done |
13611 | IFS=$as_save_IFS | |
c6b750e1 | 13612 | |
55db4b87 PB |
13613 | fi |
13614 | fi | |
9a819804 AO |
13615 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13616 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13618 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 13619 | else |
81ecdfbb RW |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13621 | $as_echo "no" >&6; } | |
55db4b87 | 13622 | fi |
c6b750e1 | 13623 | |
81ecdfbb | 13624 | |
2429c060 PB |
13625 | done |
13626 | fi | |
c6b750e1 | 13627 | |
9a819804 | 13628 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 13629 | for ncn_progname in gfortran; do |
81ecdfbb RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13631 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13632 | if test -x $with_build_time_tools/${ncn_progname}; then |
13633 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13635 | $as_echo "yes" >&6; } | |
2429c060 PB |
13636 | break |
13637 | else | |
81ecdfbb RW |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13639 | $as_echo "no" >&6; } | |
2429c060 PB |
13640 | fi |
13641 | done | |
13642 | fi | |
13643 | ||
13644 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13645 | for ncn_progname in gfortran; do | |
13646 | if test -n "$ncn_target_tool_prefix"; then | |
13647 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13648 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13650 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13651 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13652 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13653 | else |
228cf97d AM |
13654 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13655 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13656 | else | |
13657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13658 | for as_dir in $PATH | |
13659 | do | |
13660 | IFS=$as_save_IFS | |
13661 | test -z "$as_dir" && as_dir=. | |
13662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13664 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13666 | break 2 | |
13667 | fi | |
13668 | done | |
13669 | done | |
13670 | IFS=$as_save_IFS | |
13671 | ||
13672 | fi | |
13673 | fi | |
13674 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13675 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13677 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13678 | else | |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13680 | $as_echo "no" >&6; } | |
13681 | fi | |
13682 | ||
13683 | ||
13684 | fi | |
13685 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13686 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13687 | set dummy ${ncn_progname}; ac_word=$2 | |
13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13689 | $as_echo_n "checking for $ac_word... " >&6; } | |
13690 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : | |
13691 | $as_echo_n "(cached) " >&6 | |
13692 | else | |
13693 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13694 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13695 | else | |
13696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13697 | for as_dir in $PATH | |
13698 | do | |
13699 | IFS=$as_save_IFS | |
13700 | test -z "$as_dir" && as_dir=. | |
13701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13703 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
13704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13705 | break 2 | |
13706 | fi | |
13707 | done | |
13708 | done | |
13709 | IFS=$as_save_IFS | |
13710 | ||
13711 | fi | |
13712 | fi | |
13713 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13714 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13716 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13717 | else | |
13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13719 | $as_echo "no" >&6; } | |
13720 | fi | |
13721 | ||
13722 | ||
13723 | fi | |
13724 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13725 | done | |
13726 | fi | |
13727 | ||
13728 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
13729 | set dummy gfortran | |
13730 | if test $build = $target ; then | |
13731 | GFORTRAN_FOR_TARGET="$2" | |
13732 | else | |
13733 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13734 | fi | |
13735 | else | |
13736 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
13737 | fi | |
13738 | ||
13739 | ||
13740 | ||
13741 | if test -n "$GOC_FOR_TARGET"; then | |
13742 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13743 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13744 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13745 | fi | |
13746 | ||
13747 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13748 | for ncn_progname in gccgo; do | |
13749 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13750 | set dummy ${ncn_progname}; ac_word=$2 | |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13752 | $as_echo_n "checking for $ac_word... " >&6; } | |
13753 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13754 | $as_echo_n "(cached) " >&6 | |
13755 | else | |
13756 | if test -n "$GOC_FOR_TARGET"; then | |
13757 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13758 | else | |
13759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13760 | for as_dir in $PATH | |
13761 | do | |
13762 | IFS=$as_save_IFS | |
13763 | test -z "$as_dir" && as_dir=. | |
13764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13766 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
13767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13768 | break 2 | |
13769 | fi | |
13770 | done | |
13771 | done | |
13772 | IFS=$as_save_IFS | |
13773 | ||
13774 | fi | |
13775 | fi | |
13776 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13777 | if test -n "$GOC_FOR_TARGET"; then | |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13779 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13780 | else | |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13782 | $as_echo "no" >&6; } | |
13783 | fi | |
13784 | ||
13785 | ||
13786 | done | |
13787 | fi | |
13788 | ||
13789 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13790 | for ncn_progname in gccgo; do | |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13792 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13793 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13794 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13796 | $as_echo "yes" >&6; } | |
13797 | break | |
13798 | else | |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13800 | $as_echo "no" >&6; } | |
13801 | fi | |
13802 | done | |
13803 | fi | |
13804 | ||
13805 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13806 | for ncn_progname in gccgo; do | |
13807 | if test -n "$ncn_target_tool_prefix"; then | |
13808 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13809 | set dummy ${ncn_target_tool_prefix}${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; } | |
13812 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13813 | $as_echo_n "(cached) " >&6 | |
13814 | else | |
13815 | if test -n "$GOC_FOR_TARGET"; then | |
13816 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13817 | else |
c6b750e1 DJ |
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=. | |
81ecdfbb | 13823 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13825 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13827 | break 2 |
13828 | fi | |
13829 | done | |
81ecdfbb RW |
13830 | done |
13831 | IFS=$as_save_IFS | |
c6b750e1 | 13832 | |
55db4b87 PB |
13833 | fi |
13834 | fi | |
228cf97d AM |
13835 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13836 | if test -n "$GOC_FOR_TARGET"; then | |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13838 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13839 | else |
81ecdfbb RW |
13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13841 | $as_echo "no" >&6; } | |
55db4b87 PB |
13842 | fi |
13843 | ||
81ecdfbb | 13844 | |
2429c060 | 13845 | fi |
228cf97d | 13846 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then |
2429c060 | 13847 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
05cbd757 | 13848 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13850 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13851 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
81ecdfbb | 13852 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13853 | else |
228cf97d AM |
13854 | if test -n "$GOC_FOR_TARGET"; then |
13855 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13856 | else |
13857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13858 | for as_dir in $PATH | |
13859 | do | |
13860 | IFS=$as_save_IFS | |
13861 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13862 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13864 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13866 | break 2 |
13867 | fi | |
13868 | done | |
81ecdfbb RW |
13869 | done |
13870 | IFS=$as_save_IFS | |
c6b750e1 | 13871 | |
55db4b87 PB |
13872 | fi |
13873 | fi | |
228cf97d AM |
13874 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13875 | if test -n "$GOC_FOR_TARGET"; then | |
13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13877 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13878 | else |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13880 | $as_echo "no" >&6; } | |
55db4b87 | 13881 | fi |
c6b750e1 | 13882 | |
81ecdfbb | 13883 | |
2429c060 | 13884 | fi |
228cf97d | 13885 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break |
2429c060 PB |
13886 | done |
13887 | fi | |
c6b750e1 | 13888 | |
228cf97d AM |
13889 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then |
13890 | set dummy gccgo | |
05cbd757 | 13891 | if test $build = $target ; then |
228cf97d | 13892 | GOC_FOR_TARGET="$2" |
55db4b87 | 13893 | else |
228cf97d | 13894 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13895 | fi |
d3f5afc4 | 13896 | else |
228cf97d | 13897 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" |
859789af AC |
13898 | fi |
13899 | ||
2429c060 PB |
13900 | |
13901 | ||
228cf97d AM |
13902 | if test -n "$GDC_FOR_TARGET"; then |
13903 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13904 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13905 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
e552509b ILT |
13906 | fi |
13907 | ||
228cf97d AM |
13908 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then |
13909 | for ncn_progname in gdc; do | |
e552509b ILT |
13910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
13911 | set dummy ${ncn_progname}; ac_word=$2 | |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13913 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13914 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13915 | $as_echo_n "(cached) " >&6 |
13916 | else | |
228cf97d AM |
13917 | if test -n "$GDC_FOR_TARGET"; then |
13918 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13919 | else |
13920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13921 | for as_dir in $PATH | |
13922 | do | |
13923 | IFS=$as_save_IFS | |
13924 | test -z "$as_dir" && as_dir=. | |
13925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13927 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
13928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13929 | break 2 | |
13930 | fi | |
13931 | done | |
13932 | done | |
13933 | IFS=$as_save_IFS | |
13934 | ||
13935 | fi | |
13936 | fi | |
228cf97d AM |
13937 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13938 | if test -n "$GDC_FOR_TARGET"; then | |
13939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13940 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13941 | else |
13942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13943 | $as_echo "no" >&6; } | |
13944 | fi | |
13945 | ||
13946 | ||
13947 | done | |
13948 | fi | |
13949 | ||
228cf97d AM |
13950 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then |
13951 | for ncn_progname in gdc; do | |
e552509b ILT |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13953 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13954 | if test -x $with_build_time_tools/${ncn_progname}; then | |
228cf97d | 13955 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} |
e552509b ILT |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13957 | $as_echo "yes" >&6; } | |
13958 | break | |
13959 | else | |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13961 | $as_echo "no" >&6; } | |
13962 | fi | |
13963 | done | |
13964 | fi | |
13965 | ||
228cf97d AM |
13966 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then |
13967 | for ncn_progname in gdc; do | |
e552509b ILT |
13968 | if test -n "$ncn_target_tool_prefix"; then |
13969 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13970 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13972 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13973 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13974 | $as_echo_n "(cached) " >&6 |
13975 | else | |
228cf97d AM |
13976 | if test -n "$GDC_FOR_TARGET"; then |
13977 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13978 | else |
13979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13980 | for as_dir in $PATH | |
13981 | do | |
13982 | IFS=$as_save_IFS | |
13983 | test -z "$as_dir" && as_dir=. | |
13984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13986 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
e552509b ILT |
13987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13988 | break 2 | |
13989 | fi | |
13990 | done | |
13991 | done | |
13992 | IFS=$as_save_IFS | |
13993 | ||
13994 | fi | |
13995 | fi | |
228cf97d AM |
13996 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13997 | if test -n "$GDC_FOR_TARGET"; then | |
13998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13999 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14000 | else |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14002 | $as_echo "no" >&6; } | |
14003 | fi | |
14004 | ||
14005 | ||
14006 | fi | |
228cf97d | 14007 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then |
e552509b ILT |
14008 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
14009 | set dummy ${ncn_progname}; ac_word=$2 | |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14011 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 14012 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
14013 | $as_echo_n "(cached) " >&6 |
14014 | else | |
228cf97d AM |
14015 | if test -n "$GDC_FOR_TARGET"; then |
14016 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
14017 | else |
14018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14019 | for as_dir in $PATH | |
14020 | do | |
14021 | IFS=$as_save_IFS | |
14022 | test -z "$as_dir" && as_dir=. | |
14023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 14024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 14025 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
14026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14027 | break 2 | |
14028 | fi | |
14029 | done | |
14030 | done | |
14031 | IFS=$as_save_IFS | |
14032 | ||
14033 | fi | |
14034 | fi | |
228cf97d AM |
14035 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
14036 | if test -n "$GDC_FOR_TARGET"; then | |
14037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14038 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14039 | else |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14041 | $as_echo "no" >&6; } | |
14042 | fi | |
14043 | ||
14044 | ||
14045 | fi | |
228cf97d | 14046 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break |
e552509b ILT |
14047 | done |
14048 | fi | |
14049 | ||
228cf97d AM |
14050 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then |
14051 | set dummy gdc | |
e552509b | 14052 | if test $build = $target ; then |
228cf97d | 14053 | GDC_FOR_TARGET="$2" |
e552509b | 14054 | else |
228cf97d | 14055 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
e552509b ILT |
14056 | fi |
14057 | else | |
228cf97d | 14058 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" |
e552509b ILT |
14059 | fi |
14060 | ||
14061 | ||
14062 | ||
2429c060 PB |
14063 | cat > conftest.c << \EOF |
14064 | #ifdef __GNUC__ | |
14065 | gcc_yay; | |
14066 | #endif | |
14067 | EOF | |
14068 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14069 | have_gcc_for_target=yes | |
859789af | 14070 | else |
2429c060 PB |
14071 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
14072 | have_gcc_for_target=no | |
859789af | 14073 | fi |
2429c060 PB |
14074 | rm conftest.c |
14075 | ||
14076 | ||
14077 | ||
859789af | 14078 | |
2429c060 PB |
14079 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
14080 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14082 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14083 | if test -x $with_build_time_tools/ar; then |
14084 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14085 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14087 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 14088 | else |
81ecdfbb RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14090 | $as_echo "no" >&6; } | |
3a35eeb3 | 14091 | fi |
2429c060 PB |
14092 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14093 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
14094 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14095 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 14096 | fi |
2429c060 | 14097 | fi |
c6b750e1 | 14098 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14099 | # Extract the first word of "ar", so it can be a program name with args. |
14100 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
14101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14102 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14103 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14104 | $as_echo_n "(cached) " >&6 |
859789af | 14105 | else |
c6b750e1 DJ |
14106 | case $AR_FOR_TARGET in |
14107 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14108 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14109 | ;; | |
2429c060 | 14110 | *) |
c6b750e1 DJ |
14111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14112 | for as_dir in $gcc_cv_tool_dirs | |
14113 | do | |
14114 | IFS=$as_save_IFS | |
14115 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14116 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14118 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14120 | break 2 |
14121 | fi | |
14122 | done | |
81ecdfbb RW |
14123 | done |
14124 | IFS=$as_save_IFS | |
c6b750e1 | 14125 | |
2429c060 PB |
14126 | ;; |
14127 | esac | |
859789af | 14128 | fi |
c6b750e1 | 14129 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 14130 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14132 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 14133 | else |
81ecdfbb RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14135 | $as_echo "no" >&6; } | |
859789af | 14136 | fi |
05cbd757 | 14137 | |
81ecdfbb | 14138 | |
2429c060 PB |
14139 | fi |
14140 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
14141 | |
14142 | ||
14143 | if test -n "$AR_FOR_TARGET"; then | |
14144 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14145 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14146 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14147 | fi | |
14148 | ||
14149 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14150 | for ncn_progname in ar; do | |
14151 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14152 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14154 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14155 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14156 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14157 | else |
14158 | if test -n "$AR_FOR_TARGET"; then | |
14159 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14160 | else | |
14161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14162 | for as_dir in $PATH | |
14163 | do | |
14164 | IFS=$as_save_IFS | |
14165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14166 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14168 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14170 | break 2 |
14171 | fi | |
14172 | done | |
81ecdfbb RW |
14173 | done |
14174 | IFS=$as_save_IFS | |
9a819804 AO |
14175 | |
14176 | fi | |
14177 | fi | |
14178 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14179 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
14180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14181 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 14182 | else |
81ecdfbb RW |
14183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14184 | $as_echo "no" >&6; } | |
9a819804 AO |
14185 | fi |
14186 | ||
81ecdfbb | 14187 | |
9a819804 AO |
14188 | done |
14189 | fi | |
14190 | ||
14191 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14192 | for ncn_progname in ar; do |
81ecdfbb RW |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14194 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14195 | if test -x $with_build_time_tools/${ncn_progname}; then |
14196 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14198 | $as_echo "yes" >&6; } | |
2429c060 PB |
14199 | break |
14200 | else | |
81ecdfbb RW |
14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14202 | $as_echo "no" >&6; } | |
2429c060 PB |
14203 | fi |
14204 | done | |
859789af AC |
14205 | fi |
14206 | ||
2429c060 PB |
14207 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
14208 | for ncn_progname in ar; do | |
14209 | if test -n "$ncn_target_tool_prefix"; then | |
14210 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14211 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14213 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14214 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14215 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14216 | else |
2429c060 PB |
14217 | if test -n "$AR_FOR_TARGET"; then |
14218 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 14219 | else |
c6b750e1 DJ |
14220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14221 | for as_dir in $PATH | |
14222 | do | |
14223 | IFS=$as_save_IFS | |
14224 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14225 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14227 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14229 | break 2 |
14230 | fi | |
14231 | done | |
81ecdfbb RW |
14232 | done |
14233 | IFS=$as_save_IFS | |
c6b750e1 | 14234 | |
7e0f7140 GK |
14235 | fi |
14236 | fi | |
c6b750e1 | 14237 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14238 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14240 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14241 | else |
81ecdfbb RW |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14243 | $as_echo "no" >&6; } | |
7e0f7140 GK |
14244 | fi |
14245 | ||
81ecdfbb | 14246 | |
2429c060 PB |
14247 | fi |
14248 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 14250 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14252 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14253 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14254 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14255 | else |
2429c060 PB |
14256 | if test -n "$AR_FOR_TARGET"; then |
14257 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 14258 | else |
c6b750e1 DJ |
14259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14260 | for as_dir in $PATH | |
14261 | do | |
14262 | IFS=$as_save_IFS | |
14263 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14264 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14265 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14266 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14268 | break 2 |
14269 | fi | |
14270 | done | |
81ecdfbb RW |
14271 | done |
14272 | IFS=$as_save_IFS | |
c6b750e1 | 14273 | |
7e0f7140 GK |
14274 | fi |
14275 | fi | |
c6b750e1 | 14276 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14277 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14279 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14280 | else |
81ecdfbb RW |
14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14282 | $as_echo "no" >&6; } | |
7e0f7140 | 14283 | fi |
c6b750e1 | 14284 | |
81ecdfbb | 14285 | |
2429c060 PB |
14286 | fi |
14287 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14288 | done | |
14289 | fi | |
c6b750e1 | 14290 | |
2429c060 PB |
14291 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14292 | set dummy ar | |
7e0f7140 | 14293 | if test $build = $target ; then |
2429c060 | 14294 | AR_FOR_TARGET="$2" |
7e0f7140 | 14295 | else |
2429c060 | 14296 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 14297 | fi |
d3f5afc4 MS |
14298 | else |
14299 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
14300 | fi |
14301 | ||
3a35eeb3 PB |
14302 | else |
14303 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
14304 | fi |
14305 | ||
14306 | ||
14307 | ||
14308 | ||
14309 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14310 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14312 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14313 | if test -x $with_build_time_tools/as; then |
14314 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14315 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14317 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 14318 | else |
81ecdfbb RW |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14320 | $as_echo "no" >&6; } | |
3a35eeb3 | 14321 | fi |
2429c060 PB |
14322 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14323 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
14324 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14325 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
14326 | fi |
14327 | fi | |
c6b750e1 | 14328 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14329 | # Extract the first word of "as", so it can be a program name with args. |
14330 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14332 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14333 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14334 | $as_echo_n "(cached) " >&6 |
2429c060 | 14335 | else |
c6b750e1 DJ |
14336 | case $AS_FOR_TARGET in |
14337 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14338 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14339 | ;; | |
2429c060 | 14340 | *) |
c6b750e1 DJ |
14341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14342 | for as_dir in $gcc_cv_tool_dirs | |
14343 | do | |
14344 | IFS=$as_save_IFS | |
14345 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14346 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14348 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14350 | break 2 |
14351 | fi | |
14352 | done | |
81ecdfbb RW |
14353 | done |
14354 | IFS=$as_save_IFS | |
c6b750e1 | 14355 | |
2429c060 PB |
14356 | ;; |
14357 | esac | |
14358 | fi | |
c6b750e1 | 14359 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 14360 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14362 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14363 | else |
81ecdfbb RW |
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14365 | $as_echo "no" >&6; } | |
2429c060 PB |
14366 | fi |
14367 | ||
81ecdfbb | 14368 | |
2429c060 PB |
14369 | fi |
14370 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
14371 | |
14372 | ||
14373 | if test -n "$AS_FOR_TARGET"; then | |
14374 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14375 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14376 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14377 | fi | |
14378 | ||
14379 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14380 | for ncn_progname in as; do | |
14381 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14382 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14384 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14385 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14386 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14387 | else |
14388 | if test -n "$AS_FOR_TARGET"; then | |
14389 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14390 | else | |
14391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14392 | for as_dir in $PATH | |
14393 | do | |
14394 | IFS=$as_save_IFS | |
14395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14396 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14398 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14400 | break 2 |
14401 | fi | |
14402 | done | |
81ecdfbb RW |
14403 | done |
14404 | IFS=$as_save_IFS | |
9a819804 AO |
14405 | |
14406 | fi | |
14407 | fi | |
14408 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14409 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14411 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 14412 | else |
81ecdfbb RW |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14414 | $as_echo "no" >&6; } | |
9a819804 AO |
14415 | fi |
14416 | ||
81ecdfbb | 14417 | |
9a819804 AO |
14418 | done |
14419 | fi | |
14420 | ||
14421 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14422 | for ncn_progname in as; do |
81ecdfbb RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14424 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14425 | if test -x $with_build_time_tools/${ncn_progname}; then |
14426 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14428 | $as_echo "yes" >&6; } | |
2429c060 PB |
14429 | break |
14430 | else | |
81ecdfbb RW |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14432 | $as_echo "no" >&6; } | |
2429c060 PB |
14433 | fi |
14434 | done | |
14435 | fi | |
14436 | ||
14437 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14438 | for ncn_progname in as; do | |
14439 | if test -n "$ncn_target_tool_prefix"; then | |
14440 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14441 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14443 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14444 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14445 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14446 | else |
14447 | if test -n "$AS_FOR_TARGET"; then | |
14448 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14449 | else | |
c6b750e1 DJ |
14450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14451 | for as_dir in $PATH | |
14452 | do | |
14453 | IFS=$as_save_IFS | |
14454 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14455 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14457 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14459 | break 2 |
14460 | fi | |
14461 | done | |
81ecdfbb RW |
14462 | done |
14463 | IFS=$as_save_IFS | |
c6b750e1 | 14464 | |
2429c060 PB |
14465 | fi |
14466 | fi | |
c6b750e1 | 14467 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14468 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14470 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14471 | else |
81ecdfbb RW |
14472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14473 | $as_echo "no" >&6; } | |
2429c060 PB |
14474 | fi |
14475 | ||
81ecdfbb | 14476 | |
2429c060 PB |
14477 | fi |
14478 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14480 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14482 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14483 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14484 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14485 | else |
14486 | if test -n "$AS_FOR_TARGET"; then | |
14487 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14488 | else | |
c6b750e1 DJ |
14489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14490 | for as_dir in $PATH | |
14491 | do | |
14492 | IFS=$as_save_IFS | |
14493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14494 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14496 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14498 | break 2 |
14499 | fi | |
14500 | done | |
81ecdfbb RW |
14501 | done |
14502 | IFS=$as_save_IFS | |
c6b750e1 | 14503 | |
2429c060 PB |
14504 | fi |
14505 | fi | |
c6b750e1 | 14506 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14507 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14509 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14510 | else |
81ecdfbb RW |
14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14512 | $as_echo "no" >&6; } | |
2429c060 | 14513 | fi |
c6b750e1 | 14514 | |
81ecdfbb | 14515 | |
2429c060 PB |
14516 | fi |
14517 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14518 | done | |
14519 | fi | |
c6b750e1 | 14520 | |
2429c060 PB |
14521 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14522 | set dummy as | |
14523 | if test $build = $target ; then | |
14524 | AS_FOR_TARGET="$2" | |
14525 | else | |
14526 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14527 | fi | |
d3f5afc4 MS |
14528 | else |
14529 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
14530 | fi |
14531 | ||
3a35eeb3 PB |
14532 | else |
14533 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
14534 | fi |
14535 | ||
14536 | ||
14537 | ||
14538 | ||
14539 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14540 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14542 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14543 | if test -x $with_build_time_tools/dlltool; then |
14544 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14545 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14547 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 14548 | else |
81ecdfbb RW |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14550 | $as_echo "no" >&6; } | |
3a35eeb3 | 14551 | fi |
2429c060 PB |
14552 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14553 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
14554 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14555 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
14556 | fi |
14557 | fi | |
c6b750e1 | 14558 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14559 | # Extract the first word of "dlltool", so it can be a program name with args. |
14560 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14562 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14563 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14564 | $as_echo_n "(cached) " >&6 |
2429c060 | 14565 | else |
c6b750e1 DJ |
14566 | case $DLLTOOL_FOR_TARGET in |
14567 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14568 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14569 | ;; | |
2429c060 | 14570 | *) |
c6b750e1 DJ |
14571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14572 | for as_dir in $gcc_cv_tool_dirs | |
14573 | do | |
14574 | IFS=$as_save_IFS | |
14575 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14576 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14578 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14580 | break 2 |
14581 | fi | |
14582 | done | |
81ecdfbb RW |
14583 | done |
14584 | IFS=$as_save_IFS | |
c6b750e1 | 14585 | |
2429c060 PB |
14586 | ;; |
14587 | esac | |
14588 | fi | |
c6b750e1 | 14589 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 14590 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14592 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14593 | else |
81ecdfbb RW |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14595 | $as_echo "no" >&6; } | |
2429c060 PB |
14596 | fi |
14597 | ||
81ecdfbb | 14598 | |
2429c060 PB |
14599 | fi |
14600 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
14601 | |
14602 | ||
14603 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14604 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14605 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14606 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14607 | fi | |
14608 | ||
14609 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14610 | for ncn_progname in dlltool; do | |
14611 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14612 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14614 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14615 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14616 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14617 | else |
14618 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14619 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14620 | else | |
14621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14622 | for as_dir in $PATH | |
14623 | do | |
14624 | IFS=$as_save_IFS | |
14625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14626 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14628 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14630 | break 2 |
14631 | fi | |
14632 | done | |
81ecdfbb RW |
14633 | done |
14634 | IFS=$as_save_IFS | |
9a819804 AO |
14635 | |
14636 | fi | |
14637 | fi | |
14638 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14639 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14641 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 14642 | else |
81ecdfbb RW |
14643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14644 | $as_echo "no" >&6; } | |
9a819804 AO |
14645 | fi |
14646 | ||
81ecdfbb | 14647 | |
9a819804 AO |
14648 | done |
14649 | fi | |
14650 | ||
14651 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14652 | for ncn_progname in dlltool; do |
81ecdfbb RW |
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14654 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14655 | if test -x $with_build_time_tools/${ncn_progname}; then |
14656 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14658 | $as_echo "yes" >&6; } | |
2429c060 PB |
14659 | break |
14660 | else | |
81ecdfbb RW |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14662 | $as_echo "no" >&6; } | |
2429c060 PB |
14663 | fi |
14664 | done | |
14665 | fi | |
14666 | ||
14667 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14668 | for ncn_progname in dlltool; do | |
14669 | if test -n "$ncn_target_tool_prefix"; then | |
14670 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14671 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14673 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14674 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14675 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14676 | else |
14677 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14678 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14679 | else | |
c6b750e1 DJ |
14680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14681 | for as_dir in $PATH | |
14682 | do | |
14683 | IFS=$as_save_IFS | |
14684 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14685 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14687 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14689 | break 2 |
14690 | fi | |
14691 | done | |
81ecdfbb RW |
14692 | done |
14693 | IFS=$as_save_IFS | |
c6b750e1 | 14694 | |
2429c060 PB |
14695 | fi |
14696 | fi | |
c6b750e1 | 14697 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14698 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14700 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14701 | else |
81ecdfbb RW |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14703 | $as_echo "no" >&6; } | |
2429c060 PB |
14704 | fi |
14705 | ||
81ecdfbb | 14706 | |
2429c060 PB |
14707 | fi |
14708 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14710 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14712 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14713 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14714 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14715 | else |
14716 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14717 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14718 | else | |
c6b750e1 DJ |
14719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14720 | for as_dir in $PATH | |
14721 | do | |
14722 | IFS=$as_save_IFS | |
14723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14724 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14725 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14726 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14728 | break 2 |
14729 | fi | |
14730 | done | |
81ecdfbb RW |
14731 | done |
14732 | IFS=$as_save_IFS | |
c6b750e1 | 14733 | |
2429c060 PB |
14734 | fi |
14735 | fi | |
c6b750e1 | 14736 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14737 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14739 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14740 | else |
81ecdfbb RW |
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14742 | $as_echo "no" >&6; } | |
2429c060 | 14743 | fi |
c6b750e1 | 14744 | |
81ecdfbb | 14745 | |
2429c060 | 14746 | fi |
228cf97d AM |
14747 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break |
14748 | done | |
14749 | fi | |
14750 | ||
14751 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
14752 | set dummy dlltool | |
14753 | if test $build = $target ; then | |
14754 | DLLTOOL_FOR_TARGET="$2" | |
14755 | else | |
14756 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14757 | fi | |
14758 | else | |
14759 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
14760 | fi | |
14761 | ||
14762 | else | |
14763 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
14764 | fi | |
14765 | ||
14766 | ||
14767 | ||
14768 | ||
14769 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14770 | if test -n "$with_build_time_tools"; then | |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14772 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14773 | if test -x $with_build_time_tools/dsymutil; then | |
14774 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14775 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14777 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14778 | else | |
14779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14780 | $as_echo "no" >&6; } | |
14781 | fi | |
14782 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14783 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14784 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14785 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14786 | fi | |
14787 | fi | |
14788 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14789 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14790 | set dummy dsymutil; ac_word=$2 | |
14791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14792 | $as_echo_n "checking for $ac_word... " >&6; } | |
14793 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14794 | $as_echo_n "(cached) " >&6 | |
14795 | else | |
14796 | case $DSYMUTIL_FOR_TARGET in | |
14797 | [\\/]* | ?:[\\/]*) | |
14798 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14799 | ;; | |
14800 | *) | |
14801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14802 | for as_dir in $gcc_cv_tool_dirs | |
14803 | do | |
14804 | IFS=$as_save_IFS | |
14805 | test -z "$as_dir" && as_dir=. | |
14806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14808 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14810 | break 2 | |
14811 | fi | |
14812 | done | |
14813 | done | |
14814 | IFS=$as_save_IFS | |
14815 | ||
14816 | ;; | |
14817 | esac | |
14818 | fi | |
14819 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14820 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14822 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14823 | else | |
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14825 | $as_echo "no" >&6; } | |
14826 | fi | |
14827 | ||
14828 | ||
14829 | fi | |
14830 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14831 | ||
14832 | ||
14833 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14834 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14835 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14836 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14837 | fi | |
14838 | ||
14839 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14840 | for ncn_progname in dsymutil; do | |
14841 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14842 | set dummy ${ncn_progname}; ac_word=$2 | |
14843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14844 | $as_echo_n "checking for $ac_word... " >&6; } | |
14845 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14846 | $as_echo_n "(cached) " >&6 | |
14847 | else | |
14848 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14849 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14850 | else | |
14851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14852 | for as_dir in $PATH | |
14853 | do | |
14854 | IFS=$as_save_IFS | |
14855 | test -z "$as_dir" && as_dir=. | |
14856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14858 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14860 | break 2 | |
14861 | fi | |
14862 | done | |
14863 | done | |
14864 | IFS=$as_save_IFS | |
14865 | ||
14866 | fi | |
14867 | fi | |
14868 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14869 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14871 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14872 | else | |
14873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14874 | $as_echo "no" >&6; } | |
14875 | fi | |
14876 | ||
14877 | ||
14878 | done | |
14879 | fi | |
14880 | ||
14881 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14882 | for ncn_progname in dsymutil; do | |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14884 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14885 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14886 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14888 | $as_echo "yes" >&6; } | |
14889 | break | |
14890 | else | |
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14892 | $as_echo "no" >&6; } | |
14893 | fi | |
14894 | done | |
14895 | fi | |
14896 | ||
14897 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14898 | for ncn_progname in dsymutil; do | |
14899 | if test -n "$ncn_target_tool_prefix"; then | |
14900 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14901 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14903 | $as_echo_n "checking for $ac_word... " >&6; } | |
14904 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14905 | $as_echo_n "(cached) " >&6 | |
14906 | else | |
14907 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14908 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14909 | else | |
14910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14911 | for as_dir in $PATH | |
14912 | do | |
14913 | IFS=$as_save_IFS | |
14914 | test -z "$as_dir" && as_dir=. | |
14915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14917 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14919 | break 2 | |
14920 | fi | |
14921 | done | |
14922 | done | |
14923 | IFS=$as_save_IFS | |
14924 | ||
14925 | fi | |
14926 | fi | |
14927 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14928 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14930 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14931 | else | |
14932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14933 | $as_echo "no" >&6; } | |
14934 | fi | |
14935 | ||
14936 | ||
14937 | fi | |
14938 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14939 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14940 | set dummy ${ncn_progname}; ac_word=$2 | |
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14942 | $as_echo_n "checking for $ac_word... " >&6; } | |
14943 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14944 | $as_echo_n "(cached) " >&6 | |
14945 | else | |
14946 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14947 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14948 | else | |
14949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14950 | for as_dir in $PATH | |
14951 | do | |
14952 | IFS=$as_save_IFS | |
14953 | test -z "$as_dir" && as_dir=. | |
14954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14956 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14958 | break 2 | |
14959 | fi | |
14960 | done | |
14961 | done | |
14962 | IFS=$as_save_IFS | |
14963 | ||
14964 | fi | |
14965 | fi | |
14966 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14967 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14969 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14970 | else | |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14972 | $as_echo "no" >&6; } | |
14973 | fi | |
14974 | ||
14975 | ||
14976 | fi | |
14977 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
2429c060 PB |
14978 | done |
14979 | fi | |
c6b750e1 | 14980 | |
228cf97d AM |
14981 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then |
14982 | set dummy dsymutil | |
2429c060 | 14983 | if test $build = $target ; then |
228cf97d | 14984 | DSYMUTIL_FOR_TARGET="$2" |
2429c060 | 14985 | else |
228cf97d | 14986 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" |
2429c060 | 14987 | fi |
d3f5afc4 | 14988 | else |
228cf97d | 14989 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" |
2429c060 PB |
14990 | fi |
14991 | ||
3a35eeb3 | 14992 | else |
228cf97d | 14993 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET |
2429c060 PB |
14994 | fi |
14995 | ||
14996 | ||
14997 | ||
14998 | ||
14999 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
15000 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
15002 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15003 | if test -x $with_build_time_tools/ld; then |
15004 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
15005 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15007 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 15008 | else |
81ecdfbb RW |
15009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15010 | $as_echo "no" >&6; } | |
3a35eeb3 | 15011 | fi |
2429c060 PB |
15012 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15013 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
15014 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15015 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
15016 | fi |
15017 | fi | |
c6b750e1 | 15018 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15019 | # Extract the first word of "ld", so it can be a program name with args. |
15020 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
15021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15022 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15023 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15024 | $as_echo_n "(cached) " >&6 |
2429c060 | 15025 | else |
c6b750e1 DJ |
15026 | case $LD_FOR_TARGET in |
15027 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15028 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15029 | ;; | |
2429c060 | 15030 | *) |
c6b750e1 DJ |
15031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15032 | for as_dir in $gcc_cv_tool_dirs | |
15033 | do | |
15034 | IFS=$as_save_IFS | |
15035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15036 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15038 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15040 | break 2 |
15041 | fi | |
15042 | done | |
81ecdfbb RW |
15043 | done |
15044 | IFS=$as_save_IFS | |
c6b750e1 | 15045 | |
2429c060 PB |
15046 | ;; |
15047 | esac | |
15048 | fi | |
c6b750e1 | 15049 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 15050 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15052 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15053 | else |
81ecdfbb RW |
15054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15055 | $as_echo "no" >&6; } | |
2429c060 PB |
15056 | fi |
15057 | ||
81ecdfbb | 15058 | |
2429c060 PB |
15059 | fi |
15060 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
15061 | |
15062 | ||
15063 | if test -n "$LD_FOR_TARGET"; then | |
15064 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15065 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15066 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15067 | fi | |
15068 | ||
15069 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15070 | for ncn_progname in ld; do | |
15071 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15072 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15074 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15075 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15076 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15077 | else |
15078 | if test -n "$LD_FOR_TARGET"; then | |
15079 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15080 | else | |
15081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15082 | for as_dir in $PATH | |
15083 | do | |
15084 | IFS=$as_save_IFS | |
15085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15086 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15088 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15090 | break 2 |
15091 | fi | |
15092 | done | |
81ecdfbb RW |
15093 | done |
15094 | IFS=$as_save_IFS | |
9a819804 AO |
15095 | |
15096 | fi | |
15097 | fi | |
15098 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15099 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15101 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 15102 | else |
81ecdfbb RW |
15103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15104 | $as_echo "no" >&6; } | |
9a819804 AO |
15105 | fi |
15106 | ||
81ecdfbb | 15107 | |
9a819804 AO |
15108 | done |
15109 | fi | |
15110 | ||
15111 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15112 | for ncn_progname in ld; do |
81ecdfbb RW |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15114 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15115 | if test -x $with_build_time_tools/${ncn_progname}; then |
15116 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15118 | $as_echo "yes" >&6; } | |
2429c060 PB |
15119 | break |
15120 | else | |
81ecdfbb RW |
15121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15122 | $as_echo "no" >&6; } | |
2429c060 PB |
15123 | fi |
15124 | done | |
15125 | fi | |
15126 | ||
15127 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
15128 | for ncn_progname in ld; do | |
15129 | if test -n "$ncn_target_tool_prefix"; then | |
15130 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15131 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15133 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15134 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15135 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15136 | else |
15137 | if test -n "$LD_FOR_TARGET"; then | |
15138 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15139 | else | |
c6b750e1 DJ |
15140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15141 | for as_dir in $PATH | |
15142 | do | |
15143 | IFS=$as_save_IFS | |
15144 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15145 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15147 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15149 | break 2 |
15150 | fi | |
15151 | done | |
81ecdfbb RW |
15152 | done |
15153 | IFS=$as_save_IFS | |
c6b750e1 | 15154 | |
2429c060 PB |
15155 | fi |
15156 | fi | |
c6b750e1 | 15157 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15158 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15160 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15161 | else |
81ecdfbb RW |
15162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15163 | $as_echo "no" >&6; } | |
2429c060 PB |
15164 | fi |
15165 | ||
81ecdfbb | 15166 | |
2429c060 PB |
15167 | fi |
15168 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15170 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15172 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15173 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15174 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15175 | else |
15176 | if test -n "$LD_FOR_TARGET"; then | |
15177 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15178 | else | |
c6b750e1 DJ |
15179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15180 | for as_dir in $PATH | |
15181 | do | |
15182 | IFS=$as_save_IFS | |
15183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15184 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15185 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15186 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15188 | break 2 |
15189 | fi | |
15190 | done | |
81ecdfbb RW |
15191 | done |
15192 | IFS=$as_save_IFS | |
c6b750e1 | 15193 | |
2429c060 PB |
15194 | fi |
15195 | fi | |
c6b750e1 | 15196 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15197 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15199 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15200 | else |
81ecdfbb RW |
15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15202 | $as_echo "no" >&6; } | |
2429c060 | 15203 | fi |
c6b750e1 | 15204 | |
81ecdfbb | 15205 | |
2429c060 PB |
15206 | fi |
15207 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15208 | done | |
15209 | fi | |
c6b750e1 | 15210 | |
2429c060 PB |
15211 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15212 | set dummy ld | |
15213 | if test $build = $target ; then | |
15214 | LD_FOR_TARGET="$2" | |
15215 | else | |
15216 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15217 | fi | |
d3f5afc4 MS |
15218 | else |
15219 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
15220 | fi |
15221 | ||
3a35eeb3 PB |
15222 | else |
15223 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
15224 | fi |
15225 | ||
15226 | ||
15227 | ||
15228 | ||
15229 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15230 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15232 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15233 | if test -x $with_build_time_tools/lipo; then |
15234 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15235 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
15236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15237 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 15238 | else |
81ecdfbb RW |
15239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15240 | $as_echo "no" >&6; } | |
3a35eeb3 | 15241 | fi |
2429c060 PB |
15242 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15243 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
15244 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15245 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
15246 | fi |
15247 | fi | |
9a819804 AO |
15248 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15249 | # Extract the first word of "lipo", so it can be a program name with args. | |
15250 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
15251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15252 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15253 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15254 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15255 | else |
15256 | case $LIPO_FOR_TARGET in | |
15257 | [\\/]* | ?:[\\/]*) | |
15258 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15259 | ;; | |
15260 | *) | |
15261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15262 | for as_dir in $gcc_cv_tool_dirs | |
15263 | do | |
15264 | IFS=$as_save_IFS | |
15265 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15266 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15268 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15270 | break 2 |
15271 | fi | |
15272 | done | |
81ecdfbb RW |
15273 | done |
15274 | IFS=$as_save_IFS | |
9a819804 AO |
15275 | |
15276 | ;; | |
15277 | esac | |
15278 | fi | |
15279 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 15280 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15282 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 15283 | else |
81ecdfbb RW |
15284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15285 | $as_echo "no" >&6; } | |
9a819804 AO |
15286 | fi |
15287 | ||
81ecdfbb | 15288 | |
9a819804 AO |
15289 | fi |
15290 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15291 | ||
15292 | ||
15293 | if test -n "$LIPO_FOR_TARGET"; then | |
15294 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15295 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15296 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15297 | fi | |
15298 | ||
15299 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15300 | for ncn_progname in lipo; do | |
15301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15302 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15304 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15305 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15306 | $as_echo_n "(cached) " >&6 |
2429c060 | 15307 | else |
9a819804 AO |
15308 | if test -n "$LIPO_FOR_TARGET"; then |
15309 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15310 | else | |
15311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15312 | for as_dir in $PATH | |
c6b750e1 DJ |
15313 | do |
15314 | IFS=$as_save_IFS | |
15315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15316 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15318 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15320 | break 2 |
15321 | fi | |
15322 | done | |
81ecdfbb RW |
15323 | done |
15324 | IFS=$as_save_IFS | |
c6b750e1 | 15325 | |
2429c060 | 15326 | fi |
9a819804 AO |
15327 | fi |
15328 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 15329 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15331 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15332 | else |
81ecdfbb RW |
15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15334 | $as_echo "no" >&6; } | |
2429c060 PB |
15335 | fi |
15336 | ||
81ecdfbb | 15337 | |
9a819804 | 15338 | done |
2429c060 | 15339 | fi |
9a819804 AO |
15340 | |
15341 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15342 | for ncn_progname in lipo; do |
81ecdfbb RW |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15344 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15345 | if test -x $with_build_time_tools/${ncn_progname}; then |
15346 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15348 | $as_echo "yes" >&6; } | |
2429c060 PB |
15349 | break |
15350 | else | |
81ecdfbb RW |
15351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15352 | $as_echo "no" >&6; } | |
2429c060 PB |
15353 | fi |
15354 | done | |
15355 | fi | |
15356 | ||
15357 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15358 | for ncn_progname in lipo; do | |
15359 | if test -n "$ncn_target_tool_prefix"; then | |
15360 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15361 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15363 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15364 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15365 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15366 | else |
15367 | if test -n "$LIPO_FOR_TARGET"; then | |
15368 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15369 | else | |
c6b750e1 DJ |
15370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15371 | for as_dir in $PATH | |
15372 | do | |
15373 | IFS=$as_save_IFS | |
15374 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15375 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15376 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15377 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15379 | break 2 |
15380 | fi | |
15381 | done | |
81ecdfbb RW |
15382 | done |
15383 | IFS=$as_save_IFS | |
c6b750e1 | 15384 | |
2429c060 PB |
15385 | fi |
15386 | fi | |
c6b750e1 | 15387 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15388 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15390 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15391 | else |
81ecdfbb RW |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15393 | $as_echo "no" >&6; } | |
2429c060 PB |
15394 | fi |
15395 | ||
81ecdfbb | 15396 | |
2429c060 PB |
15397 | fi |
15398 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15400 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15402 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15403 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15404 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15405 | else |
15406 | if test -n "$LIPO_FOR_TARGET"; then | |
15407 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15408 | else | |
c6b750e1 DJ |
15409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15410 | for as_dir in $PATH | |
15411 | do | |
15412 | IFS=$as_save_IFS | |
15413 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15414 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15416 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15418 | break 2 |
15419 | fi | |
15420 | done | |
81ecdfbb RW |
15421 | done |
15422 | IFS=$as_save_IFS | |
c6b750e1 | 15423 | |
2429c060 PB |
15424 | fi |
15425 | fi | |
c6b750e1 | 15426 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15427 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15429 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15430 | else |
81ecdfbb RW |
15431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15432 | $as_echo "no" >&6; } | |
2429c060 | 15433 | fi |
c6b750e1 | 15434 | |
81ecdfbb | 15435 | |
2429c060 PB |
15436 | fi |
15437 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15438 | done | |
15439 | fi | |
c6b750e1 | 15440 | |
2429c060 PB |
15441 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15442 | set dummy lipo | |
15443 | if test $build = $target ; then | |
15444 | LIPO_FOR_TARGET="$2" | |
15445 | else | |
15446 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15447 | fi | |
d3f5afc4 MS |
15448 | else |
15449 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
15450 | fi |
15451 | ||
3a35eeb3 PB |
15452 | else |
15453 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
15454 | fi |
15455 | ||
15456 | ||
15457 | ||
15458 | ||
15459 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15460 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15462 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15463 | if test -x $with_build_time_tools/nm; then |
15464 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15465 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
15466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15467 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 15468 | else |
81ecdfbb RW |
15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15470 | $as_echo "no" >&6; } | |
3a35eeb3 | 15471 | fi |
2429c060 PB |
15472 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15473 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
15474 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15475 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
15476 | fi |
15477 | fi | |
c6b750e1 | 15478 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15479 | # Extract the first word of "nm", so it can be a program name with args. |
15480 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
15481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15482 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15483 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15484 | $as_echo_n "(cached) " >&6 |
2429c060 | 15485 | else |
c6b750e1 DJ |
15486 | case $NM_FOR_TARGET in |
15487 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15488 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15489 | ;; | |
2429c060 | 15490 | *) |
c6b750e1 DJ |
15491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15492 | for as_dir in $gcc_cv_tool_dirs | |
15493 | do | |
15494 | IFS=$as_save_IFS | |
15495 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15496 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15498 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15500 | break 2 |
15501 | fi | |
15502 | done | |
81ecdfbb RW |
15503 | done |
15504 | IFS=$as_save_IFS | |
c6b750e1 | 15505 | |
2429c060 PB |
15506 | ;; |
15507 | esac | |
15508 | fi | |
c6b750e1 | 15509 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 15510 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15512 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 15513 | else |
81ecdfbb RW |
15514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15515 | $as_echo "no" >&6; } | |
2429c060 PB |
15516 | fi |
15517 | ||
81ecdfbb | 15518 | |
2429c060 PB |
15519 | fi |
15520 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
15521 | |
15522 | ||
15523 | if test -n "$NM_FOR_TARGET"; then | |
15524 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15525 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15526 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15527 | fi | |
15528 | ||
15529 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15530 | for ncn_progname in nm; do | |
15531 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15532 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15534 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15535 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15536 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15537 | else |
15538 | if test -n "$NM_FOR_TARGET"; then | |
15539 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15540 | else | |
15541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15542 | for as_dir in $PATH | |
15543 | do | |
15544 | IFS=$as_save_IFS | |
15545 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15546 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15548 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15550 | break 2 |
15551 | fi | |
15552 | done | |
81ecdfbb RW |
15553 | done |
15554 | IFS=$as_save_IFS | |
9a819804 AO |
15555 | |
15556 | fi | |
15557 | fi | |
15558 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15559 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
15560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15561 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 15562 | else |
81ecdfbb RW |
15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15564 | $as_echo "no" >&6; } | |
9a819804 AO |
15565 | fi |
15566 | ||
81ecdfbb | 15567 | |
9a819804 AO |
15568 | done |
15569 | fi | |
15570 | ||
15571 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15572 | for ncn_progname in nm; do |
81ecdfbb RW |
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15574 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15575 | if test -x $with_build_time_tools/${ncn_progname}; then |
15576 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15578 | $as_echo "yes" >&6; } | |
2429c060 PB |
15579 | break |
15580 | else | |
81ecdfbb RW |
15581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15582 | $as_echo "no" >&6; } | |
2429c060 PB |
15583 | fi |
15584 | done | |
15585 | fi | |
15586 | ||
15587 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15588 | for ncn_progname in nm; do | |
15589 | if test -n "$ncn_target_tool_prefix"; then | |
15590 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 15591 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15593 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15594 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15595 | $as_echo_n "(cached) " >&6 |
859789af | 15596 | else |
55db4b87 PB |
15597 | if test -n "$NM_FOR_TARGET"; then |
15598 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15599 | else |
c6b750e1 DJ |
15600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15601 | for as_dir in $PATH | |
15602 | do | |
15603 | IFS=$as_save_IFS | |
15604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15605 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15606 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15607 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15609 | break 2 |
15610 | fi | |
15611 | done | |
81ecdfbb RW |
15612 | done |
15613 | IFS=$as_save_IFS | |
c6b750e1 | 15614 | |
859789af AC |
15615 | fi |
15616 | fi | |
c6b750e1 | 15617 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 15618 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15620 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15621 | else |
81ecdfbb RW |
15622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15623 | $as_echo "no" >&6; } | |
859789af AC |
15624 | fi |
15625 | ||
81ecdfbb | 15626 | |
2429c060 PB |
15627 | fi |
15628 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15629 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 15630 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15632 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15633 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15634 | $as_echo_n "(cached) " >&6 |
859789af | 15635 | else |
05cbd757 PB |
15636 | if test -n "$NM_FOR_TARGET"; then |
15637 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15638 | else |
c6b750e1 DJ |
15639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15640 | for as_dir in $PATH | |
15641 | do | |
15642 | IFS=$as_save_IFS | |
15643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15644 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15646 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15648 | break 2 |
15649 | fi | |
15650 | done | |
81ecdfbb RW |
15651 | done |
15652 | IFS=$as_save_IFS | |
c6b750e1 | 15653 | |
859789af AC |
15654 | fi |
15655 | fi | |
c6b750e1 | 15656 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 15657 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15659 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15660 | else |
81ecdfbb RW |
15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15662 | $as_echo "no" >&6; } | |
859789af | 15663 | fi |
c6b750e1 | 15664 | |
81ecdfbb | 15665 | |
2429c060 PB |
15666 | fi |
15667 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15668 | done | |
15669 | fi | |
c6b750e1 | 15670 | |
05cbd757 PB |
15671 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15672 | set dummy nm | |
15673 | if test $build = $target ; then | |
15674 | NM_FOR_TARGET="$2" | |
859789af | 15675 | else |
05cbd757 | 15676 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 15677 | fi |
d3f5afc4 MS |
15678 | else |
15679 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
15680 | fi |
15681 | ||
3a35eeb3 PB |
15682 | else |
15683 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
15684 | fi |
15685 | ||
15686 | ||
15687 | ||
15688 | ||
6b91c541 AP |
15689 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15690 | if test -n "$with_build_time_tools"; then | |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15692 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15693 | if test -x $with_build_time_tools/objcopy; then | |
15694 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15695 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15697 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15698 | else | |
15699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15700 | $as_echo "no" >&6; } | |
15701 | fi | |
15702 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15703 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15704 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15705 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15706 | fi | |
15707 | fi | |
15708 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15709 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15710 | set dummy objcopy; ac_word=$2 | |
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15712 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15713 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15714 | $as_echo_n "(cached) " >&6 |
15715 | else | |
15716 | case $OBJCOPY_FOR_TARGET in | |
15717 | [\\/]* | ?:[\\/]*) | |
15718 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15719 | ;; | |
15720 | *) | |
15721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15722 | for as_dir in $gcc_cv_tool_dirs | |
15723 | do | |
15724 | IFS=$as_save_IFS | |
15725 | test -z "$as_dir" && as_dir=. | |
15726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15728 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15730 | break 2 | |
15731 | fi | |
15732 | done | |
15733 | done | |
15734 | IFS=$as_save_IFS | |
15735 | ||
15736 | ;; | |
15737 | esac | |
15738 | fi | |
15739 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15740 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15742 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15743 | else | |
15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15745 | $as_echo "no" >&6; } | |
15746 | fi | |
15747 | ||
15748 | ||
15749 | fi | |
15750 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15751 | ||
15752 | ||
15753 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15754 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15755 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15756 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15757 | fi | |
15758 | ||
15759 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15760 | for ncn_progname in objcopy; do | |
15761 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15762 | set dummy ${ncn_progname}; ac_word=$2 | |
15763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15764 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15765 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15766 | $as_echo_n "(cached) " >&6 |
15767 | else | |
15768 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15769 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15770 | else | |
15771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15772 | for as_dir in $PATH | |
15773 | do | |
15774 | IFS=$as_save_IFS | |
15775 | test -z "$as_dir" && as_dir=. | |
15776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15778 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15780 | break 2 | |
15781 | fi | |
15782 | done | |
15783 | done | |
15784 | IFS=$as_save_IFS | |
15785 | ||
15786 | fi | |
15787 | fi | |
15788 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15789 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15791 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15792 | else | |
15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15794 | $as_echo "no" >&6; } | |
15795 | fi | |
15796 | ||
15797 | ||
15798 | done | |
15799 | fi | |
15800 | ||
15801 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15802 | for ncn_progname in objcopy; do | |
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15804 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15805 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15806 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15808 | $as_echo "yes" >&6; } | |
15809 | break | |
15810 | else | |
15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15812 | $as_echo "no" >&6; } | |
15813 | fi | |
15814 | done | |
15815 | fi | |
15816 | ||
15817 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15818 | for ncn_progname in objcopy; do | |
15819 | if test -n "$ncn_target_tool_prefix"; then | |
15820 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15821 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15823 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15824 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15825 | $as_echo_n "(cached) " >&6 |
15826 | else | |
15827 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15828 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15829 | else | |
15830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15831 | for as_dir in $PATH | |
15832 | do | |
15833 | IFS=$as_save_IFS | |
15834 | test -z "$as_dir" && as_dir=. | |
15835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15837 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15839 | break 2 | |
15840 | fi | |
15841 | done | |
15842 | done | |
15843 | IFS=$as_save_IFS | |
15844 | ||
15845 | fi | |
15846 | fi | |
15847 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15848 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15850 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15851 | else | |
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15853 | $as_echo "no" >&6; } | |
15854 | fi | |
15855 | ||
15856 | ||
15857 | fi | |
15858 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15859 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15860 | set dummy ${ncn_progname}; ac_word=$2 | |
15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15862 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15863 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15864 | $as_echo_n "(cached) " >&6 |
15865 | else | |
15866 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15867 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15868 | else | |
15869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15870 | for as_dir in $PATH | |
15871 | do | |
15872 | IFS=$as_save_IFS | |
15873 | test -z "$as_dir" && as_dir=. | |
15874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15876 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15878 | break 2 | |
15879 | fi | |
15880 | done | |
15881 | done | |
15882 | IFS=$as_save_IFS | |
15883 | ||
15884 | fi | |
15885 | fi | |
15886 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15887 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15889 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15890 | else | |
15891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15892 | $as_echo "no" >&6; } | |
15893 | fi | |
15894 | ||
15895 | ||
15896 | fi | |
15897 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15898 | done | |
15899 | fi | |
15900 | ||
15901 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15902 | set dummy objcopy | |
15903 | if test $build = $target ; then | |
15904 | OBJCOPY_FOR_TARGET="$2" | |
15905 | else | |
15906 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15907 | fi | |
15908 | else | |
15909 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15910 | fi | |
15911 | ||
15912 | else | |
15913 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15914 | fi | |
15915 | ||
15916 | ||
15917 | ||
15918 | ||
2429c060 PB |
15919 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15920 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15922 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15923 | if test -x $with_build_time_tools/objdump; then |
15924 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15925 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
15926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15927 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 15928 | else |
81ecdfbb RW |
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15930 | $as_echo "no" >&6; } | |
3a35eeb3 | 15931 | fi |
2429c060 PB |
15932 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15933 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
15934 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15935 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
15936 | fi |
15937 | fi | |
c6b750e1 | 15938 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15939 | # Extract the first word of "objdump", so it can be a program name with args. |
15940 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
15941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15942 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15943 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15944 | $as_echo_n "(cached) " >&6 |
2429c060 | 15945 | else |
c6b750e1 DJ |
15946 | case $OBJDUMP_FOR_TARGET in |
15947 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15948 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15949 | ;; | |
2429c060 | 15950 | *) |
c6b750e1 DJ |
15951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15952 | for as_dir in $gcc_cv_tool_dirs | |
15953 | do | |
15954 | IFS=$as_save_IFS | |
15955 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15956 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15958 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15960 | break 2 |
15961 | fi | |
15962 | done | |
81ecdfbb RW |
15963 | done |
15964 | IFS=$as_save_IFS | |
c6b750e1 | 15965 | |
2429c060 PB |
15966 | ;; |
15967 | esac | |
15968 | fi | |
c6b750e1 | 15969 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 15970 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
15971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15972 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 15973 | else |
81ecdfbb RW |
15974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15975 | $as_echo "no" >&6; } | |
2429c060 PB |
15976 | fi |
15977 | ||
81ecdfbb | 15978 | |
2429c060 PB |
15979 | fi |
15980 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
15981 | |
15982 | ||
15983 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15984 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15985 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15986 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15987 | fi | |
15988 | ||
15989 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15990 | for ncn_progname in objdump; do | |
15991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15992 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15994 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15995 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15996 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15997 | else |
15998 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15999 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16000 | else | |
16001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16002 | for as_dir in $PATH | |
16003 | do | |
16004 | IFS=$as_save_IFS | |
16005 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16006 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16008 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16010 | break 2 |
16011 | fi | |
16012 | done | |
81ecdfbb RW |
16013 | done |
16014 | IFS=$as_save_IFS | |
9a819804 AO |
16015 | |
16016 | fi | |
16017 | fi | |
16018 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16019 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
16020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16021 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 16022 | else |
81ecdfbb RW |
16023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16024 | $as_echo "no" >&6; } | |
9a819804 AO |
16025 | fi |
16026 | ||
81ecdfbb | 16027 | |
9a819804 AO |
16028 | done |
16029 | fi | |
16030 | ||
16031 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16032 | for ncn_progname in objdump; do |
81ecdfbb RW |
16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16034 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16035 | if test -x $with_build_time_tools/${ncn_progname}; then |
16036 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16038 | $as_echo "yes" >&6; } | |
2429c060 PB |
16039 | break |
16040 | else | |
81ecdfbb RW |
16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16042 | $as_echo "no" >&6; } | |
2429c060 PB |
16043 | fi |
16044 | done | |
16045 | fi | |
16046 | ||
16047 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16048 | for ncn_progname in objdump; do | |
16049 | if test -n "$ncn_target_tool_prefix"; then | |
16050 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16051 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16053 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16054 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16055 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16056 | else |
16057 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16058 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16059 | else | |
c6b750e1 DJ |
16060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16061 | for as_dir in $PATH | |
16062 | do | |
16063 | IFS=$as_save_IFS | |
16064 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16065 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16067 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16069 | break 2 |
16070 | fi | |
16071 | done | |
81ecdfbb RW |
16072 | done |
16073 | IFS=$as_save_IFS | |
c6b750e1 | 16074 | |
5ae72758 DJ |
16075 | fi |
16076 | fi | |
c6b750e1 | 16077 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16078 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16080 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16081 | else |
81ecdfbb RW |
16082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16083 | $as_echo "no" >&6; } | |
5ae72758 DJ |
16084 | fi |
16085 | ||
81ecdfbb | 16086 | |
2429c060 PB |
16087 | fi |
16088 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16090 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16092 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16093 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16094 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16095 | else |
16096 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16097 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16098 | else | |
c6b750e1 DJ |
16099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16100 | for as_dir in $PATH | |
16101 | do | |
16102 | IFS=$as_save_IFS | |
16103 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16104 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16106 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16108 | break 2 |
16109 | fi | |
16110 | done | |
81ecdfbb RW |
16111 | done |
16112 | IFS=$as_save_IFS | |
c6b750e1 | 16113 | |
5ae72758 DJ |
16114 | fi |
16115 | fi | |
c6b750e1 | 16116 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16117 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16119 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16120 | else |
81ecdfbb RW |
16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16122 | $as_echo "no" >&6; } | |
5ae72758 | 16123 | fi |
c6b750e1 | 16124 | |
81ecdfbb | 16125 | |
2429c060 PB |
16126 | fi |
16127 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16128 | done | |
16129 | fi | |
c6b750e1 | 16130 | |
5ae72758 DJ |
16131 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16132 | set dummy objdump | |
16133 | if test $build = $target ; then | |
16134 | OBJDUMP_FOR_TARGET="$2" | |
16135 | else | |
16136 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16137 | fi | |
d3f5afc4 MS |
16138 | else |
16139 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
16140 | fi |
16141 | ||
3a35eeb3 PB |
16142 | else |
16143 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
16144 | fi |
16145 | ||
16146 | ||
16147 | ||
16148 | ||
228cf97d AM |
16149 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16150 | if test -n "$with_build_time_tools"; then | |
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16152 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16153 | if test -x $with_build_time_tools/otool; then | |
16154 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16155 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16157 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16158 | else | |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16160 | $as_echo "no" >&6; } | |
16161 | fi | |
16162 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16163 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16164 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16165 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16166 | fi | |
16167 | fi | |
16168 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16169 | # Extract the first word of "otool", so it can be a program name with args. | |
16170 | set dummy otool; ac_word=$2 | |
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16172 | $as_echo_n "checking for $ac_word... " >&6; } | |
16173 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16174 | $as_echo_n "(cached) " >&6 | |
16175 | else | |
16176 | case $OTOOL_FOR_TARGET in | |
16177 | [\\/]* | ?:[\\/]*) | |
16178 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16179 | ;; | |
16180 | *) | |
16181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16182 | for as_dir in $gcc_cv_tool_dirs | |
16183 | do | |
16184 | IFS=$as_save_IFS | |
16185 | test -z "$as_dir" && as_dir=. | |
16186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16188 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16190 | break 2 | |
16191 | fi | |
16192 | done | |
16193 | done | |
16194 | IFS=$as_save_IFS | |
16195 | ||
16196 | ;; | |
16197 | esac | |
16198 | fi | |
16199 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16200 | if test -n "$OTOOL_FOR_TARGET"; then | |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16202 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16203 | else | |
16204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16205 | $as_echo "no" >&6; } | |
16206 | fi | |
16207 | ||
16208 | ||
16209 | fi | |
16210 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16211 | ||
16212 | ||
16213 | if test -n "$OTOOL_FOR_TARGET"; then | |
16214 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16215 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16216 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16217 | fi | |
16218 | ||
16219 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16220 | for ncn_progname in otool; do | |
16221 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16222 | set dummy ${ncn_progname}; ac_word=$2 | |
16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16224 | $as_echo_n "checking for $ac_word... " >&6; } | |
16225 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16226 | $as_echo_n "(cached) " >&6 | |
16227 | else | |
16228 | if test -n "$OTOOL_FOR_TARGET"; then | |
16229 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16230 | else | |
16231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16232 | for as_dir in $PATH | |
16233 | do | |
16234 | IFS=$as_save_IFS | |
16235 | test -z "$as_dir" && as_dir=. | |
16236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16237 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16238 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16240 | break 2 | |
16241 | fi | |
16242 | done | |
16243 | done | |
16244 | IFS=$as_save_IFS | |
16245 | ||
16246 | fi | |
16247 | fi | |
16248 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16249 | if test -n "$OTOOL_FOR_TARGET"; then | |
16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16251 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16252 | else | |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16254 | $as_echo "no" >&6; } | |
16255 | fi | |
16256 | ||
16257 | ||
16258 | done | |
16259 | fi | |
16260 | ||
16261 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16262 | for ncn_progname in otool; do | |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16264 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16265 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16266 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16268 | $as_echo "yes" >&6; } | |
16269 | break | |
16270 | else | |
16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16272 | $as_echo "no" >&6; } | |
16273 | fi | |
16274 | done | |
16275 | fi | |
16276 | ||
16277 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16278 | for ncn_progname in otool; do | |
16279 | if test -n "$ncn_target_tool_prefix"; then | |
16280 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16281 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16283 | $as_echo_n "checking for $ac_word... " >&6; } | |
16284 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16285 | $as_echo_n "(cached) " >&6 | |
16286 | else | |
16287 | if test -n "$OTOOL_FOR_TARGET"; then | |
16288 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16289 | else | |
16290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16291 | for as_dir in $PATH | |
16292 | do | |
16293 | IFS=$as_save_IFS | |
16294 | test -z "$as_dir" && as_dir=. | |
16295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16297 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16299 | break 2 | |
16300 | fi | |
16301 | done | |
16302 | done | |
16303 | IFS=$as_save_IFS | |
16304 | ||
16305 | fi | |
16306 | fi | |
16307 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16308 | if test -n "$OTOOL_FOR_TARGET"; then | |
16309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16310 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16311 | else | |
16312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16313 | $as_echo "no" >&6; } | |
16314 | fi | |
16315 | ||
16316 | ||
16317 | fi | |
16318 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16319 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16320 | set dummy ${ncn_progname}; ac_word=$2 | |
16321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16322 | $as_echo_n "checking for $ac_word... " >&6; } | |
16323 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16324 | $as_echo_n "(cached) " >&6 | |
16325 | else | |
16326 | if test -n "$OTOOL_FOR_TARGET"; then | |
16327 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16328 | else | |
16329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16330 | for as_dir in $PATH | |
16331 | do | |
16332 | IFS=$as_save_IFS | |
16333 | test -z "$as_dir" && as_dir=. | |
16334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16335 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16336 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16338 | break 2 | |
16339 | fi | |
16340 | done | |
16341 | done | |
16342 | IFS=$as_save_IFS | |
16343 | ||
16344 | fi | |
16345 | fi | |
16346 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16347 | if test -n "$OTOOL_FOR_TARGET"; then | |
16348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16349 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16350 | else | |
16351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16352 | $as_echo "no" >&6; } | |
16353 | fi | |
16354 | ||
16355 | ||
16356 | fi | |
16357 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16358 | done | |
16359 | fi | |
16360 | ||
16361 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16362 | set dummy otool | |
16363 | if test $build = $target ; then | |
16364 | OTOOL_FOR_TARGET="$2" | |
16365 | else | |
16366 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16367 | fi | |
16368 | else | |
16369 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16370 | fi | |
16371 | ||
16372 | else | |
16373 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16374 | fi | |
16375 | ||
16376 | ||
16377 | ||
16378 | ||
2429c060 PB |
16379 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16380 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16382 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16383 | if test -x $with_build_time_tools/ranlib; then |
16384 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16385 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16387 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 16388 | else |
81ecdfbb RW |
16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16390 | $as_echo "no" >&6; } | |
3a35eeb3 | 16391 | fi |
2429c060 PB |
16392 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16393 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
16394 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16395 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
16396 | fi |
16397 | fi | |
c6b750e1 | 16398 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16399 | # Extract the first word of "ranlib", so it can be a program name with args. |
16400 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16402 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16403 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16404 | $as_echo_n "(cached) " >&6 |
2429c060 | 16405 | else |
c6b750e1 DJ |
16406 | case $RANLIB_FOR_TARGET in |
16407 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16408 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16409 | ;; | |
2429c060 | 16410 | *) |
c6b750e1 DJ |
16411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16412 | for as_dir in $gcc_cv_tool_dirs | |
16413 | do | |
16414 | IFS=$as_save_IFS | |
16415 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16416 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16418 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16420 | break 2 |
16421 | fi | |
16422 | done | |
81ecdfbb RW |
16423 | done |
16424 | IFS=$as_save_IFS | |
c6b750e1 | 16425 | |
2429c060 PB |
16426 | ;; |
16427 | esac | |
16428 | fi | |
c6b750e1 | 16429 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 16430 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16432 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 16433 | else |
81ecdfbb RW |
16434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16435 | $as_echo "no" >&6; } | |
2429c060 PB |
16436 | fi |
16437 | ||
81ecdfbb | 16438 | |
2429c060 PB |
16439 | fi |
16440 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
16441 | |
16442 | ||
16443 | if test -n "$RANLIB_FOR_TARGET"; then | |
16444 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16445 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16446 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16447 | fi | |
16448 | ||
16449 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16450 | for ncn_progname in ranlib; do | |
16451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16452 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16454 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16455 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16456 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16457 | else |
16458 | if test -n "$RANLIB_FOR_TARGET"; then | |
16459 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16460 | else | |
16461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16462 | for as_dir in $PATH | |
16463 | do | |
16464 | IFS=$as_save_IFS | |
16465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16466 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16468 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16470 | break 2 |
16471 | fi | |
16472 | done | |
81ecdfbb RW |
16473 | done |
16474 | IFS=$as_save_IFS | |
9a819804 AO |
16475 | |
16476 | fi | |
16477 | fi | |
16478 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16479 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16481 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 16482 | else |
81ecdfbb RW |
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16484 | $as_echo "no" >&6; } | |
9a819804 AO |
16485 | fi |
16486 | ||
81ecdfbb | 16487 | |
9a819804 AO |
16488 | done |
16489 | fi | |
16490 | ||
16491 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16492 | for ncn_progname in ranlib; do |
81ecdfbb RW |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16494 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16495 | if test -x $with_build_time_tools/${ncn_progname}; then |
16496 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16498 | $as_echo "yes" >&6; } | |
2429c060 PB |
16499 | break |
16500 | else | |
81ecdfbb RW |
16501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16502 | $as_echo "no" >&6; } | |
2429c060 PB |
16503 | fi |
16504 | done | |
16505 | fi | |
16506 | ||
16507 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16508 | for ncn_progname in ranlib; do | |
16509 | if test -n "$ncn_target_tool_prefix"; then | |
16510 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16511 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16513 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16514 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16515 | $as_echo_n "(cached) " >&6 |
859789af | 16516 | else |
55db4b87 PB |
16517 | if test -n "$RANLIB_FOR_TARGET"; then |
16518 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16519 | else |
c6b750e1 DJ |
16520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16521 | for as_dir in $PATH | |
16522 | do | |
16523 | IFS=$as_save_IFS | |
16524 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16525 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16527 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16529 | break 2 |
16530 | fi | |
16531 | done | |
81ecdfbb RW |
16532 | done |
16533 | IFS=$as_save_IFS | |
c6b750e1 | 16534 | |
859789af AC |
16535 | fi |
16536 | fi | |
c6b750e1 | 16537 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 16538 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16540 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16541 | else |
81ecdfbb RW |
16542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16543 | $as_echo "no" >&6; } | |
859789af AC |
16544 | fi |
16545 | ||
81ecdfbb | 16546 | |
2429c060 PB |
16547 | fi |
16548 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16549 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16550 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16552 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16553 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16554 | $as_echo_n "(cached) " >&6 |
859789af | 16555 | else |
05cbd757 PB |
16556 | if test -n "$RANLIB_FOR_TARGET"; then |
16557 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16558 | else |
c6b750e1 DJ |
16559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16560 | for as_dir in $PATH | |
16561 | do | |
16562 | IFS=$as_save_IFS | |
16563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16564 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16566 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16568 | break 2 |
16569 | fi | |
16570 | done | |
81ecdfbb RW |
16571 | done |
16572 | IFS=$as_save_IFS | |
c6b750e1 | 16573 | |
859789af AC |
16574 | fi |
16575 | fi | |
c6b750e1 | 16576 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 16577 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16579 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16580 | else |
81ecdfbb RW |
16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16582 | $as_echo "no" >&6; } | |
859789af | 16583 | fi |
c6b750e1 | 16584 | |
81ecdfbb | 16585 | |
2429c060 PB |
16586 | fi |
16587 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16588 | done | |
16589 | fi | |
c6b750e1 | 16590 | |
2429c060 PB |
16591 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16592 | set dummy ranlib | |
16593 | if test $build = $target ; then | |
16594 | RANLIB_FOR_TARGET="$2" | |
16595 | else | |
16596 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 16597 | fi |
d3f5afc4 MS |
16598 | else |
16599 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 16600 | fi |
05cbd757 | 16601 | |
3a35eeb3 PB |
16602 | else |
16603 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
16604 | fi |
16605 | ||
2429c060 PB |
16606 | |
16607 | ||
16608 | ||
b121d7d4 DD |
16609 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16610 | if test -n "$with_build_time_tools"; then | |
16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16612 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16613 | if test -x $with_build_time_tools/readelf; then | |
16614 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16615 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16617 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16618 | else | |
16619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16620 | $as_echo "no" >&6; } | |
16621 | fi | |
16622 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16623 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16624 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16625 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16626 | fi | |
16627 | fi | |
16628 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16629 | # Extract the first word of "readelf", so it can be a program name with args. | |
16630 | set dummy readelf; ac_word=$2 | |
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16632 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16633 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16634 | $as_echo_n "(cached) " >&6 |
16635 | else | |
16636 | case $READELF_FOR_TARGET in | |
16637 | [\\/]* | ?:[\\/]*) | |
16638 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16639 | ;; | |
16640 | *) | |
16641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16642 | for as_dir in $gcc_cv_tool_dirs | |
16643 | do | |
16644 | IFS=$as_save_IFS | |
16645 | test -z "$as_dir" && as_dir=. | |
16646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16648 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16650 | break 2 | |
16651 | fi | |
16652 | done | |
16653 | done | |
16654 | IFS=$as_save_IFS | |
16655 | ||
16656 | ;; | |
16657 | esac | |
16658 | fi | |
16659 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16660 | if test -n "$READELF_FOR_TARGET"; then | |
16661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16662 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16663 | else | |
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16665 | $as_echo "no" >&6; } | |
16666 | fi | |
16667 | ||
16668 | ||
16669 | fi | |
16670 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16671 | ||
16672 | ||
16673 | if test -n "$READELF_FOR_TARGET"; then | |
16674 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16675 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16676 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16677 | fi | |
16678 | ||
16679 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16680 | for ncn_progname in readelf; do | |
16681 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16682 | set dummy ${ncn_progname}; ac_word=$2 | |
16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16684 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16685 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16686 | $as_echo_n "(cached) " >&6 |
16687 | else | |
16688 | if test -n "$READELF_FOR_TARGET"; then | |
16689 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16690 | else | |
16691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16692 | for as_dir in $PATH | |
16693 | do | |
16694 | IFS=$as_save_IFS | |
16695 | test -z "$as_dir" && as_dir=. | |
16696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16698 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16700 | break 2 | |
16701 | fi | |
16702 | done | |
16703 | done | |
16704 | IFS=$as_save_IFS | |
16705 | ||
16706 | fi | |
16707 | fi | |
16708 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16709 | if test -n "$READELF_FOR_TARGET"; then | |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16711 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16712 | else | |
16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16714 | $as_echo "no" >&6; } | |
16715 | fi | |
16716 | ||
16717 | ||
16718 | done | |
16719 | fi | |
16720 | ||
16721 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16722 | for ncn_progname in readelf; do | |
16723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16724 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16725 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16726 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16728 | $as_echo "yes" >&6; } | |
16729 | break | |
16730 | else | |
16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16732 | $as_echo "no" >&6; } | |
16733 | fi | |
16734 | done | |
16735 | fi | |
16736 | ||
16737 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16738 | for ncn_progname in readelf; do | |
16739 | if test -n "$ncn_target_tool_prefix"; then | |
16740 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16741 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16743 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16744 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16745 | $as_echo_n "(cached) " >&6 |
16746 | else | |
16747 | if test -n "$READELF_FOR_TARGET"; then | |
16748 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16749 | else | |
16750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16751 | for as_dir in $PATH | |
16752 | do | |
16753 | IFS=$as_save_IFS | |
16754 | test -z "$as_dir" && as_dir=. | |
16755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16757 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16759 | break 2 | |
16760 | fi | |
16761 | done | |
16762 | done | |
16763 | IFS=$as_save_IFS | |
16764 | ||
16765 | fi | |
16766 | fi | |
16767 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16768 | if test -n "$READELF_FOR_TARGET"; then | |
16769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16770 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16771 | else | |
16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16773 | $as_echo "no" >&6; } | |
16774 | fi | |
16775 | ||
16776 | ||
16777 | fi | |
16778 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16779 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16780 | set dummy ${ncn_progname}; ac_word=$2 | |
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16782 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16783 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16784 | $as_echo_n "(cached) " >&6 |
16785 | else | |
16786 | if test -n "$READELF_FOR_TARGET"; then | |
16787 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16788 | else | |
16789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16790 | for as_dir in $PATH | |
16791 | do | |
16792 | IFS=$as_save_IFS | |
16793 | test -z "$as_dir" && as_dir=. | |
16794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16796 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16798 | break 2 | |
16799 | fi | |
16800 | done | |
16801 | done | |
16802 | IFS=$as_save_IFS | |
16803 | ||
16804 | fi | |
16805 | fi | |
16806 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16807 | if test -n "$READELF_FOR_TARGET"; then | |
16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16809 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16810 | else | |
16811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16812 | $as_echo "no" >&6; } | |
16813 | fi | |
16814 | ||
16815 | ||
16816 | fi | |
16817 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16818 | done | |
16819 | fi | |
16820 | ||
16821 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16822 | set dummy readelf | |
16823 | if test $build = $target ; then | |
16824 | READELF_FOR_TARGET="$2" | |
16825 | else | |
16826 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16827 | fi | |
16828 | else | |
16829 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16830 | fi | |
16831 | ||
16832 | else | |
16833 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16834 | fi | |
16835 | ||
16836 | ||
16837 | ||
16838 | ||
2429c060 PB |
16839 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16840 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16842 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16843 | if test -x $with_build_time_tools/strip; then |
16844 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16845 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16847 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 16848 | else |
81ecdfbb RW |
16849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16850 | $as_echo "no" >&6; } | |
3a35eeb3 | 16851 | fi |
2429c060 PB |
16852 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16853 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
16854 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16855 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
16856 | fi |
16857 | fi | |
c6b750e1 | 16858 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16859 | # Extract the first word of "strip", so it can be a program name with args. |
16860 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16862 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16863 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16864 | $as_echo_n "(cached) " >&6 |
2429c060 | 16865 | else |
c6b750e1 DJ |
16866 | case $STRIP_FOR_TARGET in |
16867 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16868 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16869 | ;; | |
2429c060 | 16870 | *) |
c6b750e1 DJ |
16871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16872 | for as_dir in $gcc_cv_tool_dirs | |
16873 | do | |
16874 | IFS=$as_save_IFS | |
16875 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16876 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16878 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16880 | break 2 |
16881 | fi | |
16882 | done | |
81ecdfbb RW |
16883 | done |
16884 | IFS=$as_save_IFS | |
c6b750e1 | 16885 | |
2429c060 PB |
16886 | ;; |
16887 | esac | |
16888 | fi | |
c6b750e1 | 16889 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 16890 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16892 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 16893 | else |
81ecdfbb RW |
16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16895 | $as_echo "no" >&6; } | |
2429c060 PB |
16896 | fi |
16897 | ||
81ecdfbb | 16898 | |
2429c060 PB |
16899 | fi |
16900 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
16901 | |
16902 | ||
16903 | if test -n "$STRIP_FOR_TARGET"; then | |
16904 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16905 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16906 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16907 | fi | |
16908 | ||
16909 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16910 | for ncn_progname in strip; do | |
16911 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16912 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16914 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16915 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16916 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16917 | else |
16918 | if test -n "$STRIP_FOR_TARGET"; then | |
16919 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16920 | else | |
16921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16922 | for as_dir in $PATH | |
16923 | do | |
16924 | IFS=$as_save_IFS | |
16925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16926 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16927 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16928 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16930 | break 2 |
16931 | fi | |
16932 | done | |
81ecdfbb RW |
16933 | done |
16934 | IFS=$as_save_IFS | |
9a819804 AO |
16935 | |
16936 | fi | |
16937 | fi | |
16938 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16939 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16941 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 16942 | else |
81ecdfbb RW |
16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16944 | $as_echo "no" >&6; } | |
9a819804 AO |
16945 | fi |
16946 | ||
81ecdfbb | 16947 | |
9a819804 AO |
16948 | done |
16949 | fi | |
16950 | ||
16951 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16952 | for ncn_progname in strip; do |
81ecdfbb RW |
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16954 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16955 | if test -x $with_build_time_tools/${ncn_progname}; then |
16956 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16958 | $as_echo "yes" >&6; } | |
2429c060 PB |
16959 | break |
16960 | else | |
81ecdfbb RW |
16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16962 | $as_echo "no" >&6; } | |
2429c060 PB |
16963 | fi |
16964 | done | |
16965 | fi | |
16966 | ||
16967 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16968 | for ncn_progname in strip; do | |
16969 | if test -n "$ncn_target_tool_prefix"; then | |
16970 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 16971 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16973 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16974 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16975 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
16976 | else |
16977 | if test -n "$STRIP_FOR_TARGET"; then | |
16978 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
16979 | else |
16980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16981 | for as_dir in $PATH | |
16982 | do | |
16983 | IFS=$as_save_IFS | |
16984 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16985 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16987 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16989 | break 2 |
16990 | fi | |
16991 | done | |
81ecdfbb RW |
16992 | done |
16993 | IFS=$as_save_IFS | |
c6b750e1 | 16994 | |
7e0f7140 GK |
16995 | fi |
16996 | fi | |
c6b750e1 | 16997 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 16998 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17000 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17001 | else |
81ecdfbb RW |
17002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17003 | $as_echo "no" >&6; } | |
7e0f7140 GK |
17004 | fi |
17005 | ||
81ecdfbb | 17006 | |
2429c060 PB |
17007 | fi |
17008 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 17010 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17012 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17013 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 17014 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
17015 | else |
17016 | if test -n "$STRIP_FOR_TARGET"; then | |
17017 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17018 | else | |
c6b750e1 DJ |
17019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17020 | for as_dir in $PATH | |
17021 | do | |
17022 | IFS=$as_save_IFS | |
17023 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17024 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17026 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17028 | break 2 |
17029 | fi | |
17030 | done | |
81ecdfbb RW |
17031 | done |
17032 | IFS=$as_save_IFS | |
c6b750e1 | 17033 | |
7e0f7140 GK |
17034 | fi |
17035 | fi | |
c6b750e1 | 17036 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 17037 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17039 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17040 | else |
81ecdfbb RW |
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17042 | $as_echo "no" >&6; } | |
7e0f7140 | 17043 | fi |
c6b750e1 | 17044 | |
81ecdfbb | 17045 | |
2429c060 PB |
17046 | fi |
17047 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17048 | done | |
17049 | fi | |
c6b750e1 | 17050 | |
7e0f7140 GK |
17051 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17052 | set dummy strip | |
17053 | if test $build = $target ; then | |
17054 | STRIP_FOR_TARGET="$2" | |
17055 | else | |
17056 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17057 | fi | |
d3f5afc4 MS |
17058 | else |
17059 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
17060 | fi |
17061 | ||
3a35eeb3 PB |
17062 | else |
17063 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
17064 | fi |
17065 | ||
17066 | ||
17067 | ||
17068 | ||
17069 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17070 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17072 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17073 | if test -x $with_build_time_tools/windres; then |
17074 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17075 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17077 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 17078 | else |
81ecdfbb RW |
17079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17080 | $as_echo "no" >&6; } | |
3a35eeb3 | 17081 | fi |
2429c060 PB |
17082 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17083 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
17084 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17085 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
17086 | fi |
17087 | fi | |
c6b750e1 | 17088 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
17089 | # Extract the first word of "windres", so it can be a program name with args. |
17090 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
17091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17092 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17093 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17094 | $as_echo_n "(cached) " >&6 |
2429c060 | 17095 | else |
c6b750e1 DJ |
17096 | case $WINDRES_FOR_TARGET in |
17097 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
17098 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17099 | ;; | |
2429c060 | 17100 | *) |
c6b750e1 DJ |
17101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17102 | for as_dir in $gcc_cv_tool_dirs | |
17103 | do | |
17104 | IFS=$as_save_IFS | |
17105 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17106 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17107 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17108 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17110 | break 2 |
17111 | fi | |
17112 | done | |
81ecdfbb RW |
17113 | done |
17114 | IFS=$as_save_IFS | |
c6b750e1 | 17115 | |
2429c060 PB |
17116 | ;; |
17117 | esac | |
17118 | fi | |
c6b750e1 | 17119 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 17120 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17122 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 17123 | else |
81ecdfbb RW |
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17125 | $as_echo "no" >&6; } | |
2429c060 PB |
17126 | fi |
17127 | ||
81ecdfbb | 17128 | |
2429c060 PB |
17129 | fi |
17130 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
17131 | |
17132 | ||
17133 | if test -n "$WINDRES_FOR_TARGET"; then | |
17134 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17135 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17136 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17137 | fi | |
17138 | ||
17139 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17140 | for ncn_progname in windres; do | |
17141 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17142 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17144 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17145 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17146 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
17147 | else |
17148 | if test -n "$WINDRES_FOR_TARGET"; then | |
17149 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17150 | else | |
17151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17152 | for as_dir in $PATH | |
17153 | do | |
17154 | IFS=$as_save_IFS | |
17155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 17158 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
17160 | break 2 |
17161 | fi | |
17162 | done | |
81ecdfbb RW |
17163 | done |
17164 | IFS=$as_save_IFS | |
9a819804 AO |
17165 | |
17166 | fi | |
17167 | fi | |
17168 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17169 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
17170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17171 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 17172 | else |
81ecdfbb RW |
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17174 | $as_echo "no" >&6; } | |
9a819804 AO |
17175 | fi |
17176 | ||
81ecdfbb | 17177 | |
9a819804 AO |
17178 | done |
17179 | fi | |
17180 | ||
17181 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 17182 | for ncn_progname in windres; do |
81ecdfbb RW |
17183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17184 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17185 | if test -x $with_build_time_tools/${ncn_progname}; then |
17186 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17188 | $as_echo "yes" >&6; } | |
2429c060 PB |
17189 | break |
17190 | else | |
81ecdfbb RW |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17192 | $as_echo "no" >&6; } | |
2429c060 PB |
17193 | fi |
17194 | done | |
17195 | fi | |
17196 | ||
17197 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17198 | for ncn_progname in windres; do | |
17199 | if test -n "$ncn_target_tool_prefix"; then | |
17200 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17201 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17203 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17204 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17205 | $as_echo_n "(cached) " >&6 |
859789af | 17206 | else |
55db4b87 PB |
17207 | if test -n "$WINDRES_FOR_TARGET"; then |
17208 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17209 | else |
c6b750e1 DJ |
17210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17211 | for as_dir in $PATH | |
17212 | do | |
17213 | IFS=$as_save_IFS | |
17214 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17215 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17217 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17219 | break 2 |
17220 | fi | |
17221 | done | |
81ecdfbb RW |
17222 | done |
17223 | IFS=$as_save_IFS | |
c6b750e1 | 17224 | |
859789af AC |
17225 | fi |
17226 | fi | |
c6b750e1 | 17227 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 17228 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17230 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17231 | else |
81ecdfbb RW |
17232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17233 | $as_echo "no" >&6; } | |
859789af AC |
17234 | fi |
17235 | ||
81ecdfbb | 17236 | |
2429c060 PB |
17237 | fi |
17238 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17239 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17240 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17242 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17243 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17244 | $as_echo_n "(cached) " >&6 |
859789af | 17245 | else |
05cbd757 PB |
17246 | if test -n "$WINDRES_FOR_TARGET"; then |
17247 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17248 | else |
c6b750e1 DJ |
17249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17250 | for as_dir in $PATH | |
17251 | do | |
17252 | IFS=$as_save_IFS | |
17253 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17254 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17256 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17258 | break 2 |
17259 | fi | |
17260 | done | |
81ecdfbb RW |
17261 | done |
17262 | IFS=$as_save_IFS | |
c6b750e1 | 17263 | |
859789af AC |
17264 | fi |
17265 | fi | |
c6b750e1 | 17266 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 17267 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17269 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17270 | else |
81ecdfbb RW |
17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17272 | $as_echo "no" >&6; } | |
859789af | 17273 | fi |
c6b750e1 | 17274 | |
81ecdfbb | 17275 | |
2429c060 PB |
17276 | fi |
17277 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17278 | done | |
17279 | fi | |
c6b750e1 | 17280 | |
05cbd757 PB |
17281 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17282 | set dummy windres | |
17283 | if test $build = $target ; then | |
17284 | WINDRES_FOR_TARGET="$2" | |
859789af | 17285 | else |
05cbd757 | 17286 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 17287 | fi |
d3f5afc4 MS |
17288 | else |
17289 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
17290 | fi |
17291 | ||
3a35eeb3 PB |
17292 | else |
17293 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
17294 | fi |
17295 | ||
852e5f18 | 17296 | |
0c24b341 NC |
17297 | |
17298 | ||
17299 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17300 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17302 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17303 | if test -x $with_build_time_tools/windmc; then |
17304 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17305 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17307 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17308 | else |
81ecdfbb RW |
17309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17310 | $as_echo "no" >&6; } | |
0c24b341 NC |
17311 | fi |
17312 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17313 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
17314 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
17315 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17316 | fi | |
17317 | fi | |
17318 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17319 | # Extract the first word of "windmc", so it can be a program name with args. | |
17320 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
17321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17322 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17323 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17324 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17325 | else |
17326 | case $WINDMC_FOR_TARGET in | |
17327 | [\\/]* | ?:[\\/]*) | |
17328 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17329 | ;; | |
17330 | *) | |
17331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17332 | for as_dir in $gcc_cv_tool_dirs | |
17333 | do | |
17334 | IFS=$as_save_IFS | |
17335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17336 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17338 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17340 | break 2 |
17341 | fi | |
17342 | done | |
81ecdfbb RW |
17343 | done |
17344 | IFS=$as_save_IFS | |
0c24b341 NC |
17345 | |
17346 | ;; | |
17347 | esac | |
17348 | fi | |
17349 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 17350 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17352 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17353 | else |
81ecdfbb RW |
17354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17355 | $as_echo "no" >&6; } | |
0c24b341 NC |
17356 | fi |
17357 | ||
81ecdfbb | 17358 | |
0c24b341 NC |
17359 | fi |
17360 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17361 | ||
17362 | ||
17363 | if test -n "$WINDMC_FOR_TARGET"; then | |
17364 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17365 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17366 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17367 | fi | |
17368 | ||
17369 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17370 | for ncn_progname in windmc; do | |
17371 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17372 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17374 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17375 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17376 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17377 | else |
17378 | if test -n "$WINDMC_FOR_TARGET"; then | |
17379 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17380 | else | |
17381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17382 | for as_dir in $PATH | |
17383 | do | |
17384 | IFS=$as_save_IFS | |
17385 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17386 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17387 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17388 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17390 | break 2 |
17391 | fi | |
17392 | done | |
81ecdfbb RW |
17393 | done |
17394 | IFS=$as_save_IFS | |
0c24b341 NC |
17395 | |
17396 | fi | |
17397 | fi | |
17398 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17399 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17401 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17402 | else |
81ecdfbb RW |
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17404 | $as_echo "no" >&6; } | |
0c24b341 NC |
17405 | fi |
17406 | ||
81ecdfbb | 17407 | |
0c24b341 NC |
17408 | done |
17409 | fi | |
17410 | ||
17411 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17412 | for ncn_progname in windmc; do | |
81ecdfbb RW |
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17414 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17415 | if test -x $with_build_time_tools/${ncn_progname}; then |
17416 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17418 | $as_echo "yes" >&6; } | |
0c24b341 NC |
17419 | break |
17420 | else | |
81ecdfbb RW |
17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17422 | $as_echo "no" >&6; } | |
0c24b341 NC |
17423 | fi |
17424 | done | |
17425 | fi | |
17426 | ||
17427 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17428 | for ncn_progname in windmc; do | |
17429 | if test -n "$ncn_target_tool_prefix"; then | |
17430 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17431 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17433 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17434 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17435 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17436 | else |
17437 | if test -n "$WINDMC_FOR_TARGET"; then | |
17438 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17439 | else | |
17440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17441 | for as_dir in $PATH | |
17442 | do | |
17443 | IFS=$as_save_IFS | |
17444 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17445 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17447 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17449 | break 2 |
17450 | fi | |
17451 | done | |
81ecdfbb RW |
17452 | done |
17453 | IFS=$as_save_IFS | |
0c24b341 NC |
17454 | |
17455 | fi | |
17456 | fi | |
17457 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17458 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17460 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17461 | else |
81ecdfbb RW |
17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17463 | $as_echo "no" >&6; } | |
0c24b341 NC |
17464 | fi |
17465 | ||
81ecdfbb | 17466 | |
0c24b341 NC |
17467 | fi |
17468 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17469 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17470 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17472 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17473 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17474 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17475 | else |
17476 | if test -n "$WINDMC_FOR_TARGET"; then | |
17477 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17478 | else | |
17479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17480 | for as_dir in $PATH | |
17481 | do | |
17482 | IFS=$as_save_IFS | |
17483 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17484 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17485 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17486 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17488 | break 2 |
17489 | fi | |
17490 | done | |
81ecdfbb RW |
17491 | done |
17492 | IFS=$as_save_IFS | |
0c24b341 NC |
17493 | |
17494 | fi | |
17495 | fi | |
17496 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17497 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17499 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17500 | else |
81ecdfbb RW |
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17502 | $as_echo "no" >&6; } | |
0c24b341 NC |
17503 | fi |
17504 | ||
81ecdfbb | 17505 | |
0c24b341 NC |
17506 | fi |
17507 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17508 | done | |
17509 | fi | |
17510 | ||
17511 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17512 | set dummy windmc | |
17513 | if test $build = $target ; then | |
17514 | WINDMC_FOR_TARGET="$2" | |
17515 | else | |
17516 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17517 | fi | |
17518 | else | |
17519 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
17520 | fi | |
17521 | ||
17522 | else | |
17523 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17524 | fi | |
17525 | ||
17526 | ||
be01d343 PB |
17527 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17528 | ||
81ecdfbb RW |
17529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17530 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 17531 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17532 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17533 | # We already found the complete path | |
b8025f34 | 17534 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17536 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17537 | else |
17538 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17540 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17541 | fi |
be01d343 PB |
17542 | else |
17543 | ok=yes | |
17544 | case " ${configdirs} " in | |
17545 | *" binutils "*) ;; | |
17546 | *) ok=no ;; | |
17547 | esac | |
c6b750e1 | 17548 | |
be01d343 PB |
17549 | if test $ok = yes; then |
17550 | # An in-tree tool is available and we can use it | |
17551 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
17552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17553 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17554 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17555 | # We already found the complete path | |
b8025f34 | 17556 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17558 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17559 | elif test "x$target" = "x$host"; then |
17560 | # We can use an host tool | |
17561 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17563 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17564 | else |
17565 | # We need a cross tool | |
81ecdfbb RW |
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17567 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17568 | fi |
17569 | fi | |
4b900473 | 17570 | |
81ecdfbb RW |
17571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17572 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 17573 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17574 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17575 | # We already found the complete path | |
b8025f34 | 17576 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17578 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17579 | else |
17580 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17582 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17583 | fi |
be01d343 PB |
17584 | else |
17585 | ok=yes | |
17586 | case " ${configdirs} " in | |
17587 | *" gas "*) ;; | |
17588 | *) ok=no ;; | |
17589 | esac | |
c6b750e1 | 17590 | |
be01d343 PB |
17591 | if test $ok = yes; then |
17592 | # An in-tree tool is available and we can use it | |
17593 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
17594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17595 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17596 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17597 | # We already found the complete path | |
b8025f34 | 17598 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17600 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17601 | elif test "x$target" = "x$host"; then |
17602 | # We can use an host tool | |
17603 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
17604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17605 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17606 | else |
17607 | # We need a cross tool | |
81ecdfbb RW |
17608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17609 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17610 | fi |
17611 | fi | |
4b900473 | 17612 | |
81ecdfbb RW |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17614 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 17615 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17616 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17617 | # We already found the complete path | |
b8025f34 | 17618 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17620 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17621 | else |
17622 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17624 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17625 | fi |
be01d343 PB |
17626 | else |
17627 | ok=yes | |
17628 | case " ${configdirs} " in | |
17629 | *" gcc "*) ;; | |
17630 | *) ok=no ;; | |
17631 | esac | |
c6b750e1 | 17632 | |
be01d343 PB |
17633 | if test $ok = yes; then |
17634 | # An in-tree tool is available and we can use it | |
17635 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17637 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17638 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17639 | # We already found the complete path | |
b8025f34 | 17640 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17642 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17643 | elif test "x$target" = "x$host"; then |
17644 | # We can use an host tool | |
17645 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17647 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17648 | else |
17649 | # We need a cross tool | |
81ecdfbb RW |
17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17651 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17652 | fi |
17653 | fi | |
4b900473 | 17654 | |
81ecdfbb RW |
17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17656 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 17657 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17658 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17659 | # We already found the complete path | |
b8025f34 | 17660 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17662 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17663 | else |
17664 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17666 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17667 | fi |
be01d343 PB |
17668 | else |
17669 | ok=yes | |
17670 | case " ${configdirs} " in | |
17671 | *" gcc "*) ;; | |
17672 | *) ok=no ;; | |
17673 | esac | |
17674 | case ,${enable_languages}, in | |
17675 | *,c++,*) ;; | |
17676 | *) ok=no ;; | |
17677 | esac | |
17678 | if test $ok = yes; then | |
17679 | # An in-tree tool is available and we can use it | |
95e43135 | 17680 | 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' |
81ecdfbb RW |
17681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17682 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17683 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17684 | # We already found the complete path | |
b8025f34 | 17685 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17687 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17688 | elif test "x$target" = "x$host"; then |
17689 | # We can use an host tool | |
17690 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17692 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17693 | else |
17694 | # We need a cross tool | |
81ecdfbb RW |
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17696 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17697 | fi |
17698 | fi | |
4b900473 | 17699 | |
81ecdfbb RW |
17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17701 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 17702 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17703 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17704 | # We already found the complete path | |
b8025f34 | 17705 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17707 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17708 | else |
17709 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17711 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17712 | fi |
be01d343 PB |
17713 | else |
17714 | ok=yes | |
17715 | case " ${configdirs} " in | |
17716 | *" gcc "*) ;; | |
17717 | *) ok=no ;; | |
17718 | esac | |
17719 | case ,${enable_languages}, in | |
17720 | *,c++,*) ;; | |
17721 | *) ok=no ;; | |
17722 | esac | |
17723 | if test $ok = yes; then | |
17724 | # An in-tree tool is available and we can use it | |
95e43135 | 17725 | 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' |
81ecdfbb RW |
17726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17727 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17728 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17729 | # We already found the complete path | |
b8025f34 | 17730 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17732 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17733 | elif test "x$target" = "x$host"; then |
17734 | # We can use an host tool | |
17735 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17737 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17738 | else |
17739 | # We need a cross tool | |
81ecdfbb RW |
17740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17741 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17742 | fi |
17743 | fi | |
4b900473 | 17744 | |
81ecdfbb RW |
17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17746 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 17747 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17748 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17749 | # We already found the complete path | |
b8025f34 | 17750 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17752 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17753 | else |
17754 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17756 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17757 | fi |
be01d343 PB |
17758 | else |
17759 | ok=yes | |
17760 | case " ${configdirs} " in | |
17761 | *" binutils "*) ;; | |
17762 | *) ok=no ;; | |
17763 | esac | |
c6b750e1 | 17764 | |
be01d343 PB |
17765 | if test $ok = yes; then |
17766 | # An in-tree tool is available and we can use it | |
17767 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
17768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17769 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17770 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17771 | # We already found the complete path | |
b8025f34 | 17772 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17774 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17775 | elif test "x$target" = "x$host"; then |
17776 | # We can use an host tool | |
17777 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
17778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17779 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17780 | else |
17781 | # We need a cross tool | |
81ecdfbb RW |
17782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17783 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17784 | fi |
17785 | fi | |
4b900473 | 17786 | |
228cf97d AM |
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17788 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17789 | if test "x${build}" != "x${host}" ; then | |
17790 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17791 | # We already found the complete path | |
17792 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17794 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17795 | else | |
17796 | # Canadian cross, just use what we found | |
17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17798 | $as_echo "pre-installed" >&6; } | |
17799 | fi | |
17800 | else | |
17801 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17802 | # We already found the complete path | |
17803 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17805 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17806 | elif test "x$target" = "x$host"; then | |
17807 | # We can use an host tool | |
17808 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17810 | $as_echo "host tool" >&6; } | |
17811 | else | |
17812 | # We need a cross tool | |
17813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17814 | $as_echo "pre-installed" >&6; } | |
17815 | fi | |
17816 | fi | |
17817 | ||
81ecdfbb RW |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17819 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 17820 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17821 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17822 | # We already found the complete path | |
b8025f34 | 17823 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17825 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17826 | else |
17827 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17829 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17830 | fi |
be01d343 PB |
17831 | else |
17832 | ok=yes | |
17833 | case " ${configdirs} " in | |
17834 | *" gcc "*) ;; | |
17835 | *) ok=no ;; | |
17836 | esac | |
c6b750e1 | 17837 | |
be01d343 PB |
17838 | if test $ok = yes; then |
17839 | # An in-tree tool is available and we can use it | |
17840 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17842 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17843 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17844 | # We already found the complete path | |
b8025f34 | 17845 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17847 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17848 | elif test "x$target" = "x$host"; then |
17849 | # We can use an host tool | |
17850 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
17851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17852 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17853 | else |
17854 | # We need a cross tool | |
81ecdfbb RW |
17855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17856 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17857 | fi |
17858 | fi | |
4b900473 | 17859 | |
81ecdfbb RW |
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17861 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 17862 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17863 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17864 | # We already found the complete path | |
b8025f34 | 17865 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17867 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17868 | else |
17869 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17871 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17872 | fi |
be01d343 PB |
17873 | else |
17874 | ok=yes | |
17875 | case " ${configdirs} " in | |
17876 | *" gcc "*) ;; | |
17877 | *) ok=no ;; | |
17878 | esac | |
17879 | case ,${enable_languages}, in | |
17880 | *,fortran,*) ;; | |
17881 | *) ok=no ;; | |
17882 | esac | |
17883 | if test $ok = yes; then | |
17884 | # An in-tree tool is available and we can use it | |
17885 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17887 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17888 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17889 | # We already found the complete path | |
b8025f34 | 17890 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17892 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17893 | elif test "x$target" = "x$host"; then |
17894 | # We can use an host tool | |
17895 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17897 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17898 | else |
17899 | # We need a cross tool | |
81ecdfbb RW |
17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17901 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17902 | fi |
17903 | fi | |
4b900473 | 17904 | |
e552509b ILT |
17905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17906 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17907 | if test "x${build}" != "x${host}" ; then | |
17908 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17909 | # We already found the complete path | |
17910 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17912 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17913 | else | |
17914 | # Canadian cross, just use what we found | |
17915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17916 | $as_echo "pre-installed" >&6; } | |
17917 | fi | |
17918 | else | |
17919 | ok=yes | |
17920 | case " ${configdirs} " in | |
17921 | *" gcc "*) ;; | |
17922 | *) ok=no ;; | |
17923 | esac | |
17924 | case ,${enable_languages}, in | |
17925 | *,go,*) ;; | |
17926 | *) ok=no ;; | |
17927 | esac | |
17928 | if test $ok = yes; then | |
17929 | # An in-tree tool is available and we can use it | |
17930 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17932 | $as_echo "just compiled" >&6; } | |
17933 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17934 | # We already found the complete path | |
17935 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17938 | elif test "x$target" = "x$host"; then | |
17939 | # We can use an host tool | |
17940 | GOC_FOR_TARGET='$(GOC)' | |
17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17942 | $as_echo "host tool" >&6; } | |
17943 | else | |
17944 | # We need a cross tool | |
17945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17946 | $as_echo "pre-installed" >&6; } | |
17947 | fi | |
17948 | fi | |
17949 | ||
228cf97d AM |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17951 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17952 | if test "x${build}" != "x${host}" ; then | |
17953 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17954 | # We already found the complete path | |
17955 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17957 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17958 | else | |
17959 | # Canadian cross, just use what we found | |
17960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17961 | $as_echo "pre-installed" >&6; } | |
17962 | fi | |
17963 | else | |
17964 | ok=yes | |
17965 | case " ${configdirs} " in | |
17966 | *" gcc "*) ;; | |
17967 | *) ok=no ;; | |
17968 | esac | |
17969 | case ,${enable_languages}, in | |
17970 | *,d,*) ;; | |
17971 | *) ok=no ;; | |
17972 | esac | |
17973 | if test $ok = yes; then | |
17974 | # An in-tree tool is available and we can use it | |
17975 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17977 | $as_echo "just compiled" >&6; } | |
17978 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17979 | # We already found the complete path | |
17980 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17982 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17983 | elif test "x$target" = "x$host"; then | |
17984 | # We can use an host tool | |
17985 | GDC_FOR_TARGET='$(GDC)' | |
17986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17987 | $as_echo "host tool" >&6; } | |
17988 | else | |
17989 | # We need a cross tool | |
17990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17991 | $as_echo "pre-installed" >&6; } | |
17992 | fi | |
17993 | fi | |
17994 | ||
81ecdfbb RW |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17996 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 17997 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17998 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17999 | # We already found the complete path | |
b8025f34 | 18000 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18002 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18003 | else |
18004 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18006 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18007 | fi |
be01d343 PB |
18008 | else |
18009 | ok=yes | |
18010 | case " ${configdirs} " in | |
18011 | *" ld "*) ;; | |
18012 | *) ok=no ;; | |
18013 | esac | |
c6b750e1 | 18014 | |
be01d343 PB |
18015 | if test $ok = yes; then |
18016 | # An in-tree tool is available and we can use it | |
18017 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18019 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18020 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18021 | # We already found the complete path | |
b8025f34 | 18022 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18024 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18025 | elif test "x$target" = "x$host"; then |
18026 | # We can use an host tool | |
18027 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
18028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18029 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18030 | else |
18031 | # We need a cross tool | |
81ecdfbb RW |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18033 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18034 | fi |
18035 | fi | |
4b900473 | 18036 | |
81ecdfbb RW |
18037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18038 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 18039 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18040 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18041 | # We already found the complete path | |
b8025f34 | 18042 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18044 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18045 | else |
18046 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18048 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18049 | fi |
be01d343 | 18050 | else |
2429c060 PB |
18051 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18052 | # We already found the complete path | |
b8025f34 | 18053 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18055 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 18056 | elif test "x$target" = "x$host"; then |
be01d343 PB |
18057 | # We can use an host tool |
18058 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
18059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18060 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18061 | else |
18062 | # We need a cross tool | |
81ecdfbb RW |
18063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18064 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18065 | fi |
18066 | fi | |
4b900473 | 18067 | |
81ecdfbb RW |
18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18069 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 18070 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18071 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18072 | # We already found the complete path | |
b8025f34 | 18073 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18075 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18076 | else |
18077 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18079 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18080 | fi |
be01d343 PB |
18081 | else |
18082 | ok=yes | |
18083 | case " ${configdirs} " in | |
18084 | *" binutils "*) ;; | |
18085 | *) ok=no ;; | |
18086 | esac | |
c6b750e1 | 18087 | |
be01d343 PB |
18088 | if test $ok = yes; then |
18089 | # An in-tree tool is available and we can use it | |
18090 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
18091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18092 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18093 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18094 | # We already found the complete path | |
b8025f34 | 18095 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18097 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18098 | elif test "x$target" = "x$host"; then |
18099 | # We can use an host tool | |
18100 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
18101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18102 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18103 | else |
18104 | # We need a cross tool | |
81ecdfbb RW |
18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18106 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18107 | fi |
18108 | fi | |
4b900473 | 18109 | |
6b91c541 AP |
18110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18111 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18112 | if test "x${build}" != "x${host}" ; then | |
18113 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18114 | # We already found the complete path | |
18115 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18117 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18118 | else | |
18119 | # Canadian cross, just use what we found | |
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18121 | $as_echo "pre-installed" >&6; } | |
18122 | fi | |
18123 | else | |
18124 | ok=yes | |
18125 | case " ${configdirs} " in | |
18126 | *" binutils "*) ;; | |
18127 | *) ok=no ;; | |
18128 | esac | |
18129 | ||
18130 | if test $ok = yes; then | |
18131 | # An in-tree tool is available and we can use it | |
18132 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18134 | $as_echo "just compiled" >&6; } | |
18135 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18136 | # We already found the complete path | |
18137 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18139 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18140 | elif test "x$target" = "x$host"; then | |
18141 | # We can use an host tool | |
1b6c0831 | 18142 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
18143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18144 | $as_echo "host tool" >&6; } | |
18145 | else | |
18146 | # We need a cross tool | |
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18148 | $as_echo "pre-installed" >&6; } | |
18149 | fi | |
18150 | fi | |
18151 | ||
81ecdfbb RW |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18153 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 18154 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18155 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18156 | # We already found the complete path | |
b8025f34 | 18157 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18159 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18160 | else |
18161 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18163 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18164 | fi |
be01d343 PB |
18165 | else |
18166 | ok=yes | |
18167 | case " ${configdirs} " in | |
18168 | *" binutils "*) ;; | |
18169 | *) ok=no ;; | |
18170 | esac | |
c6b750e1 | 18171 | |
be01d343 PB |
18172 | if test $ok = yes; then |
18173 | # An in-tree tool is available and we can use it | |
18174 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
18175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18176 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18177 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18178 | # We already found the complete path | |
b8025f34 | 18179 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18181 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18182 | elif test "x$target" = "x$host"; then |
18183 | # We can use an host tool | |
18184 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
18185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18186 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18187 | else |
18188 | # We need a cross tool | |
81ecdfbb RW |
18189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18190 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18191 | fi |
18192 | fi | |
4b900473 | 18193 | |
228cf97d AM |
18194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18195 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18196 | if test "x${build}" != "x${host}" ; then | |
18197 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18198 | # We already found the complete path | |
18199 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18201 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18202 | else | |
18203 | # Canadian cross, just use what we found | |
18204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18205 | $as_echo "pre-installed" >&6; } | |
18206 | fi | |
18207 | else | |
18208 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18209 | # We already found the complete path | |
18210 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18212 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18213 | elif test "x$target" = "x$host"; then | |
18214 | # We can use an host tool | |
18215 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18217 | $as_echo "host tool" >&6; } | |
18218 | else | |
18219 | # We need a cross tool | |
18220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18221 | $as_echo "pre-installed" >&6; } | |
18222 | fi | |
18223 | fi | |
18224 | ||
81ecdfbb RW |
18225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18226 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 18227 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18228 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18229 | # We already found the complete path | |
b8025f34 | 18230 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18232 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18233 | else |
18234 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18236 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18237 | fi |
be01d343 PB |
18238 | else |
18239 | ok=yes | |
18240 | case " ${configdirs} " in | |
18241 | *" binutils "*) ;; | |
18242 | *) ok=no ;; | |
18243 | esac | |
c6b750e1 | 18244 | |
be01d343 PB |
18245 | if test $ok = yes; then |
18246 | # An in-tree tool is available and we can use it | |
18247 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
18248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18249 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18250 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18251 | # We already found the complete path | |
b8025f34 | 18252 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18254 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18255 | elif test "x$target" = "x$host"; then |
18256 | # We can use an host tool | |
18257 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
18258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18259 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18260 | else |
18261 | # We need a cross tool | |
81ecdfbb RW |
18262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18263 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18264 | fi |
18265 | fi | |
4b900473 | 18266 | |
b121d7d4 DD |
18267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18268 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18269 | if test "x${build}" != "x${host}" ; then | |
18270 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18271 | # We already found the complete path | |
18272 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18274 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18275 | else | |
18276 | # Canadian cross, just use what we found | |
18277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18278 | $as_echo "pre-installed" >&6; } | |
18279 | fi | |
18280 | else | |
18281 | ok=yes | |
18282 | case " ${configdirs} " in | |
18283 | *" binutils "*) ;; | |
18284 | *) ok=no ;; | |
18285 | esac | |
18286 | ||
18287 | if test $ok = yes; then | |
18288 | # An in-tree tool is available and we can use it | |
18289 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18291 | $as_echo "just compiled" >&6; } | |
18292 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18293 | # We already found the complete path | |
18294 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18296 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18297 | elif test "x$target" = "x$host"; then | |
18298 | # We can use an host tool | |
18299 | READELF_FOR_TARGET='$(READELF)' | |
18300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18301 | $as_echo "host tool" >&6; } | |
18302 | else | |
18303 | # We need a cross tool | |
18304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18305 | $as_echo "pre-installed" >&6; } | |
18306 | fi | |
18307 | fi | |
18308 | ||
81ecdfbb RW |
18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18310 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 18311 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18312 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18313 | # We already found the complete path | |
b8025f34 | 18314 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18316 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18317 | else |
18318 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18320 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18321 | fi |
be01d343 PB |
18322 | else |
18323 | ok=yes | |
18324 | case " ${configdirs} " in | |
18325 | *" binutils "*) ;; | |
18326 | *) ok=no ;; | |
18327 | esac | |
c6b750e1 | 18328 | |
be01d343 PB |
18329 | if test $ok = yes; then |
18330 | # An in-tree tool is available and we can use it | |
9b980aa1 | 18331 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
18332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18333 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18334 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18335 | # We already found the complete path | |
b8025f34 | 18336 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18338 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18339 | elif test "x$target" = "x$host"; then |
18340 | # We can use an host tool | |
18341 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
18342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18343 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18344 | else |
18345 | # We need a cross tool | |
81ecdfbb RW |
18346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18347 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18348 | fi |
18349 | fi | |
4b900473 | 18350 | |
81ecdfbb RW |
18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18352 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 18353 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18354 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18355 | # We already found the complete path | |
b8025f34 | 18356 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18358 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18359 | else |
18360 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18362 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18363 | fi |
be01d343 PB |
18364 | else |
18365 | ok=yes | |
18366 | case " ${configdirs} " in | |
18367 | *" binutils "*) ;; | |
18368 | *) ok=no ;; | |
18369 | esac | |
c6b750e1 | 18370 | |
be01d343 PB |
18371 | if test $ok = yes; then |
18372 | # An in-tree tool is available and we can use it | |
18373 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
18374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18375 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18376 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18377 | # We already found the complete path | |
b8025f34 | 18378 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18380 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18381 | elif test "x$target" = "x$host"; then |
18382 | # We can use an host tool | |
18383 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18385 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18386 | else |
18387 | # We need a cross tool | |
81ecdfbb RW |
18388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18389 | $as_echo "pre-installed" >&6; } | |
be01d343 | 18390 | fi |
a0da8069 | 18391 | fi |
54752a6b | 18392 | |
81ecdfbb RW |
18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18394 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
18395 | if test "x${build}" != "x${host}" ; then |
18396 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18397 | # We already found the complete path | |
18398 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18400 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18401 | else |
18402 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18404 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18405 | fi |
18406 | else | |
18407 | ok=yes | |
18408 | case " ${configdirs} " in | |
18409 | *" binutils "*) ;; | |
18410 | *) ok=no ;; | |
18411 | esac | |
18412 | ||
18413 | if test $ok = yes; then | |
18414 | # An in-tree tool is available and we can use it | |
18415 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
18416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18417 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
18418 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18419 | # We already found the complete path | |
18420 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18422 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18423 | elif test "x$target" = "x$host"; then |
18424 | # We can use an host tool | |
18425 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
18426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18427 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
18428 | else |
18429 | # We need a cross tool | |
81ecdfbb RW |
18430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18431 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18432 | fi |
18433 | fi | |
18434 | ||
54752a6b NN |
18435 | |
18436 | ||
be01d343 | 18437 | |
4b900473 | 18438 | |
a0da8069 NN |
18439 | # Certain tools may need extra flags. |
18440 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18441 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18442 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18443 | ||
be01d343 PB |
18444 | # When building target libraries, except in a Canadian cross, we use |
18445 | # the same toolchain as the compiler we just built. | |
18446 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18447 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18448 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18449 | if test $host = $build; then | |
18450 | case " $configdirs " in | |
18451 | *" gcc "*) | |
18452 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18453 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18454 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18455 | ;; | |
18456 | esac | |
18457 | fi | |
18458 | ||
18459 | ||
18460 | ||
18461 | ||
18462 | ||
81ecdfbb RW |
18463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18464 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18465 | # Check whether --enable-maintainer-mode was given. | |
18466 | if test "${enable_maintainer_mode+set}" = set; then : | |
18467 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
18468 | else |
18469 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
18470 | fi |
18471 | ||
18472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18473 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
18474 | |
18475 | ||
18476 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18477 | MAINTAINER_MODE_TRUE= | |
18478 | MAINTAINER_MODE_FALSE='#' | |
18479 | else | |
18480 | MAINTAINER_MODE_TRUE='#' | |
18481 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 18482 | fi |
3d5e36ae AO |
18483 | MAINT=$MAINTAINER_MODE_TRUE |
18484 | ||
1d39f329 NN |
18485 | # --------------------- |
18486 | # GCC bootstrap support | |
18487 | # --------------------- | |
18488 | ||
18489 | # Stage specific cflags for build. | |
18490 | stage1_cflags="-g" | |
18491 | case $build in | |
18492 | vax-*-*) | |
18493 | case ${GCC} in | |
18494 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18495 | *) stage1_cflags="-g -J" ;; | |
18496 | esac ;; | |
1d39f329 NN |
18497 | esac |
18498 | ||
1d89b610 | 18499 | |
1d39f329 | 18500 | |
8a0d8a5c | 18501 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
18502 | # Check whether --enable-stage1-checking was given. |
18503 | if test "${enable_stage1_checking+set}" = set; then : | |
18504 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 18505 | else |
5566c1fa | 18506 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
18507 | # For --disable-checking or implicit --enable-checking=release, avoid |
18508 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18509 | # bootstraps. See PR62077. | |
ce6c656d L |
18510 | case $BUILD_CONFIG in |
18511 | *lto*) | |
05a13254 NC |
18512 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18513 | *) | |
18514 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 18515 | esac |
05a13254 NC |
18516 | if test "x$enable_checking" = x && \ |
18517 | test -d ${srcdir}/gcc && \ | |
18518 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
18519 | stage1_checking=--enable-checking=yes,types,extra | |
18520 | fi | |
8a0d8a5c | 18521 | else |
5566c1fa | 18522 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 18523 | fi |
81ecdfbb | 18524 | fi |
8a0d8a5c PB |
18525 | |
18526 | ||
c6b750e1 | 18527 | |
81ecdfbb RW |
18528 | # Enable -Werror in bootstrap stage2 and later. |
18529 | # Check whether --enable-werror was given. | |
18530 | if test "${enable_werror+set}" = set; then : | |
18531 | enableval=$enable_werror; | |
1a6f2dc7 NN |
18532 | case ${enable_werror} in |
18533 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18534 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
18535 | esac |
18536 | ||
82033c9b | 18537 | else |
82033c9b | 18538 | |
bf41f30d NC |
18539 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18540 | case $BUILD_CONFIG in | |
18541 | bootstrap-debug) | |
18542 | stage2_werror_flag="--enable-werror-always" ;; | |
18543 | "") | |
18544 | stage2_werror_flag="--enable-werror-always" ;; | |
18545 | esac | |
18546 | fi | |
82033c9b | 18547 | |
bf41f30d | 18548 | fi |
82033c9b | 18549 | |
1b6c0831 | 18550 | |
1b6c0831 | 18551 | |
1b6c0831 | 18552 | |
e8a5fa9c RW |
18553 | # Specify what files to not compare during bootstrap. |
18554 | ||
18555 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18556 | case "$target" in | |
18557 | hppa*64*-*-hpux*) ;; | |
228cf97d AM |
18558 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18559 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
e8a5fa9c RW |
18560 | esac |
18561 | ||
18562 | ||
81ecdfbb RW |
18563 | ac_config_files="$ac_config_files Makefile" |
18564 | ||
c6b750e1 | 18565 | cat >confcache <<\_ACEOF |
a0da8069 NN |
18566 | # This file is a shell script that caches the results of configure |
18567 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
18568 | # scripts and configure runs, see configure's option --config-cache. |
18569 | # It is not useful on other systems. If it contains results you don't | |
18570 | # want to keep, you may remove or edit it. | |
a0da8069 | 18571 | # |
c6b750e1 DJ |
18572 | # config.status only pays attention to the cache file if you give it |
18573 | # the --recheck option to rerun configure. | |
a0da8069 | 18574 | # |
c6b750e1 DJ |
18575 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18576 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18577 | # following values. | |
18578 | ||
18579 | _ACEOF | |
18580 | ||
a0da8069 NN |
18581 | # The following way of writing the cache mishandles newlines in values, |
18582 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 18583 | # So, we kill variables containing newlines. |
a0da8069 NN |
18584 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18585 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
18586 | ( |
18587 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18588 | eval ac_val=\$$ac_var | |
18589 | case $ac_val in #( | |
18590 | *${as_nl}*) | |
18591 | case $ac_var in #( | |
18592 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18593 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18594 | esac | |
18595 | case $ac_var in #( | |
18596 | _ | IFS | as_nl) ;; #( | |
18597 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18598 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18599 | esac ;; | |
18600 | esac | |
18601 | done | |
18602 | ||
c6b750e1 | 18603 | (set) 2>&1 | |
81ecdfbb RW |
18604 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18605 | *${as_nl}ac_space=\ *) | |
18606 | # `set' does not quote correctly, so add quotes: double-quote | |
18607 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
18608 | sed -n \ |
18609 | "s/'/'\\\\''/g; | |
18610 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 18611 | ;; #( |
c6b750e1 DJ |
18612 | *) |
18613 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 18614 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 18615 | ;; |
81ecdfbb RW |
18616 | esac | |
18617 | sort | |
18618 | ) | | |
c6b750e1 | 18619 | sed ' |
81ecdfbb | 18620 | /^ac_cv_env_/b end |
c6b750e1 | 18621 | t clear |
81ecdfbb | 18622 | :clear |
c6b750e1 DJ |
18623 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18624 | t end | |
81ecdfbb RW |
18625 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18626 | :end' >>confcache | |
18627 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18628 | if test -w "$cache_file"; then | |
d0ac1c44 | 18629 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
18630 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18631 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
18632 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18633 | cat confcache >"$cache_file" | |
18634 | else | |
18635 | case $cache_file in #( | |
18636 | */* | ?:*) | |
18637 | mv -f confcache "$cache_file"$$ && | |
18638 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18639 | *) | |
18640 | mv -f confcache "$cache_file" ;; | |
18641 | esac | |
18642 | fi | |
18643 | fi | |
a0da8069 | 18644 | else |
81ecdfbb RW |
18645 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18646 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 18647 | fi |
852e5f18 | 18648 | fi |
a0da8069 | 18649 | rm -f confcache |
852e5f18 | 18650 | |
a0da8069 NN |
18651 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18652 | # Let make expand exec_prefix. | |
18653 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 18654 | |
a0da8069 NN |
18655 | # Transform confdefs.h into DEFS. |
18656 | # Protect against shell expansion while executing Makefile rules. | |
18657 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
18658 | # |
18659 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 18660 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 18661 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
18662 | ac_script=' |
18663 | :mline | |
18664 | /\\$/{ | |
18665 | N | |
18666 | s,\\\n,, | |
18667 | b mline | |
18668 | } | |
c6b750e1 | 18669 | t clear |
81ecdfbb RW |
18670 | :clear |
18671 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 18672 | t quote |
81ecdfbb | 18673 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 18674 | t quote |
81ecdfbb RW |
18675 | b any |
18676 | :quote | |
18677 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18678 | s/\[/\\&/g | |
18679 | s/\]/\\&/g | |
18680 | s/\$/$$/g | |
18681 | H | |
18682 | :any | |
18683 | ${ | |
18684 | g | |
18685 | s/^\n// | |
18686 | s/\n/ /g | |
18687 | p | |
18688 | } | |
18689 | ' | |
18690 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
18691 | |
18692 | ||
18693 | ac_libobjs= | |
18694 | ac_ltlibobjs= | |
d0ac1c44 | 18695 | U= |
c6b750e1 DJ |
18696 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18697 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
18698 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18699 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18700 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18701 | # will be set to the directory where LIBOBJS objects are built. | |
18702 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18703 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
18704 | done |
18705 | LIBOBJS=$ac_libobjs | |
852e5f18 | 18706 | |
c6b750e1 | 18707 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 18708 | |
cac3d6c4 | 18709 | |
c6b750e1 | 18710 | |
d0ac1c44 | 18711 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 18712 | ac_write_fail=0 |
c6b750e1 DJ |
18713 | ac_clean_files_save=$ac_clean_files |
18714 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
18715 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18716 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18717 | as_write_fail=0 | |
18718 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
18719 | #! $SHELL |
18720 | # Generated by $as_me. | |
a0da8069 | 18721 | # Run this file to recreate the current configuration. |
a0da8069 | 18722 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 18723 | # configure, is in config.log if it exists. |
376a0e54 | 18724 | |
c6b750e1 DJ |
18725 | debug=false |
18726 | ac_cs_recheck=false | |
18727 | ac_cs_silent=false | |
c6b750e1 | 18728 | |
81ecdfbb RW |
18729 | SHELL=\${CONFIG_SHELL-$SHELL} |
18730 | export SHELL | |
18731 | _ASEOF | |
18732 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18733 | ## -------------------- ## | |
18734 | ## M4sh Initialization. ## | |
18735 | ## -------------------- ## | |
18736 | ||
18737 | # Be more Bourne compatible | |
18738 | DUALCASE=1; export DUALCASE # for MKS sh | |
18739 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18740 | emulate sh |
18741 | NULLCMD=: | |
81ecdfbb | 18742 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
18743 | # is contrary to our usage. Disable this feature. |
18744 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18745 | setopt NO_GLOB_SUBST |
18746 | else | |
18747 | case `(set -o) 2>/dev/null` in #( | |
18748 | *posix*) : | |
18749 | set -o posix ;; #( | |
18750 | *) : | |
18751 | ;; | |
18752 | esac | |
c6b750e1 | 18753 | fi |
c6b750e1 | 18754 | |
81ecdfbb RW |
18755 | |
18756 | as_nl=' | |
18757 | ' | |
18758 | export as_nl | |
18759 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18760 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18761 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18762 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18763 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18764 | # but without wasting forks for bash or zsh. | |
18765 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18766 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18767 | as_echo='print -r --' | |
18768 | as_echo_n='print -rn --' | |
18769 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18770 | as_echo='printf %s\n' | |
18771 | as_echo_n='printf %s' | |
18772 | else | |
18773 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18774 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18775 | as_echo_n='/usr/ucb/echo -n' | |
18776 | else | |
18777 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18778 | as_echo_n_body='eval | |
18779 | arg=$1; | |
18780 | case $arg in #( | |
18781 | *"$as_nl"*) | |
18782 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18783 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18784 | esac; | |
18785 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18786 | ' | |
18787 | export as_echo_n_body | |
18788 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18789 | fi | |
18790 | export as_echo_body | |
18791 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
18792 | fi |
18793 | ||
81ecdfbb RW |
18794 | # The user is always right. |
18795 | if test "${PATH_SEPARATOR+set}" != set; then | |
18796 | PATH_SEPARATOR=: | |
18797 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18798 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18799 | PATH_SEPARATOR=';' | |
18800 | } | |
18801 | fi | |
18802 | ||
18803 | ||
18804 | # IFS | |
18805 | # We need space, tab and new line, in precisely that order. Quoting is | |
18806 | # there to prevent editors from complaining about space-tab. | |
18807 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18808 | # splitting by setting IFS to empty value.) | |
18809 | IFS=" "" $as_nl" | |
18810 | ||
18811 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18812 | as_myself= |
81ecdfbb RW |
18813 | case $0 in #(( |
18814 | *[\\/]* ) as_myself=$0 ;; | |
18815 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18816 | for as_dir in $PATH | |
18817 | do | |
18818 | IFS=$as_save_IFS | |
18819 | test -z "$as_dir" && as_dir=. | |
18820 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18821 | done | |
18822 | IFS=$as_save_IFS | |
18823 | ||
18824 | ;; | |
18825 | esac | |
18826 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18827 | # in which case we are not to be found in the path. | |
18828 | if test "x$as_myself" = x; then | |
18829 | as_myself=$0 | |
18830 | fi | |
18831 | if test ! -f "$as_myself"; then | |
18832 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18833 | exit 1 | |
18834 | fi | |
c6b750e1 | 18835 | |
81ecdfbb RW |
18836 | # Unset variables that we do not need and which cause bugs (e.g. in |
18837 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18838 | # suppresses any "Segmentation fault" message there. '((' could | |
18839 | # trigger a bug in pdksh 5.2.14. | |
18840 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18841 | do eval test x\${$as_var+set} = xset \ | |
18842 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18843 | done | |
c6b750e1 DJ |
18844 | PS1='$ ' |
18845 | PS2='> ' | |
18846 | PS4='+ ' | |
18847 | ||
18848 | # NLS nuisances. | |
81ecdfbb RW |
18849 | LC_ALL=C |
18850 | export LC_ALL | |
18851 | LANGUAGE=C | |
18852 | export LANGUAGE | |
18853 | ||
18854 | # CDPATH. | |
18855 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18856 | ||
18857 | ||
d0ac1c44 SM |
18858 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18859 | # ---------------------------------------- | |
81ecdfbb RW |
18860 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18861 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18862 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18863 | as_fn_error () |
18864 | { | |
d0ac1c44 SM |
18865 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18866 | if test "$4"; then | |
18867 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18868 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 18869 | fi |
d0ac1c44 | 18870 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18871 | as_fn_exit $as_status |
18872 | } # as_fn_error | |
18873 | ||
18874 | ||
18875 | # as_fn_set_status STATUS | |
18876 | # ----------------------- | |
18877 | # Set $? to STATUS, without forking. | |
18878 | as_fn_set_status () | |
18879 | { | |
18880 | return $1 | |
18881 | } # as_fn_set_status | |
18882 | ||
18883 | # as_fn_exit STATUS | |
18884 | # ----------------- | |
18885 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18886 | as_fn_exit () | |
18887 | { | |
18888 | set +e | |
18889 | as_fn_set_status $1 | |
18890 | exit $1 | |
18891 | } # as_fn_exit | |
18892 | ||
18893 | # as_fn_unset VAR | |
18894 | # --------------- | |
18895 | # Portably unset VAR. | |
18896 | as_fn_unset () | |
18897 | { | |
18898 | { eval $1=; unset $1;} | |
18899 | } | |
18900 | as_unset=as_fn_unset | |
18901 | # as_fn_append VAR VALUE | |
18902 | # ---------------------- | |
18903 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18904 | # advantage of any shell optimizations that allow amortized linear growth over | |
18905 | # repeated appends, instead of the typical quadratic growth present in naive | |
18906 | # implementations. | |
18907 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18908 | eval 'as_fn_append () | |
18909 | { | |
18910 | eval $1+=\$2 | |
18911 | }' | |
18912 | else | |
18913 | as_fn_append () | |
18914 | { | |
18915 | eval $1=\$$1\$2 | |
18916 | } | |
18917 | fi # as_fn_append | |
18918 | ||
18919 | # as_fn_arith ARG... | |
18920 | # ------------------ | |
18921 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18922 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18923 | # must be portable across $(()) and expr. | |
18924 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18925 | eval 'as_fn_arith () | |
18926 | { | |
18927 | as_val=$(( $* )) | |
18928 | }' | |
18929 | else | |
18930 | as_fn_arith () | |
18931 | { | |
18932 | as_val=`expr "$@" || test $? -eq 1` | |
18933 | } | |
18934 | fi # as_fn_arith | |
18935 | ||
c6b750e1 | 18936 | |
81ecdfbb RW |
18937 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18938 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
18939 | as_expr=expr |
18940 | else | |
18941 | as_expr=false | |
18942 | fi | |
18943 | ||
81ecdfbb | 18944 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
18945 | as_basename=basename |
18946 | else | |
18947 | as_basename=false | |
18948 | fi | |
18949 | ||
81ecdfbb RW |
18950 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18951 | as_dirname=dirname | |
18952 | else | |
18953 | as_dirname=false | |
18954 | fi | |
c6b750e1 | 18955 | |
81ecdfbb | 18956 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
18957 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18958 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18959 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18960 | $as_echo X/"$0" | | |
18961 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18962 | s//\1/ | |
18963 | q | |
18964 | } | |
18965 | /^X\/\(\/\/\)$/{ | |
18966 | s//\1/ | |
18967 | q | |
18968 | } | |
18969 | /^X\/\(\/\).*/{ | |
18970 | s//\1/ | |
18971 | q | |
18972 | } | |
18973 | s/.*/./; q'` | |
c6b750e1 | 18974 | |
c6b750e1 DJ |
18975 | # Avoid depending upon Character Ranges. |
18976 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18977 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18978 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18979 | as_cr_digits='0123456789' | |
18980 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18981 | ||
81ecdfbb RW |
18982 | ECHO_C= ECHO_N= ECHO_T= |
18983 | case `echo -n x` in #((((( | |
18984 | -n*) | |
18985 | case `echo 'xy\c'` in | |
18986 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18987 | xy) ECHO_C='\c';; | |
18988 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18989 | ECHO_T=' ';; | |
18990 | esac;; | |
18991 | *) | |
18992 | ECHO_N='-n';; | |
c6b750e1 DJ |
18993 | esac |
18994 | ||
81ecdfbb RW |
18995 | rm -f conf$$ conf$$.exe conf$$.file |
18996 | if test -d conf$$.dir; then | |
18997 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 18998 | else |
81ecdfbb RW |
18999 | rm -f conf$$.dir |
19000 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 19001 | fi |
81ecdfbb RW |
19002 | if (echo >conf$$.file) 2>/dev/null; then |
19003 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 19004 | as_ln_s='ln -s' |
81ecdfbb RW |
19005 | # ... but there are two gotchas: |
19006 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19007 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 19008 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 19009 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 19010 | as_ln_s='cp -pR' |
81ecdfbb RW |
19011 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19012 | as_ln_s=ln | |
19013 | else | |
d0ac1c44 | 19014 | as_ln_s='cp -pR' |
c6b750e1 | 19015 | fi |
c6b750e1 | 19016 | else |
d0ac1c44 | 19017 | as_ln_s='cp -pR' |
c6b750e1 | 19018 | fi |
81ecdfbb RW |
19019 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19020 | rmdir conf$$.dir 2>/dev/null | |
19021 | ||
19022 | ||
19023 | # as_fn_mkdir_p | |
19024 | # ------------- | |
19025 | # Create "$as_dir" as a directory, including parents if necessary. | |
19026 | as_fn_mkdir_p () | |
19027 | { | |
19028 | ||
19029 | case $as_dir in #( | |
19030 | -*) as_dir=./$as_dir;; | |
19031 | esac | |
19032 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19033 | as_dirs= | |
19034 | while :; do | |
19035 | case $as_dir in #( | |
19036 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19037 | *) as_qdir=$as_dir;; | |
19038 | esac | |
19039 | as_dirs="'$as_qdir' $as_dirs" | |
19040 | as_dir=`$as_dirname -- "$as_dir" || | |
19041 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19042 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19043 | X"$as_dir" : 'X\(//\)$' \| \ | |
19044 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19045 | $as_echo X"$as_dir" | | |
19046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19047 | s//\1/ | |
19048 | q | |
19049 | } | |
19050 | /^X\(\/\/\)[^/].*/{ | |
19051 | s//\1/ | |
19052 | q | |
19053 | } | |
19054 | /^X\(\/\/\)$/{ | |
19055 | s//\1/ | |
19056 | q | |
19057 | } | |
19058 | /^X\(\/\).*/{ | |
19059 | s//\1/ | |
19060 | q | |
19061 | } | |
19062 | s/.*/./; q'` | |
19063 | test -d "$as_dir" && break | |
19064 | done | |
19065 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 19066 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 19067 | |
c6b750e1 | 19068 | |
81ecdfbb | 19069 | } # as_fn_mkdir_p |
c6b750e1 | 19070 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 19071 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
19072 | else |
19073 | test -d ./-p && rmdir ./-p | |
19074 | as_mkdir_p=false | |
19075 | fi | |
19076 | ||
d0ac1c44 SM |
19077 | |
19078 | # as_fn_executable_p FILE | |
19079 | # ----------------------- | |
19080 | # Test if FILE is an executable regular file. | |
19081 | as_fn_executable_p () | |
19082 | { | |
19083 | test -f "$1" && test -x "$1" | |
19084 | } # as_fn_executable_p | |
19085 | as_test_x='test -x' | |
19086 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
19087 | |
19088 | # Sed expression to map a string onto a valid CPP name. | |
19089 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19090 | ||
19091 | # Sed expression to map a string onto a valid variable name. | |
19092 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19093 | ||
19094 | ||
c6b750e1 | 19095 | exec 6>&1 |
81ecdfbb RW |
19096 | ## ----------------------------------- ## |
19097 | ## Main body of $CONFIG_STATUS script. ## | |
19098 | ## ----------------------------------- ## | |
19099 | _ASEOF | |
19100 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19101 | ||
19102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19103 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 19104 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
19105 | # values after options handling. |
19106 | ac_log=" | |
c6b750e1 | 19107 | This file was extended by $as_me, which was |
d0ac1c44 | 19108 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
19109 | |
19110 | CONFIG_FILES = $CONFIG_FILES | |
19111 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19112 | CONFIG_LINKS = $CONFIG_LINKS | |
19113 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19114 | $ $0 $@ | |
19115 | ||
81ecdfbb RW |
19116 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19117 | " | |
19118 | ||
c6b750e1 DJ |
19119 | _ACEOF |
19120 | ||
81ecdfbb RW |
19121 | case $ac_config_files in *" |
19122 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19123 | esac | |
c6b750e1 | 19124 | |
c6b750e1 | 19125 | |
c6b750e1 | 19126 | |
81ecdfbb RW |
19127 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19128 | # Files that config.status was made for. | |
19129 | config_files="$ac_config_files" | |
c6b750e1 | 19130 | |
81ecdfbb | 19131 | _ACEOF |
c6b750e1 | 19132 | |
81ecdfbb | 19133 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19134 | ac_cs_usage="\ |
81ecdfbb RW |
19135 | \`$as_me' instantiates files and other configuration actions |
19136 | from templates according to the current configuration. Unless the files | |
19137 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 19138 | |
81ecdfbb | 19139 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
19140 | |
19141 | -h, --help print this help, then exit | |
81ecdfbb | 19142 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 19143 | --config print configuration, then exit |
81ecdfbb RW |
19144 | -q, --quiet, --silent |
19145 | do not print progress messages | |
c6b750e1 DJ |
19146 | -d, --debug don't remove temporary files |
19147 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
19148 | --file=FILE[:TEMPLATE] |
19149 | instantiate the configuration file FILE | |
c6b750e1 DJ |
19150 | |
19151 | Configuration files: | |
19152 | $config_files | |
19153 | ||
81ecdfbb | 19154 | Report bugs to the package provider." |
c6b750e1 | 19155 | |
81ecdfbb RW |
19156 | _ACEOF |
19157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19158 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
19159 | ac_cs_version="\\ |
19160 | config.status | |
d0ac1c44 SM |
19161 | configured by $0, generated by GNU Autoconf 2.69, |
19162 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 19163 | |
d0ac1c44 | 19164 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
19165 | This config.status script is free software; the Free Software Foundation |
19166 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
19167 | |
19168 | ac_pwd='$ac_pwd' | |
19169 | srcdir='$srcdir' | |
19170 | INSTALL='$INSTALL' | |
8e957354 | 19171 | AWK='$AWK' |
81ecdfbb | 19172 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
19173 | _ACEOF |
19174 | ||
81ecdfbb RW |
19175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19176 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
19177 | ac_need_defaults=: |
19178 | while test $# != 0 | |
a0da8069 | 19179 | do |
c6b750e1 | 19180 | case $1 in |
d0ac1c44 | 19181 | --*=?*) |
81ecdfbb RW |
19182 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19183 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
19184 | ac_shift=: |
19185 | ;; | |
d0ac1c44 SM |
19186 | --*=) |
19187 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19188 | ac_optarg= | |
19189 | ac_shift=: | |
19190 | ;; | |
81ecdfbb | 19191 | *) |
c6b750e1 DJ |
19192 | ac_option=$1 |
19193 | ac_optarg=$2 | |
19194 | ac_shift=shift | |
19195 | ;; | |
c6b750e1 DJ |
19196 | esac |
19197 | ||
19198 | case $ac_option in | |
19199 | # Handling of the options. | |
a0da8069 | 19200 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 19201 | ac_cs_recheck=: ;; |
81ecdfbb RW |
19202 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19203 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
19204 | --config | --confi | --conf | --con | --co | --c ) |
19205 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 19206 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
19207 | debug=: ;; |
19208 | --file | --fil | --fi | --f ) | |
19209 | $ac_shift | |
81ecdfbb RW |
19210 | case $ac_optarg in |
19211 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 19212 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
19213 | esac |
19214 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 19215 | ac_need_defaults=false;; |
81ecdfbb RW |
19216 | --he | --h | --help | --hel | -h ) |
19217 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
19218 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19219 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19220 | ac_cs_silent=: ;; | |
19221 | ||
19222 | # This is an error. | |
d0ac1c44 | 19223 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 19224 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 19225 | |
81ecdfbb RW |
19226 | *) as_fn_append ac_config_targets " $1" |
19227 | ac_need_defaults=false ;; | |
c6b750e1 | 19228 | |
376a0e54 | 19229 | esac |
c6b750e1 | 19230 | shift |
376a0e54 CM |
19231 | done |
19232 | ||
c6b750e1 | 19233 | ac_configure_extra_args= |
376a0e54 | 19234 | |
c6b750e1 DJ |
19235 | if $ac_cs_silent; then |
19236 | exec 6>/dev/null | |
19237 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19238 | fi | |
376a0e54 | 19239 | |
c6b750e1 | 19240 | _ACEOF |
81ecdfbb | 19241 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 19242 | if \$ac_cs_recheck; then |
d0ac1c44 | 19243 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
19244 | shift |
19245 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19246 | CONFIG_SHELL='$SHELL' | |
19247 | export CONFIG_SHELL | |
19248 | exec "\$@" | |
c6b750e1 DJ |
19249 | fi |
19250 | ||
19251 | _ACEOF | |
81ecdfbb RW |
19252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19253 | exec 5>>config.log | |
19254 | { | |
19255 | echo | |
19256 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19257 | ## Running $as_me. ## | |
19258 | _ASBOX | |
19259 | $as_echo "$ac_log" | |
19260 | } >&5 | |
c6b750e1 | 19261 | |
81ecdfbb RW |
19262 | _ACEOF |
19263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
19264 | # |
19265 | # INIT-COMMANDS | |
19266 | # | |
19267 | extrasub_build="$extrasub_build" | |
19268 | extrasub_host="$extrasub_host" | |
19269 | extrasub_target="$extrasub_target" | |
19270 | ||
81ecdfbb | 19271 | _ACEOF |
c6b750e1 | 19272 | |
81ecdfbb | 19273 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19274 | |
81ecdfbb | 19275 | # Handling of arguments. |
c6b750e1 DJ |
19276 | for ac_config_target in $ac_config_targets |
19277 | do | |
81ecdfbb RW |
19278 | case $ac_config_target in |
19279 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19280 | ||
d0ac1c44 | 19281 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
19282 | esac |
19283 | done | |
19284 | ||
81ecdfbb | 19285 | |
c6b750e1 DJ |
19286 | # If the user did not use the arguments to specify the items to instantiate, |
19287 | # then the envvar interface is used. Set only those that are not. | |
19288 | # We use the long form for the default assignment because of an extremely | |
19289 | # bizarre bug on SunOS 4.1.3. | |
19290 | if $ac_need_defaults; then | |
19291 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19292 | fi | |
19293 | ||
19294 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 19295 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 19296 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
19297 | # Hook for its removal unless debugging. |
19298 | # Note that there is a small window in which the directory will not be cleaned: | |
19299 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
19300 | $debug || |
19301 | { | |
d0ac1c44 | 19302 | tmp= ac_tmp= |
81ecdfbb | 19303 | trap 'exit_status=$? |
d0ac1c44 SM |
19304 | : "${ac_tmp:=$tmp}" |
19305 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
19306 | ' 0 |
19307 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 19308 | } |
c6b750e1 DJ |
19309 | # Create a (secure) tmp directory for tmp files. |
19310 | ||
19311 | { | |
81ecdfbb | 19312 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 19313 | test -d "$tmp" |
c6b750e1 DJ |
19314 | } || |
19315 | { | |
81ecdfbb RW |
19316 | tmp=./conf$$-$RANDOM |
19317 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
19318 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19319 | ac_tmp=$tmp | |
81ecdfbb RW |
19320 | |
19321 | # Set up the scripts for CONFIG_FILES section. | |
19322 | # No need to generate them if there are no CONFIG_FILES. | |
19323 | # This happens for instance with `./config.status config.h'. | |
19324 | if test -n "$CONFIG_FILES"; then | |
19325 | ||
19326 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19327 | ac_cs_awk_getline=: | |
19328 | ac_cs_awk_pipe_init= | |
19329 | ac_cs_awk_read_file=' | |
19330 | while ((getline aline < (F[key])) > 0) | |
19331 | print(aline) | |
19332 | close(F[key])' | |
19333 | ac_cs_awk_pipe_fini= | |
19334 | else | |
19335 | ac_cs_awk_getline=false | |
19336 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19337 | ac_cs_awk_read_file=' | |
19338 | print "|#_!!_#|" | |
19339 | print "cat " F[key] " &&" | |
19340 | '$ac_cs_awk_pipe_init | |
19341 | # The final `:' finishes the AND list. | |
19342 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19343 | fi | |
19344 | ac_cr=`echo X | tr X '\015'` | |
19345 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19346 | # But we know of no other shell where ac_cr would be empty at this | |
19347 | # point, so we can use a bashism as a fallback. | |
19348 | if test "x$ac_cr" = x; then | |
19349 | eval ac_cr=\$\'\\r\' | |
19350 | fi | |
19351 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19352 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 19353 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
19354 | else |
19355 | ac_cs_awk_cr=$ac_cr | |
19356 | fi | |
19357 | ||
d0ac1c44 | 19358 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
19359 | _ACEOF |
19360 | ||
19361 | # Create commands to substitute file output variables. | |
c6b750e1 | 19362 | { |
81ecdfbb | 19363 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 19364 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
19365 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19366 | echo "_ACAWK" && | |
19367 | echo "_ACEOF" | |
19368 | } >conf$$files.sh && | |
19369 | . ./conf$$files.sh || | |
d0ac1c44 | 19370 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19371 | rm -f conf$$files.sh |
c6b750e1 | 19372 | |
81ecdfbb RW |
19373 | { |
19374 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19375 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19376 | echo "_ACEOF" | |
19377 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19378 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19379 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19380 | ac_delim='%!_!# ' |
19381 | for ac_last_try in false false false false false :; do | |
19382 | . ./conf$$subs.sh || | |
d0ac1c44 | 19383 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19384 | |
19385 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19386 | if test $ac_delim_n = $ac_delim_num; then | |
19387 | break | |
19388 | elif $ac_last_try; then | |
d0ac1c44 | 19389 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19390 | else |
19391 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19392 | fi | |
19393 | done | |
19394 | rm -f conf$$subs.sh | |
19395 | ||
19396 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19397 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 19398 | _ACEOF |
81ecdfbb RW |
19399 | sed -n ' |
19400 | h | |
19401 | s/^/S["/; s/!.*/"]=/ | |
19402 | p | |
19403 | g | |
19404 | s/^[^!]*!// | |
19405 | :repl | |
19406 | t repl | |
19407 | s/'"$ac_delim"'$// | |
19408 | t delim | |
19409 | :nl | |
19410 | h | |
d0ac1c44 | 19411 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19412 | t more1 |
19413 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19414 | p | |
19415 | n | |
19416 | b repl | |
19417 | :more1 | |
19418 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19419 | p | |
19420 | g | |
19421 | s/.\{148\}// | |
19422 | t nl | |
19423 | :delim | |
19424 | h | |
d0ac1c44 | 19425 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19426 | t more2 |
19427 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19428 | p | |
19429 | b | |
19430 | :more2 | |
19431 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19432 | p | |
19433 | g | |
19434 | s/.\{148\}// | |
19435 | t delim | |
19436 | ' <conf$$subs.awk | sed ' | |
19437 | /^[^""]/{ | |
19438 | N | |
19439 | s/\n// | |
19440 | } | |
19441 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19442 | rm -f conf$$subs.awk | |
19443 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19444 | _ACAWK | |
d0ac1c44 | 19445 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19446 | for (key in S) S_is_set[key] = 1 |
19447 | FS = "\a" | |
19448 | \$ac_cs_awk_pipe_init | |
19449 | } | |
19450 | { | |
19451 | line = $ 0 | |
19452 | nfields = split(line, field, "@") | |
19453 | substed = 0 | |
19454 | len = length(field[1]) | |
19455 | for (i = 2; i < nfields; i++) { | |
19456 | key = field[i] | |
19457 | keylen = length(key) | |
19458 | if (S_is_set[key]) { | |
19459 | value = S[key] | |
19460 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19461 | len += length(value) + length(field[++i]) | |
19462 | substed = 1 | |
19463 | } else | |
19464 | len += 1 + keylen | |
19465 | } | |
19466 | if (nfields == 3 && !substed) { | |
19467 | key = field[2] | |
19468 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19469 | \$ac_cs_awk_read_file | |
19470 | next | |
19471 | } | |
19472 | } | |
19473 | print line | |
19474 | } | |
19475 | \$ac_cs_awk_pipe_fini | |
19476 | _ACAWK | |
19477 | _ACEOF | |
19478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19479 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19480 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19481 | else | |
19482 | cat | |
d0ac1c44 SM |
19483 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19484 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
19485 | _ACEOF |
19486 | ||
d0ac1c44 SM |
19487 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19488 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19489 | # trailing colons and then remove the whole line if VPATH becomes empty |
19490 | # (actually we leave an empty line to preserve line numbers). | |
19491 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19492 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19493 | h | |
19494 | s/// | |
19495 | s/^/:/ | |
19496 | s/[ ]*$/:/ | |
19497 | s/:\$(srcdir):/:/g | |
19498 | s/:\${srcdir}:/:/g | |
19499 | s/:@srcdir@:/:/g | |
19500 | s/^:*// | |
81ecdfbb | 19501 | s/:*$// |
d0ac1c44 SM |
19502 | x |
19503 | s/\(=[ ]*\).*/\1/ | |
19504 | G | |
19505 | s/\n// | |
81ecdfbb RW |
19506 | s/^[^=]*=[ ]*$// |
19507 | }' | |
19508 | fi | |
c6b750e1 | 19509 | |
81ecdfbb RW |
19510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19511 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 19512 | |
c6b750e1 | 19513 | |
81ecdfbb RW |
19514 | eval set X " :F $CONFIG_FILES " |
19515 | shift | |
19516 | for ac_tag | |
19517 | do | |
19518 | case $ac_tag in | |
19519 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19520 | esac | |
19521 | case $ac_mode$ac_tag in | |
19522 | :[FHL]*:*);; | |
d0ac1c44 | 19523 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19524 | :[FH]-) ac_tag=-:-;; |
19525 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19526 | esac | |
19527 | ac_save_IFS=$IFS | |
19528 | IFS=: | |
19529 | set x $ac_tag | |
19530 | IFS=$ac_save_IFS | |
19531 | shift | |
19532 | ac_file=$1 | |
19533 | shift | |
252b5132 | 19534 | |
81ecdfbb RW |
19535 | case $ac_mode in |
19536 | :L) ac_source=$1;; | |
19537 | :[FH]) | |
19538 | ac_file_inputs= | |
19539 | for ac_f | |
19540 | do | |
19541 | case $ac_f in | |
d0ac1c44 | 19542 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19543 | *) # Look for the file first in the build tree, then in the source tree |
19544 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19545 | # because $ac_f cannot contain `:'. | |
19546 | test -f "$ac_f" || | |
19547 | case $ac_f in | |
19548 | [\\/$]*) false;; | |
19549 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19550 | esac || | |
d0ac1c44 | 19551 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19552 | esac |
19553 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19554 | as_fn_append ac_file_inputs " '$ac_f'" | |
19555 | done | |
c6b750e1 | 19556 | |
81ecdfbb RW |
19557 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19558 | # use $as_me), people would be surprised to read: | |
19559 | # /* config.h. Generated by config.status. */ | |
19560 | configure_input='Generated from '` | |
19561 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19562 | `' by configure.' | |
19563 | if test x"$ac_file" != x-; then | |
19564 | configure_input="$ac_file. $configure_input" | |
19565 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19566 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 19567 | fi |
81ecdfbb RW |
19568 | # Neutralize special characters interpreted by sed in replacement strings. |
19569 | case $configure_input in #( | |
19570 | *\&* | *\|* | *\\* ) | |
19571 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19572 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19573 | *) ac_sed_conf_input=$configure_input;; | |
19574 | esac | |
cac3d6c4 | 19575 | |
81ecdfbb | 19576 | case $ac_tag in |
d0ac1c44 SM |
19577 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19578 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19579 | esac |
19580 | ;; | |
a0da8069 | 19581 | esac |
252b5132 | 19582 | |
81ecdfbb | 19583 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
19584 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19585 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19586 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19587 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19588 | $as_echo X"$ac_file" | | |
19589 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19590 | s//\1/ | |
19591 | q | |
19592 | } | |
19593 | /^X\(\/\/\)[^/].*/{ | |
19594 | s//\1/ | |
19595 | q | |
19596 | } | |
19597 | /^X\(\/\/\)$/{ | |
19598 | s//\1/ | |
19599 | q | |
19600 | } | |
19601 | /^X\(\/\).*/{ | |
19602 | s//\1/ | |
19603 | q | |
19604 | } | |
19605 | s/.*/./; q'` | |
19606 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 19607 | ac_builddir=. |
252b5132 | 19608 | |
81ecdfbb RW |
19609 | case "$ac_dir" in |
19610 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19611 | *) | |
19612 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19613 | # A ".." for each directory in $ac_dir_suffix. | |
19614 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19615 | case $ac_top_builddir_sub in | |
19616 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19617 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19618 | esac ;; | |
19619 | esac | |
19620 | ac_abs_top_builddir=$ac_pwd | |
19621 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19622 | # for backward compatibility: | |
19623 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
19624 | |
19625 | case $srcdir in | |
81ecdfbb | 19626 | .) # We are building in place. |
c6b750e1 | 19627 | ac_srcdir=. |
81ecdfbb RW |
19628 | ac_top_srcdir=$ac_top_builddir_sub |
19629 | ac_abs_top_srcdir=$ac_pwd ;; | |
19630 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 19631 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19632 | ac_top_srcdir=$srcdir |
19633 | ac_abs_top_srcdir=$srcdir ;; | |
19634 | *) # Relative name. | |
19635 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19636 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19637 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 19638 | esac |
81ecdfbb | 19639 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 19640 | |
252b5132 | 19641 | |
81ecdfbb RW |
19642 | case $ac_mode in |
19643 | :F) | |
19644 | # | |
19645 | # CONFIG_FILE | |
19646 | # | |
c6b750e1 DJ |
19647 | |
19648 | case $INSTALL in | |
19649 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19650 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 19651 | esac |
81ecdfbb | 19652 | _ACEOF |
252b5132 | 19653 | |
81ecdfbb RW |
19654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19655 | # If the template does not know about datarootdir, expand it. | |
19656 | # FIXME: This hack should be removed a few years after 2.60. | |
19657 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19658 | ac_sed_dataroot=' | |
19659 | /datarootdir/ { | |
19660 | p | |
19661 | q | |
19662 | } | |
19663 | /@datadir@/p | |
19664 | /@docdir@/p | |
19665 | /@infodir@/p | |
19666 | /@localedir@/p | |
19667 | /@mandir@/p' | |
19668 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19669 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19670 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19672 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 19673 | _ACEOF |
81ecdfbb RW |
19674 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19675 | ac_datarootdir_hack=' | |
19676 | s&@datadir@&$datadir&g | |
19677 | s&@docdir@&$docdir&g | |
19678 | s&@infodir@&$infodir&g | |
19679 | s&@localedir@&$localedir&g | |
19680 | s&@mandir@&$mandir&g | |
19681 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19682 | esac | |
19683 | _ACEOF | |
19684 | ||
19685 | # Neutralize VPATH when `$srcdir' = `.'. | |
19686 | # Shell code in configure.ac might set extrasub. | |
19687 | # FIXME: do we really want to maintain this feature? | |
19688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19689 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
19690 | $extrasub |
19691 | _ACEOF | |
81ecdfbb | 19692 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
19693 | :t |
19694 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19695 | s|@configure_input@|$ac_sed_conf_input|;t t |
19696 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19697 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19698 | s&@srcdir@&$ac_srcdir&;t t | |
19699 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19700 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19701 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19702 | s&@builddir@&$ac_builddir&;t t | |
19703 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19704 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19705 | s&@INSTALL@&$ac_INSTALL&;t t | |
19706 | $ac_datarootdir_hack | |
19707 | " | |
19708 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19709 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 19710 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 19711 | else |
d0ac1c44 SM |
19712 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19713 | fi \ | |
19714 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19715 | |
19716 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19717 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19718 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19719 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19721 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19722 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19723 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19724 | |
d0ac1c44 | 19725 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19726 | case $ac_file in |
d0ac1c44 SM |
19727 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19728 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19729 | esac \ |
d0ac1c44 | 19730 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19731 | ;; |
c148b4cb | 19732 | |
c148b4cb | 19733 | |
c148b4cb | 19734 | |
81ecdfbb RW |
19735 | esac |
19736 | ||
06a51eac RW |
19737 | |
19738 | case $ac_file$ac_mode in | |
19739 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19740 | sed "$extrasub_host" | | |
19741 | sed "$extrasub_target" > mf$$ | |
19742 | mv -f mf$$ Makefile ;; | |
19743 | ||
19744 | esac | |
81ecdfbb RW |
19745 | done # for ac_tag |
19746 | ||
19747 | ||
19748 | as_fn_exit 0 | |
c6b750e1 | 19749 | _ACEOF |
c6b750e1 DJ |
19750 | ac_clean_files=$ac_clean_files_save |
19751 | ||
81ecdfbb | 19752 | test $ac_write_fail = 0 || |
d0ac1c44 | 19753 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19754 | |
c6b750e1 DJ |
19755 | |
19756 | # configure is writing to config.log, and then calls config.status. | |
19757 | # config.status does its own redirection, appending to config.log. | |
19758 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19759 | # by configure, so config.status won't be able to write to it; its | |
19760 | # output is simply discarded. So we exec the FD to /dev/null, | |
19761 | # effectively closing config.log, so it can be properly (re)opened and | |
19762 | # appended to by config.status. When coming back to configure, we | |
19763 | # need to make the FD available again. | |
19764 | if test "$no_create" != yes; then | |
19765 | ac_cs_success=: | |
19766 | ac_config_status_args= | |
19767 | test "$silent" = yes && | |
19768 | ac_config_status_args="$ac_config_status_args --quiet" | |
19769 | exec 5>/dev/null | |
19770 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19771 | exec 5>>config.log | |
19772 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19773 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 19774 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
19775 | fi |
19776 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19778 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 19779 | fi |
c148b4cb | 19780 |