]>
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 |
228cf97d | 2824 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf" |
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 | ||
2cac01e3 FS |
2963 | |
2964 | # Check whether --with-zstd was given. | |
2965 | if test "${with_zstd+set}" = set; then : | |
2966 | withval=$with_zstd; | |
2967 | fi | |
2968 | ||
2969 | ||
c6b750e1 | 2970 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2971 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2972 | |
a0da8069 NN |
2973 | case ${with_x} in |
2974 | yes | "") ;; # the default value for this tree is that X11 is available | |
2975 | no) | |
675c6968 | 2976 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2977 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2978 | enable_gdbtk=no |
a0da8069 NN |
2979 | ;; |
2980 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2981 | esac | |
252b5132 | 2982 | |
0377a422 | 2983 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2984 | # Remove these if host=target. |
2985 | cross_only="target-libgloss target-newlib target-opcodes" | |
2986 | ||
2987 | case $is_cross_compiler in | |
2988 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2989 | esac |
252b5132 | 2990 | |
a0da8069 NN |
2991 | # If both --with-headers and --with-libs are specified, default to |
2992 | # --without-newlib. | |
32be62b5 RS |
2993 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2994 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2995 | if test x"${with_newlib}" = x ; then |
2996 | with_newlib=no | |
2997 | fi | |
252b5132 RH |
2998 | fi |
2999 | ||
a0da8069 NN |
3000 | # Recognize --with-newlib/--without-newlib. |
3001 | case ${with_newlib} in | |
3002 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3003 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3004 | esac | |
252b5132 | 3005 | |
1b6c0831 L |
3006 | # Check whether --enable-as-accelerator-for was given. |
3007 | if test "${enable_as_accelerator_for+set}" = set; then : | |
3008 | enableval=$enable_as_accelerator_for; | |
3009 | fi | |
3010 | ||
3011 | ||
3012 | # Check whether --enable-offload-targets was given. | |
3013 | if test "${enable_offload_targets+set}" = set; then : | |
3014 | enableval=$enable_offload_targets; | |
3015 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 3016 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
3017 | fi |
3018 | ||
3019 | else | |
3020 | enable_offload_targets= | |
3021 | fi | |
3022 | ||
3023 | ||
228cf97d AM |
3024 | # Check whether --enable-offload-defaulted was given. |
3025 | if test "${enable_offload_defaulted+set}" = set; then : | |
3026 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3027 | else | |
3028 | enable_offload_defaulted= | |
3029 | fi | |
3030 | ||
3031 | ||
c7791212 NC |
3032 | # Handle --enable-gold, --enable-ld. |
3033 | # --disable-gold [--enable-ld] | |
3034 | # Build only ld. Default option. | |
d3b50760 L |
3035 | # --enable-gold [--enable-ld] |
3036 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3037 | # as "ld.bfd" and "ld". | |
3038 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
3039 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3040 | # install ld as "ld.bfd". | |
3041 | # --enable-gold[=default] --disable-ld | |
3042 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3043 | # --enable-gold --enable-ld=default | |
d3b50760 L |
3044 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3045 | # and ld.bfd). | |
c7791212 NC |
3046 | # In other words, ld is default |
3047 | # --enable-gold=default --enable-ld=default | |
3048 | # Error. | |
3049 | ||
3050 | default_ld= | |
81ecdfbb RW |
3051 | # Check whether --enable-gold was given. |
3052 | if test "${enable_gold+set}" = set; then : | |
3053 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3054 | else |
3055 | ENABLE_GOLD=no | |
81ecdfbb RW |
3056 | fi |
3057 | ||
c7791212 NC |
3058 | case "${ENABLE_GOLD}" in |
3059 | yes|default) | |
e6de499b NC |
3060 | # Check for ELF target. |
3061 | is_elf=no | |
3062 | case "${target}" in | |
3063 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3064 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3065 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
228cf97d | 3066 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3067 | case "${target}" in |
3068 | *-*-linux*aout* | *-*-linux*oldld*) | |
3069 | ;; | |
3070 | *) | |
3071 | is_elf=yes | |
3072 | ;; | |
3073 | esac | |
3074 | esac | |
3075 | ||
3076 | if test "$is_elf" = "yes"; then | |
3077 | # Check for target supported by gold. | |
93f9b408 | 3078 | case "${target}" in |
6d26190c | 3079 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
228cf97d | 3080 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
c7791212 NC |
3081 | configdirs="$configdirs gold" |
3082 | if test x${ENABLE_GOLD} = xdefault; then | |
3083 | default_ld=gold | |
3084 | fi | |
e6de499b | 3085 | ENABLE_GOLD=yes |
93f9b408 ILT |
3086 | ;; |
3087 | esac | |
e6de499b NC |
3088 | fi |
3089 | ;; | |
3090 | no) | |
3091 | ;; | |
3092 | *) | |
d0ac1c44 | 3093 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3094 | ;; |
c7791212 NC |
3095 | esac |
3096 | ||
3097 | # Check whether --enable-ld was given. | |
3098 | if test "${enable_ld+set}" = set; then : | |
3099 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3100 | else | |
3101 | ENABLE_LD=yes | |
3102 | fi | |
3103 | ||
3104 | ||
3105 | case "${ENABLE_LD}" in | |
3106 | default) | |
d3b50760 | 3107 | if test x${default_ld} != x; then |
d0ac1c44 | 3108 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3109 | fi |
3110 | ;; | |
3111 | yes) | |
3112 | ;; | |
3113 | no) | |
3114 | if test x${ENABLE_GOLD} != xyes; then | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3116 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3117 | fi | |
3118 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3119 | ;; | |
3120 | *) | |
d0ac1c44 | 3121 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3122 | ;; |
3123 | esac | |
93f9b408 | 3124 | |
bb368aad VM |
3125 | # Check whether --enable-gprofng was given. |
3126 | if test "${enable_gprofng+set}" = set; then : | |
3127 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3128 | else | |
3129 | enable_gprofng=yes | |
3130 | fi | |
3131 | ||
3132 | if test "$enable_gprofng" = "yes"; then | |
3133 | case "${target}" in | |
3134 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3135 | configdirs="$configdirs gprofng" | |
3136 | ;; | |
3137 | esac | |
3138 | fi | |
3139 | ||
3140 | ||
edeefb67 L |
3141 | # PR gas/19109 |
3142 | # Decide the default method for compressing debug sections. | |
3143 | # Provide a configure time option to override our default. | |
3144 | # Check whether --enable-compressed_debug_sections was given. | |
3145 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3146 | enableval=$enable_compressed_debug_sections; | |
3147 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3148 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3149 | fi |
3150 | ||
3151 | else | |
3152 | enable_compressed_debug_sections= | |
3153 | fi | |
3154 | ||
3155 | ||
b0c295e1 ML |
3156 | # Select default compression algorithm. |
3157 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3158 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3159 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3160 | else | |
3161 | default_compressed_debug_sections_algorithm= | |
3162 | fi | |
3163 | ||
3164 | ||
a0da8069 | 3165 | # Configure extra directories which are host specific |
252b5132 | 3166 | |
a0da8069 NN |
3167 | case "${host}" in |
3168 | *-cygwin*) | |
3169 | configdirs="$configdirs libtermcap" ;; | |
3170 | esac | |
252b5132 | 3171 | |
59f7ec45 HPN |
3172 | # A target can indicate whether a language isn't supported for some reason. |
3173 | # Only spaces may be used in this macro; not newlines or tabs. | |
3174 | unsupported_languages= | |
3175 | ||
c6b750e1 | 3176 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3177 | # target this usually means that a port of the program doesn't |
3178 | # exist yet. | |
252b5132 | 3179 | |
a0da8069 | 3180 | case "${host}" in |
3516a403 | 3181 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3182 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3183 | ;; |
a0da8069 | 3184 | esac |
252b5132 | 3185 | |
e5f2f7d9 LM |
3186 | # Default to --disable-year2038 until we can handle differences between |
3187 | # projects that use gnulib (which understands year 2038) and projects that | |
3188 | # do not (like BFD). | |
3189 | # Check whether --enable-year2038 was given. | |
3190 | if test "${enable_year2038+set}" = set; then : | |
3191 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3192 | else | |
3193 | ENABLE_YEAR2038=no | |
3194 | fi | |
3195 | ||
3196 | enable_year2038= | |
3197 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3198 | enable_year2038=no | |
3199 | fi | |
4b1cb4fe | 3200 | |
89a1e9c3 PB |
3201 | # Check whether --enable-libquadmath was given. |
3202 | if test "${enable_libquadmath+set}" = set; then : | |
3203 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3204 | else | |
3205 | ENABLE_LIBQUADMATH=yes | |
3206 | fi | |
3207 | ||
3208 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3209 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3210 | fi | |
3211 | ||
3212 | ||
3213 | # Check whether --enable-libquadmath-support was given. | |
3214 | if test "${enable_libquadmath_support+set}" = set; then : | |
3215 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3216 | else | |
3217 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3218 | fi | |
3219 | ||
3220 | enable_libquadmath_support= | |
3221 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3222 | enable_libquadmath_support=no | |
3223 | fi | |
3224 | ||
3225 | ||
81ecdfbb RW |
3226 | # Check whether --enable-libada was given. |
3227 | if test "${enable_libada+set}" = set; then : | |
3228 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3229 | else |
3230 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3231 | fi |
3232 | ||
a2592b1b | 3233 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3234 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3235 | fi |
3236 | ||
81ecdfbb RW |
3237 | # Check whether --enable-libssp was given. |
3238 | if test "${enable_libssp+set}" = set; then : | |
3239 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3240 | else |
3241 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3242 | fi |
3243 | ||
5f128533 | 3244 | |
f66a9a70 L |
3245 | # Check whether --enable-libstdcxx was given. |
3246 | if test "${enable_libstdcxx+set}" = set; then : | |
3247 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3248 | else | |
3249 | ENABLE_LIBSTDCXX=default | |
3250 | fi | |
3251 | ||
3252 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3253 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3254 | fi | |
3255 | ||
3256 | # If this is accelerator compiler and its target is intelmic we enable | |
3257 | # target liboffloadmic by default. If this is compiler with offloading | |
3258 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3259 | # liboffloadmic is disabled by default. | |
3260 | # Check whether --enable-liboffloadmic was given. | |
3261 | if test "${enable_liboffloadmic+set}" = set; then : | |
3262 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3263 | no | host | target) | |
3264 | enable_liboffloadmic=$enableval ;; | |
3265 | *) | |
d0ac1c44 | 3266 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3267 | esac |
3268 | else | |
3269 | if test x"$enable_as_accelerator_for" != x; then | |
3270 | case "${target}" in | |
3271 | *-intelmic-* | *-intelmicemul-*) | |
3272 | enable_liboffloadmic=target | |
3273 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3274 | ;; | |
3275 | *) | |
3276 | enable_liboffloadmic=no | |
3277 | ;; | |
3278 | esac | |
3279 | else | |
3280 | case "${enable_offload_targets}" in | |
3281 | *-intelmic-* | *-intelmicemul-*) | |
3282 | enable_liboffloadmic=host | |
3283 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3284 | ;; | |
3285 | *) | |
3286 | enable_liboffloadmic=no | |
3287 | ;; | |
3288 | esac | |
3289 | fi | |
f66a9a70 L |
3290 | fi |
3291 | ||
1b6c0831 L |
3292 | |
3293 | ||
68996839 | 3294 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3295 | if test x$enable_libgomp = x ; then |
b3ded179 | 3296 | case "${target}" in |
29383458 | 3297 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3298 | ;; |
5b806d27 | 3299 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3300 | ;; |
2479f722 | 3301 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3302 | ;; |
3303 | *-*-darwin* | *-*-aix*) | |
3304 | ;; | |
228cf97d | 3305 | nvptx*-*-* | amdgcn*-*-*) |
68996839 | 3306 | ;; |
b3ded179 PB |
3307 | *) |
3308 | noconfigdirs="$noconfigdirs target-libgomp" | |
3309 | ;; | |
3310 | esac | |
a6df5a19 | 3311 | fi |
b3ded179 | 3312 | |
7ec59b9e L |
3313 | # Disable libatomic on unsupported systems. |
3314 | if test -d ${srcdir}/libatomic; then | |
3315 | if test x$enable_libatomic = x; then | |
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3317 | $as_echo_n "checking for libatomic support... " >&6; } | |
3318 | if (srcdir=${srcdir}/libatomic; \ | |
3319 | . ${srcdir}/configure.tgt; \ | |
3320 | test -n "$UNSUPPORTED") | |
3321 | then | |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3323 | $as_echo "no" >&6; } | |
3324 | noconfigdirs="$noconfigdirs target-libatomic" | |
3325 | else | |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3327 | $as_echo "yes" >&6; } | |
3328 | fi | |
3329 | fi | |
3330 | fi | |
3331 | ||
1b6c0831 L |
3332 | # Disable liboffloadmic on unsupported systems. |
3333 | if test -d ${srcdir}/liboffloadmic; then | |
3334 | if test x$enable_liboffloadmic != xno; then | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3336 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3337 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3338 | . ${srcdir}/configure.tgt; \ | |
3339 | test -n "$UNSUPPORTED") | |
3340 | then | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3342 | $as_echo "no" >&6; } | |
3343 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3344 | else | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3346 | $as_echo "yes" >&6; } | |
3347 | fi | |
3348 | fi | |
3349 | fi | |
3350 | ||
d32e2926 RH |
3351 | # Disable libitm on unsupported systems. |
3352 | if test -d ${srcdir}/libitm; then | |
3353 | if test x$enable_libitm = x; then | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3355 | $as_echo_n "checking for libitm support... " >&6; } | |
3356 | if (srcdir=${srcdir}/libitm; \ | |
3357 | . ${srcdir}/configure.tgt; \ | |
3358 | test -n "$UNSUPPORTED") | |
3359 | then | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3361 | $as_echo "no" >&6; } | |
3362 | noconfigdirs="$noconfigdirs target-libitm" | |
3363 | else | |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3365 | $as_echo "yes" >&6; } | |
3366 | fi | |
3367 | fi | |
3368 | fi | |
3369 | ||
5286fdef L |
3370 | # Disable libsanitizer on unsupported systems. |
3371 | if test -d ${srcdir}/libsanitizer; then | |
3372 | if test x$enable_libsanitizer = x; then | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3374 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3375 | if (srcdir=${srcdir}/libsanitizer; \ | |
3376 | . ${srcdir}/configure.tgt; \ | |
3377 | test -n "$UNSUPPORTED") | |
3378 | then | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3380 | $as_echo "no" >&6; } | |
3381 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3382 | else | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3384 | $as_echo "yes" >&6; } | |
3385 | fi | |
3386 | fi | |
3387 | fi | |
3388 | ||
95e43135 JBG |
3389 | # Disable libvtv on unsupported systems. |
3390 | if test -d ${srcdir}/libvtv; then | |
3391 | if test x$enable_libvtv = x; then | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3393 | $as_echo_n "checking for libvtv support... " >&6; } | |
3394 | if (srcdir=${srcdir}/libvtv; \ | |
3395 | . ${srcdir}/configure.tgt; \ | |
3396 | test "$VTV_SUPPORTED" != "yes") | |
3397 | then | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3399 | $as_echo "no" >&6; } | |
3400 | noconfigdirs="$noconfigdirs target-libvtv" | |
3401 | else | |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3403 | $as_echo "yes" >&6; } | |
3404 | fi | |
3405 | fi | |
3406 | fi | |
3407 | ||
1488e230 DE |
3408 | # Disable libquadmath for some systems. |
3409 | case "${target}" in | |
5286fdef L |
3410 | avr-*-*) |
3411 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3412 | ;; | |
1488e230 DE |
3413 | # libquadmath is unused on AIX and libquadmath build process use of |
3414 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3415 | powerpc-*-aix* | rs6000-*-aix*) | |
3416 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3417 | ;; | |
3418 | esac | |
3419 | ||
065a5627 JM |
3420 | # Disable libssp for some systems. |
3421 | case "${target}" in | |
3422 | avr-*-*) | |
c5f5c3c2 | 3423 | # No hosted I/O support. |
065a5627 JM |
3424 | noconfigdirs="$noconfigdirs target-libssp" |
3425 | ;; | |
228cf97d AM |
3426 | bpf-*-*) |
3427 | noconfigdirs="$noconfigdirs target-libssp" | |
3428 | ;; | |
065a5627 JM |
3429 | powerpc-*-aix* | rs6000-*-aix*) |
3430 | noconfigdirs="$noconfigdirs target-libssp" | |
3431 | ;; | |
228cf97d AM |
3432 | pru-*-*) |
3433 | # No hosted I/O support. | |
3434 | noconfigdirs="$noconfigdirs target-libssp" | |
3435 | ;; | |
99c513f6 | 3436 | rl78-*-*) |
202e2356 NC |
3437 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3438 | # doesn't fault for those - instead, it gives a build-time error | |
3439 | # for explicit misaligned loads. | |
99c513f6 DD |
3440 | noconfigdirs="$noconfigdirs target-libssp" |
3441 | ;; | |
1b6c0831 L |
3442 | visium-*-*) |
3443 | # No hosted I/O support. | |
3444 | noconfigdirs="$noconfigdirs target-libssp" | |
3445 | ;; | |
065a5627 JM |
3446 | esac |
3447 | ||
065a5627 | 3448 | # Disable libstdc++-v3 for some systems. |
228cf97d | 3449 | # Allow user to override this if they pass --enable-libstdcxx |
f66a9a70 L |
3450 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3451 | case "${target}" in | |
3452 | *-*-vxworks*) | |
3453 | # VxWorks uses the Dinkumware C++ library. | |
3454 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3455 | ;; | |
228cf97d AM |
3456 | amdgcn*-*-*) |
3457 | # Not ported/fails to build when using newlib. | |
3458 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3459 | ;; | |
f66a9a70 L |
3460 | arm*-wince-pe*) |
3461 | # the C++ libraries don't build on top of CE's C libraries | |
3462 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3463 | ;; | |
3464 | avr-*-*) | |
3465 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3466 | ;; | |
228cf97d AM |
3467 | bpf-*-*) |
3468 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3469 | ;; | |
969b1713 L |
3470 | ft32-*-*) |
3471 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3472 | ;; | |
f66a9a70 L |
3473 | esac |
3474 | fi | |
065a5627 | 3475 | |
228cf97d AM |
3476 | # Disable C++ on systems where it is known to not work. |
3477 | # For testing, you can override this with --enable-languages=c++. | |
3478 | case ,${enable_languages}, in | |
3479 | *,c++,*) | |
3480 | ;; | |
3481 | *) | |
3482 | case "${target}" in | |
3483 | bpf-*-*) | |
3484 | unsupported_languages="$unsupported_languages c++" | |
3485 | ;; | |
3486 | esac | |
3487 | ;; | |
3488 | esac | |
3489 | ||
3490 | # Disable Objc on systems where it is known to not work. | |
3491 | # For testing, you can override this with --enable-languages=objc. | |
3492 | case ,${enable_languages}, in | |
3493 | *,objc,*) | |
3494 | ;; | |
3495 | *) | |
3496 | case "${target}" in | |
3497 | bpf-*-*) | |
3498 | unsupported_languages="$unsupported_languages objc" | |
3499 | ;; | |
3500 | esac | |
3501 | ;; | |
3502 | esac | |
3503 | ||
3504 | # Disable D on systems where it is known to not work. | |
3505 | # For testing, you can override this with --enable-languages=d. | |
3506 | case ,${enable_languages}, in | |
3507 | *,d,*) | |
3508 | ;; | |
3509 | *) | |
3510 | case "${target}" in | |
3511 | bpf-*-*) | |
3512 | unsupported_languages="$unsupported_languages d" | |
3513 | ;; | |
3514 | esac | |
3515 | ;; | |
3516 | esac | |
3517 | ||
3518 | # Disable libphobos on unsupported systems. | |
3519 | # For testing, you can override this with --enable-libphobos. | |
3520 | if test -d ${srcdir}/libphobos; then | |
3521 | if test x$enable_libphobos = x; then | |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3523 | $as_echo_n "checking for libphobos support... " >&6; } | |
3524 | if (srcdir=${srcdir}/libphobos; \ | |
3525 | . ${srcdir}/configure.tgt; \ | |
3526 | test "$LIBPHOBOS_SUPPORTED" != "yes") | |
3527 | then | |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3529 | $as_echo "no" >&6; } | |
3530 | noconfigdirs="$noconfigdirs target-libphobos" | |
3531 | else | |
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3533 | $as_echo "yes" >&6; } | |
3534 | fi | |
3535 | fi | |
3536 | fi | |
3537 | ||
065a5627 JM |
3538 | # Disable Fortran for some systems. |
3539 | case "${target}" in | |
3540 | mmix-*-*) | |
3541 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3542 | unsupported_languages="$unsupported_languages fortran" | |
3543 | ;; | |
228cf97d AM |
3544 | bpf-*-*) |
3545 | unsupported_languages="$unsupported_languages fortran" | |
3546 | ;; | |
065a5627 JM |
3547 | esac |
3548 | ||
05a13254 | 3549 | # Disable libffi for some systems. |
0827f9a6 | 3550 | case "${target}" in |
9863d716 JM |
3551 | powerpc-*-darwin*) |
3552 | ;; | |
3553 | i[3456789]86-*-darwin*) | |
3554 | ;; | |
3555 | x86_64-*-darwin[912]*) | |
3556 | ;; | |
3557 | *-*-darwin*) | |
05a13254 | 3558 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3559 | ;; |
9863d716 | 3560 | *-*-netware*) |
05a13254 NC |
3561 | noconfigdirs="$noconfigdirs target-libffi" |
3562 | ;; | |
3563 | *-*-phoenix*) | |
3564 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3565 | ;; |
3566 | *-*-rtems*) | |
05a13254 | 3567 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3568 | ;; |
3569 | *-*-tpf*) | |
05a13254 | 3570 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3571 | ;; |
3572 | *-*-uclinux*) | |
05a13254 | 3573 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3574 | ;; |
3575 | *-*-vxworks*) | |
05a13254 NC |
3576 | noconfigdirs="$noconfigdirs target-libffi" |
3577 | ;; | |
3578 | aarch64*-*-freebsd*) | |
3579 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3580 | ;; |
9863d716 | 3581 | alpha*-*-*vms*) |
05a13254 | 3582 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3583 | ;; |
1b6c0831 | 3584 | arm*-*-freebsd*) |
05a13254 | 3585 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3586 | ;; |
0827f9a6 | 3587 | arm-wince-pe) |
05a13254 | 3588 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3589 | ;; |
228cf97d AM |
3590 | arm*-*-symbianelf*) |
3591 | noconfigdirs="$noconfigdirs target-libffi" | |
3592 | ;; | |
3593 | bpf-*-*) | |
3594 | noconfigdirs="$noconfigdirs target-libffi" | |
3595 | ;; | |
9863d716 | 3596 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3597 | case "${target}" in |
3598 | *-*-linux*) | |
3599 | ;; | |
3600 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3601 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3602 | esac |
3603 | ;; | |
82ae827f | 3604 | hppa*64*-*-hpux*) |
05a13254 | 3605 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3606 | ;; |
3607 | hppa*-hp-hpux11*) | |
3608 | ;; | |
82ae827f | 3609 | hppa*-*-hpux*) |
05a13254 | 3610 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3611 | ;; |
9863d716 | 3612 | ia64*-*-*vms*) |
05a13254 | 3613 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3614 | ;; |
9863d716 | 3615 | i[3456789]86-w64-mingw*) |
05a13254 | 3616 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3617 | ;; |
3618 | i[3456789]86-*-mingw*) | |
05a13254 | 3619 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3620 | ;; |
3621 | x86_64-*-mingw*) | |
05a13254 | 3622 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3623 | ;; |
9863d716 | 3624 | mmix-*-*) |
05a13254 | 3625 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3626 | ;; |
3627 | powerpc-*-aix*) | |
9863d716 | 3628 | ;; |
9863d716 | 3629 | rs6000-*-aix*) |
9863d716 | 3630 | ;; |
3f8107ab | 3631 | ft32-*-*) |
05a13254 | 3632 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3633 | ;; |
9863d716 | 3634 | *-*-lynxos*) |
05a13254 | 3635 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3636 | ;; |
9863d716 JM |
3637 | esac |
3638 | ||
1b6c0831 L |
3639 | # Disable the go frontend on systems where it is known to not work. Please keep |
3640 | # this in sync with contrib/config-list.mk. | |
3641 | case "${target}" in | |
228cf97d | 3642 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
1b6c0831 L |
3643 | unsupported_languages="$unsupported_languages go" |
3644 | ;; | |
3645 | esac | |
3646 | ||
919adfe8 TT |
3647 | # Only allow gdbserver on some systems. |
3648 | if test -d ${srcdir}/gdbserver; then | |
3649 | if test x$enable_gdbserver = x; then | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3651 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3652 | if (srcdir=${srcdir}/gdbserver; \ | |
3653 | . ${srcdir}/configure.srv; \ | |
3654 | test -n "$UNSUPPORTED") | |
3655 | then | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3657 | $as_echo "no" >&6; } | |
3658 | noconfigdirs="$noconfigdirs gdbserver" | |
3659 | else | |
3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3661 | $as_echo "yes" >&6; } | |
3662 | fi | |
3663 | fi | |
3664 | fi | |
3665 | ||
a413f71a ILT |
3666 | # Disable libgo for some systems where it is known to not work. |
3667 | # For testing, you can easily override this with --enable-libgo. | |
3668 | if test x$enable_libgo = x; then | |
3669 | case "${target}" in | |
3670 | *-*-darwin*) | |
3671 | # PR 46986 | |
3672 | noconfigdirs="$noconfigdirs target-libgo" | |
3673 | ;; | |
3674 | *-*-cygwin* | *-*-mingw*) | |
3675 | noconfigdirs="$noconfigdirs target-libgo" | |
3676 | ;; | |
228cf97d AM |
3677 | bpf-*-*) |
3678 | noconfigdirs="$noconfigdirs target-libgo" | |
3679 | ;; | |
a413f71a ILT |
3680 | esac |
3681 | fi | |
3682 | ||
691bb5a1 DD |
3683 | # Default libgloss CPU subdirectory. |
3684 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3685 | |
ff46fb8f JM |
3686 | case "${target}" in |
3687 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3688 | libgloss_dir=wince | |
3689 | ;; | |
f1dd87fc YZ |
3690 | aarch64*-*-* ) |
3691 | libgloss_dir=aarch64 | |
3692 | ;; | |
ff46fb8f JM |
3693 | arm*-*-*) |
3694 | libgloss_dir=arm | |
3695 | ;; | |
3696 | cris-*-* | crisv32-*-*) | |
3697 | libgloss_dir=cris | |
3698 | ;; | |
3699 | hppa*-*-*) | |
3700 | libgloss_dir=pa | |
3701 | ;; | |
3702 | i[3456789]86-*-*) | |
3703 | libgloss_dir=i386 | |
3704 | ;; | |
228cf97d AM |
3705 | loongarch*-*-*) |
3706 | libgloss_dir=loongarch | |
3707 | ;; | |
ff46fb8f JM |
3708 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3709 | libgloss_dir=m68hc11 | |
3710 | ;; | |
3711 | m68*-*-* | fido-*-*) | |
3712 | libgloss_dir=m68k | |
3713 | ;; | |
3714 | mips*-*-*) | |
3715 | libgloss_dir=mips | |
3716 | ;; | |
3717 | powerpc*-*-*) | |
3718 | libgloss_dir=rs6000 | |
3719 | ;; | |
228cf97d AM |
3720 | pru-*-*) |
3721 | libgloss_dir=pru | |
3722 | ;; | |
ff46fb8f JM |
3723 | sparc*-*-*) |
3724 | libgloss_dir=sparc | |
3725 | ;; | |
3726 | esac | |
3727 | ||
c7e4b184 | 3728 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3729 | case "${target}" in |
c7e4b184 JM |
3730 | alpha*-dec-osf*) |
3731 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3732 | ;; | |
3733 | i[3456789]86-*-linux*) | |
3734 | # This section makes it possible to build newlib natively on linux. | |
3735 | # If we are using a cross compiler then don't configure newlib. | |
3736 | if test x${is_cross_compiler} != xno ; then | |
3737 | noconfigdirs="$noconfigdirs target-newlib" | |
3738 | fi | |
3739 | noconfigdirs="$noconfigdirs target-libgloss" | |
3740 | # If we are not using a cross compiler, do configure newlib. | |
3741 | # Note however, that newlib will only be configured in this situation | |
3742 | # if the --with-newlib option has been given, because otherwise | |
3743 | # 'target-newlib' will appear in skipdirs. | |
3744 | ;; | |
3745 | i[3456789]86-*-rdos*) | |
3746 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3747 | ;; | |
3748 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3749 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3750 | ;; | |
3751 | sparc-*-sunos4*) | |
3752 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3753 | ;; | |
228cf97d AM |
3754 | bpf-*-*) |
3755 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3756 | ;; | |
c7e4b184 JM |
3757 | *-*-aix*) |
3758 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3759 | ;; | |
3760 | *-*-beos*) | |
3761 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3762 | ;; | |
a0da8069 | 3763 | *-*-chorusos) |
b2f14e4a | 3764 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3765 | ;; |
c7e4b184 JM |
3766 | *-*-dragonfly*) |
3767 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3768 | ;; | |
3769 | *-*-freebsd*) | |
3770 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3771 | ;; | |
3772 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3773 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3774 | ;; | |
3775 | *-*-lynxos*) | |
3776 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3777 | ;; | |
3778 | *-*-mingw*) | |
3779 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3780 | ;; | |
3781 | *-*-netbsd*) | |
3782 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3783 | ;; | |
3784 | *-*-netware*) | |
3785 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3786 | ;; | |
3787 | *-*-tpf*) | |
3788 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3789 | ;; | |
3790 | *-*-uclinux*) | |
3791 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3792 | ;; | |
3793 | *-*-vxworks*) | |
3794 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3795 | ;; | |
3796 | esac | |
3797 | ||
3798 | case "${target}" in | |
3799 | *-*-chorusos) | |
3800 | ;; | |
f075eb5e TG |
3801 | aarch64-*-darwin*) |
3802 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3803 | noconfigdirs="$noconfigdirs sim target-rda" | |
3804 | ;; | |
228cf97d AM |
3805 | amdgcn*-*-*) |
3806 | ;; | |
f075eb5e TG |
3807 | arm-*-darwin*) |
3808 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3809 | noconfigdirs="$noconfigdirs sim target-rda" | |
3810 | ;; | |
24741ab2 | 3811 | powerpc-*-darwin*) |
9d39db92 | 3812 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3813 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3814 | ;; |
85bd1942 TG |
3815 | i[3456789]86-*-darwin*) |
3816 | noconfigdirs="$noconfigdirs ld gprof" | |
3817 | noconfigdirs="$noconfigdirs sim target-rda" | |
3818 | ;; | |
e8a5fa9c | 3819 | x86_64-*-darwin[912]*) |
652dec25 TG |
3820 | noconfigdirs="$noconfigdirs ld gas gprof" |
3821 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3822 | ;; |
04d1ab34 | 3823 | *-*-darwin*) |
d320aacb | 3824 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3825 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3826 | ;; |
5b806d27 | 3827 | *-*-dragonfly*) |
5b806d27 | 3828 | ;; |
de0b4a87 | 3829 | *-*-freebsd*) |
228cf97d AM |
3830 | if test "x$with_gmp" = x \ |
3831 | && ! test -d ${srcdir}/gmp \ | |
4b1cb4fe DD |
3832 | && test -f /usr/local/include/gmp.h; then |
3833 | with_gmp=/usr/local | |
3834 | fi | |
4b1cb4fe | 3835 | ;; |
f8a495c8 NC |
3836 | *-*-kaos*) |
3837 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3838 | noconfigdirs="$noconfigdirs target-libgloss" |
3839 | ;; | |
a0da8069 | 3840 | *-*-netbsd*) |
a0da8069 | 3841 | ;; |
2a3124ca | 3842 | *-*-netware*) |
a0da8069 | 3843 | ;; |
05a13254 NC |
3844 | *-*-phoenix*) |
3845 | noconfigdirs="$noconfigdirs target-libgloss" | |
3846 | ;; | |
a0da8069 | 3847 | *-*-rtems*) |
9863d716 | 3848 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3849 | ;; |
1587117a EC |
3850 | # The tpf target doesn't support gdb yet. |
3851 | *-*-tpf*) | |
c7e4b184 | 3852 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3853 | ;; |
c1968181 | 3854 | *-*-uclinux*) |
c7e4b184 | 3855 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3856 | ;; |
a0da8069 | 3857 | *-*-vxworks*) |
a0da8069 NN |
3858 | ;; |
3859 | alpha*-dec-osf*) | |
3860 | # ld works, but does not support shared libraries. | |
a0da8069 | 3861 | # gas doesn't generate exception information. |
c7e4b184 | 3862 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3863 | ;; |
3864 | alpha*-*-*vms*) | |
9863d716 | 3865 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3866 | ;; |
a0da8069 NN |
3867 | alpha*-*-*) |
3868 | # newlib is not 64 bit ready | |
9863d716 | 3869 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3870 | ;; |
228cf97d AM |
3871 | bpf-*-*) |
3872 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3873 | ;; | |
a0da8069 | 3874 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3875 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3876 | ;; |
05a13254 NC |
3877 | arc*-*-*) |
3878 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3879 | ;; |
a0da8069 | 3880 | arm-*-pe*) |
9863d716 | 3881 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3882 | ;; |
a0da8069 | 3883 | arm-*-riscix*) |
b2f14e4a | 3884 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3885 | ;; |
8e71395b L |
3886 | avr-*-*) |
3887 | if test x${with_avrlibc} != xno; then | |
3888 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3889 | fi | |
3890 | ;; | |
a0da8069 | 3891 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3892 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3893 | ;; |
b2f14e4a JM |
3894 | tic54x-*-*) |
3895 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3896 | ;; |
a0da8069 | 3897 | d10v-*-*) |
b2f14e4a | 3898 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3899 | ;; |
3900 | d30v-*-*) | |
b2f14e4a | 3901 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3902 | ;; |
3903 | fr30-*-elf*) | |
9863d716 | 3904 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3905 | ;; |
3f8107ab AM |
3906 | ft32-*-*) |
3907 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3908 | ;; | |
20135e4c | 3909 | moxie-*-*) |
10b8fe5e | 3910 | noconfigdirs="$noconfigdirs" |
20135e4c | 3911 | ;; |
a0da8069 | 3912 | h8300*-*-*) |
9863d716 | 3913 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3914 | ;; |
3915 | h8500-*-*) | |
b2f14e4a | 3916 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3917 | ;; |
caeba88f | 3918 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3919 | ;; |
5569a85f JDA |
3920 | hppa*64*-*-hpux*) |
3921 | noconfigdirs="$noconfigdirs gdb" | |
3922 | ;; | |
3923 | hppa*-*-hpux11*) | |
3924 | noconfigdirs="$noconfigdirs gdb ld" | |
3925 | ;; | |
93cc359e | 3926 | hppa*64*-*-linux*) |
a0da8069 | 3927 | ;; |
f0ff0f90 | 3928 | hppa*-*-linux*) |
5dcac624 | 3929 | ;; |
a0da8069 | 3930 | hppa*-*-*elf* | \ |
a0da8069 NN |
3931 | hppa*-*-lites* | \ |
3932 | hppa*-*-openbsd* | \ | |
3933 | hppa*64*-*-*) | |
4f0ef2d8 | 3934 | ;; |
691bb5a1 | 3935 | hppa*-*-pro*) |
691bb5a1 | 3936 | ;; |
a0da8069 | 3937 | hppa*-*-*) |
9863d716 | 3938 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3939 | ;; |
b07c2aad | 3940 | i960-*-*) |
b2f14e4a | 3941 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3942 | ;; |
a0da8069 NN |
3943 | ia64*-*-elf*) |
3944 | # No gdb support yet. | |
0377a422 | 3945 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3946 | ;; |
3947 | ia64*-**-hpux*) | |
92c9a463 | 3948 | # No ld support yet. |
5569a85f | 3949 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3950 | ;; |
19e99079 | 3951 | ia64*-*-*vms*) |
7ec59b9e L |
3952 | # No ld support yet. |
3953 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3954 | ;; |
1f53ca9a | 3955 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3956 | ;; |
3957 | i[3456789]86-*-mingw*) | |
45055374 | 3958 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3959 | ;; |
a0da8069 NN |
3960 | *-*-cygwin*) |
3961 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3962 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3963 | # always build newlib if winsup directory is present. |
45055374 | 3964 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3965 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3966 | elif test -d "$srcdir/newlib"; then |
45055374 | 3967 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3968 | fi |
c6b750e1 | 3969 | ;; |
ec11bdc6 | 3970 | i[3456789]86-*-pe) |
782cb41f | 3971 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3972 | ;; |
ec11bdc6 | 3973 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3974 | # The linker does not yet know about weak symbols in COFF, |
3975 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3976 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3977 | ;; |
ec11bdc6 | 3978 | i[3456789]86-*-sco*) |
b2f14e4a | 3979 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3980 | ;; |
cff32a7c | 3981 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3982 | noconfigdirs="$noconfigdirs target-libgloss" |
3983 | ;; | |
ec11bdc6 | 3984 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3985 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3986 | ;; |
ec11bdc6 | 3987 | i[3456789]86-*-beos*) |
c7e4b184 | 3988 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3989 | ;; |
b59bea8a | 3990 | i[3456789]86-*-rdos*) |
c7e4b184 | 3991 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3992 | ;; |
a0da8069 | 3993 | mmix-*-*) |
9863d716 | 3994 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3995 | ;; |
4970f871 | 3996 | mt-*-*) |
cdb9b172 AH |
3997 | noconfigdirs="$noconfigdirs sim" |
3998 | ;; | |
1063beb5 FT |
3999 | nfp-*-*) |
4000 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
4001 | noconfigdirs="$noconfigdirs $target_libraries" | |
4002 | ;; | |
11104e42 SC |
4003 | pdp11-*-*) |
4004 | noconfigdirs="$noconfigdirs gdb gprof" | |
4005 | ;; | |
a0da8069 NN |
4006 | powerpc-*-aix*) |
4007 | # copied from rs6000-*-* entry | |
c7e4b184 | 4008 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4009 | ;; |
93cc359e | 4010 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 4011 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 4012 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
4013 | # always build newlib. |
4014 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
4015 | ;; | |
4016 | # This is temporary until we can link against shared libraries | |
4017 | powerpcle-*-solaris*) | |
b2f14e4a | 4018 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
4019 | ;; |
4020 | powerpc-*-beos*) | |
c7e4b184 | 4021 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4022 | ;; |
a0da8069 | 4023 | rs6000-*-lynxos*) |
c7e4b184 | 4024 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4025 | ;; |
4026 | rs6000-*-aix*) | |
c7e4b184 | 4027 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4028 | ;; |
4029 | rs6000-*-*) | |
9863d716 | 4030 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4031 | ;; |
4032 | m68k-apollo-*) | |
b2f14e4a | 4033 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 4034 | ;; |
25a07265 | 4035 | microblaze*) |
9863d716 | 4036 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 4037 | ;; |
a9d58c06 | 4038 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
4039 | if test x$with_newlib = xyes; then |
4040 | noconfigdirs="$noconfigdirs gprof" | |
4041 | fi | |
5bd8be13 | 4042 | ;; |
a0da8069 | 4043 | mips*-*-irix5*) |
b2f14e4a | 4044 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
4045 | ;; |
4046 | mips*-*-irix6*) | |
9863d716 | 4047 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 4048 | ;; |
a0da8069 | 4049 | mips*-*-bsd*) |
e8044f35 | 4050 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 4051 | ;; |
a0da8069 | 4052 | mips*-*-linux*) |
a0da8069 | 4053 | ;; |
e8044f35 RS |
4054 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4055 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4056 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4057 | ;; | |
a0da8069 | 4058 | mips*-*-*) |
9863d716 | 4059 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4060 | ;; |
1b6c0831 | 4061 | nvptx*-*-*) |
1b6c0831 L |
4062 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4063 | ;; | |
05a13254 | 4064 | sh-*-*) |
e8a5fa9c RW |
4065 | case "${target}" in |
4066 | sh*-*-elf) | |
9863d716 | 4067 | ;; |
e8a5fa9c | 4068 | *) |
9863d716 | 4069 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 4070 | esac |
a0da8069 | 4071 | ;; |
a0da8069 | 4072 | sparc-*-sunos4*) |
c7e4b184 | 4073 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
4074 | use_gnu_ld=no |
4075 | fi | |
4076 | ;; | |
619a3713 | 4077 | tic6x-*-*) |
40ae9136 | 4078 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 4079 | ;; |
05a13254 | 4080 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
4081 | noconfigdirs="$noconfigdirs sim" |
4082 | ;; | |
a0da8069 | 4083 | v810-*-*) |
b2f14e4a | 4084 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
4085 | ;; |
4086 | vax-*-*) | |
9863d716 | 4087 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 4088 | ;; |
b29d2641 MR |
4089 | wasm32-*-*) |
4090 | noconfigdirs="$noconfigdirs ld" | |
4091 | ;; | |
228cf97d AM |
4092 | loongarch*-*-linux*) |
4093 | ;; | |
4094 | loongarch*-*-*) | |
4095 | noconfigdirs="$noconfigdirs gprof" | |
4096 | ;; | |
a0da8069 | 4097 | esac |
252b5132 | 4098 | |
a0da8069 NN |
4099 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4100 | # depends upon some newlib header files. | |
4101 | case "${noconfigdirs}" in | |
4102 | *target-libgloss*) ;; | |
4103 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4104 | esac | |
4105 | ||
a0da8069 | 4106 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
4107 | host_makefile_frag=/dev/null |
4108 | if test -d ${srcdir}/config ; then | |
4109 | case "${host}" in | |
ec11bdc6 | 4110 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
4111 | host_makefile_frag="config/mh-djgpp" |
4112 | ;; | |
4113 | *-cygwin*) | |
e33b51a6 | 4114 | |
81ecdfbb RW |
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4116 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 4117 | echo a >cygwin-cat-check |
1f53ca9a | 4118 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 4119 | rm cygwin-cat-check |
81ecdfbb RW |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4121 | $as_echo "yes" >&6; } | |
e33b51a6 | 4122 | else |
8ade07e9 | 4123 | rm cygwin-cat-check |
81ecdfbb RW |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4125 | $as_echo "no" >&6; } | |
d0ac1c44 | 4126 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
4127 | Please either mount the build directory in binary mode or run the following |
4128 | commands before running any configure script: | |
4129 | set -o igncr | |
4130 | export SHELLOPTS | |
81ecdfbb | 4131 | " "$LINENO" 5 |
e33b51a6 | 4132 | fi |
e33b51a6 | 4133 | |
a0da8069 NN |
4134 | host_makefile_frag="config/mh-cygwin" |
4135 | ;; | |
8a1599ab | 4136 | *-mingw*) |
84e7906e | 4137 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4138 | ;; |
ce6c656d L |
4139 | alpha*-linux*) |
4140 | host_makefile_frag="config/mh-alpha-linux" | |
4141 | ;; | |
da888c87 | 4142 | hppa*-hp-hpux10*) |
da888c87 | 4143 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4144 | ;; |
3516a403 | 4145 | hppa*-hp-hpux*) |
da888c87 PB |
4146 | host_makefile_frag="config/mh-pa" |
4147 | ;; | |
4148 | hppa*-*) | |
4149 | host_makefile_frag="config/mh-pa" | |
4150 | ;; | |
228cf97d | 4151 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
e552509b | 4152 | host_makefile_frag="config/mh-darwin" |
0df3d27f | 4153 | ;; |
f6d183c0 PB |
4154 | powerpc-*-aix*) |
4155 | host_makefile_frag="config/mh-ppc-aix" | |
4156 | ;; | |
4157 | rs6000-*-aix*) | |
4158 | host_makefile_frag="config/mh-ppc-aix" | |
4159 | ;; | |
a0da8069 NN |
4160 | esac |
4161 | fi | |
4162 | ||
9e07f89d | 4163 | if test "${build}" != "${host}" ; then |
1576798e PB |
4164 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4165 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4166 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
228cf97d | 4167 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
1576798e | 4168 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
228cf97d | 4169 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
1576798e | 4170 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4171 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
228cf97d | 4172 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
1576798e PB |
4173 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4174 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4175 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4176 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4177 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4178 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4179 | else | |
4180 | AR_FOR_BUILD="\$(AR)" | |
4181 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4182 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4183 | CXX_FOR_BUILD="\$(CXX)" |
228cf97d | 4184 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
1576798e | 4185 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4186 | GOC_FOR_BUILD="\$(GOC)" |
228cf97d | 4187 | GDC_FOR_BUILD="\$(GDC)" |
1576798e PB |
4188 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4189 | LD_FOR_BUILD="\$(LD)" | |
4190 | NM_FOR_BUILD="\$(NM)" | |
4191 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4192 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4193 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4194 | fi |
4195 | ||
4196 | ac_ext=c | |
c6b750e1 DJ |
4197 | ac_cpp='$CPP $CPPFLAGS' |
4198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4201 | if test -n "$ac_tool_prefix"; then | |
4202 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4203 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4206 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4207 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4208 | else |
4209 | if test -n "$CC"; then | |
4210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4211 | else | |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4219 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4221 | break 2 |
4222 | fi | |
4223 | done | |
81ecdfbb RW |
4224 | done |
4225 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4226 | |
4227 | fi | |
4228 | fi | |
4229 | CC=$ac_cv_prog_CC | |
4230 | if test -n "$CC"; then | |
81ecdfbb RW |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4232 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4233 | else |
81ecdfbb RW |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4235 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4236 | fi |
4237 | ||
81ecdfbb | 4238 | |
c6b750e1 DJ |
4239 | fi |
4240 | if test -z "$ac_cv_prog_CC"; then | |
4241 | ac_ct_CC=$CC | |
6a9cf61e | 4242 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4243 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4245 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4246 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4247 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4248 | else |
4249 | if test -n "$ac_ct_CC"; then | |
4250 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4251 | else | |
4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4253 | for as_dir in $PATH | |
4254 | do | |
4255 | IFS=$as_save_IFS | |
4256 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4257 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4259 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4261 | break 2 |
4262 | fi | |
4263 | done | |
81ecdfbb RW |
4264 | done |
4265 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4266 | |
4267 | fi | |
4268 | fi | |
4269 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4270 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4272 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4273 | else |
81ecdfbb RW |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4275 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4276 | fi |
4277 | ||
81ecdfbb RW |
4278 | if test "x$ac_ct_CC" = x; then |
4279 | CC="" | |
4280 | else | |
4281 | case $cross_compiling:$ac_tool_warned in | |
4282 | yes:) | |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4285 | ac_tool_warned=yes ;; | |
4286 | esac | |
4287 | CC=$ac_ct_CC | |
4288 | fi | |
c6b750e1 DJ |
4289 | else |
4290 | CC="$ac_cv_prog_CC" | |
4291 | fi | |
4292 | ||
4293 | if test -z "$CC"; then | |
81ecdfbb RW |
4294 | if test -n "$ac_tool_prefix"; then |
4295 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4296 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4298 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4299 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4300 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4301 | else |
4302 | if test -n "$CC"; then | |
4303 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4304 | else | |
c6b750e1 DJ |
4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4306 | for as_dir in $PATH | |
4307 | do | |
4308 | IFS=$as_save_IFS | |
4309 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4310 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4312 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4314 | break 2 |
4315 | fi | |
4316 | done | |
81ecdfbb RW |
4317 | done |
4318 | IFS=$as_save_IFS | |
c6b750e1 | 4319 | |
9e07f89d NN |
4320 | fi |
4321 | fi | |
c6b750e1 | 4322 | CC=$ac_cv_prog_CC |
9e07f89d | 4323 | if test -n "$CC"; then |
81ecdfbb RW |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4325 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4326 | else |
81ecdfbb RW |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4328 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4329 | fi |
4330 | ||
c6b750e1 | 4331 | |
81ecdfbb | 4332 | fi |
c6b750e1 | 4333 | fi |
9e07f89d NN |
4334 | if test -z "$CC"; then |
4335 | # Extract the first word of "cc", so it can be a program name with args. | |
4336 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4338 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4339 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4340 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4341 | else |
4342 | if test -n "$CC"; then | |
4343 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4344 | else | |
9e07f89d | 4345 | ac_prog_rejected=no |
c6b750e1 DJ |
4346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4347 | for as_dir in $PATH | |
4348 | do | |
4349 | IFS=$as_save_IFS | |
4350 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4351 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4353 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4354 | ac_prog_rejected=yes | |
4355 | continue | |
4356 | fi | |
4357 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4359 | break 2 |
4360 | fi | |
4361 | done | |
81ecdfbb RW |
4362 | done |
4363 | IFS=$as_save_IFS | |
c6b750e1 | 4364 | |
9e07f89d NN |
4365 | if test $ac_prog_rejected = yes; then |
4366 | # We found a bogon in the path, so make sure we never use it. | |
4367 | set dummy $ac_cv_prog_CC | |
4368 | shift | |
c6b750e1 | 4369 | if test $# != 0; then |
9e07f89d NN |
4370 | # We chose a different compiler from the bogus one. |
4371 | # However, it has the same basename, so the bogon will be chosen | |
4372 | # first if we set CC to just the basename; use the full file name. | |
4373 | shift | |
c6b750e1 | 4374 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4375 | fi |
4376 | fi | |
4377 | fi | |
4378 | fi | |
c6b750e1 | 4379 | CC=$ac_cv_prog_CC |
9e07f89d | 4380 | if test -n "$CC"; then |
81ecdfbb RW |
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4382 | $as_echo "$CC" >&6; } | |
9e07f89d | 4383 | else |
81ecdfbb RW |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4385 | $as_echo "no" >&6; } | |
9e07f89d NN |
4386 | fi |
4387 | ||
81ecdfbb | 4388 | |
c6b750e1 DJ |
4389 | fi |
4390 | if test -z "$CC"; then | |
4391 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4392 | for ac_prog in cl.exe |
c6b750e1 DJ |
4393 | do |
4394 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4395 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4397 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4398 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4399 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4400 | else |
4401 | if test -n "$CC"; then | |
4402 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4403 | else | |
c6b750e1 DJ |
4404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4405 | for as_dir in $PATH | |
4406 | do | |
4407 | IFS=$as_save_IFS | |
4408 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4409 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4411 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4413 | break 2 |
376a0e54 | 4414 | fi |
c6b750e1 | 4415 | done |
81ecdfbb RW |
4416 | done |
4417 | IFS=$as_save_IFS | |
cac3d6c4 | 4418 | |
c6b750e1 DJ |
4419 | fi |
4420 | fi | |
4421 | CC=$ac_cv_prog_CC | |
4422 | if test -n "$CC"; then | |
81ecdfbb RW |
4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4424 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4425 | else |
81ecdfbb RW |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4427 | $as_echo "no" >&6; } | |
9e07f89d | 4428 | fi |
cac3d6c4 | 4429 | |
81ecdfbb | 4430 | |
c6b750e1 DJ |
4431 | test -n "$CC" && break |
4432 | done | |
cac3d6c4 | 4433 | fi |
c6b750e1 DJ |
4434 | if test -z "$CC"; then |
4435 | ac_ct_CC=$CC | |
81ecdfbb | 4436 | for ac_prog in cl.exe |
c6b750e1 DJ |
4437 | do |
4438 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4439 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4441 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4442 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4443 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4444 | else |
c6b750e1 DJ |
4445 | if test -n "$ac_ct_CC"; then |
4446 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4447 | else |
c6b750e1 DJ |
4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4449 | for as_dir in $PATH | |
4450 | do | |
4451 | IFS=$as_save_IFS | |
4452 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4455 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4457 | break 2 |
4458 | fi | |
4459 | done | |
81ecdfbb RW |
4460 | done |
4461 | IFS=$as_save_IFS | |
c6b750e1 | 4462 | |
cac3d6c4 CM |
4463 | fi |
4464 | fi | |
c6b750e1 DJ |
4465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4466 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4468 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4469 | else |
81ecdfbb RW |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4471 | $as_echo "no" >&6; } | |
cac3d6c4 | 4472 | fi |
376a0e54 | 4473 | |
81ecdfbb | 4474 | |
c6b750e1 DJ |
4475 | test -n "$ac_ct_CC" && break |
4476 | done | |
4477 | ||
81ecdfbb RW |
4478 | if test "x$ac_ct_CC" = x; then |
4479 | CC="" | |
4480 | else | |
4481 | case $cross_compiling:$ac_tool_warned in | |
4482 | yes:) | |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4485 | ac_tool_warned=yes ;; | |
4486 | esac | |
4487 | CC=$ac_ct_CC | |
4488 | fi | |
c6b750e1 DJ |
4489 | fi |
4490 | ||
4491 | fi | |
4492 | ||
4493 | ||
81ecdfbb RW |
4494 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4496 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4497 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4498 | |
4499 | # Provide some information about the compiler. | |
81ecdfbb RW |
4500 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4501 | set X $ac_compile | |
4502 | ac_compiler=$2 | |
4503 | for ac_option in --version -v -V -qversion; do | |
4504 | { { ac_try="$ac_compiler $ac_option >&5" | |
4505 | case "(($ac_try" in | |
4506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4507 | *) ac_try_echo=$ac_try;; | |
4508 | esac | |
4509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4510 | $as_echo "$ac_try_echo"; } >&5 | |
4511 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4512 | ac_status=$? |
81ecdfbb RW |
4513 | if test -s conftest.err; then |
4514 | sed '10a\ | |
4515 | ... rest of stderr output deleted ... | |
4516 | 10q' conftest.err >conftest.er1 | |
4517 | cat conftest.er1 >&5 | |
81ecdfbb | 4518 | fi |
d0ac1c44 | 4519 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4521 | test $ac_status = 0; } | |
4522 | done | |
c6b750e1 | 4523 | |
81ecdfbb | 4524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4525 | /* end confdefs.h. */ |
4526 | ||
4527 | int | |
4528 | main () | |
4529 | { | |
4530 | ||
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4536 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4537 | # Try to create an executable without -o first, disregard a.out. |
4538 | # It will help us diagnose broken compilers, and finding out an intuition | |
4539 | # of exeext. | |
d0ac1c44 SM |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4541 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4542 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4543 | ||
4544 | # The possible output files: | |
4545 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4546 | ||
4547 | ac_rmfiles= | |
4548 | for ac_file in $ac_files | |
4549 | do | |
4550 | case $ac_file in | |
4551 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4552 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4553 | esac | |
4554 | done | |
4555 | rm -f $ac_rmfiles | |
4556 | ||
4557 | if { { ac_try="$ac_link_default" | |
4558 | case "(($ac_try" in | |
4559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4560 | *) ac_try_echo=$ac_try;; | |
4561 | esac | |
4562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4563 | $as_echo "$ac_try_echo"; } >&5 | |
4564 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4565 | ac_status=$? |
81ecdfbb RW |
4566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4567 | test $ac_status = 0; }; then : | |
4568 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4569 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4570 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4571 | # so that the user can short-circuit this test for compilers unknown to | |
4572 | # Autoconf. | |
4573 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4574 | do |
4575 | test -f "$ac_file" || continue | |
4576 | case $ac_file in | |
81ecdfbb | 4577 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4578 | ;; |
4579 | [ab].out ) | |
4580 | # We found the default executable, but exeext='' is most | |
4581 | # certainly right. | |
4582 | break;; | |
4583 | *.* ) | |
81ecdfbb RW |
4584 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4585 | then :; else | |
4586 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4587 | fi | |
4588 | # We set ac_cv_exeext here because the later test for it is not | |
4589 | # safe: cross compilers may not add the suffix if given an `-o' | |
4590 | # argument, so we may need to know it at that point already. | |
4591 | # Even if this section looks crufty: it has the advantage of | |
4592 | # actually working. | |
c6b750e1 DJ |
4593 | break;; |
4594 | * ) | |
4595 | break;; | |
4596 | esac | |
4597 | done | |
81ecdfbb RW |
4598 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4599 | ||
c6b750e1 | 4600 | else |
81ecdfbb RW |
4601 | ac_file='' |
4602 | fi | |
81ecdfbb | 4603 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4605 | $as_echo "no" >&6; } | |
4606 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
4608 | ||
81ecdfbb RW |
4609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4611 | as_fn_error 77 "C compiler cannot create executables |
4612 | See \`config.log' for more details" "$LINENO" 5; } | |
4613 | else | |
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4615 | $as_echo "yes" >&6; } | |
c6b750e1 | 4616 | fi |
d0ac1c44 SM |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4618 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4620 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4621 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4622 | |
d0ac1c44 | 4623 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4624 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4626 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4627 | if { { ac_try="$ac_link" | |
4628 | case "(($ac_try" in | |
4629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4630 | *) ac_try_echo=$ac_try;; | |
4631 | esac | |
4632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4633 | $as_echo "$ac_try_echo"; } >&5 | |
4634 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4635 | ac_status=$? |
81ecdfbb RW |
4636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4637 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4638 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4639 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4640 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4641 | # `rm'. | |
4642 | for ac_file in conftest.exe conftest conftest.*; do | |
4643 | test -f "$ac_file" || continue | |
4644 | case $ac_file in | |
81ecdfbb | 4645 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4646 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4647 | break;; |
4648 | * ) break;; | |
4649 | esac | |
4650 | done | |
4651 | else | |
81ecdfbb RW |
4652 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4653 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4654 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4655 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4656 | fi |
d0ac1c44 | 4657 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4659 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4660 | |
4661 | rm -f conftest.$ac_ext | |
4662 | EXEEXT=$ac_cv_exeext | |
4663 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4665 | /* end confdefs.h. */ | |
4666 | #include <stdio.h> | |
4667 | int | |
4668 | main () | |
4669 | { | |
4670 | FILE *f = fopen ("conftest.out", "w"); | |
4671 | return ferror (f) || fclose (f) != 0; | |
4672 | ||
4673 | ; | |
4674 | return 0; | |
4675 | } | |
4676 | _ACEOF | |
4677 | ac_clean_files="$ac_clean_files conftest.out" | |
4678 | # Check that the compiler produces executables we can run. If not, either | |
4679 | # the compiler is broken, or we cross compile. | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4681 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4682 | if test "$cross_compiling" != yes; then | |
4683 | { { ac_try="$ac_link" | |
4684 | case "(($ac_try" in | |
4685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4686 | *) ac_try_echo=$ac_try;; | |
4687 | esac | |
4688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4689 | $as_echo "$ac_try_echo"; } >&5 | |
4690 | (eval "$ac_link") 2>&5 | |
4691 | ac_status=$? | |
4692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4693 | test $ac_status = 0; } | |
4694 | if { ac_try='./conftest$ac_cv_exeext' | |
4695 | { { case "(($ac_try" in | |
4696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4697 | *) ac_try_echo=$ac_try;; | |
4698 | esac | |
4699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4700 | $as_echo "$ac_try_echo"; } >&5 | |
4701 | (eval "$ac_try") 2>&5 | |
4702 | ac_status=$? | |
4703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4704 | test $ac_status = 0; }; }; then | |
4705 | cross_compiling=no | |
4706 | else | |
4707 | if test "$cross_compiling" = maybe; then | |
4708 | cross_compiling=yes | |
4709 | else | |
4710 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4712 | as_fn_error $? "cannot run C compiled programs. | |
4713 | If you meant to cross compile, use \`--host'. | |
4714 | See \`config.log' for more details" "$LINENO" 5; } | |
4715 | fi | |
4716 | fi | |
4717 | fi | |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4719 | $as_echo "$cross_compiling" >&6; } | |
4720 | ||
4721 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4722 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4724 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4725 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4726 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4727 | else |
81ecdfbb | 4728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4729 | /* end confdefs.h. */ |
4730 | ||
4731 | int | |
4732 | main () | |
4733 | { | |
4734 | ||
4735 | ; | |
4736 | return 0; | |
4737 | } | |
4738 | _ACEOF | |
4739 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4740 | if { { ac_try="$ac_compile" |
4741 | case "(($ac_try" in | |
4742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4743 | *) ac_try_echo=$ac_try;; | |
4744 | esac | |
4745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4746 | $as_echo "$ac_try_echo"; } >&5 | |
4747 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4748 | ac_status=$? |
81ecdfbb RW |
4749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4750 | test $ac_status = 0; }; then : | |
4751 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4752 | test -f "$ac_file" || continue; | |
c6b750e1 | 4753 | case $ac_file in |
81ecdfbb | 4754 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4755 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4756 | break;; | |
4757 | esac | |
4758 | done | |
cac3d6c4 | 4759 | else |
81ecdfbb | 4760 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4761 | sed 's/^/| /' conftest.$ac_ext >&5 |
4762 | ||
81ecdfbb RW |
4763 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4765 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4766 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4767 | fi |
c6b750e1 DJ |
4768 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4769 | fi | |
81ecdfbb RW |
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4771 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4772 | OBJEXT=$ac_cv_objext |
4773 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4775 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4776 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4777 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4778 | else |
81ecdfbb | 4779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4780 | /* end confdefs.h. */ |
4781 | ||
4782 | int | |
4783 | main () | |
4784 | { | |
4785 | #ifndef __GNUC__ | |
4786 | choke me | |
4787 | #endif | |
4788 | ||
4789 | ; | |
4790 | return 0; | |
4791 | } | |
4792 | _ACEOF | |
81ecdfbb | 4793 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4794 | ac_compiler_gnu=yes |
4795 | else | |
81ecdfbb | 4796 | ac_compiler_gnu=no |
c6b750e1 | 4797 | fi |
81ecdfbb | 4798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4799 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4800 | ||
4801 | fi | |
81ecdfbb RW |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4803 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4804 | if test $ac_compiler_gnu = yes; then | |
4805 | GCC=yes | |
4806 | else | |
4807 | GCC= | |
4808 | fi | |
c6b750e1 DJ |
4809 | ac_test_CFLAGS=${CFLAGS+set} |
4810 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4812 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4813 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4814 | $as_echo_n "(cached) " >&6 |
4815 | else | |
4816 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4817 | ac_c_werror_flag=yes | |
4818 | ac_cv_prog_cc_g=no | |
4819 | CFLAGS="-g" | |
4820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4821 | /* end confdefs.h. */ |
4822 | ||
4823 | int | |
4824 | main () | |
4825 | { | |
4826 | ||
4827 | ; | |
4828 | return 0; | |
4829 | } | |
4830 | _ACEOF | |
81ecdfbb | 4831 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4832 | ac_cv_prog_cc_g=yes |
4833 | else | |
81ecdfbb RW |
4834 | CFLAGS="" |
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4836 | /* end confdefs.h. */ | |
4837 | ||
4838 | int | |
4839 | main () | |
4840 | { | |
4841 | ||
4842 | ; | |
4843 | return 0; | |
4844 | } | |
4845 | _ACEOF | |
4846 | if ac_fn_c_try_compile "$LINENO"; then : | |
4847 | ||
4848 | else | |
4849 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4850 | CFLAGS="-g" | |
4851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4852 | /* end confdefs.h. */ | |
cac3d6c4 | 4853 | |
81ecdfbb RW |
4854 | int |
4855 | main () | |
4856 | { | |
4857 | ||
4858 | ; | |
4859 | return 0; | |
4860 | } | |
4861 | _ACEOF | |
4862 | if ac_fn_c_try_compile "$LINENO"; then : | |
4863 | ac_cv_prog_cc_g=yes | |
4864 | fi | |
4865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4866 | fi |
81ecdfbb | 4867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4868 | fi |
81ecdfbb RW |
4869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4870 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4871 | fi | |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4873 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4874 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4875 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4876 | elif test $ac_cv_prog_cc_g = yes; then |
4877 | if test "$GCC" = yes; then | |
4878 | CFLAGS="-g -O2" | |
4879 | else | |
4880 | CFLAGS="-g" | |
4881 | fi | |
4882 | else | |
4883 | if test "$GCC" = yes; then | |
4884 | CFLAGS="-O2" | |
4885 | else | |
4886 | CFLAGS= | |
4887 | fi | |
4888 | fi | |
81ecdfbb RW |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4890 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4891 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4892 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4893 | else |
81ecdfbb | 4894 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4895 | ac_save_CC=$CC |
81ecdfbb | 4896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4897 | /* end confdefs.h. */ |
4898 | #include <stdarg.h> | |
4899 | #include <stdio.h> | |
d0ac1c44 | 4900 | struct stat; |
c6b750e1 DJ |
4901 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4902 | struct buf { int x; }; | |
4903 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4904 | static char *e (p, i) | |
4905 | char **p; | |
4906 | int i; | |
4907 | { | |
4908 | return p[i]; | |
4909 | } | |
4910 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4911 | { | |
4912 | char *s; | |
4913 | va_list v; | |
4914 | va_start (v,p); | |
4915 | s = g (p, va_arg (v,int)); | |
4916 | va_end (v); | |
4917 | return s; | |
4918 | } | |
4919 | ||
4920 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4921 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4922 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4923 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4924 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4925 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4926 | that's true only with -std. */ |
c6b750e1 DJ |
4927 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4928 | ||
81ecdfbb RW |
4929 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4930 | inside strings and character constants. */ | |
4931 | #define FOO(x) 'x' | |
4932 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4933 | ||
c6b750e1 DJ |
4934 | int test (int i, double x); |
4935 | struct s1 {int (*f) (int a);}; | |
4936 | struct s2 {int (*f) (double a);}; | |
4937 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4938 | int argc; | |
4939 | char **argv; | |
4940 | int | |
4941 | main () | |
4942 | { | |
4943 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4944 | ; | |
4945 | return 0; | |
4946 | } | |
4947 | _ACEOF | |
81ecdfbb RW |
4948 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4949 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4950 | do |
4951 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4952 | if ac_fn_c_try_compile "$LINENO"; then : |
4953 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4954 | fi |
81ecdfbb RW |
4955 | rm -f core conftest.err conftest.$ac_objext |
4956 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4957 | done |
81ecdfbb | 4958 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4959 | CC=$ac_save_CC |
4960 | ||
4961 | fi | |
81ecdfbb RW |
4962 | # AC_CACHE_VAL |
4963 | case "x$ac_cv_prog_cc_c89" in | |
4964 | x) | |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4966 | $as_echo "none needed" >&6; } ;; | |
4967 | xno) | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4969 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4970 | *) |
81ecdfbb RW |
4971 | CC="$CC $ac_cv_prog_cc_c89" |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4973 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4974 | esac |
81ecdfbb | 4975 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4976 | |
c6b750e1 DJ |
4977 | fi |
4978 | ||
c6b750e1 DJ |
4979 | ac_ext=c |
4980 | ac_cpp='$CPP $CPPFLAGS' | |
4981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4984 | |
a8d6316b NC |
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4986 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4987 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4988 | $as_echo_n "(cached) " >&6 | |
4989 | else | |
4990 | ac_cv_prog_cc_c99=no | |
4991 | ac_save_CC=$CC | |
4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4993 | /* end confdefs.h. */ | |
4994 | #include <stdarg.h> | |
4995 | #include <stdbool.h> | |
4996 | #include <stdlib.h> | |
4997 | #include <wchar.h> | |
4998 | #include <stdio.h> | |
4999 | ||
5000 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5001 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5002 | #define showlist(...) puts (#__VA_ARGS__) | |
5003 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5004 | static void | |
5005 | test_varargs_macros (void) | |
5006 | { | |
5007 | int x = 1234; | |
5008 | int y = 5678; | |
5009 | debug ("Flag"); | |
5010 | debug ("X = %d\n", x); | |
5011 | showlist (The first, second, and third items.); | |
5012 | report (x>y, "x is %d but y is %d", x, y); | |
5013 | } | |
5014 | ||
5015 | // Check long long types. | |
5016 | #define BIG64 18446744073709551615ull | |
5017 | #define BIG32 4294967295ul | |
5018 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5019 | #if !BIG_OK | |
5020 | your preprocessor is broken; | |
5021 | #endif | |
5022 | #if BIG_OK | |
5023 | #else | |
5024 | your preprocessor is broken; | |
5025 | #endif | |
5026 | static long long int bignum = -9223372036854775807LL; | |
5027 | static unsigned long long int ubignum = BIG64; | |
5028 | ||
5029 | struct incomplete_array | |
5030 | { | |
5031 | int datasize; | |
5032 | double data[]; | |
5033 | }; | |
5034 | ||
5035 | struct named_init { | |
5036 | int number; | |
5037 | const wchar_t *name; | |
5038 | double average; | |
5039 | }; | |
5040 | ||
5041 | typedef const char *ccp; | |
5042 | ||
5043 | static inline int | |
5044 | test_restrict (ccp restrict text) | |
5045 | { | |
5046 | // See if C++-style comments work. | |
5047 | // Iterate through items via the restricted pointer. | |
5048 | // Also check for declarations in for loops. | |
5049 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5050 | continue; | |
5051 | return 0; | |
5052 | } | |
5053 | ||
5054 | // Check varargs and va_copy. | |
5055 | static void | |
5056 | test_varargs (const char *format, ...) | |
5057 | { | |
5058 | va_list args; | |
5059 | va_start (args, format); | |
5060 | va_list args_copy; | |
5061 | va_copy (args_copy, args); | |
5062 | ||
5063 | const char *str; | |
5064 | int number; | |
5065 | float fnumber; | |
5066 | ||
5067 | while (*format) | |
5068 | { | |
5069 | switch (*format++) | |
5070 | { | |
5071 | case 's': // string | |
5072 | str = va_arg (args_copy, const char *); | |
5073 | break; | |
5074 | case 'd': // int | |
5075 | number = va_arg (args_copy, int); | |
5076 | break; | |
5077 | case 'f': // float | |
5078 | fnumber = va_arg (args_copy, double); | |
5079 | break; | |
5080 | default: | |
5081 | break; | |
5082 | } | |
5083 | } | |
5084 | va_end (args_copy); | |
5085 | va_end (args); | |
5086 | } | |
5087 | ||
5088 | int | |
5089 | main () | |
5090 | { | |
5091 | ||
5092 | // Check bool. | |
5093 | _Bool success = false; | |
5094 | ||
5095 | // Check restrict. | |
5096 | if (test_restrict ("String literal") == 0) | |
5097 | success = true; | |
5098 | char *restrict newvar = "Another string"; | |
5099 | ||
5100 | // Check varargs. | |
5101 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5102 | test_varargs_macros (); | |
5103 | ||
5104 | // Check flexible array members. | |
5105 | struct incomplete_array *ia = | |
5106 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5107 | ia->datasize = 10; | |
5108 | for (int i = 0; i < ia->datasize; ++i) | |
5109 | ia->data[i] = i * 1.234; | |
5110 | ||
5111 | // Check named initializers. | |
5112 | struct named_init ni = { | |
5113 | .number = 34, | |
5114 | .name = L"Test wide string", | |
5115 | .average = 543.34343, | |
5116 | }; | |
5117 | ||
5118 | ni.number = 58; | |
5119 | ||
5120 | int dynamic_array[ni.number]; | |
5121 | dynamic_array[ni.number - 1] = 543; | |
5122 | ||
5123 | // work around unused variable warnings | |
5124 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5125 | || dynamic_array[ni.number - 1] != 543); | |
5126 | ||
5127 | ; | |
5128 | return 0; | |
5129 | } | |
5130 | _ACEOF | |
5131 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5132 | do | |
5133 | CC="$ac_save_CC $ac_arg" | |
5134 | if ac_fn_c_try_compile "$LINENO"; then : | |
5135 | ac_cv_prog_cc_c99=$ac_arg | |
5136 | fi | |
5137 | rm -f core conftest.err conftest.$ac_objext | |
5138 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5139 | done | |
5140 | rm -f conftest.$ac_ext | |
5141 | CC=$ac_save_CC | |
5142 | ||
5143 | fi | |
5144 | # AC_CACHE_VAL | |
5145 | case "x$ac_cv_prog_cc_c99" in | |
5146 | x) | |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5148 | $as_echo "none needed" >&6; } ;; | |
5149 | xno) | |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5151 | $as_echo "unsupported" >&6; } ;; | |
5152 | *) | |
5153 | CC="$CC $ac_cv_prog_cc_c99" | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5155 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5156 | esac | |
5157 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5158 | ||
5159 | fi | |
5160 | ||
5161 | ||
81ecdfbb | 5162 | ac_ext=cpp |
18f6b6ee PB |
5163 | ac_cpp='$CXXCPP $CPPFLAGS' |
5164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
5167 | if test -z "$CXX"; then |
5168 | if test -n "$CCC"; then | |
5169 | CXX=$CCC | |
5170 | else | |
5171 | if test -n "$ac_tool_prefix"; then | |
5172 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
5173 | do |
5174 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5175 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5178 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 5179 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5180 | else |
5181 | if test -n "$CXX"; then | |
5182 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5183 | else | |
5184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5185 | for as_dir in $PATH | |
5186 | do | |
5187 | IFS=$as_save_IFS | |
5188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5189 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5191 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
5193 | break 2 |
5194 | fi | |
5195 | done | |
81ecdfbb RW |
5196 | done |
5197 | IFS=$as_save_IFS | |
512b7dfb | 5198 | |
18f6b6ee PB |
5199 | fi |
5200 | fi | |
5201 | CXX=$ac_cv_prog_CXX | |
5202 | if test -n "$CXX"; then | |
81ecdfbb RW |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5204 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 5205 | else |
81ecdfbb RW |
5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5207 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5208 | fi |
5209 | ||
81ecdfbb | 5210 | |
18f6b6ee PB |
5211 | test -n "$CXX" && break |
5212 | done | |
5213 | fi | |
5214 | if test -z "$CXX"; then | |
5215 | ac_ct_CXX=$CXX | |
81ecdfbb | 5216 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
5217 | do |
5218 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5219 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5221 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5222 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5223 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5224 | else |
5225 | if test -n "$ac_ct_CXX"; then | |
5226 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5227 | else | |
5228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5229 | for as_dir in $PATH | |
5230 | do | |
5231 | IFS=$as_save_IFS | |
5232 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5233 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5235 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 5237 | break 2 |
512b7dfb | 5238 | fi |
18f6b6ee | 5239 | done |
81ecdfbb RW |
5240 | done |
5241 | IFS=$as_save_IFS | |
512b7dfb | 5242 | |
18f6b6ee PB |
5243 | fi |
5244 | fi | |
5245 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5246 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5248 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 5249 | else |
81ecdfbb RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5251 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5252 | fi |
5253 | ||
81ecdfbb | 5254 | |
18f6b6ee PB |
5255 | test -n "$ac_ct_CXX" && break |
5256 | done | |
18f6b6ee | 5257 | |
81ecdfbb RW |
5258 | if test "x$ac_ct_CXX" = x; then |
5259 | CXX="g++" | |
5260 | else | |
5261 | case $cross_compiling:$ac_tool_warned in | |
5262 | yes:) | |
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5264 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5265 | ac_tool_warned=yes ;; | |
5266 | esac | |
5267 | CXX=$ac_ct_CXX | |
5268 | fi | |
18f6b6ee PB |
5269 | fi |
5270 | ||
81ecdfbb RW |
5271 | fi |
5272 | fi | |
18f6b6ee | 5273 | # Provide some information about the compiler. |
81ecdfbb RW |
5274 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5275 | set X $ac_compile | |
5276 | ac_compiler=$2 | |
5277 | for ac_option in --version -v -V -qversion; do | |
5278 | { { ac_try="$ac_compiler $ac_option >&5" | |
5279 | case "(($ac_try" in | |
5280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5281 | *) ac_try_echo=$ac_try;; | |
5282 | esac | |
5283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5284 | $as_echo "$ac_try_echo"; } >&5 | |
5285 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 5286 | ac_status=$? |
81ecdfbb RW |
5287 | if test -s conftest.err; then |
5288 | sed '10a\ | |
5289 | ... rest of stderr output deleted ... | |
5290 | 10q' conftest.err >conftest.er1 | |
5291 | cat conftest.er1 >&5 | |
81ecdfbb | 5292 | fi |
d0ac1c44 | 5293 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5295 | test $ac_status = 0; } | |
5296 | done | |
18f6b6ee | 5297 | |
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5299 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5300 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5301 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 5302 | else |
81ecdfbb | 5303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
5304 | /* end confdefs.h. */ |
5305 | ||
5306 | int | |
5307 | main () | |
5308 | { | |
5309 | #ifndef __GNUC__ | |
5310 | choke me | |
5311 | #endif | |
5312 | ||
5313 | ; | |
5314 | return 0; | |
5315 | } | |
5316 | _ACEOF | |
81ecdfbb | 5317 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5318 | ac_compiler_gnu=yes |
5319 | else | |
81ecdfbb | 5320 | ac_compiler_gnu=no |
18f6b6ee | 5321 | fi |
81ecdfbb | 5322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5323 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5324 | ||
5325 | fi | |
81ecdfbb RW |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5327 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5328 | if test $ac_compiler_gnu = yes; then | |
5329 | GXX=yes | |
5330 | else | |
5331 | GXX= | |
5332 | fi | |
18f6b6ee PB |
5333 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5334 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5336 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5337 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5338 | $as_echo_n "(cached) " >&6 |
5339 | else | |
5340 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5341 | ac_cxx_werror_flag=yes | |
5342 | ac_cv_prog_cxx_g=no | |
5343 | CXXFLAGS="-g" | |
5344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5345 | /* end confdefs.h. */ |
5346 | ||
5347 | int | |
5348 | main () | |
5349 | { | |
5350 | ||
5351 | ; | |
5352 | return 0; | |
5353 | } | |
5354 | _ACEOF | |
81ecdfbb | 5355 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5356 | ac_cv_prog_cxx_g=yes |
5357 | else | |
81ecdfbb RW |
5358 | CXXFLAGS="" |
5359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5360 | /* end confdefs.h. */ |
81ecdfbb | 5361 | |
18f6b6ee PB |
5362 | int |
5363 | main () | |
5364 | { | |
81ecdfbb | 5365 | |
18f6b6ee PB |
5366 | ; |
5367 | return 0; | |
5368 | } | |
5369 | _ACEOF | |
81ecdfbb | 5370 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5371 | |
81ecdfbb RW |
5372 | else |
5373 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5374 | CXXFLAGS="-g" | |
5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5376 | /* end confdefs.h. */ |
81ecdfbb | 5377 | |
18f6b6ee PB |
5378 | int |
5379 | main () | |
5380 | { | |
81ecdfbb | 5381 | |
18f6b6ee PB |
5382 | ; |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
81ecdfbb RW |
5386 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5387 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5388 | fi |
81ecdfbb RW |
5389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5390 | fi | |
5391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5392 | fi | |
5393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5394 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5395 | fi | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5397 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5398 | if test "$ac_test_CXXFLAGS" = set; then | |
5399 | CXXFLAGS=$ac_save_CXXFLAGS | |
5400 | elif test $ac_cv_prog_cxx_g = yes; then | |
5401 | if test "$GXX" = yes; then | |
5402 | CXXFLAGS="-g -O2" | |
5403 | else | |
5404 | CXXFLAGS="-g" | |
5405 | fi | |
5406 | else | |
5407 | if test "$GXX" = yes; then | |
5408 | CXXFLAGS="-O2" | |
5409 | else | |
5410 | CXXFLAGS= | |
5411 | fi | |
18f6b6ee | 5412 | fi |
18f6b6ee PB |
5413 | ac_ext=c |
5414 | ac_cpp='$CPP $CPPFLAGS' | |
5415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5418 | ||
5419 | ||
5420 | # We must set the default linker to the linker used by gcc for the correct | |
5421 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5422 | # set the LD default to the ld used by gcc. | |
5423 | if test -z "$LD"; then | |
5424 | if test "$GCC" = yes; then | |
5425 | case $build in | |
5426 | *-*-mingw*) | |
5427 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5428 | *) | |
5429 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5430 | esac | |
5431 | case $gcc_prog_ld in | |
5432 | # Accept absolute paths. | |
5433 | [\\/]* | [A-Za-z]:[\\/]*) | |
5434 | LD="$gcc_prog_ld" ;; | |
5435 | esac | |
5436 | fi | |
512b7dfb PB |
5437 | fi |
5438 | ||
b3676d82 EB |
5439 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5440 | have_static_libs=no | |
5441 | if test "$GCC" = yes; then | |
5442 | saved_LDFLAGS="$LDFLAGS" | |
5443 | ||
5444 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5446 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5447 | ac_ext=cpp | |
5448 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5449 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5450 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5451 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5452 | ||
5453 | ||
5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5455 | /* end confdefs.h. */ | |
a882be68 EB |
5456 | |
5457 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5458 | #error -static-libstdc++ not implemented | |
5459 | #endif | |
b3676d82 EB |
5460 | int main() {} |
5461 | _ACEOF | |
5462 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5464 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5465 | else | |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5467 | $as_echo "no" >&6; } | |
5468 | fi | |
5469 | rm -f core conftest.err conftest.$ac_objext \ | |
5470 | conftest$ac_exeext conftest.$ac_ext | |
5471 | ac_ext=c | |
5472 | ac_cpp='$CPP $CPPFLAGS' | |
5473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5476 | ||
5477 | ||
5478 | LDFLAGS="$saved_LDFLAGS" | |
5479 | fi | |
5480 | ||
512b7dfb PB |
5481 | |
5482 | ||
5483 | ||
c6b750e1 | 5484 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5485 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5486 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5488 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5489 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5490 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5491 | else |
512b7dfb PB |
5492 | if test -n "$GNATBIND"; then |
5493 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5494 | else |
c6b750e1 DJ |
5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5496 | for as_dir in $PATH | |
5497 | do | |
5498 | IFS=$as_save_IFS | |
5499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5500 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5502 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5504 | break 2 |
5505 | fi | |
5506 | done | |
81ecdfbb RW |
5507 | done |
5508 | IFS=$as_save_IFS | |
c6b750e1 | 5509 | |
9e07f89d NN |
5510 | fi |
5511 | fi | |
512b7dfb PB |
5512 | GNATBIND=$ac_cv_prog_GNATBIND |
5513 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5515 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5516 | else |
81ecdfbb RW |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5518 | $as_echo "no" >&6; } | |
9e07f89d NN |
5519 | fi |
5520 | ||
81ecdfbb | 5521 | |
c6b750e1 | 5522 | fi |
512b7dfb PB |
5523 | if test -z "$ac_cv_prog_GNATBIND"; then |
5524 | ac_ct_GNATBIND=$GNATBIND | |
5525 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5526 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5528 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5529 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5530 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5531 | else |
512b7dfb PB |
5532 | if test -n "$ac_ct_GNATBIND"; then |
5533 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5534 | else |
c6b750e1 DJ |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5536 | for as_dir in $PATH | |
5537 | do | |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5540 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5542 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5544 | break 2 |
5545 | fi | |
5546 | done | |
81ecdfbb RW |
5547 | done |
5548 | IFS=$as_save_IFS | |
c6b750e1 | 5549 | |
9e07f89d NN |
5550 | fi |
5551 | fi | |
512b7dfb PB |
5552 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5553 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5555 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5556 | else |
81ecdfbb RW |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5558 | $as_echo "no" >&6; } | |
9e07f89d NN |
5559 | fi |
5560 | ||
81ecdfbb RW |
5561 | if test "x$ac_ct_GNATBIND" = x; then |
5562 | GNATBIND="no" | |
5563 | else | |
5564 | case $cross_compiling:$ac_tool_warned in | |
5565 | yes:) | |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5567 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5568 | ac_tool_warned=yes ;; | |
5569 | esac | |
5570 | GNATBIND=$ac_ct_GNATBIND | |
5571 | fi | |
24ff9987 | 5572 | else |
512b7dfb | 5573 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5574 | fi |
5575 | ||
7df2cd5d | 5576 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5577 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5578 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5580 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5581 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5582 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5583 | else |
512b7dfb PB |
5584 | if test -n "$GNATMAKE"; then |
5585 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5586 | else |
5587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5588 | for as_dir in $PATH | |
5589 | do | |
5590 | IFS=$as_save_IFS | |
5591 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5592 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5593 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5594 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5596 | break 2 |
5597 | fi | |
5598 | done | |
81ecdfbb RW |
5599 | done |
5600 | IFS=$as_save_IFS | |
7df2cd5d PB |
5601 | |
5602 | fi | |
5603 | fi | |
512b7dfb PB |
5604 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5605 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5607 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5608 | else |
81ecdfbb RW |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5610 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5611 | fi |
5612 | ||
81ecdfbb | 5613 | |
7df2cd5d | 5614 | fi |
512b7dfb PB |
5615 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5616 | ac_ct_GNATMAKE=$GNATMAKE | |
5617 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5618 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5620 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5621 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5622 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5623 | else |
512b7dfb PB |
5624 | if test -n "$ac_ct_GNATMAKE"; then |
5625 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5626 | else |
5627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5628 | for as_dir in $PATH | |
5629 | do | |
5630 | IFS=$as_save_IFS | |
5631 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5632 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5633 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5634 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5636 | break 2 |
5637 | fi | |
5638 | done | |
81ecdfbb RW |
5639 | done |
5640 | IFS=$as_save_IFS | |
7df2cd5d | 5641 | |
7df2cd5d PB |
5642 | fi |
5643 | fi | |
512b7dfb PB |
5644 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5645 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5647 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5648 | else |
81ecdfbb RW |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5650 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5651 | fi |
5652 | ||
81ecdfbb RW |
5653 | if test "x$ac_ct_GNATMAKE" = x; then |
5654 | GNATMAKE="no" | |
5655 | else | |
5656 | case $cross_compiling:$ac_tool_warned in | |
5657 | yes:) | |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5660 | ac_tool_warned=yes ;; | |
5661 | esac | |
5662 | GNATMAKE=$ac_ct_GNATMAKE | |
5663 | fi | |
7df2cd5d | 5664 | else |
512b7dfb | 5665 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5666 | fi |
5667 | ||
b95bb526 AM |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5669 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
d0ac1c44 | 5670 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5671 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5672 | else |
5673 | cat >conftest.adb <<EOF | |
b95bb526 AM |
5674 | pragma Warnings (Off); |
5675 | with System.CRTL; | |
5676 | pragma Warnings (On); | |
5677 | use type System.CRTL.int64; | |
9e07f89d NN |
5678 | procedure conftest is begin null; end conftest; |
5679 | EOF | |
5680 | acx_cv_cc_gcc_supports_ada=no | |
5681 | # There is a bug in old released versions of GCC which causes the | |
5682 | # driver to exit successfully when the appropriate language module | |
5683 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5684 | # Therefore we must check for the error message as well as an | |
5685 | # unsuccessful exit. | |
b8908782 DD |
5686 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5687 | # given a .adb file, but produce no object file. So we must check | |
5688 | # if an object file was really produced to guard against this. | |
9e07f89d | 5689 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5690 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5691 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5692 | fi |
5693 | rm -f conftest.* | |
5694 | fi | |
81ecdfbb RW |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5696 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5697 | |
64b986c0 | 5698 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5699 | have_gnat=yes |
5700 | else | |
5701 | have_gnat=no | |
5702 | fi | |
5703 | ||
b95bb526 AM |
5704 | |
5705 | ||
5706 | if test -n "$ac_tool_prefix"; then | |
5707 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5708 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5710 | $as_echo_n "checking for $ac_word... " >&6; } | |
5711 | if ${ac_cv_prog_GDC+:} false; then : | |
5712 | $as_echo_n "(cached) " >&6 | |
5713 | else | |
5714 | if test -n "$GDC"; then | |
5715 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5716 | else | |
5717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5718 | for as_dir in $PATH | |
5719 | do | |
5720 | IFS=$as_save_IFS | |
5721 | test -z "$as_dir" && as_dir=. | |
5722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5723 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5724 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5726 | break 2 | |
5727 | fi | |
5728 | done | |
5729 | done | |
5730 | IFS=$as_save_IFS | |
5731 | ||
5732 | fi | |
5733 | fi | |
5734 | GDC=$ac_cv_prog_GDC | |
5735 | if test -n "$GDC"; then | |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5737 | $as_echo "$GDC" >&6; } | |
5738 | else | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5740 | $as_echo "no" >&6; } | |
5741 | fi | |
5742 | ||
5743 | ||
5744 | fi | |
5745 | if test -z "$ac_cv_prog_GDC"; then | |
5746 | ac_ct_GDC=$GDC | |
5747 | # Extract the first word of "gdc", so it can be a program name with args. | |
5748 | set dummy gdc; ac_word=$2 | |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5750 | $as_echo_n "checking for $ac_word... " >&6; } | |
5751 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5752 | $as_echo_n "(cached) " >&6 | |
5753 | else | |
5754 | if test -n "$ac_ct_GDC"; then | |
5755 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5756 | else | |
5757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5758 | for as_dir in $PATH | |
5759 | do | |
5760 | IFS=$as_save_IFS | |
5761 | test -z "$as_dir" && as_dir=. | |
5762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5764 | ac_cv_prog_ac_ct_GDC="gdc" | |
5765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5766 | break 2 | |
5767 | fi | |
5768 | done | |
5769 | done | |
5770 | IFS=$as_save_IFS | |
5771 | ||
5772 | fi | |
5773 | fi | |
5774 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5775 | if test -n "$ac_ct_GDC"; then | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5777 | $as_echo "$ac_ct_GDC" >&6; } | |
5778 | else | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5780 | $as_echo "no" >&6; } | |
5781 | fi | |
5782 | ||
5783 | if test "x$ac_ct_GDC" = x; then | |
5784 | GDC="no" | |
5785 | else | |
5786 | case $cross_compiling:$ac_tool_warned in | |
5787 | yes:) | |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5789 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5790 | ac_tool_warned=yes ;; | |
5791 | esac | |
5792 | GDC=$ac_ct_GDC | |
5793 | fi | |
5794 | else | |
5795 | GDC="$ac_cv_prog_GDC" | |
5796 | fi | |
5797 | ||
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 | |
5799 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5800 | if ${acx_cv_d_compiler_works+:} false; then : | |
5801 | $as_echo_n "(cached) " >&6 | |
5802 | else | |
5803 | cat >conftest.d <<EOF | |
5804 | module conftest; int main() { return 0; } | |
5805 | EOF | |
5806 | acx_cv_d_compiler_works=no | |
5807 | if test "x$GDC" != xno; then | |
5808 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` | |
5809 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5810 | acx_cv_d_compiler_works=yes | |
5811 | fi | |
5812 | rm -f conftest.* | |
5813 | fi | |
5814 | fi | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5816 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5817 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5818 | have_gdc=yes | |
5819 | else | |
5820 | have_gdc=no | |
5821 | fi | |
5822 | ||
81ecdfbb RW |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5824 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5825 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5826 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5827 | else |
5828 | echo abfoo >t1 | |
5829 | echo cdfoo >t2 | |
da17fe9d | 5830 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5831 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5832 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5833 | : | |
5834 | else | |
5835 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5836 | fi | |
5837 | fi | |
b8908782 DD |
5838 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5839 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5840 | : |
b8908782 DD |
5841 | else |
5842 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5843 | fi | |
5844 | fi | |
5845 | rm t1 t2 | |
5846 | ||
5847 | fi | |
81ecdfbb RW |
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5849 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5850 | do_compare="$gcc_cv_prog_cmp_skip" |
5851 | ||
5852 | ||
9e07f89d | 5853 | |
ffdd6afc ILT |
5854 | # Check whether --enable-bootstrap was given. |
5855 | if test "${enable_bootstrap+set}" = set; then : | |
5856 | enableval=$enable_bootstrap; | |
5857 | else | |
5858 | enable_bootstrap=default | |
5859 | fi | |
5860 | ||
5861 | ||
5862 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5863 | if test -r $srcdir/gcc/configure; then | |
5864 | have_compiler=yes | |
5865 | else | |
5866 | have_compiler=no | |
5867 | fi | |
5868 | ||
5869 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5870 | *:*:*:no) ;; | |
5871 | ||
5872 | # Default behavior. Enable bootstrap if we have a compiler | |
5873 | # and we are in a native configuration. | |
5874 | yes:$build:$build:default) | |
5875 | enable_bootstrap=yes ;; | |
5876 | ||
5877 | *:*:*:default) | |
5878 | enable_bootstrap=no ;; | |
5879 | ||
5880 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5881 | yes:$build:$build:yes) | |
5882 | ;; | |
5883 | ||
5884 | # Other configurations, but we have a compiler. Assume the user knows | |
5885 | # what he's doing. | |
5886 | yes:*:*:yes) | |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5888 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5889 | ;; | |
5890 | ||
5891 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5892 | no:*:*:yes) | |
d0ac1c44 | 5893 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5894 | |
5895 | # Fail if wrong command line | |
5896 | *) | |
d0ac1c44 | 5897 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5898 | ;; |
5899 | esac | |
5900 | ||
228cf97d AM |
5901 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
5902 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, | |
5903 | # require C++11 (or higher). | |
ce6c656d | 5904 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
228cf97d AM |
5905 | CXX="$CXX -std=c++11" |
5906 | elif test "$have_compiler" = yes; then | |
5907 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5908 | ac_ext=cpp | |
5909 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5910 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5911 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5912 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5913 | ac_success=no | |
ce6c656d | 5914 | |
228cf97d AM |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
5916 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5917 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5918 | $as_echo_n "(cached) " >&6 | |
af019bfd | 5919 | else |
228cf97d AM |
5920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5921 | /* end confdefs.h. */ | |
af019bfd L |
5922 | |
5923 | ||
228cf97d AM |
5924 | // If the compiler admits that it is not ready for C++11, why torture it? |
5925 | // Hopefully, this will speed up the test. | |
af019bfd | 5926 | |
228cf97d | 5927 | #ifndef __cplusplus |
af019bfd | 5928 | |
228cf97d | 5929 | #error "This is not a C++ compiler" |
af019bfd | 5930 | |
228cf97d | 5931 | #elif __cplusplus < 201103L |
af019bfd | 5932 | |
228cf97d | 5933 | #error "This is not a C++11 compiler" |
af019bfd | 5934 | |
228cf97d | 5935 | #else |
af019bfd | 5936 | |
228cf97d AM |
5937 | namespace cxx11 |
5938 | { | |
af019bfd | 5939 | |
228cf97d AM |
5940 | namespace test_static_assert |
5941 | { | |
af019bfd | 5942 | |
228cf97d AM |
5943 | template <typename T> |
5944 | struct check | |
5945 | { | |
5946 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5947 | }; | |
af019bfd | 5948 | |
228cf97d | 5949 | } |
af019bfd | 5950 | |
228cf97d AM |
5951 | namespace test_final_override |
5952 | { | |
af019bfd | 5953 | |
228cf97d AM |
5954 | struct Base |
5955 | { | |
5956 | virtual ~Base() {} | |
5957 | virtual void f() {} | |
5958 | }; | |
af019bfd | 5959 | |
228cf97d AM |
5960 | struct Derived : public Base |
5961 | { | |
5962 | virtual ~Derived() override {} | |
5963 | virtual void f() override {} | |
5964 | }; | |
d5f2ee2e | 5965 | |
228cf97d | 5966 | } |
d5f2ee2e | 5967 | |
228cf97d AM |
5968 | namespace test_double_right_angle_brackets |
5969 | { | |
d5f2ee2e | 5970 | |
228cf97d AM |
5971 | template < typename T > |
5972 | struct check {}; | |
d5f2ee2e | 5973 | |
228cf97d AM |
5974 | typedef check<void> single_type; |
5975 | typedef check<check<void>> double_type; | |
5976 | typedef check<check<check<void>>> triple_type; | |
5977 | typedef check<check<check<check<void>>>> quadruple_type; | |
d5f2ee2e | 5978 | |
228cf97d | 5979 | } |
d5f2ee2e | 5980 | |
228cf97d AM |
5981 | namespace test_decltype |
5982 | { | |
d5f2ee2e | 5983 | |
228cf97d AM |
5984 | int |
5985 | f() | |
5986 | { | |
5987 | int a = 1; | |
5988 | decltype(a) b = 2; | |
5989 | return a + b; | |
5990 | } | |
d5f2ee2e | 5991 | |
228cf97d | 5992 | } |
e8a5fa9c | 5993 | |
228cf97d AM |
5994 | namespace test_type_deduction |
5995 | { | |
e8a5fa9c | 5996 | |
228cf97d AM |
5997 | template < typename T1, typename T2 > |
5998 | struct is_same | |
5999 | { | |
6000 | static const bool value = false; | |
6001 | }; | |
e8a5fa9c | 6002 | |
228cf97d AM |
6003 | template < typename T > |
6004 | struct is_same<T, T> | |
6005 | { | |
6006 | static const bool value = true; | |
6007 | }; | |
e8a5fa9c | 6008 | |
228cf97d AM |
6009 | template < typename T1, typename T2 > |
6010 | auto | |
6011 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6012 | { | |
6013 | return a1 + a2; | |
6014 | } | |
e8a5fa9c | 6015 | |
228cf97d AM |
6016 | int |
6017 | test(const int c, volatile int v) | |
6018 | { | |
6019 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6020 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6021 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6022 | auto ac = c; | |
6023 | auto av = v; | |
6024 | auto sumi = ac + av + 'x'; | |
6025 | auto sumf = ac + av + 1.0; | |
6026 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6027 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6028 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6029 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6030 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6031 | return (sumf > 0.0) ? sumi : add(c, v); | |
6032 | } | |
e8a5fa9c | 6033 | |
228cf97d | 6034 | } |
e8a5fa9c | 6035 | |
228cf97d AM |
6036 | namespace test_noexcept |
6037 | { | |
e8a5fa9c | 6038 | |
228cf97d AM |
6039 | int f() { return 0; } |
6040 | int g() noexcept { return 0; } | |
4b900473 | 6041 | |
228cf97d AM |
6042 | static_assert(noexcept(f()) == false, ""); |
6043 | static_assert(noexcept(g()) == true, ""); | |
c6b750e1 | 6044 | |
228cf97d | 6045 | } |
81ecdfbb | 6046 | |
228cf97d AM |
6047 | namespace test_constexpr |
6048 | { | |
11b04d1f | 6049 | |
228cf97d AM |
6050 | template < typename CharT > |
6051 | unsigned long constexpr | |
6052 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6053 | { | |
6054 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6055 | } | |
11b04d1f | 6056 | |
228cf97d AM |
6057 | template < typename CharT > |
6058 | unsigned long constexpr | |
6059 | strlen_c(const CharT *const s) noexcept | |
6060 | { | |
6061 | return strlen_c_r(s, 0UL); | |
6062 | } | |
6063 | ||
6064 | static_assert(strlen_c("") == 0UL, ""); | |
6065 | static_assert(strlen_c("1") == 1UL, ""); | |
6066 | static_assert(strlen_c("example") == 7UL, ""); | |
6067 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6068 | ||
6069 | } | |
6070 | ||
6071 | namespace test_rvalue_references | |
6072 | { | |
6073 | ||
6074 | template < int N > | |
6075 | struct answer | |
6076 | { | |
6077 | static constexpr int value = N; | |
6078 | }; | |
6079 | ||
6080 | answer<1> f(int&) { return answer<1>(); } | |
6081 | answer<2> f(const int&) { return answer<2>(); } | |
6082 | answer<3> f(int&&) { return answer<3>(); } | |
6083 | ||
6084 | void | |
6085 | test() | |
6086 | { | |
6087 | int i = 0; | |
6088 | const int c = 0; | |
6089 | static_assert(decltype(f(i))::value == 1, ""); | |
6090 | static_assert(decltype(f(c))::value == 2, ""); | |
6091 | static_assert(decltype(f(0))::value == 3, ""); | |
6092 | } | |
6093 | ||
6094 | } | |
6095 | ||
6096 | namespace test_uniform_initialization | |
6097 | { | |
6098 | ||
6099 | struct test | |
6100 | { | |
6101 | static const int zero {}; | |
6102 | static const int one {1}; | |
6103 | }; | |
6104 | ||
6105 | static_assert(test::zero == 0, ""); | |
6106 | static_assert(test::one == 1, ""); | |
6107 | ||
6108 | } | |
6109 | ||
6110 | namespace test_lambdas | |
6111 | { | |
6112 | ||
6113 | void | |
6114 | test1() | |
6115 | { | |
6116 | auto lambda1 = [](){}; | |
6117 | auto lambda2 = lambda1; | |
6118 | lambda1(); | |
6119 | lambda2(); | |
6120 | } | |
6121 | ||
6122 | int | |
6123 | test2() | |
6124 | { | |
6125 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6126 | auto b = []() -> int { return '0'; }(); | |
6127 | auto c = [=](){ return a + b; }(); | |
6128 | auto d = [&](){ return c; }(); | |
6129 | auto e = [a, &b](int x) mutable { | |
6130 | const auto identity = [](int y){ return y; }; | |
6131 | for (auto i = 0; i < a; ++i) | |
6132 | a += b--; | |
6133 | return x + identity(a + b); | |
6134 | }(0); | |
6135 | return a + b + c + d + e; | |
6136 | } | |
6137 | ||
6138 | int | |
6139 | test3() | |
6140 | { | |
6141 | const auto nullary = [](){ return 0; }; | |
6142 | const auto unary = [](int x){ return x; }; | |
6143 | using nullary_t = decltype(nullary); | |
6144 | using unary_t = decltype(unary); | |
6145 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6146 | const auto higher2nd = [unary](nullary_t f1){ | |
6147 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6148 | }; | |
6149 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6150 | } | |
6151 | ||
6152 | } | |
6153 | ||
6154 | namespace test_variadic_templates | |
6155 | { | |
6156 | ||
6157 | template <int...> | |
6158 | struct sum; | |
6159 | ||
6160 | template <int N0, int... N1toN> | |
6161 | struct sum<N0, N1toN...> | |
6162 | { | |
6163 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6164 | }; | |
6165 | ||
6166 | template <> | |
6167 | struct sum<> | |
6168 | { | |
6169 | static constexpr auto value = 0; | |
6170 | }; | |
6171 | ||
6172 | static_assert(sum<>::value == 0, ""); | |
6173 | static_assert(sum<1>::value == 1, ""); | |
6174 | static_assert(sum<23>::value == 23, ""); | |
6175 | static_assert(sum<1, 2>::value == 3, ""); | |
6176 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6177 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6178 | ||
6179 | } | |
6180 | ||
6181 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6182 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6183 | // because of this. | |
6184 | namespace test_template_alias_sfinae | |
6185 | { | |
6186 | ||
6187 | struct foo {}; | |
6188 | ||
6189 | template<typename T> | |
6190 | using member = typename T::member_type; | |
6191 | ||
6192 | template<typename T> | |
6193 | void func(...) {} | |
6194 | ||
6195 | template<typename T> | |
6196 | void func(member<T>*) {} | |
6197 | ||
6198 | void test(); | |
6199 | ||
6200 | void test() { func<foo>(0); } | |
6201 | ||
6202 | } | |
6203 | ||
6204 | } // namespace cxx11 | |
6205 | ||
6206 | #endif // __cplusplus >= 201103L | |
6207 | ||
6208 | ||
6209 | ||
6210 | _ACEOF | |
6211 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6212 | ax_cv_cxx_compile_cxx11=yes | |
6213 | else | |
6214 | ax_cv_cxx_compile_cxx11=no | |
6215 | fi | |
6216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6217 | fi | |
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6219 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6220 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6221 | ac_success=yes | |
6222 | fi | |
6223 | ||
6224 | if test x$ac_success = xno; then | |
6225 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6226 | switch="-std=gnu++${alternative}" | |
6227 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6229 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6230 | if eval \${$cachevar+:} false; then : | |
6231 | $as_echo_n "(cached) " >&6 | |
6232 | else | |
6233 | ac_save_CXX="$CXX" | |
6234 | CXX="$CXX $switch" | |
6235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6236 | /* end confdefs.h. */ | |
6237 | ||
6238 | ||
6239 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6240 | // Hopefully, this will speed up the test. | |
6241 | ||
6242 | #ifndef __cplusplus | |
6243 | ||
6244 | #error "This is not a C++ compiler" | |
6245 | ||
6246 | #elif __cplusplus < 201103L | |
6247 | ||
6248 | #error "This is not a C++11 compiler" | |
6249 | ||
6250 | #else | |
6251 | ||
6252 | namespace cxx11 | |
6253 | { | |
6254 | ||
6255 | namespace test_static_assert | |
6256 | { | |
6257 | ||
6258 | template <typename T> | |
6259 | struct check | |
6260 | { | |
6261 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6262 | }; | |
6263 | ||
6264 | } | |
6265 | ||
6266 | namespace test_final_override | |
6267 | { | |
6268 | ||
6269 | struct Base | |
6270 | { | |
6271 | virtual ~Base() {} | |
6272 | virtual void f() {} | |
6273 | }; | |
6274 | ||
6275 | struct Derived : public Base | |
6276 | { | |
6277 | virtual ~Derived() override {} | |
6278 | virtual void f() override {} | |
6279 | }; | |
6280 | ||
6281 | } | |
6282 | ||
6283 | namespace test_double_right_angle_brackets | |
6284 | { | |
6285 | ||
6286 | template < typename T > | |
6287 | struct check {}; | |
6288 | ||
6289 | typedef check<void> single_type; | |
6290 | typedef check<check<void>> double_type; | |
6291 | typedef check<check<check<void>>> triple_type; | |
6292 | typedef check<check<check<check<void>>>> quadruple_type; | |
6293 | ||
6294 | } | |
6295 | ||
6296 | namespace test_decltype | |
6297 | { | |
6298 | ||
6299 | int | |
6300 | f() | |
6301 | { | |
6302 | int a = 1; | |
6303 | decltype(a) b = 2; | |
6304 | return a + b; | |
6305 | } | |
6306 | ||
6307 | } | |
6308 | ||
6309 | namespace test_type_deduction | |
6310 | { | |
6311 | ||
6312 | template < typename T1, typename T2 > | |
6313 | struct is_same | |
6314 | { | |
6315 | static const bool value = false; | |
6316 | }; | |
6317 | ||
6318 | template < typename T > | |
6319 | struct is_same<T, T> | |
6320 | { | |
6321 | static const bool value = true; | |
6322 | }; | |
6323 | ||
6324 | template < typename T1, typename T2 > | |
6325 | auto | |
6326 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6327 | { | |
6328 | return a1 + a2; | |
6329 | } | |
6330 | ||
6331 | int | |
6332 | test(const int c, volatile int v) | |
6333 | { | |
6334 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6335 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6336 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6337 | auto ac = c; | |
6338 | auto av = v; | |
6339 | auto sumi = ac + av + 'x'; | |
6340 | auto sumf = ac + av + 1.0; | |
6341 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6342 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6343 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6344 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6345 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6346 | return (sumf > 0.0) ? sumi : add(c, v); | |
6347 | } | |
6348 | ||
6349 | } | |
6350 | ||
6351 | namespace test_noexcept | |
6352 | { | |
6353 | ||
6354 | int f() { return 0; } | |
6355 | int g() noexcept { return 0; } | |
6356 | ||
6357 | static_assert(noexcept(f()) == false, ""); | |
6358 | static_assert(noexcept(g()) == true, ""); | |
6359 | ||
6360 | } | |
6361 | ||
6362 | namespace test_constexpr | |
6363 | { | |
6364 | ||
6365 | template < typename CharT > | |
6366 | unsigned long constexpr | |
6367 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6368 | { | |
6369 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6370 | } | |
6371 | ||
6372 | template < typename CharT > | |
6373 | unsigned long constexpr | |
6374 | strlen_c(const CharT *const s) noexcept | |
6375 | { | |
6376 | return strlen_c_r(s, 0UL); | |
6377 | } | |
6378 | ||
6379 | static_assert(strlen_c("") == 0UL, ""); | |
6380 | static_assert(strlen_c("1") == 1UL, ""); | |
6381 | static_assert(strlen_c("example") == 7UL, ""); | |
6382 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6383 | ||
6384 | } | |
6385 | ||
6386 | namespace test_rvalue_references | |
6387 | { | |
6388 | ||
6389 | template < int N > | |
6390 | struct answer | |
6391 | { | |
6392 | static constexpr int value = N; | |
6393 | }; | |
6394 | ||
6395 | answer<1> f(int&) { return answer<1>(); } | |
6396 | answer<2> f(const int&) { return answer<2>(); } | |
6397 | answer<3> f(int&&) { return answer<3>(); } | |
6398 | ||
6399 | void | |
6400 | test() | |
6401 | { | |
6402 | int i = 0; | |
6403 | const int c = 0; | |
6404 | static_assert(decltype(f(i))::value == 1, ""); | |
6405 | static_assert(decltype(f(c))::value == 2, ""); | |
6406 | static_assert(decltype(f(0))::value == 3, ""); | |
6407 | } | |
6408 | ||
6409 | } | |
6410 | ||
6411 | namespace test_uniform_initialization | |
6412 | { | |
6413 | ||
6414 | struct test | |
6415 | { | |
6416 | static const int zero {}; | |
6417 | static const int one {1}; | |
6418 | }; | |
6419 | ||
6420 | static_assert(test::zero == 0, ""); | |
6421 | static_assert(test::one == 1, ""); | |
6422 | ||
6423 | } | |
6424 | ||
6425 | namespace test_lambdas | |
6426 | { | |
6427 | ||
6428 | void | |
6429 | test1() | |
6430 | { | |
6431 | auto lambda1 = [](){}; | |
6432 | auto lambda2 = lambda1; | |
6433 | lambda1(); | |
6434 | lambda2(); | |
6435 | } | |
6436 | ||
6437 | int | |
6438 | test2() | |
6439 | { | |
6440 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6441 | auto b = []() -> int { return '0'; }(); | |
6442 | auto c = [=](){ return a + b; }(); | |
6443 | auto d = [&](){ return c; }(); | |
6444 | auto e = [a, &b](int x) mutable { | |
6445 | const auto identity = [](int y){ return y; }; | |
6446 | for (auto i = 0; i < a; ++i) | |
6447 | a += b--; | |
6448 | return x + identity(a + b); | |
6449 | }(0); | |
6450 | return a + b + c + d + e; | |
6451 | } | |
6452 | ||
6453 | int | |
6454 | test3() | |
6455 | { | |
6456 | const auto nullary = [](){ return 0; }; | |
6457 | const auto unary = [](int x){ return x; }; | |
6458 | using nullary_t = decltype(nullary); | |
6459 | using unary_t = decltype(unary); | |
6460 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6461 | const auto higher2nd = [unary](nullary_t f1){ | |
6462 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6463 | }; | |
6464 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6465 | } | |
6466 | ||
6467 | } | |
6468 | ||
6469 | namespace test_variadic_templates | |
6470 | { | |
6471 | ||
6472 | template <int...> | |
6473 | struct sum; | |
6474 | ||
6475 | template <int N0, int... N1toN> | |
6476 | struct sum<N0, N1toN...> | |
6477 | { | |
6478 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6479 | }; | |
6480 | ||
6481 | template <> | |
6482 | struct sum<> | |
6483 | { | |
6484 | static constexpr auto value = 0; | |
6485 | }; | |
6486 | ||
6487 | static_assert(sum<>::value == 0, ""); | |
6488 | static_assert(sum<1>::value == 1, ""); | |
6489 | static_assert(sum<23>::value == 23, ""); | |
6490 | static_assert(sum<1, 2>::value == 3, ""); | |
6491 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6492 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6493 | ||
6494 | } | |
6495 | ||
6496 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6497 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6498 | // because of this. | |
6499 | namespace test_template_alias_sfinae | |
6500 | { | |
6501 | ||
6502 | struct foo {}; | |
6503 | ||
6504 | template<typename T> | |
6505 | using member = typename T::member_type; | |
6506 | ||
6507 | template<typename T> | |
6508 | void func(...) {} | |
6509 | ||
6510 | template<typename T> | |
6511 | void func(member<T>*) {} | |
6512 | ||
6513 | void test(); | |
6514 | ||
6515 | void test() { func<foo>(0); } | |
6516 | ||
6517 | } | |
6518 | ||
6519 | } // namespace cxx11 | |
6520 | ||
6521 | #endif // __cplusplus >= 201103L | |
6522 | ||
6523 | ||
6524 | ||
6525 | _ACEOF | |
6526 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6527 | eval $cachevar=yes | |
6528 | else | |
6529 | eval $cachevar=no | |
6530 | fi | |
6531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6532 | CXX="$ac_save_CXX" | |
6533 | fi | |
6534 | eval ac_res=\$$cachevar | |
6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6536 | $as_echo "$ac_res" >&6; } | |
6537 | if eval test x\$$cachevar = xyes; then | |
6538 | CXX="$CXX $switch" | |
6539 | if test -n "$CXXCPP" ; then | |
6540 | CXXCPP="$CXXCPP $switch" | |
6541 | fi | |
6542 | ac_success=yes | |
6543 | break | |
6544 | fi | |
6545 | done | |
6546 | fi | |
6547 | ||
6548 | if test x$ac_success = xno; then | |
6549 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6550 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6551 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6553 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6554 | if eval \${$cachevar+:} false; then : | |
6555 | $as_echo_n "(cached) " >&6 | |
6556 | else | |
6557 | ac_save_CXX="$CXX" | |
6558 | CXX="$CXX $switch" | |
6559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6560 | /* end confdefs.h. */ | |
6561 | ||
6562 | ||
6563 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6564 | // Hopefully, this will speed up the test. | |
6565 | ||
6566 | #ifndef __cplusplus | |
6567 | ||
6568 | #error "This is not a C++ compiler" | |
6569 | ||
6570 | #elif __cplusplus < 201103L | |
6571 | ||
6572 | #error "This is not a C++11 compiler" | |
6573 | ||
6574 | #else | |
6575 | ||
6576 | namespace cxx11 | |
6577 | { | |
6578 | ||
6579 | namespace test_static_assert | |
6580 | { | |
6581 | ||
6582 | template <typename T> | |
6583 | struct check | |
6584 | { | |
6585 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6586 | }; | |
6587 | ||
6588 | } | |
6589 | ||
6590 | namespace test_final_override | |
6591 | { | |
6592 | ||
6593 | struct Base | |
6594 | { | |
6595 | virtual ~Base() {} | |
6596 | virtual void f() {} | |
6597 | }; | |
6598 | ||
6599 | struct Derived : public Base | |
6600 | { | |
6601 | virtual ~Derived() override {} | |
6602 | virtual void f() override {} | |
6603 | }; | |
6604 | ||
6605 | } | |
6606 | ||
6607 | namespace test_double_right_angle_brackets | |
6608 | { | |
6609 | ||
6610 | template < typename T > | |
6611 | struct check {}; | |
6612 | ||
6613 | typedef check<void> single_type; | |
6614 | typedef check<check<void>> double_type; | |
6615 | typedef check<check<check<void>>> triple_type; | |
6616 | typedef check<check<check<check<void>>>> quadruple_type; | |
6617 | ||
6618 | } | |
6619 | ||
6620 | namespace test_decltype | |
6621 | { | |
6622 | ||
6623 | int | |
6624 | f() | |
6625 | { | |
6626 | int a = 1; | |
6627 | decltype(a) b = 2; | |
6628 | return a + b; | |
6629 | } | |
6630 | ||
6631 | } | |
6632 | ||
6633 | namespace test_type_deduction | |
6634 | { | |
6635 | ||
6636 | template < typename T1, typename T2 > | |
6637 | struct is_same | |
6638 | { | |
6639 | static const bool value = false; | |
6640 | }; | |
6641 | ||
6642 | template < typename T > | |
6643 | struct is_same<T, T> | |
6644 | { | |
6645 | static const bool value = true; | |
6646 | }; | |
6647 | ||
6648 | template < typename T1, typename T2 > | |
6649 | auto | |
6650 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6651 | { | |
6652 | return a1 + a2; | |
6653 | } | |
6654 | ||
6655 | int | |
6656 | test(const int c, volatile int v) | |
6657 | { | |
6658 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6659 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6660 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6661 | auto ac = c; | |
6662 | auto av = v; | |
6663 | auto sumi = ac + av + 'x'; | |
6664 | auto sumf = ac + av + 1.0; | |
6665 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6666 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6667 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6668 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6669 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6670 | return (sumf > 0.0) ? sumi : add(c, v); | |
6671 | } | |
6672 | ||
6673 | } | |
6674 | ||
6675 | namespace test_noexcept | |
6676 | { | |
6677 | ||
6678 | int f() { return 0; } | |
6679 | int g() noexcept { return 0; } | |
6680 | ||
6681 | static_assert(noexcept(f()) == false, ""); | |
6682 | static_assert(noexcept(g()) == true, ""); | |
6683 | ||
6684 | } | |
6685 | ||
6686 | namespace test_constexpr | |
6687 | { | |
6688 | ||
6689 | template < typename CharT > | |
6690 | unsigned long constexpr | |
6691 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6692 | { | |
6693 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6694 | } | |
6695 | ||
6696 | template < typename CharT > | |
6697 | unsigned long constexpr | |
6698 | strlen_c(const CharT *const s) noexcept | |
6699 | { | |
6700 | return strlen_c_r(s, 0UL); | |
6701 | } | |
6702 | ||
6703 | static_assert(strlen_c("") == 0UL, ""); | |
6704 | static_assert(strlen_c("1") == 1UL, ""); | |
6705 | static_assert(strlen_c("example") == 7UL, ""); | |
6706 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6707 | ||
6708 | } | |
6709 | ||
6710 | namespace test_rvalue_references | |
6711 | { | |
6712 | ||
6713 | template < int N > | |
6714 | struct answer | |
6715 | { | |
6716 | static constexpr int value = N; | |
6717 | }; | |
6718 | ||
6719 | answer<1> f(int&) { return answer<1>(); } | |
6720 | answer<2> f(const int&) { return answer<2>(); } | |
6721 | answer<3> f(int&&) { return answer<3>(); } | |
6722 | ||
6723 | void | |
6724 | test() | |
6725 | { | |
6726 | int i = 0; | |
6727 | const int c = 0; | |
6728 | static_assert(decltype(f(i))::value == 1, ""); | |
6729 | static_assert(decltype(f(c))::value == 2, ""); | |
6730 | static_assert(decltype(f(0))::value == 3, ""); | |
6731 | } | |
6732 | ||
6733 | } | |
6734 | ||
6735 | namespace test_uniform_initialization | |
6736 | { | |
6737 | ||
6738 | struct test | |
6739 | { | |
6740 | static const int zero {}; | |
6741 | static const int one {1}; | |
6742 | }; | |
6743 | ||
6744 | static_assert(test::zero == 0, ""); | |
6745 | static_assert(test::one == 1, ""); | |
6746 | ||
6747 | } | |
6748 | ||
6749 | namespace test_lambdas | |
6750 | { | |
6751 | ||
6752 | void | |
6753 | test1() | |
6754 | { | |
6755 | auto lambda1 = [](){}; | |
6756 | auto lambda2 = lambda1; | |
6757 | lambda1(); | |
6758 | lambda2(); | |
6759 | } | |
6760 | ||
6761 | int | |
6762 | test2() | |
6763 | { | |
6764 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6765 | auto b = []() -> int { return '0'; }(); | |
6766 | auto c = [=](){ return a + b; }(); | |
6767 | auto d = [&](){ return c; }(); | |
6768 | auto e = [a, &b](int x) mutable { | |
6769 | const auto identity = [](int y){ return y; }; | |
6770 | for (auto i = 0; i < a; ++i) | |
6771 | a += b--; | |
6772 | return x + identity(a + b); | |
6773 | }(0); | |
6774 | return a + b + c + d + e; | |
6775 | } | |
6776 | ||
6777 | int | |
6778 | test3() | |
6779 | { | |
6780 | const auto nullary = [](){ return 0; }; | |
6781 | const auto unary = [](int x){ return x; }; | |
6782 | using nullary_t = decltype(nullary); | |
6783 | using unary_t = decltype(unary); | |
6784 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6785 | const auto higher2nd = [unary](nullary_t f1){ | |
6786 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6787 | }; | |
6788 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6789 | } | |
6790 | ||
6791 | } | |
6792 | ||
6793 | namespace test_variadic_templates | |
6794 | { | |
6795 | ||
6796 | template <int...> | |
6797 | struct sum; | |
6798 | ||
6799 | template <int N0, int... N1toN> | |
6800 | struct sum<N0, N1toN...> | |
6801 | { | |
6802 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6803 | }; | |
6804 | ||
6805 | template <> | |
6806 | struct sum<> | |
6807 | { | |
6808 | static constexpr auto value = 0; | |
6809 | }; | |
6810 | ||
6811 | static_assert(sum<>::value == 0, ""); | |
6812 | static_assert(sum<1>::value == 1, ""); | |
6813 | static_assert(sum<23>::value == 23, ""); | |
6814 | static_assert(sum<1, 2>::value == 3, ""); | |
6815 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6816 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6817 | ||
6818 | } | |
6819 | ||
6820 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6821 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6822 | // because of this. | |
6823 | namespace test_template_alias_sfinae | |
6824 | { | |
6825 | ||
6826 | struct foo {}; | |
6827 | ||
6828 | template<typename T> | |
6829 | using member = typename T::member_type; | |
6830 | ||
6831 | template<typename T> | |
6832 | void func(...) {} | |
6833 | ||
6834 | template<typename T> | |
6835 | void func(member<T>*) {} | |
6836 | ||
6837 | void test(); | |
6838 | ||
6839 | void test() { func<foo>(0); } | |
6840 | ||
6841 | } | |
6842 | ||
6843 | } // namespace cxx11 | |
6844 | ||
6845 | #endif // __cplusplus >= 201103L | |
6846 | ||
6847 | ||
6848 | ||
6849 | _ACEOF | |
6850 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6851 | eval $cachevar=yes | |
6852 | else | |
6853 | eval $cachevar=no | |
6854 | fi | |
6855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6856 | CXX="$ac_save_CXX" | |
6857 | fi | |
6858 | eval ac_res=\$$cachevar | |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6860 | $as_echo "$ac_res" >&6; } | |
6861 | if eval test x\$$cachevar = xyes; then | |
6862 | CXX="$CXX $switch" | |
6863 | if test -n "$CXXCPP" ; then | |
6864 | CXXCPP="$CXXCPP $switch" | |
6865 | fi | |
6866 | ac_success=yes | |
6867 | break | |
6868 | fi | |
6869 | done | |
6870 | if test x$ac_success = xyes; then | |
6871 | break | |
6872 | fi | |
6873 | done | |
6874 | fi | |
6875 | ||
6876 | ac_ext=c | |
6877 | ac_cpp='$CPP $CPPFLAGS' | |
6878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6881 | ||
6882 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6883 | if test x$ac_success = xno; then | |
6884 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6885 | fi | |
6886 | fi | |
6887 | if test x$ac_success = xno; then | |
6888 | HAVE_CXX11=0 | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6890 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6891 | else | |
6892 | HAVE_CXX11=1 | |
6893 | ||
6894 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6895 | ||
6896 | fi | |
6897 | ||
6898 | ||
6899 | ||
6900 | if test "${build}" != "${host}"; then | |
6901 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6902 | ac_ext=cpp | |
6903 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6904 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6905 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6906 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6907 | ac_success=no | |
6908 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6909 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6910 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6911 | CXX="$CXX_FOR_BUILD" | |
6912 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6913 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6915 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6916 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6917 | $as_echo_n "(cached) " >&6 | |
6918 | else | |
6919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6920 | /* end confdefs.h. */ | |
6921 | ||
6922 | ||
6923 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6924 | // Hopefully, this will speed up the test. | |
6925 | ||
6926 | #ifndef __cplusplus | |
6927 | ||
6928 | #error "This is not a C++ compiler" | |
6929 | ||
6930 | #elif __cplusplus < 201103L | |
6931 | ||
6932 | #error "This is not a C++11 compiler" | |
6933 | ||
6934 | #else | |
6935 | ||
6936 | namespace cxx11 | |
6937 | { | |
6938 | ||
6939 | namespace test_static_assert | |
6940 | { | |
6941 | ||
6942 | template <typename T> | |
6943 | struct check | |
6944 | { | |
6945 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6946 | }; | |
6947 | ||
6948 | } | |
6949 | ||
6950 | namespace test_final_override | |
6951 | { | |
6952 | ||
6953 | struct Base | |
6954 | { | |
6955 | virtual ~Base() {} | |
6956 | virtual void f() {} | |
6957 | }; | |
6958 | ||
6959 | struct Derived : public Base | |
6960 | { | |
6961 | virtual ~Derived() override {} | |
6962 | virtual void f() override {} | |
6963 | }; | |
6964 | ||
6965 | } | |
6966 | ||
6967 | namespace test_double_right_angle_brackets | |
6968 | { | |
6969 | ||
6970 | template < typename T > | |
6971 | struct check {}; | |
6972 | ||
6973 | typedef check<void> single_type; | |
6974 | typedef check<check<void>> double_type; | |
6975 | typedef check<check<check<void>>> triple_type; | |
6976 | typedef check<check<check<check<void>>>> quadruple_type; | |
6977 | ||
6978 | } | |
6979 | ||
6980 | namespace test_decltype | |
6981 | { | |
6982 | ||
6983 | int | |
6984 | f() | |
6985 | { | |
6986 | int a = 1; | |
6987 | decltype(a) b = 2; | |
6988 | return a + b; | |
6989 | } | |
6990 | ||
6991 | } | |
6992 | ||
6993 | namespace test_type_deduction | |
6994 | { | |
6995 | ||
6996 | template < typename T1, typename T2 > | |
6997 | struct is_same | |
6998 | { | |
6999 | static const bool value = false; | |
7000 | }; | |
7001 | ||
7002 | template < typename T > | |
7003 | struct is_same<T, T> | |
7004 | { | |
7005 | static const bool value = true; | |
7006 | }; | |
7007 | ||
7008 | template < typename T1, typename T2 > | |
7009 | auto | |
7010 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7011 | { | |
7012 | return a1 + a2; | |
7013 | } | |
7014 | ||
7015 | int | |
7016 | test(const int c, volatile int v) | |
7017 | { | |
7018 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7019 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7020 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7021 | auto ac = c; | |
7022 | auto av = v; | |
7023 | auto sumi = ac + av + 'x'; | |
7024 | auto sumf = ac + av + 1.0; | |
7025 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7026 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7027 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7028 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7029 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7030 | return (sumf > 0.0) ? sumi : add(c, v); | |
7031 | } | |
7032 | ||
7033 | } | |
7034 | ||
7035 | namespace test_noexcept | |
7036 | { | |
7037 | ||
7038 | int f() { return 0; } | |
7039 | int g() noexcept { return 0; } | |
7040 | ||
7041 | static_assert(noexcept(f()) == false, ""); | |
7042 | static_assert(noexcept(g()) == true, ""); | |
7043 | ||
7044 | } | |
7045 | ||
7046 | namespace test_constexpr | |
7047 | { | |
7048 | ||
7049 | template < typename CharT > | |
7050 | unsigned long constexpr | |
7051 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7052 | { | |
7053 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7054 | } | |
7055 | ||
7056 | template < typename CharT > | |
7057 | unsigned long constexpr | |
7058 | strlen_c(const CharT *const s) noexcept | |
7059 | { | |
7060 | return strlen_c_r(s, 0UL); | |
7061 | } | |
7062 | ||
7063 | static_assert(strlen_c("") == 0UL, ""); | |
7064 | static_assert(strlen_c("1") == 1UL, ""); | |
7065 | static_assert(strlen_c("example") == 7UL, ""); | |
7066 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7067 | ||
7068 | } | |
7069 | ||
7070 | namespace test_rvalue_references | |
7071 | { | |
7072 | ||
7073 | template < int N > | |
7074 | struct answer | |
7075 | { | |
7076 | static constexpr int value = N; | |
7077 | }; | |
7078 | ||
7079 | answer<1> f(int&) { return answer<1>(); } | |
7080 | answer<2> f(const int&) { return answer<2>(); } | |
7081 | answer<3> f(int&&) { return answer<3>(); } | |
7082 | ||
7083 | void | |
7084 | test() | |
7085 | { | |
7086 | int i = 0; | |
7087 | const int c = 0; | |
7088 | static_assert(decltype(f(i))::value == 1, ""); | |
7089 | static_assert(decltype(f(c))::value == 2, ""); | |
7090 | static_assert(decltype(f(0))::value == 3, ""); | |
7091 | } | |
7092 | ||
7093 | } | |
7094 | ||
7095 | namespace test_uniform_initialization | |
7096 | { | |
7097 | ||
7098 | struct test | |
7099 | { | |
7100 | static const int zero {}; | |
7101 | static const int one {1}; | |
7102 | }; | |
7103 | ||
7104 | static_assert(test::zero == 0, ""); | |
7105 | static_assert(test::one == 1, ""); | |
7106 | ||
7107 | } | |
7108 | ||
7109 | namespace test_lambdas | |
7110 | { | |
7111 | ||
7112 | void | |
7113 | test1() | |
7114 | { | |
7115 | auto lambda1 = [](){}; | |
7116 | auto lambda2 = lambda1; | |
7117 | lambda1(); | |
7118 | lambda2(); | |
7119 | } | |
7120 | ||
7121 | int | |
7122 | test2() | |
7123 | { | |
7124 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7125 | auto b = []() -> int { return '0'; }(); | |
7126 | auto c = [=](){ return a + b; }(); | |
7127 | auto d = [&](){ return c; }(); | |
7128 | auto e = [a, &b](int x) mutable { | |
7129 | const auto identity = [](int y){ return y; }; | |
7130 | for (auto i = 0; i < a; ++i) | |
7131 | a += b--; | |
7132 | return x + identity(a + b); | |
7133 | }(0); | |
7134 | return a + b + c + d + e; | |
7135 | } | |
7136 | ||
7137 | int | |
7138 | test3() | |
7139 | { | |
7140 | const auto nullary = [](){ return 0; }; | |
7141 | const auto unary = [](int x){ return x; }; | |
7142 | using nullary_t = decltype(nullary); | |
7143 | using unary_t = decltype(unary); | |
7144 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7145 | const auto higher2nd = [unary](nullary_t f1){ | |
7146 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7147 | }; | |
7148 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7149 | } | |
7150 | ||
7151 | } | |
7152 | ||
7153 | namespace test_variadic_templates | |
7154 | { | |
7155 | ||
7156 | template <int...> | |
7157 | struct sum; | |
7158 | ||
7159 | template <int N0, int... N1toN> | |
7160 | struct sum<N0, N1toN...> | |
7161 | { | |
7162 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7163 | }; | |
7164 | ||
7165 | template <> | |
7166 | struct sum<> | |
7167 | { | |
7168 | static constexpr auto value = 0; | |
7169 | }; | |
7170 | ||
7171 | static_assert(sum<>::value == 0, ""); | |
7172 | static_assert(sum<1>::value == 1, ""); | |
7173 | static_assert(sum<23>::value == 23, ""); | |
7174 | static_assert(sum<1, 2>::value == 3, ""); | |
7175 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7176 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7177 | ||
7178 | } | |
7179 | ||
7180 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7181 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7182 | // because of this. | |
7183 | namespace test_template_alias_sfinae | |
7184 | { | |
7185 | ||
7186 | struct foo {}; | |
7187 | ||
7188 | template<typename T> | |
7189 | using member = typename T::member_type; | |
7190 | ||
7191 | template<typename T> | |
7192 | void func(...) {} | |
7193 | ||
7194 | template<typename T> | |
7195 | void func(member<T>*) {} | |
7196 | ||
7197 | void test(); | |
7198 | ||
7199 | void test() { func<foo>(0); } | |
7200 | ||
7201 | } | |
7202 | ||
7203 | } // namespace cxx11 | |
7204 | ||
7205 | #endif // __cplusplus >= 201103L | |
7206 | ||
7207 | ||
7208 | ||
7209 | _ACEOF | |
7210 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7211 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7212 | else | |
7213 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7214 | fi | |
7215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7216 | fi | |
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7218 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7219 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7220 | ac_success=yes | |
7221 | fi | |
7222 | ||
7223 | if test x$ac_success = xno; then | |
7224 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7225 | switch="-std=gnu++${alternative}" | |
7226 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7228 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7229 | if eval \${$cachevar+:} false; then : | |
7230 | $as_echo_n "(cached) " >&6 | |
7231 | else | |
7232 | ac_save_CXX="$CXX" | |
7233 | CXX="$CXX $switch" | |
7234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7235 | /* end confdefs.h. */ | |
7236 | ||
7237 | ||
7238 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7239 | // Hopefully, this will speed up the test. | |
7240 | ||
7241 | #ifndef __cplusplus | |
7242 | ||
7243 | #error "This is not a C++ compiler" | |
7244 | ||
7245 | #elif __cplusplus < 201103L | |
7246 | ||
7247 | #error "This is not a C++11 compiler" | |
7248 | ||
7249 | #else | |
7250 | ||
7251 | namespace cxx11 | |
7252 | { | |
7253 | ||
7254 | namespace test_static_assert | |
7255 | { | |
7256 | ||
7257 | template <typename T> | |
7258 | struct check | |
7259 | { | |
7260 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7261 | }; | |
7262 | ||
7263 | } | |
7264 | ||
7265 | namespace test_final_override | |
7266 | { | |
7267 | ||
7268 | struct Base | |
7269 | { | |
7270 | virtual ~Base() {} | |
7271 | virtual void f() {} | |
7272 | }; | |
7273 | ||
7274 | struct Derived : public Base | |
7275 | { | |
7276 | virtual ~Derived() override {} | |
7277 | virtual void f() override {} | |
7278 | }; | |
7279 | ||
7280 | } | |
7281 | ||
7282 | namespace test_double_right_angle_brackets | |
7283 | { | |
7284 | ||
7285 | template < typename T > | |
7286 | struct check {}; | |
7287 | ||
7288 | typedef check<void> single_type; | |
7289 | typedef check<check<void>> double_type; | |
7290 | typedef check<check<check<void>>> triple_type; | |
7291 | typedef check<check<check<check<void>>>> quadruple_type; | |
7292 | ||
7293 | } | |
7294 | ||
7295 | namespace test_decltype | |
7296 | { | |
7297 | ||
7298 | int | |
7299 | f() | |
7300 | { | |
7301 | int a = 1; | |
7302 | decltype(a) b = 2; | |
7303 | return a + b; | |
7304 | } | |
7305 | ||
7306 | } | |
7307 | ||
7308 | namespace test_type_deduction | |
7309 | { | |
7310 | ||
7311 | template < typename T1, typename T2 > | |
7312 | struct is_same | |
7313 | { | |
7314 | static const bool value = false; | |
7315 | }; | |
7316 | ||
7317 | template < typename T > | |
7318 | struct is_same<T, T> | |
7319 | { | |
7320 | static const bool value = true; | |
7321 | }; | |
7322 | ||
7323 | template < typename T1, typename T2 > | |
7324 | auto | |
7325 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7326 | { | |
7327 | return a1 + a2; | |
7328 | } | |
7329 | ||
7330 | int | |
7331 | test(const int c, volatile int v) | |
7332 | { | |
7333 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7334 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7335 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7336 | auto ac = c; | |
7337 | auto av = v; | |
7338 | auto sumi = ac + av + 'x'; | |
7339 | auto sumf = ac + av + 1.0; | |
7340 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7341 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7342 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7343 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7344 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7345 | return (sumf > 0.0) ? sumi : add(c, v); | |
7346 | } | |
7347 | ||
7348 | } | |
7349 | ||
7350 | namespace test_noexcept | |
7351 | { | |
7352 | ||
7353 | int f() { return 0; } | |
7354 | int g() noexcept { return 0; } | |
7355 | ||
7356 | static_assert(noexcept(f()) == false, ""); | |
7357 | static_assert(noexcept(g()) == true, ""); | |
7358 | ||
7359 | } | |
7360 | ||
7361 | namespace test_constexpr | |
7362 | { | |
7363 | ||
7364 | template < typename CharT > | |
7365 | unsigned long constexpr | |
7366 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7367 | { | |
7368 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7369 | } | |
7370 | ||
7371 | template < typename CharT > | |
7372 | unsigned long constexpr | |
7373 | strlen_c(const CharT *const s) noexcept | |
7374 | { | |
7375 | return strlen_c_r(s, 0UL); | |
7376 | } | |
7377 | ||
7378 | static_assert(strlen_c("") == 0UL, ""); | |
7379 | static_assert(strlen_c("1") == 1UL, ""); | |
7380 | static_assert(strlen_c("example") == 7UL, ""); | |
7381 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7382 | ||
7383 | } | |
7384 | ||
7385 | namespace test_rvalue_references | |
7386 | { | |
7387 | ||
7388 | template < int N > | |
7389 | struct answer | |
7390 | { | |
7391 | static constexpr int value = N; | |
7392 | }; | |
7393 | ||
7394 | answer<1> f(int&) { return answer<1>(); } | |
7395 | answer<2> f(const int&) { return answer<2>(); } | |
7396 | answer<3> f(int&&) { return answer<3>(); } | |
7397 | ||
7398 | void | |
7399 | test() | |
7400 | { | |
7401 | int i = 0; | |
7402 | const int c = 0; | |
7403 | static_assert(decltype(f(i))::value == 1, ""); | |
7404 | static_assert(decltype(f(c))::value == 2, ""); | |
7405 | static_assert(decltype(f(0))::value == 3, ""); | |
7406 | } | |
7407 | ||
7408 | } | |
7409 | ||
7410 | namespace test_uniform_initialization | |
7411 | { | |
7412 | ||
7413 | struct test | |
7414 | { | |
7415 | static const int zero {}; | |
7416 | static const int one {1}; | |
7417 | }; | |
7418 | ||
7419 | static_assert(test::zero == 0, ""); | |
7420 | static_assert(test::one == 1, ""); | |
7421 | ||
7422 | } | |
7423 | ||
7424 | namespace test_lambdas | |
7425 | { | |
7426 | ||
7427 | void | |
7428 | test1() | |
7429 | { | |
7430 | auto lambda1 = [](){}; | |
7431 | auto lambda2 = lambda1; | |
7432 | lambda1(); | |
7433 | lambda2(); | |
7434 | } | |
7435 | ||
7436 | int | |
7437 | test2() | |
7438 | { | |
7439 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7440 | auto b = []() -> int { return '0'; }(); | |
7441 | auto c = [=](){ return a + b; }(); | |
7442 | auto d = [&](){ return c; }(); | |
7443 | auto e = [a, &b](int x) mutable { | |
7444 | const auto identity = [](int y){ return y; }; | |
7445 | for (auto i = 0; i < a; ++i) | |
7446 | a += b--; | |
7447 | return x + identity(a + b); | |
7448 | }(0); | |
7449 | return a + b + c + d + e; | |
7450 | } | |
7451 | ||
7452 | int | |
7453 | test3() | |
7454 | { | |
7455 | const auto nullary = [](){ return 0; }; | |
7456 | const auto unary = [](int x){ return x; }; | |
7457 | using nullary_t = decltype(nullary); | |
7458 | using unary_t = decltype(unary); | |
7459 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7460 | const auto higher2nd = [unary](nullary_t f1){ | |
7461 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7462 | }; | |
7463 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7464 | } | |
7465 | ||
7466 | } | |
7467 | ||
7468 | namespace test_variadic_templates | |
7469 | { | |
7470 | ||
7471 | template <int...> | |
7472 | struct sum; | |
7473 | ||
7474 | template <int N0, int... N1toN> | |
7475 | struct sum<N0, N1toN...> | |
7476 | { | |
7477 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7478 | }; | |
7479 | ||
7480 | template <> | |
7481 | struct sum<> | |
7482 | { | |
7483 | static constexpr auto value = 0; | |
7484 | }; | |
7485 | ||
7486 | static_assert(sum<>::value == 0, ""); | |
7487 | static_assert(sum<1>::value == 1, ""); | |
7488 | static_assert(sum<23>::value == 23, ""); | |
7489 | static_assert(sum<1, 2>::value == 3, ""); | |
7490 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7491 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7492 | ||
7493 | } | |
7494 | ||
7495 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7496 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7497 | // because of this. | |
7498 | namespace test_template_alias_sfinae | |
7499 | { | |
7500 | ||
7501 | struct foo {}; | |
7502 | ||
7503 | template<typename T> | |
7504 | using member = typename T::member_type; | |
7505 | ||
7506 | template<typename T> | |
7507 | void func(...) {} | |
7508 | ||
7509 | template<typename T> | |
7510 | void func(member<T>*) {} | |
7511 | ||
7512 | void test(); | |
7513 | ||
7514 | void test() { func<foo>(0); } | |
7515 | ||
7516 | } | |
7517 | ||
7518 | } // namespace cxx11 | |
7519 | ||
7520 | #endif // __cplusplus >= 201103L | |
7521 | ||
7522 | ||
7523 | ||
7524 | _ACEOF | |
7525 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7526 | eval $cachevar=yes | |
7527 | else | |
7528 | eval $cachevar=no | |
7529 | fi | |
7530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7531 | CXX="$ac_save_CXX" | |
7532 | fi | |
7533 | eval ac_res=\$$cachevar | |
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7535 | $as_echo "$ac_res" >&6; } | |
7536 | if eval test x\$$cachevar = xyes; then | |
7537 | CXX="$CXX $switch" | |
7538 | if test -n "$CXXCPP" ; then | |
7539 | CXXCPP="$CXXCPP $switch" | |
7540 | fi | |
7541 | ac_success=yes | |
7542 | break | |
7543 | fi | |
7544 | done | |
7545 | fi | |
7546 | ||
7547 | if test x$ac_success = xno; then | |
7548 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7549 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7550 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7552 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7553 | if eval \${$cachevar+:} false; then : | |
7554 | $as_echo_n "(cached) " >&6 | |
7555 | else | |
7556 | ac_save_CXX="$CXX" | |
7557 | CXX="$CXX $switch" | |
7558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7559 | /* end confdefs.h. */ | |
7560 | ||
7561 | ||
7562 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7563 | // Hopefully, this will speed up the test. | |
7564 | ||
7565 | #ifndef __cplusplus | |
7566 | ||
7567 | #error "This is not a C++ compiler" | |
7568 | ||
7569 | #elif __cplusplus < 201103L | |
7570 | ||
7571 | #error "This is not a C++11 compiler" | |
7572 | ||
7573 | #else | |
7574 | ||
7575 | namespace cxx11 | |
7576 | { | |
7577 | ||
7578 | namespace test_static_assert | |
7579 | { | |
7580 | ||
7581 | template <typename T> | |
7582 | struct check | |
7583 | { | |
7584 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7585 | }; | |
7586 | ||
7587 | } | |
7588 | ||
7589 | namespace test_final_override | |
7590 | { | |
7591 | ||
7592 | struct Base | |
7593 | { | |
7594 | virtual ~Base() {} | |
7595 | virtual void f() {} | |
7596 | }; | |
7597 | ||
7598 | struct Derived : public Base | |
7599 | { | |
7600 | virtual ~Derived() override {} | |
7601 | virtual void f() override {} | |
7602 | }; | |
7603 | ||
7604 | } | |
7605 | ||
7606 | namespace test_double_right_angle_brackets | |
7607 | { | |
7608 | ||
7609 | template < typename T > | |
7610 | struct check {}; | |
7611 | ||
7612 | typedef check<void> single_type; | |
7613 | typedef check<check<void>> double_type; | |
7614 | typedef check<check<check<void>>> triple_type; | |
7615 | typedef check<check<check<check<void>>>> quadruple_type; | |
7616 | ||
7617 | } | |
7618 | ||
7619 | namespace test_decltype | |
7620 | { | |
7621 | ||
7622 | int | |
7623 | f() | |
7624 | { | |
7625 | int a = 1; | |
7626 | decltype(a) b = 2; | |
7627 | return a + b; | |
7628 | } | |
7629 | ||
7630 | } | |
7631 | ||
7632 | namespace test_type_deduction | |
7633 | { | |
7634 | ||
7635 | template < typename T1, typename T2 > | |
7636 | struct is_same | |
7637 | { | |
7638 | static const bool value = false; | |
7639 | }; | |
7640 | ||
7641 | template < typename T > | |
7642 | struct is_same<T, T> | |
7643 | { | |
7644 | static const bool value = true; | |
7645 | }; | |
7646 | ||
7647 | template < typename T1, typename T2 > | |
7648 | auto | |
7649 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7650 | { | |
7651 | return a1 + a2; | |
7652 | } | |
7653 | ||
7654 | int | |
7655 | test(const int c, volatile int v) | |
7656 | { | |
7657 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7658 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7659 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7660 | auto ac = c; | |
7661 | auto av = v; | |
7662 | auto sumi = ac + av + 'x'; | |
7663 | auto sumf = ac + av + 1.0; | |
7664 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7665 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7666 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7667 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7668 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7669 | return (sumf > 0.0) ? sumi : add(c, v); | |
7670 | } | |
7671 | ||
7672 | } | |
7673 | ||
7674 | namespace test_noexcept | |
7675 | { | |
7676 | ||
7677 | int f() { return 0; } | |
7678 | int g() noexcept { return 0; } | |
7679 | ||
7680 | static_assert(noexcept(f()) == false, ""); | |
7681 | static_assert(noexcept(g()) == true, ""); | |
7682 | ||
7683 | } | |
7684 | ||
7685 | namespace test_constexpr | |
7686 | { | |
7687 | ||
7688 | template < typename CharT > | |
7689 | unsigned long constexpr | |
7690 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7691 | { | |
7692 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7693 | } | |
7694 | ||
7695 | template < typename CharT > | |
7696 | unsigned long constexpr | |
7697 | strlen_c(const CharT *const s) noexcept | |
7698 | { | |
7699 | return strlen_c_r(s, 0UL); | |
7700 | } | |
7701 | ||
7702 | static_assert(strlen_c("") == 0UL, ""); | |
7703 | static_assert(strlen_c("1") == 1UL, ""); | |
7704 | static_assert(strlen_c("example") == 7UL, ""); | |
7705 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7706 | ||
7707 | } | |
7708 | ||
7709 | namespace test_rvalue_references | |
7710 | { | |
7711 | ||
7712 | template < int N > | |
7713 | struct answer | |
7714 | { | |
7715 | static constexpr int value = N; | |
7716 | }; | |
7717 | ||
7718 | answer<1> f(int&) { return answer<1>(); } | |
7719 | answer<2> f(const int&) { return answer<2>(); } | |
7720 | answer<3> f(int&&) { return answer<3>(); } | |
7721 | ||
7722 | void | |
7723 | test() | |
7724 | { | |
7725 | int i = 0; | |
7726 | const int c = 0; | |
7727 | static_assert(decltype(f(i))::value == 1, ""); | |
7728 | static_assert(decltype(f(c))::value == 2, ""); | |
7729 | static_assert(decltype(f(0))::value == 3, ""); | |
7730 | } | |
7731 | ||
7732 | } | |
7733 | ||
7734 | namespace test_uniform_initialization | |
7735 | { | |
7736 | ||
7737 | struct test | |
7738 | { | |
7739 | static const int zero {}; | |
7740 | static const int one {1}; | |
7741 | }; | |
7742 | ||
7743 | static_assert(test::zero == 0, ""); | |
7744 | static_assert(test::one == 1, ""); | |
7745 | ||
7746 | } | |
7747 | ||
7748 | namespace test_lambdas | |
7749 | { | |
7750 | ||
7751 | void | |
7752 | test1() | |
7753 | { | |
7754 | auto lambda1 = [](){}; | |
7755 | auto lambda2 = lambda1; | |
7756 | lambda1(); | |
7757 | lambda2(); | |
7758 | } | |
7759 | ||
7760 | int | |
7761 | test2() | |
7762 | { | |
7763 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7764 | auto b = []() -> int { return '0'; }(); | |
7765 | auto c = [=](){ return a + b; }(); | |
7766 | auto d = [&](){ return c; }(); | |
7767 | auto e = [a, &b](int x) mutable { | |
7768 | const auto identity = [](int y){ return y; }; | |
7769 | for (auto i = 0; i < a; ++i) | |
7770 | a += b--; | |
7771 | return x + identity(a + b); | |
7772 | }(0); | |
7773 | return a + b + c + d + e; | |
7774 | } | |
7775 | ||
7776 | int | |
7777 | test3() | |
7778 | { | |
7779 | const auto nullary = [](){ return 0; }; | |
7780 | const auto unary = [](int x){ return x; }; | |
7781 | using nullary_t = decltype(nullary); | |
7782 | using unary_t = decltype(unary); | |
7783 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7784 | const auto higher2nd = [unary](nullary_t f1){ | |
7785 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7786 | }; | |
7787 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7788 | } | |
7789 | ||
7790 | } | |
7791 | ||
7792 | namespace test_variadic_templates | |
7793 | { | |
7794 | ||
7795 | template <int...> | |
7796 | struct sum; | |
7797 | ||
7798 | template <int N0, int... N1toN> | |
7799 | struct sum<N0, N1toN...> | |
7800 | { | |
7801 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7802 | }; | |
7803 | ||
7804 | template <> | |
7805 | struct sum<> | |
7806 | { | |
7807 | static constexpr auto value = 0; | |
7808 | }; | |
7809 | ||
7810 | static_assert(sum<>::value == 0, ""); | |
7811 | static_assert(sum<1>::value == 1, ""); | |
7812 | static_assert(sum<23>::value == 23, ""); | |
7813 | static_assert(sum<1, 2>::value == 3, ""); | |
7814 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7815 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7816 | ||
7817 | } | |
7818 | ||
7819 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7820 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7821 | // because of this. | |
7822 | namespace test_template_alias_sfinae | |
7823 | { | |
7824 | ||
7825 | struct foo {}; | |
7826 | ||
7827 | template<typename T> | |
7828 | using member = typename T::member_type; | |
7829 | ||
7830 | template<typename T> | |
7831 | void func(...) {} | |
7832 | ||
7833 | template<typename T> | |
7834 | void func(member<T>*) {} | |
7835 | ||
7836 | void test(); | |
7837 | ||
7838 | void test() { func<foo>(0); } | |
7839 | ||
7840 | } | |
7841 | ||
7842 | } // namespace cxx11 | |
7843 | ||
7844 | #endif // __cplusplus >= 201103L | |
7845 | ||
7846 | ||
7847 | ||
7848 | _ACEOF | |
7849 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7850 | eval $cachevar=yes | |
7851 | else | |
7852 | eval $cachevar=no | |
7853 | fi | |
7854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7855 | CXX="$ac_save_CXX" | |
7856 | fi | |
7857 | eval ac_res=\$$cachevar | |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7859 | $as_echo "$ac_res" >&6; } | |
7860 | if eval test x\$$cachevar = xyes; then | |
7861 | CXX="$CXX $switch" | |
7862 | if test -n "$CXXCPP" ; then | |
7863 | CXXCPP="$CXXCPP $switch" | |
7864 | fi | |
7865 | ac_success=yes | |
7866 | break | |
7867 | fi | |
7868 | done | |
7869 | if test x$ac_success = xyes; then | |
7870 | break | |
7871 | fi | |
7872 | done | |
7873 | fi | |
7874 | CXX_FOR_BUILD="$CXX" | |
7875 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7876 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7877 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7878 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7879 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7880 | ac_ext=c | |
7881 | ac_cpp='$CPP $CPPFLAGS' | |
7882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7885 | ||
7886 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7887 | if test x$ac_success = xno; then | |
7888 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7889 | fi | |
7890 | fi | |
7891 | if test x$ac_success = xno; then | |
7892 | HAVE_CXX11_FOR_BUILD=0 | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7894 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7895 | else | |
7896 | HAVE_CXX11_FOR_BUILD=1 | |
7897 | ||
7898 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7899 | ||
7900 | fi | |
7901 | ||
7902 | ||
7903 | fi | |
7904 | fi | |
7905 | ||
7906 | # Check whether --enable-pgo-build was given. | |
7907 | if test "${enable_pgo_build+set}" = set; then : | |
7908 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7909 | else | |
7910 | enable_pgo_build=no | |
7911 | fi | |
7912 | ||
7913 | ||
7914 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7915 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7916 | *:*:*:no) ;; | |
7917 | ||
7918 | # Allow the PGO build only if we aren't building a compiler and | |
7919 | # we are in a native configuration. | |
7920 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7921 | ||
7922 | # Disallow the PGO bootstrap if we are building a compiler. | |
7923 | yes:*:*:yes | yes:*:*:lto) | |
7924 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7925 | ||
7926 | *) | |
7927 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7928 | ;; | |
7929 | esac | |
7930 | ||
7931 | if test "$enable_pgo_build" != "no"; then | |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7933 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7934 | old_CFLAGS="$CFLAGS" | |
7935 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7936 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7937 | ||
7938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7939 | /* end confdefs.h. */ | |
7940 | int foo; | |
7941 | _ACEOF | |
7942 | if ac_fn_c_try_compile "$LINENO"; then : | |
7943 | ||
7944 | else | |
7945 | PGO_BUILD_GEN_CFLAGS= | |
7946 | fi | |
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7948 | CFLAGS="$old_CFLAGS" | |
7949 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7951 | $as_echo "yes" >&6; } | |
7952 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7953 | else | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7955 | $as_echo "no" >&6; } | |
7956 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7957 | fi | |
7958 | ||
7959 | if test "$enable_pgo_build" = "lto"; then | |
7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7961 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7962 | old_CFLAGS="$CFLAGS" | |
7963 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7964 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7966 | /* end confdefs.h. */ | |
7967 | int foo; | |
7968 | _ACEOF | |
7969 | if ac_fn_c_try_compile "$LINENO"; then : | |
7970 | ||
7971 | else | |
7972 | PGO_BUILD_LTO_CFLAGS= | |
7973 | fi | |
7974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7975 | CFLAGS="$old_CFLAGS" | |
7976 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7978 | $as_echo "yes" >&6; } | |
7979 | else | |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7981 | $as_echo "no" >&6; } | |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7983 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7984 | fi | |
7985 | fi | |
7986 | fi | |
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | # Used for setting $lt_cv_objdir | |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7993 | $as_echo_n "checking for objdir... " >&6; } | |
7994 | if ${lt_cv_objdir+:} false; then : | |
7995 | $as_echo_n "(cached) " >&6 | |
7996 | else | |
7997 | rm -f .libs 2>/dev/null | |
7998 | mkdir .libs 2>/dev/null | |
7999 | if test -d .libs; then | |
8000 | lt_cv_objdir=.libs | |
8001 | else | |
8002 | # MS-DOS does not allow filenames that begin with a dot. | |
8003 | lt_cv_objdir=_libs | |
8004 | fi | |
8005 | rmdir .libs 2>/dev/null | |
8006 | fi | |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8008 | $as_echo "$lt_cv_objdir" >&6; } | |
8009 | objdir=$lt_cv_objdir | |
8010 | ||
8011 | ||
8012 | ||
8013 | ||
8014 | ||
8015 | cat >>confdefs.h <<_ACEOF | |
8016 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8017 | _ACEOF | |
8018 | ||
8019 | ||
8020 | ||
8021 | # Check for GMP, MPFR and MPC | |
8022 | gmplibs="-lmpc -lmpfr -lgmp" | |
8023 | gmpinc= | |
8024 | have_gmp=no | |
8025 | ||
8026 | # Specify a location for mpc | |
8027 | # check for this first so it ends up on the link line before mpfr. | |
8028 | ||
8029 | # Check whether --with-mpc was given. | |
8030 | if test "${with_mpc+set}" = set; then : | |
8031 | withval=$with_mpc; | |
8032 | fi | |
8033 | ||
8034 | ||
8035 | # Check whether --with-mpc-include was given. | |
8036 | if test "${with_mpc_include+set}" = set; then : | |
8037 | withval=$with_mpc_include; | |
8038 | fi | |
8039 | ||
8040 | ||
8041 | # Check whether --with-mpc-lib was given. | |
8042 | if test "${with_mpc_lib+set}" = set; then : | |
8043 | withval=$with_mpc_lib; | |
8044 | fi | |
8045 | ||
8046 | ||
8047 | if test "x$with_mpc" != x; then | |
8048 | gmplibs="-L$with_mpc/lib $gmplibs" | |
8049 | gmpinc="-I$with_mpc/include $gmpinc" | |
8050 | fi | |
8051 | if test "x$with_mpc_include" != x; then | |
8052 | gmpinc="-I$with_mpc_include $gmpinc" | |
8053 | fi | |
8054 | if test "x$with_mpc_lib" != x; then | |
8055 | gmplibs="-L$with_mpc_lib $gmplibs" | |
8056 | fi | |
8057 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
8058 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" | |
8059 | gmpinc='-I$$s/mpc/src '"$gmpinc" | |
8060 | # Do not test the mpc version. Assume that it is sufficient, since | |
8061 | # it is in the source tree, and the library has not been built yet | |
8062 | # but it would be included on the link line in the version check below | |
8063 | # hence making the test fail. | |
8064 | have_gmp=yes | |
8065 | fi | |
8066 | ||
8067 | # Specify a location for mpfr | |
8068 | # check for this first so it ends up on the link line before gmp. | |
8069 | ||
8070 | # Check whether --with-mpfr was given. | |
8071 | if test "${with_mpfr+set}" = set; then : | |
8072 | withval=$with_mpfr; | |
8073 | fi | |
c6b750e1 | 8074 | |
11b04d1f | 8075 | |
e552509b | 8076 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
8077 | if test "${with_mpfr_include+set}" = set; then : |
8078 | withval=$with_mpfr_include; | |
8079 | fi | |
c6b750e1 | 8080 | |
8a0d8a5c | 8081 | |
e552509b | 8082 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
8083 | if test "${with_mpfr_lib+set}" = set; then : |
8084 | withval=$with_mpfr_lib; | |
8085 | fi | |
8a0d8a5c | 8086 | |
11b04d1f DD |
8087 | |
8088 | if test "x$with_mpfr" != x; then | |
8089 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 8090 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 8091 | fi |
8a0d8a5c | 8092 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 8093 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
8094 | fi |
8095 | if test "x$with_mpfr_lib" != x; then | |
8096 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8097 | fi | |
4b900473 | 8098 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 8099 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 8100 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 8101 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 8102 | fi |
05a13254 NC |
8103 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8104 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8105 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
8106 | # Do not test the mpfr version. Assume that it is sufficient, since |
8107 | # it is in the source tree, and the library has not been built yet | |
8108 | # but it would be included on the link line in the version check below | |
8109 | # hence making the test fail. | |
8110 | have_gmp=yes | |
8111 | fi | |
11b04d1f | 8112 | |
4b1cb4fe | 8113 | # Specify a location for gmp |
c6b750e1 | 8114 | |
81ecdfbb RW |
8115 | # Check whether --with-gmp was given. |
8116 | if test "${with_gmp+set}" = set; then : | |
8117 | withval=$with_gmp; | |
8118 | fi | |
c6b750e1 | 8119 | |
4b1cb4fe | 8120 | |
e552509b | 8121 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
8122 | if test "${with_gmp_include+set}" = set; then : |
8123 | withval=$with_gmp_include; | |
8124 | fi | |
c6b750e1 | 8125 | |
8a0d8a5c | 8126 | |
e552509b | 8127 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
8128 | if test "${with_gmp_lib+set}" = set; then : |
8129 | withval=$with_gmp_lib; | |
8130 | fi | |
8a0d8a5c PB |
8131 | |
8132 | ||
4b1cb4fe | 8133 | |
11b04d1f DD |
8134 | if test "x$with_gmp" != x; then |
8135 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8136 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 8137 | fi |
8a0d8a5c PB |
8138 | if test "x$with_gmp_include" != x; then |
8139 | gmpinc="-I$with_gmp_include $gmpinc" | |
8140 | fi | |
8141 | if test "x$with_gmp_lib" != x; then | |
8142 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8143 | fi | |
4b900473 | 8144 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 8145 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 8146 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 8147 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 8148 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 8149 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
8150 | # Do not test the gmp version. Assume that it is sufficient, since |
8151 | # it is in the source tree, and the library has not been built yet | |
8152 | # but it would be included on the link line in the version check below | |
8153 | # hence making the test fail. | |
8154 | have_gmp=yes | |
8155 | fi | |
4b1cb4fe | 8156 | |
ceb92e78 | 8157 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
8158 | have_gmp=yes |
8159 | saved_CFLAGS="$CFLAGS" | |
8160 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
8161 | # Check for the recommended and required versions of GMP. |
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8163 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
af019bfd | 8164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
8165 | /* end confdefs.h. */ |
8166 | #include "gmp.h" | |
8167 | int | |
8168 | main () | |
8169 | { | |
8170 | ||
8171 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8172 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 8173 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
8174 | choke me |
8175 | #endif | |
8176 | ||
8177 | ; | |
8178 | return 0; | |
8179 | } | |
8180 | _ACEOF | |
8181 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 8182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8183 | /* end confdefs.h. */ |
a6b5846e | 8184 | #include <gmp.h> |
c6b750e1 DJ |
8185 | int |
8186 | main () | |
8187 | { | |
4b1cb4fe | 8188 | |
a6b5846e KG |
8189 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8190 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8191 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
8192 | choke me |
8193 | #endif | |
c6b750e1 DJ |
8194 | |
8195 | ; | |
8196 | return 0; | |
8197 | } | |
8198 | _ACEOF | |
81ecdfbb RW |
8199 | if ac_fn_c_try_compile "$LINENO"; then : |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8201 | $as_echo "yes" >&6; } | |
a6b5846e KG |
8202 | else |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8204 | $as_echo "buggy but acceptable" >&6; } | |
8205 | fi | |
8206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 8207 | else |
81ecdfbb RW |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8209 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8210 | fi |
81ecdfbb | 8211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 8212 | |
e8a5fa9c | 8213 | # If we have GMP, check the MPFR version. |
4b900473 | 8214 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
8215 | # Check for the recommended and required versions of MPFR. |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8217 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 8218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8219 | /* end confdefs.h. */ |
9b134994 | 8220 | #include <gmp.h> |
4b900473 | 8221 | #include <mpfr.h> |
c6b750e1 DJ |
8222 | int |
8223 | main () | |
8224 | { | |
9b134994 | 8225 | |
228cf97d | 8226 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
4b900473 PB |
8227 | choke me |
8228 | #endif | |
c6b750e1 DJ |
8229 | |
8230 | ; | |
8231 | return 0; | |
8232 | } | |
8233 | _ACEOF | |
81ecdfbb RW |
8234 | if ac_fn_c_try_compile "$LINENO"; then : |
8235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 8236 | /* end confdefs.h. */ |
4b1cb4fe | 8237 | #include <gmp.h> |
4b900473 | 8238 | #include <mpfr.h> |
c6b750e1 DJ |
8239 | int |
8240 | main () | |
8241 | { | |
9dbaa842 | 8242 | |
228cf97d | 8243 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
4b900473 PB |
8244 | choke me |
8245 | #endif | |
e8a5fa9c RW |
8246 | |
8247 | ; | |
8248 | return 0; | |
8249 | } | |
8250 | _ACEOF | |
81ecdfbb RW |
8251 | if ac_fn_c_try_compile "$LINENO"; then : |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8253 | $as_echo "yes" >&6; } | |
e8a5fa9c | 8254 | else |
81ecdfbb RW |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8256 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 8257 | fi |
81ecdfbb | 8258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 8259 | else |
81ecdfbb RW |
8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8261 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 8262 | fi |
81ecdfbb | 8263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8264 | fi |
8265 | ||
8266 | # Check for the MPC header version. | |
d9b76ff9 | 8267 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 8268 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8270 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
8272 | /* end confdefs.h. */ |
8273 | #include <mpc.h> | |
8274 | int | |
8275 | main () | |
8276 | { | |
8277 | ||
a6b5846e KG |
8278 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8279 | choke me | |
8280 | #endif | |
8281 | ||
8282 | ; | |
8283 | return 0; | |
8284 | } | |
8285 | _ACEOF | |
8286 | if ac_fn_c_try_compile "$LINENO"; then : | |
8287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8288 | /* end confdefs.h. */ | |
8289 | #include <mpc.h> | |
8290 | int | |
8291 | main () | |
8292 | { | |
8293 | ||
8294 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
8295 | choke me |
8296 | #endif | |
8297 | ||
8298 | ; | |
8299 | return 0; | |
8300 | } | |
8301 | _ACEOF | |
81ecdfbb RW |
8302 | if ac_fn_c_try_compile "$LINENO"; then : |
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 8304 | $as_echo "yes" >&6; } |
a6b5846e KG |
8305 | else |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8307 | $as_echo "buggy but acceptable" >&6; } | |
8308 | fi | |
8309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 8310 | else |
81ecdfbb | 8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 8312 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 8313 | fi |
81ecdfbb | 8314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8315 | fi |
8316 | ||
8317 | # Now check the MPFR library. | |
8318 | if test x"$have_gmp" = xyes; then | |
8319 | saved_LIBS="$LIBS" | |
8320 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8322 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 8323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 8324 | /* end confdefs.h. */ |
d9b76ff9 | 8325 | #include <mpc.h> |
e8a5fa9c RW |
8326 | int |
8327 | main () | |
8328 | { | |
8329 | ||
8330 | mpfr_t n; | |
8331 | mpfr_t x; | |
d9b76ff9 | 8332 | mpc_t c; |
e8a5fa9c RW |
8333 | int t; |
8334 | mpfr_init (n); | |
8335 | mpfr_init (x); | |
228cf97d AM |
8336 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8337 | mpfr_erfc (n, x, MPFR_RNDN); | |
8338 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
d9b76ff9 KG |
8339 | mpfr_clear(n); |
8340 | mpfr_clear(x); | |
8341 | mpc_init2 (c, 53); | |
8342 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8343 | mpc_cosh (c, c, MPC_RNDNN); | |
8344 | mpc_pow (c, c, c, MPC_RNDNN); | |
8345 | mpc_acosh (c, c, MPC_RNDNN); | |
8346 | mpc_clear (c); | |
c6b750e1 DJ |
8347 | |
8348 | ; | |
8349 | return 0; | |
8350 | } | |
8351 | _ACEOF | |
81ecdfbb RW |
8352 | if ac_fn_c_try_link "$LINENO"; then : |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8354 | $as_echo "yes" >&6; } | |
c6b750e1 | 8355 | else |
81ecdfbb RW |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8357 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8358 | fi |
81ecdfbb RW |
8359 | rm -f core conftest.err conftest.$ac_objext \ |
8360 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
8361 | LIBS="$saved_LIBS" |
8362 | fi | |
8363 | ||
4b900473 | 8364 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 8365 | |
a6b5846e KG |
8366 | # The library versions listed in the error message below should match |
8367 | # the HARD-minimums enforced above. | |
4b900473 | 8368 | if test x$have_gmp != xyes; then |
228cf97d | 8369 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
8370 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8371 | their locations. Source code for these libraries can be found at | |
8372 | their respective hosting sites as well as at | |
228cf97d | 8373 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
d9b76ff9 KG |
8374 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8375 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8376 | make sure that you have installed both the libraries and the header | |
8377 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 8378 | fi |
9dbaa842 DD |
8379 | fi |
8380 | ||
e8a5fa9c RW |
8381 | # Flags needed for both GMP, MPFR and/or MPC. |
8382 | ||
8383 | ||
8384 | ||
4b1cb4fe DD |
8385 | |
8386 | ||
8387 | ||
7ec59b9e | 8388 | |
b3676d82 | 8389 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8390 | |
b3676d82 EB |
8391 | # Check whether --with-stage1-libs was given. |
8392 | if test "${with_stage1_libs+set}" = set; then : | |
8393 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8394 | stage1_libs= | |
e8a5fa9c | 8395 | else |
b3676d82 | 8396 | stage1_libs=$withval |
e8a5fa9c RW |
8397 | fi |
8398 | else | |
68996839 | 8399 | stage1_libs= |
81ecdfbb RW |
8400 | fi |
8401 | ||
e8a5fa9c RW |
8402 | |
8403 | ||
c1a5d03a TT |
8404 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8405 | # default is yes if gcc is being built; no otherwise. The reason for | |
8406 | # this default is that gdb is sometimes linked against GNU Source | |
8407 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8408 | # this case, -static-libstdc++ will cause crashes. | |
8409 | ||
8410 | # Check whether --with-static-standard-libraries was given. | |
8411 | if test "${with_static_standard_libraries+set}" = set; then : | |
8412 | withval=$with_static_standard_libraries; | |
8413 | else | |
8414 | with_static_standard_libraries=auto | |
8415 | fi | |
8416 | ||
8417 | if test "$with_static_standard_libraries" = auto; then | |
8418 | with_static_standard_libraries=$have_compiler | |
8419 | fi | |
8420 | ||
b3676d82 | 8421 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8422 | |
b3676d82 EB |
8423 | # Check whether --with-stage1-ldflags was given. |
8424 | if test "${with_stage1_ldflags+set}" = set; then : | |
8425 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8426 | stage1_ldflags= | |
e8a5fa9c | 8427 | else |
b3676d82 | 8428 | stage1_ldflags=$withval |
e8a5fa9c RW |
8429 | fi |
8430 | else | |
b3676d82 EB |
8431 | stage1_ldflags= |
8432 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8433 | # if supported. But if the user explicitly specified the libraries to use, | |
8434 | # trust that they are doing what they want. | |
c1a5d03a TT |
8435 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8436 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
8437 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8438 | fi | |
81ecdfbb RW |
8439 | fi |
8440 | ||
e8a5fa9c RW |
8441 | |
8442 | ||
68996839 | 8443 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 8444 | |
81ecdfbb RW |
8445 | # Check whether --with-boot-libs was given. |
8446 | if test "${with_boot_libs+set}" = set; then : | |
8447 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
8448 | poststage1_libs= |
8449 | else | |
8450 | poststage1_libs=$withval | |
8451 | fi | |
8452 | else | |
68996839 | 8453 | poststage1_libs= |
81ecdfbb RW |
8454 | fi |
8455 | ||
e8a5fa9c RW |
8456 | |
8457 | ||
143754cd NC |
8458 | # Linker flags to use for stage2 and later builds. |
8459 | ||
8460 | # Check whether --with-boot-ldflags was given. | |
8461 | if test "${with_boot_ldflags+set}" = set; then : | |
8462 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8463 | poststage1_ldflags= | |
8464 | else | |
8465 | poststage1_ldflags=$withval | |
8466 | fi | |
8467 | else | |
8468 | poststage1_ldflags= | |
4f11b223 ILT |
8469 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8470 | # statically. But if the user explicitly specified the libraries to | |
8471 | # use, trust that they are doing what they want. | |
8472 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
8473 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8474 | fi | |
8475 | fi | |
8476 | ||
8477 | ||
8478 | ||
4849dfd8 | 8479 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 8480 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
8481 | |
8482 | ||
7ec59b9e L |
8483 | # Check whether --with-isl was given. |
8484 | if test "${with_isl+set}" = set; then : | |
8485 | withval=$with_isl; | |
81ecdfbb | 8486 | fi |
e28c595f | 8487 | |
e28c595f | 8488 | |
1b6c0831 | 8489 | # Treat --without-isl as a request to disable |
8e71395b | 8490 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 8491 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 8492 | # Check for isl |
8e71395b L |
8493 | |
8494 | ||
7ec59b9e L |
8495 | # Check whether --with-isl-include was given. |
8496 | if test "${with_isl_include+set}" = set; then : | |
8497 | withval=$with_isl_include; | |
81ecdfbb RW |
8498 | fi |
8499 | ||
e28c595f | 8500 | |
7ec59b9e L |
8501 | # Check whether --with-isl-lib was given. |
8502 | if test "${with_isl_lib+set}" = set; then : | |
8503 | withval=$with_isl_lib; | |
81ecdfbb | 8504 | fi |
e28c595f | 8505 | |
e28c595f | 8506 | |
7ec59b9e L |
8507 | # Check whether --enable-isl-version-check was given. |
8508 | if test "${enable_isl_version_check+set}" = set; then : | |
8509 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8510 | else | |
8511 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
8512 | fi |
8513 | ||
8514 | ||
7ec59b9e L |
8515 | # Initialize isllibs and islinc. |
8516 | case $with_isl in | |
8517 | no) | |
8518 | isllibs= | |
8519 | islinc= | |
8520 | ;; | |
8521 | "" | yes) | |
8522 | ;; | |
8523 | *) | |
8524 | isllibs="-L$with_isl/lib" | |
8525 | islinc="-I$with_isl/include" | |
8526 | ;; | |
8527 | esac | |
8528 | if test "x${with_isl_include}" != x ; then | |
8529 | islinc="-I$with_isl_include" | |
8530 | fi | |
8531 | if test "x${with_isl_lib}" != x; then | |
8532 | isllibs="-L$with_isl_lib" | |
8533 | fi | |
8534 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8535 | && test -d ${srcdir}/isl; then | |
8536 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8537 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8538 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8540 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 8541 | fi |
b123da99 | 8542 | |
1b6c0831 | 8543 | isllibs="${isllibs} -lisl" |
b123da99 | 8544 | |
e28c595f | 8545 | |
b3fc79f8 JBG |
8546 | |
8547 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
8548 | _isl_saved_CFLAGS=$CFLAGS | |
8549 | _isl_saved_LDFLAGS=$LDFLAGS | |
8550 | _isl_saved_LIBS=$LIBS | |
8551 | ||
8552 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
8553 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8554 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 8555 | |
bf41f30d NC |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8557 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 8558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 8559 | /* end confdefs.h. */ |
bf41f30d | 8560 | #include <isl/schedule.h> |
b3fc79f8 JBG |
8561 | int |
8562 | main () | |
8563 | { | |
bf41f30d | 8564 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
8565 | ; |
8566 | return 0; | |
8567 | } | |
8568 | _ACEOF | |
1b6c0831 | 8569 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
8570 | gcc_cv_isl=yes |
8571 | else | |
8572 | gcc_cv_isl=no | |
8573 | fi | |
1b6c0831 L |
8574 | rm -f core conftest.err conftest.$ac_objext \ |
8575 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8577 | $as_echo "$gcc_cv_isl" >&6; } | |
8578 | ||
4849dfd8 | 8579 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8581 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
8582 | fi |
8583 | ||
b3fc79f8 JBG |
8584 | CFLAGS=$_isl_saved_CFLAGS |
8585 | LDFLAGS=$_isl_saved_LDFLAGS | |
8586 | LIBS=$_isl_saved_LIBS | |
8587 | fi | |
8588 | ||
8589 | ||
e28c595f | 8590 | |
e28c595f | 8591 | |
7ec59b9e L |
8592 | |
8593 | ||
7ec59b9e L |
8594 | if test "x${with_isl}" = xno; then |
8595 | graphite_requested=no | |
8596 | elif test "x${with_isl}" != x \ | |
8597 | || test "x${with_isl_include}" != x \ | |
8598 | || test "x${with_isl_lib}" != x ; then | |
8599 | graphite_requested=yes | |
8600 | else | |
8601 | graphite_requested=no | |
b123da99 | 8602 | fi |
e28c595f | 8603 | |
e28c595f JM |
8604 | |
8605 | ||
7ec59b9e L |
8606 | if test "${gcc_cv_isl}" = no ; then |
8607 | isllibs= | |
8608 | islinc= | |
8609 | fi | |
e28c595f | 8610 | |
7ec59b9e L |
8611 | if test "${graphite_requested}" = yes \ |
8612 | && test "x${isllibs}" = x \ | |
8613 | && test "x${islinc}" = x ; then | |
e28c595f | 8614 | |
d0ac1c44 | 8615 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 8616 | fi |
e552509b | 8617 | |
e28c595f | 8618 | |
e552509b ILT |
8619 | fi |
8620 | ||
4849dfd8 | 8621 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 8622 | if test "x$with_isl" = xno || |
8e71395b | 8623 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 8624 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 8625 | islinc= |
7ec59b9e L |
8626 | fi |
8627 | ||
8e71395b L |
8628 | |
8629 | ||
8630 | ||
700d40ca ILT |
8631 | # Check for LTO support. |
8632 | # Check whether --enable-lto was given. | |
8633 | if test "${enable_lto+set}" = set; then : | |
8634 | enableval=$enable_lto; enable_lto=$enableval | |
8635 | else | |
8636 | enable_lto=yes; default_enable_lto=yes | |
8637 | fi | |
8638 | ||
8639 | ||
143754cd | 8640 | |
e49e5c92 DK |
8641 | |
8642 | ||
8643 | target_elf=no | |
8644 | case $target in | |
8645 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 8646 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
8647 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8648 | nvptx-*-none) | |
e49e5c92 DK |
8649 | target_elf=no |
8650 | ;; | |
8651 | *) | |
8652 | target_elf=yes | |
8653 | ;; | |
8654 | esac | |
8655 | ||
8656 | if test $target_elf = yes; then : | |
74cea91b DK |
8657 | # ELF platforms build the lto-plugin always. |
8658 | build_lto_plugin=yes | |
e49e5c92 | 8659 | |
e49e5c92 DK |
8660 | else |
8661 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 8662 | case $target in |
bf41f30d | 8663 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 8664 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
8665 | *) enable_lto=no ;; |
8666 | esac | |
e49e5c92 | 8667 | else |
29821356 RW |
8668 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8669 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
8670 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8671 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8672 | # -flto it won't be needed until after installation anyway. | |
8673 | case $target in | |
52cf9762 | 8674 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 8675 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 8676 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
8677 | fi |
8678 | ;; | |
8679 | esac | |
8680 | fi | |
a8eb3f0a | 8681 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 8682 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 8683 | case $target in |
74cea91b | 8684 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
8685 | *) ;; |
8686 | esac | |
74cea91b | 8687 | |
e49e5c92 DK |
8688 | fi |
8689 | ||
700d40ca | 8690 | |
1b6c0831 L |
8691 | # Check whether --enable-linker-plugin-configure-flags was given. |
8692 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8693 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8694 | else | |
8695 | extra_linker_plugin_configure_flags= | |
8696 | fi | |
8697 | ||
8698 | ||
8699 | # Check whether --enable-linker-plugin-flags was given. | |
8700 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8701 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8702 | else | |
8703 | extra_linker_plugin_flags= | |
8704 | fi | |
8705 | ||
8706 | ||
8707 | ||
bf41f30d NC |
8708 | # Enable --enable-host-shared. |
8709 | # Checked early to determine whether jit is an 'all' language | |
8710 | # Check whether --enable-host-shared was given. | |
8711 | if test "${enable_host_shared+set}" = set; then : | |
8712 | enableval=$enable_host_shared; host_shared=$enableval | |
228cf97d AM |
8713 | case $host in |
8714 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8715 | if test x$host_shared != xyes ; then | |
8716 | # PIC is the default, and actually cannot be switched off. | |
8717 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8718 | host_shared=yes | |
8719 | fi ;; | |
8720 | *) ;; | |
8721 | esac | |
bf41f30d | 8722 | else |
228cf97d AM |
8723 | case $host in |
8724 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8725 | *) host_shared=no ;; | |
8726 | esac | |
bf41f30d NC |
8727 | fi |
8728 | ||
8729 | ||
e28c595f | 8730 | |
7ec59b9e | 8731 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 8732 | stage1_languages=,c, |
1d39f329 | 8733 | |
e8a5fa9c | 8734 | # Target libraries that we bootstrap. |
2aa2364a | 8735 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 8736 | |
9e07f89d NN |
8737 | # Figure out what language subdirectories are present. |
8738 | # Look if the user specified --enable-languages="..."; if not, use | |
8739 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8740 | # go away some day. | |
8741 | # NB: embedded tabs in this IF block -- do not untabify | |
8742 | if test -d ${srcdir}/gcc; then | |
8743 | if test x"${enable_languages+set}" != xset; then | |
8744 | if test x"${LANGUAGES+set}" = xset; then | |
8745 | enable_languages="${LANGUAGES}" | |
136bb21f | 8746 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 8747 | else |
bf41f30d | 8748 | enable_languages=default |
9e07f89d NN |
8749 | fi |
8750 | else | |
8751 | if test x"${enable_languages}" = x || | |
8752 | test x"${enable_languages}" = xyes; | |
8753 | then | |
136bb21f | 8754 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
8755 | exit 1 |
8756 | fi | |
8757 | fi | |
8758 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8759 | ||
096f7d00 DE |
8760 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8761 | # and make the substitution. | |
8762 | case ,${enable_languages}, in | |
8763 | *,f95,*) | |
136bb21f | 8764 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
8765 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8766 | ;; | |
8767 | esac | |
8768 | ||
7ec59b9e L |
8769 | # If bootstrapping, C++ must be enabled. |
8770 | case ",$enable_languages,:$enable_bootstrap" in | |
8771 | *,c++,*:*) ;; | |
8772 | *:yes) | |
ffdd6afc ILT |
8773 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8774 | enable_languages="${enable_languages},c++" | |
8775 | else | |
d0ac1c44 | 8776 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
8777 | fi |
8778 | ;; | |
8779 | esac | |
8780 | ||
9e07f89d NN |
8781 | # First scan to see if an enabled language requires some other language. |
8782 | # We assume that a given config-lang.in will list all the language | |
8783 | # front ends it requires, even if some are required indirectly. | |
8784 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8785 | case ${lang_frag} in | |
8786 | ..) ;; | |
8787 | # The odd quoting in the next line works around | |
8788 | # an apparent bug in bash 1.12 on linux. | |
8789 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8790 | *) | |
e552509b ILT |
8791 | # From the config-lang.in, get $language, $lang_requires, and |
8792 | # $lang_requires_boot_languages. | |
9e07f89d NN |
8793 | language= |
8794 | lang_requires= | |
e552509b | 8795 | lang_requires_boot_languages= |
bf41f30d NC |
8796 | # set srcdir during sourcing lang_frag to the gcc dir. |
8797 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8798 | # polutes this shell | |
8799 | saved_srcdir=${srcdir} | |
8800 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8801 | srcdir=${saved_srcdir} | |
e552509b | 8802 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
8803 | case ,${enable_languages}, in |
8804 | *,$other,*) ;; | |
bf41f30d | 8805 | *,default,*) ;; |
9e07f89d NN |
8806 | *,all,*) ;; |
8807 | *,$language,*) | |
8808 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8809 | enable_languages="${enable_languages},${other}" | |
8810 | ;; | |
8811 | esac | |
8812 | done | |
e552509b ILT |
8813 | for other in ${lang_requires_boot_languages} ; do |
8814 | if test "$other" != "c"; then | |
8815 | case ,${enable_stage1_languages}, in | |
8816 | *,$other,*) ;; | |
bf41f30d | 8817 | *,default,*) ;; |
e552509b ILT |
8818 | *,all,*) ;; |
8819 | *) | |
8820 | case ,${enable_languages}, in | |
8821 | *,$language,*) | |
8822 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8823 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8824 | ;; | |
8825 | esac | |
8826 | ;; | |
8827 | esac | |
8828 | fi | |
8829 | done | |
9e07f89d NN |
8830 | ;; |
8831 | esac | |
8832 | done | |
8833 | ||
9b134994 | 8834 | new_enable_languages=,c, |
700d40ca ILT |
8835 | |
8836 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 8837 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
8838 | case ,${enable_languages}, in |
8839 | *,lto,*) ;; | |
8840 | *) enable_languages="${enable_languages},lto" ;; | |
8841 | esac | |
a8eb3f0a | 8842 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 8843 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
8844 | fi |
8845 | fi | |
8846 | ||
1b6c0831 L |
8847 | # If we're building an offloading compiler, add the LTO front end. |
8848 | if test x"$enable_as_accelerator_for" != x ; then | |
8849 | case ,${enable_languages}, in | |
8850 | *,lto,*) ;; | |
8851 | *) enable_languages="${enable_languages},lto" ;; | |
8852 | esac | |
8853 | fi | |
700d40ca | 8854 | |
bf41f30d | 8855 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 8856 | potential_languages=,c, |
9e07f89d | 8857 | |
9e1a94f4 ILT |
8858 | enabled_target_libs= |
8859 | disabled_target_libs= | |
8860 | ||
9e07f89d NN |
8861 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8862 | case ${lang_frag} in | |
8863 | ..) ;; | |
8864 | # The odd quoting in the next line works around | |
8865 | # an apparent bug in bash 1.12 on linux. | |
8866 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8867 | *) | |
c6b750e1 | 8868 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 8869 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
8870 | language= |
8871 | target_libs= | |
8872 | lang_dirs= | |
64ce424c | 8873 | subdir_requires= |
9b134994 PB |
8874 | boot_language=no |
8875 | build_by_default=yes | |
bf41f30d NC |
8876 | # set srcdir during sourcing. See above about save & restore |
8877 | saved_srcdir=${srcdir} | |
8878 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8879 | srcdir=${saved_srcdir} | |
9b134994 PB |
8880 | if test x${language} = x; then |
8881 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8882 | exit 1 | |
8883 | fi | |
8884 | ||
ffdd6afc | 8885 | if test "$language" = "c++"; then |
7ec59b9e | 8886 | boot_language=yes |
e8a5fa9c RW |
8887 | fi |
8888 | ||
8e71395b | 8889 | add_this_lang=no |
bf41f30d NC |
8890 | # C is always enabled, so no need to add it again |
8891 | if test "$language" != "c"; then | |
8892 | case ,${enable_languages}, in | |
8893 | *,${language},*) | |
8894 | # Language was explicitly selected; include it | |
7ec59b9e | 8895 | add_this_lang=yes |
bf41f30d NC |
8896 | ;; |
8897 | *,all,*) | |
8898 | # All languages are enabled | |
8899 | add_this_lang=all | |
8900 | ;; | |
8901 | *,default,*) | |
8902 | # 'default' was selected, select it if it is a default language | |
8e71395b | 8903 | add_this_lang=${build_by_default} |
bf41f30d NC |
8904 | ;; |
8905 | esac | |
8906 | fi | |
4b1cb4fe | 8907 | |
64ce424c | 8908 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 8909 | for i in $subdir_requires; do |
3d3adb43 | 8910 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
8911 | case ${add_this_lang} in |
8912 | yes) | |
64ce424c | 8913 | # Specifically requested language; tell them. |
d0ac1c44 | 8914 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 8915 | ;; |
bf41f30d NC |
8916 | all) |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8918 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8919 | add_this_lang=unsupported | |
8920 | ;; | |
64ce424c PB |
8921 | *) |
8922 | # Silently disable. | |
9b134994 | 8923 | add_this_lang=unsupported |
64ce424c PB |
8924 | ;; |
8925 | esac | |
8926 | done | |
8927 | ||
9b134994 | 8928 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
8929 | case ${add_this_lang}:${language}:${have_gnat} in |
8930 | yes:ada:no) | |
9b134994 | 8931 | # Specifically requested language; tell them. |
d0ac1c44 | 8932 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 8933 | ;; |
bf41f30d NC |
8934 | all:ada:no) |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8936 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8937 | add_this_lang=unsupported | |
8938 | ;; | |
9b134994 PB |
8939 | *:ada:no) |
8940 | # Silently disable. | |
8941 | add_this_lang=unsupported | |
8942 | ;; | |
8943 | esac | |
8944 | ||
228cf97d AM |
8945 | # Disable D if no preexisting GDC is available. |
8946 | case ${add_this_lang}:${language}:${have_gdc} in | |
8947 | yes:d:no) | |
8948 | # Specifically requested language; tell them. | |
8949 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8950 | ;; | |
8951 | all:d:no) | |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8953 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8954 | add_this_lang=unsupported | |
8955 | ;; | |
8956 | *:d:no) | |
8957 | # Silently disable. | |
8958 | add_this_lang=unsupported | |
8959 | ;; | |
8960 | esac | |
8961 | ||
bf41f30d | 8962 | # Disable jit if -enable-host-shared not specified |
228cf97d AM |
8963 | # but not if building for Mingw. All code in Windows |
8964 | # is position independent code (PIC). | |
8965 | case $target in | |
8966 | *mingw*) ;; | |
8967 | *) | |
8968 | case ${add_this_lang}:${language}:${host_shared} in | |
8969 | yes:jit:no) | |
8970 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 8971 | as_fn_error $? " |
bf41f30d NC |
8972 | Enabling language \"jit\" requires --enable-host-shared. |
8973 | ||
8974 | --enable-host-shared typically slows the rest of the compiler down by | |
8975 | a few %, so you must explicitly enable it. | |
8976 | ||
8977 | If you want to build both the jit and the regular compiler, it is often | |
8978 | best to do this via two separate configure/builds, in separate | |
8979 | directories, to avoid imposing the performance cost of | |
8980 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
228cf97d AM |
8981 | ;; |
8982 | all:jit:no) | |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
bf41f30d | 8984 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
228cf97d AM |
8985 | add_this_lang=unsupported |
8986 | ;; | |
8987 | *:jit:no) | |
8988 | # Silently disable. | |
8989 | add_this_lang=unsupported | |
8990 | ;; | |
8991 | esac | |
8992 | ;; | |
8993 | esac | |
bf41f30d NC |
8994 | |
8995 | # Disable a language that is unsupported by the target. | |
8996 | case "${add_this_lang}: $unsupported_languages " in | |
8997 | no:*) ;; | |
8998 | unsupported:*) ;; | |
8999 | *:*" $language "*) | |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9001 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 9002 | add_this_lang=unsupported |
59f7ec45 HPN |
9003 | ;; |
9004 | esac | |
9005 | ||
4b1cb4fe | 9006 | case $add_this_lang in |
9b134994 | 9007 | unsupported) |
9e07f89d | 9008 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
9009 | disabled_target_libs="$disabled_target_libs $target_libs" |
9010 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 9011 | ;; |
9b134994 PB |
9012 | no) |
9013 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
9014 | disabled_target_libs="$disabled_target_libs $target_libs" |
9015 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
9016 | potential_languages="${potential_languages}${language}," |
9017 | ;; | |
bf41f30d | 9018 | all|yes) |
9b134994 PB |
9019 | new_enable_languages="${new_enable_languages}${language}," |
9020 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 9021 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 9022 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
9023 | case "${boot_language}:,$enable_stage1_languages," in |
9024 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 9025 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
9026 | case ",$stage1_languages," in |
9027 | *,$language,* | ,yes, | ,all,) ;; | |
9028 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9029 | esac | |
e8a5fa9c | 9030 | # We need to bootstrap any supporting libraries. |
228cf97d | 9031 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
1d39f329 NN |
9032 | ;; |
9033 | esac | |
9034 | ;; | |
9e07f89d NN |
9035 | esac |
9036 | ;; | |
9037 | esac | |
9038 | done | |
9039 | ||
9e1a94f4 ILT |
9040 | # Add target libraries which are only needed for disabled languages |
9041 | # to noconfigdirs. | |
9042 | if test -n "$disabled_target_libs"; then | |
9043 | for dir in $disabled_target_libs; do | |
9044 | case " $enabled_target_libs " in | |
9045 | *" ${dir} "*) ;; | |
9046 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9047 | esac | |
9048 | done | |
9049 | fi | |
9050 | ||
81ecdfbb RW |
9051 | # Check whether --enable-stage1-languages was given. |
9052 | if test "${enable_stage1_languages+set}" = set; then : | |
9053 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
9054 | ,no,|,,) |
9055 | # Set it to something that will have no effect in the loop below | |
9056 | enable_stage1_languages=c ;; | |
9057 | ,yes,) | |
9058 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9059 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9060 | *,all,*) | |
9061 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9062 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9063 | esac | |
9064 | ||
9065 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9066 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9067 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9068 | case $potential_languages in | |
9069 | *,$i,*) | |
9070 | case $stage1_languages in | |
9071 | *,$i,*) ;; | |
9072 | *) stage1_languages="$stage1_languages$i," ;; | |
9073 | esac ;; | |
9074 | *) | |
9075 | case $missing_languages in | |
9076 | *,$i,*) ;; | |
9077 | *) missing_languages="$missing_languages$i," ;; | |
9078 | esac ;; | |
9079 | esac | |
9080 | done | |
81ecdfbb RW |
9081 | fi |
9082 | ||
9b134994 PB |
9083 | |
9084 | # Remove leading/trailing commas that were added for simplicity | |
9085 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 9086 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
9087 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9088 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9089 | ||
9e07f89d | 9090 | if test "x$missing_languages" != x; then |
d0ac1c44 | 9091 | as_fn_error $? " |
27258dd4 | 9092 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 9093 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 9094 | fi |
9e07f89d NN |
9095 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9096 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 9097 | enable_languages="$new_enable_languages" |
9e07f89d | 9098 | fi |
9b134994 | 9099 | |
c6b750e1 | 9100 | |
81ec575a | 9101 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
9102 | fi |
9103 | ||
a6df5a19 PB |
9104 | # Handle --disable-<component> generically. |
9105 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9106 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
9107 | varname=`echo $dirname | sed -e s/+/_/g` |
9108 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
9109 | noconfigdirs="$noconfigdirs $dir" |
9110 | fi | |
9111 | done | |
9112 | ||
4f0ef2d8 | 9113 | # Check for Boehm's garbage collector |
81ecdfbb RW |
9114 | # Check whether --enable-objc-gc was given. |
9115 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 9116 | enableval=$enable_objc_gc; |
81ecdfbb RW |
9117 | fi |
9118 | ||
4f0ef2d8 | 9119 | |
05a13254 NC |
9120 | # Check whether --with-target-bdw-gc was given. |
9121 | if test "${with_target_bdw_gc+set}" = set; then : | |
9122 | withval=$with_target_bdw_gc; | |
9123 | fi | |
9124 | ||
9125 | ||
9126 | # Check whether --with-target-bdw-gc-include was given. | |
9127 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9128 | withval=$with_target_bdw_gc_include; | |
9129 | fi | |
9130 | ||
9131 | ||
9132 | # Check whether --with-target-bdw-gc-lib was given. | |
9133 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9134 | withval=$with_target_bdw_gc_lib; | |
9135 | fi | |
9136 | ||
9137 | ||
9138 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9140 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9141 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
9143 | $as_echo "using bdw-gc in default locations" >&6; } | |
9144 | else | |
9145 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 9146 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 9147 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 9148 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
9149 | else |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9151 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 9152 | fi |
05a13254 | 9153 | fi |
4f0ef2d8 CD |
9154 | esac |
9155 | ||
bf41f30d | 9156 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 9157 | case ,${enable_languages}, in |
1b6c0831 | 9158 | *,c++,*) |
bf41f30d | 9159 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
9160 | case "${noconfigdirs}" in |
9161 | *target-libstdc++-v3*) | |
bf41f30d | 9162 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
9163 | ;; |
9164 | *) ;; | |
9165 | esac | |
9166 | ;; | |
7ec59b9e | 9167 | *) |
bf41f30d | 9168 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
9169 | ;; |
9170 | esac | |
9171 | ||
d33228c9 AB |
9172 | # If gcc/ is not in the source tree then we'll not be building a |
9173 | # target compiler, assume in that case we don't want to build any | |
9174 | # target libraries or tools. | |
9175 | # | |
9176 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9177 | # this configure script, but don't always have target tools available. | |
9178 | if test ! -d ${srcdir}/gcc; then | |
9179 | skipdirs="${skipdirs} ${target_configdirs}" | |
9180 | fi | |
9181 | ||
caeba88f AL |
9182 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9183 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
9184 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9185 | ||
9186 | notsupp="" | |
9187 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 9188 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
9189 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9190 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9191 | if test -r $srcdir/$dirname/configure ; then | |
9192 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9193 | true | |
9194 | else | |
9195 | notsupp="$notsupp $dir" | |
9196 | fi | |
9197 | fi | |
9198 | fi | |
caeba88f AL |
9199 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9200 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9201 | if test -r $srcdir/$dirname/configure ; then | |
9202 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9203 | true | |
9204 | else | |
9205 | notsupp="$notsupp $dir" | |
9206 | fi | |
9207 | fi | |
9208 | fi | |
9e07f89d NN |
9209 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9210 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9211 | if test -r $srcdir/$dirname/configure ; then | |
9212 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9213 | true | |
9214 | else | |
9215 | notsupp="$notsupp $dir" | |
9216 | fi | |
9217 | fi | |
9218 | fi | |
9219 | done | |
9220 | ||
9e07f89d NN |
9221 | # Quietly strip out all directories which aren't configurable in this tree. |
9222 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9223 | # is now the case. | |
6a9cf61e PB |
9224 | build_configdirs_all="$build_configdirs" |
9225 | build_configdirs= | |
9226 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 9227 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
9228 | if test -f ${srcdir}/$j/configure ; then |
9229 | build_configdirs="${build_configdirs} $i" | |
9230 | fi | |
9231 | done | |
9232 | ||
9e07f89d NN |
9233 | configdirs_all="$configdirs" |
9234 | configdirs= | |
9235 | for i in ${configdirs_all} ; do | |
9236 | if test -f ${srcdir}/$i/configure ; then | |
9237 | configdirs="${configdirs} $i" | |
9238 | fi | |
9239 | done | |
6a9cf61e | 9240 | |
9e07f89d NN |
9241 | target_configdirs_all="$target_configdirs" |
9242 | target_configdirs= | |
9243 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 9244 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
9245 | if test -f ${srcdir}/$j/configure ; then |
9246 | target_configdirs="${target_configdirs} $i" | |
9247 | fi | |
9248 | done | |
9249 | ||
1b6c0831 L |
9250 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9251 | # so we have to add it after the preceding checks. | |
9252 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9253 | then | |
9254 | case " $configdirs " in | |
9255 | *" libiberty "*) | |
9256 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9257 | configdirs="$configdirs libiberty-linker-plugin" | |
9258 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9259 | --with-libiberty=../libiberty-linker-plugin";; | |
9260 | *) | |
d0ac1c44 | 9261 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
9262 | esac |
9263 | fi | |
9264 | ||
9265 | # Sometimes we have special requirements for the host libiberty. | |
9266 | extra_host_libiberty_configure_flags= | |
9267 | case " $configdirs " in | |
a08bdb15 | 9268 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
1b6c0831 L |
9269 | # When these are to be built as shared libraries, the same applies to |
9270 | # libiberty. | |
9271 | extra_host_libiberty_configure_flags=--enable-shared | |
9272 | ;; | |
95127faf TV |
9273 | esac |
9274 | ||
9275 | ||
9276 | # Sometimes we have special requirements for the host zlib. | |
9277 | extra_host_zlib_configure_flags= | |
9278 | case " $configdirs " in | |
e81d5d05 L |
9279 | *" bfd "*) |
9280 | # When bfd is to be built as a shared library, the same applies to | |
9281 | # zlib. | |
9282 | if test "$enable_shared" = "yes"; then | |
9283 | extra_host_zlib_configure_flags=--enable-host-shared | |
9284 | fi | |
9285 | ;; | |
1b6c0831 L |
9286 | esac |
9287 | ||
9288 | ||
9e07f89d NN |
9289 | # Produce a warning message for the subdirs we can't configure. |
9290 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9291 | # FSF releases, it's important to let people know when their machine isn't | |
9292 | # supported by the one or two programs in a package. | |
9293 | ||
9294 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9295 | # If $appdirs is non-empty, at least one of those directories must still | |
9296 | # be configured, or we error out. (E.g., if the gas release supports a | |
9297 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9298 | # pretend that all is well.) | |
9299 | if test -n "$appdirs" ; then | |
9300 | for dir in $appdirs ; do | |
9301 | if test -r $dir/Makefile.in ; then | |
9302 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9303 | appdirs="" | |
9304 | break | |
9305 | fi | |
6a9cf61e | 9306 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
9307 | appdirs="" |
9308 | break | |
9309 | fi | |
9310 | fi | |
9311 | done | |
9312 | if test -n "$appdirs" ; then | |
9313 | echo "*** This configuration is not supported by this package." 1>&2 | |
9314 | exit 1 | |
9315 | fi | |
9316 | fi | |
9317 | # Okay, some application will build, or we don't care to check. Still | |
9318 | # notify of subdirs not getting built. | |
9319 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9320 | echo " ${notsupp}" 1>&2 | |
9321 | echo " (Any other directories should still work fine.)" 1>&2 | |
9322 | fi | |
9323 | ||
9324 | case "$host" in | |
9325 | *msdosdjgpp*) | |
9326 | enable_gdbtk=no ;; | |
9327 | esac | |
9328 | ||
18f6b6ee PB |
9329 | # To find our prefix, in gcc_cv_tool_prefix. |
9330 | ||
9331 | # The user is always right. | |
9332 | if test "${PATH_SEPARATOR+set}" != set; then | |
9333 | echo "#! /bin/sh" >conf$$.sh | |
9334 | echo "exit 0" >>conf$$.sh | |
9335 | chmod +x conf$$.sh | |
9336 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9337 | PATH_SEPARATOR=';' | |
9338 | else | |
9339 | PATH_SEPARATOR=: | |
9340 | fi | |
9341 | rm -f conf$$.sh | |
9342 | fi | |
9343 | ||
9344 | ||
bf41f30d NC |
9345 | get_gcc_base_ver="cat" |
9346 | ||
9347 | # Check whether --with-gcc-major-version-only was given. | |
9348 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9349 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 9350 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
9351 | fi |
9352 | ||
9353 | fi | |
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
18f6b6ee PB |
9359 | |
9360 | if test "x$exec_prefix" = xNONE; then | |
9361 | if test "x$prefix" = xNONE; then | |
9362 | gcc_cv_tool_prefix=$ac_default_prefix | |
9363 | else | |
9364 | gcc_cv_tool_prefix=$prefix | |
9365 | fi | |
9366 | else | |
9367 | gcc_cv_tool_prefix=$exec_prefix | |
9368 | fi | |
9369 | ||
9370 | # If there is no compiler in the tree, use the PATH only. In any | |
9371 | # case, if there is no compiler in the tree nobody should use | |
9372 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9373 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
9374 | if test x$with_gcc_major_version_only = xyes ; then |
9375 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9376 | else | |
9377 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9378 | fi | |
18f6b6ee PB |
9379 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9380 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9381 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9382 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9383 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9384 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9385 | else | |
9386 | gcc_cv_tool_dirs= | |
9387 | fi | |
9388 | ||
9389 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9390 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9391 | fi | |
9392 | ||
9393 | ||
9394 | ||
9e07f89d NN |
9395 | copy_dirs= |
9396 | ||
c6b750e1 | 9397 | |
81ecdfbb RW |
9398 | # Check whether --with-build-sysroot was given. |
9399 | if test "${with_build_sysroot+set}" = set; then : | |
9400 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
9401 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9402 | fi | |
9403 | else | |
9404 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 9405 | fi |
a19b6204 MM |
9406 | |
9407 | ||
8a6ee3ab | 9408 | |
81ecdfbb RW |
9409 | |
9410 | # Check whether --with-debug-prefix-map was given. | |
9411 | if test "${with_debug_prefix_map+set}" = set; then : | |
9412 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
9413 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9414 | for debug_map in $withval; do | |
9415 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9416 | done | |
9417 | fi | |
9418 | else | |
9419 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
9420 | fi |
9421 | ||
8a6ee3ab JM |
9422 | |
9423 | ||
7f6ef0c0 PB |
9424 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9425 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9426 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9427 | # We want to ensure that TARGET libraries (which we know are built with | |
9428 | # gcc) are built with "-O2 -g", so include those options when setting | |
9429 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9430 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9431 | if test "x${is_cross_compiler}" = xyes; then |
9432 | CFLAGS_FOR_TARGET="-g -O2" | |
9433 | else | |
9434 | CFLAGS_FOR_TARGET=$CFLAGS | |
9435 | case " $CFLAGS " in | |
9436 | *" -O2 "*) ;; | |
9437 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9438 | esac | |
9439 | case " $CFLAGS " in | |
9440 | *" -g "* | *" -g3 "*) ;; | |
9441 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9442 | esac | |
9443 | fi | |
7f6ef0c0 PB |
9444 | fi |
9445 | ||
9446 | ||
9447 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9448 | if test "x${is_cross_compiler}" = xyes; then |
9449 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9450 | else | |
9451 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9452 | case " $CXXFLAGS " in | |
9453 | *" -O2 "*) ;; | |
9454 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9455 | esac | |
9456 | case " $CXXFLAGS " in | |
9457 | *" -g "* | *" -g3 "*) ;; | |
9458 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9459 | esac | |
9460 | fi | |
7f6ef0c0 PB |
9461 | fi |
9462 | ||
9463 | ||
91c1f14c DK |
9464 | |
9465 | ||
9e07f89d NN |
9466 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9467 | # the named directory are copied to $(tooldir)/sys-include. | |
9468 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9469 | if test x${is_cross_compiler} = xno ; then | |
9470 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9471 | exit 1 | |
9472 | fi | |
9473 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 9474 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 9475 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
9476 | fi |
9477 | fi | |
9478 | ||
9479 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9480 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9481 | # are permitted. | |
9482 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9483 | if test x${is_cross_compiler} = xno ; then | |
9484 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9485 | exit 1 | |
9486 | fi | |
9487 | if test x"${with_libs}" != xyes ; then | |
9488 | # Copy the libraries in reverse order, so that files in the first named | |
9489 | # library override files in subsequent libraries. | |
18f6b6ee | 9490 | x=${gcc_cv_tool_prefix} |
9e07f89d | 9491 | for l in ${with_libs}; do |
c6b750e1 | 9492 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
9493 | done |
9494 | fi | |
9495 | fi | |
9496 | ||
700d40ca | 9497 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
9498 | # |
9499 | # This is done by determining whether or not the appropriate directory | |
9500 | # is available, and by checking whether or not specific configurations | |
9501 | # have requested that this magic not happen. | |
c6b750e1 DJ |
9502 | # |
9503 | # The command line options always override the explicit settings in | |
136bb21f | 9504 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 9505 | # |
c6b750e1 | 9506 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 9507 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
9508 | # --without-gnu-ld options for the configure script. Similarly, if |
9509 | # the default is to use the included zlib and you don't want to do that, | |
9510 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
9511 | |
9512 | if test x${use_gnu_as} = x && | |
9513 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9514 | with_gnu_as=yes | |
9515 | extra_host_args="$extra_host_args --with-gnu-as" | |
9516 | fi | |
9517 | ||
9518 | if test x${use_gnu_ld} = x && | |
93f9b408 | 9519 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
9520 | with_gnu_ld=yes |
9521 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9522 | fi | |
9523 | ||
700d40ca ILT |
9524 | if test x${use_included_zlib} = x && |
9525 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9526 | : | |
9527 | else | |
9528 | with_system_zlib=yes | |
9529 | extra_host_args="$extra_host_args --with-system-zlib" | |
9530 | fi | |
9531 | ||
2429c060 PB |
9532 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9533 | # can detect this case. | |
9534 | ||
9535 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9536 | with_newlib=yes | |
9537 | extra_host_args="$extra_host_args --with-newlib" | |
9538 | fi | |
9539 | ||
9e07f89d NN |
9540 | # Handle ${copy_dirs} |
9541 | set fnord ${copy_dirs} | |
9542 | shift | |
9543 | while test $# != 0 ; do | |
9544 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9545 | : | |
9546 | else | |
9547 | echo Copying $1 to $2 | |
9548 | ||
9549 | # Use the install script to create the directory and all required | |
9550 | # parent directories. | |
9551 | if test -d $2 ; then | |
9552 | : | |
9553 | else | |
9554 | echo >config.temp | |
9555 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9556 | fi | |
9557 | ||
9558 | # Copy the directory, assuming we have tar. | |
9559 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9560 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9561 | ||
9562 | # It is the responsibility of the user to correctly adjust all | |
9563 | # symlinks. If somebody can figure out how to handle them correctly | |
9564 | # here, feel free to add the code. | |
9565 | ||
9566 | echo $1 > $2/COPIED | |
9567 | fi | |
9568 | shift; shift | |
9569 | done | |
9570 | ||
2429c060 PB |
9571 | # Determine a target-dependent exec_prefix that the installed |
9572 | # gcc will search in. Keep this list sorted by triplet, with | |
9573 | # the *-*-osname triplets last. | |
9574 | md_exec_prefix= | |
9575 | case "${target}" in | |
521ec477 | 9576 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
9577 | md_exec_prefix=/dev/env/DJDIR/bin |
9578 | ;; | |
2429c060 | 9579 | *-*-hpux* | \ |
2429c060 | 9580 | *-*-nto-qnx* | \ |
1f111696 | 9581 | *-*-solaris2*) |
2429c060 PB |
9582 | md_exec_prefix=/usr/ccs/bin |
9583 | ;; | |
9584 | esac | |
9585 | ||
a0da8069 NN |
9586 | extra_arflags_for_target= |
9587 | extra_nmflags_for_target= | |
9588 | extra_ranlibflags_for_target= | |
9589 | target_makefile_frag=/dev/null | |
9590 | case "${target}" in | |
77d7106f AM |
9591 | spu-*-*) |
9592 | target_makefile_frag="config/mt-spu" | |
9593 | ;; | |
a9d58c06 | 9594 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
9595 | target_makefile_frag="config/mt-sde" |
9596 | ;; | |
f3b1e08e RS |
9597 | mipsisa*-*-elfoabi*) |
9598 | target_makefile_frag="config/mt-mips-elfoabi" | |
9599 | ;; | |
e7c8859c RS |
9600 | mips*-*-*linux* | mips*-*-gnu*) |
9601 | target_makefile_frag="config/mt-mips-gnu" | |
9602 | ;; | |
d9e042ac SL |
9603 | nios2-*-elf*) |
9604 | target_makefile_frag="config/mt-nios2-elf" | |
9605 | ;; | |
bf41f30d NC |
9606 | *-*-linux-android*) |
9607 | target_makefile_frag="config/mt-android" | |
9608 | ;; | |
29383458 | 9609 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 9610 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
9611 | ;; |
9612 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 9613 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
9614 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9615 | # harmless if we're using GNU nm or ar. | |
9616 | extra_arflags_for_target=" -X32_64" | |
9617 | extra_nmflags_for_target=" -B -X32_64" | |
9618 | ;; | |
a0da8069 NN |
9619 | esac |
9620 | ||
9621 | alphaieee_frag=/dev/null | |
9622 | case $target in | |
9623 | alpha*-*-*) | |
9624 | # This just makes sure to use the -mieee option to build target libs. | |
9625 | # This should probably be set individually by each library. | |
9626 | alphaieee_frag="config/mt-alphaieee" | |
9627 | ;; | |
9628 | esac | |
9629 | ||
9630 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9631 | # the target libraries, similarly if it is not specified, use -Os | |
9632 | # on selected platforms. | |
9633 | ospace_frag=/dev/null | |
9634 | case "${enable_target_optspace}:${target}" in | |
9635 | yes:*) | |
9636 | ospace_frag="config/mt-ospace" | |
9637 | ;; | |
9638 | :d30v-*) | |
9639 | ospace_frag="config/mt-d30v" | |
9640 | ;; | |
16beab3d | 9641 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
9642 | ospace_frag="config/mt-ospace" |
9643 | ;; | |
9644 | no:* | :*) | |
9645 | ;; | |
9646 | *) | |
9647 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9648 | ;; | |
9649 | esac | |
9650 | ||
a0da8069 NN |
9651 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9652 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 9653 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
9654 | build_tooldir=${tooldir} |
9655 | ||
a0da8069 NN |
9656 | # Create a .gdbinit file which runs the one in srcdir |
9657 | # and tells GDB to look there for source files. | |
9658 | ||
9659 | if test -r ${srcdir}/.gdbinit ; then | |
9660 | case ${srcdir} in | |
9661 | .) ;; | |
9662 | *) cat > ./.gdbinit <<EOF | |
9663 | # ${NO_EDIT} | |
9664 | dir ${srcdir} | |
9665 | dir . | |
9666 | source ${srcdir}/.gdbinit | |
9667 | EOF | |
9668 | ;; | |
9669 | esac | |
9670 | fi | |
9671 | ||
a0da8069 NN |
9672 | # Make sure that the compiler is able to generate an executable. If it |
9673 | # can't, we are probably in trouble. We don't care whether we can run the | |
9674 | # executable--we might be using a cross compiler--we only care whether it | |
9675 | # can be created. At this point the main configure script has set CC. | |
9676 | we_are_ok=no | |
9677 | echo "int main () { return 0; }" > conftest.c | |
9678 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9679 | if test $? = 0 ; then | |
9680 | if test -s conftest || test -s conftest.exe ; then | |
9681 | we_are_ok=yes | |
9682 | fi | |
c6b750e1 | 9683 | fi |
a0da8069 NN |
9684 | case $we_are_ok in |
9685 | no) | |
9686 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9687 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9688 | rm -f conftest* | |
9689 | exit 1 | |
9690 | ;; | |
9691 | esac | |
9692 | rm -f conftest* | |
9693 | ||
3bbd2f8f | 9694 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
9695 | case "${host}" in |
9696 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 9697 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 9698 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
9699 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9700 | esac | |
9701 | ||
3bbd2f8f | 9702 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
9703 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
9704 | # built executables to PATH. | |
3bbd2f8f AL |
9705 | if test "$RPATH_ENVVAR" = PATH; then |
9706 | GCC_SHLIB_SUBDIR=/shlib | |
9707 | else | |
9708 | GCC_SHLIB_SUBDIR= | |
9709 | fi | |
9710 | ||
730af8ee | 9711 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9712 | case $enable_bootstrap in | |
9713 | yes) | |
9714 | bootstrap_suffix=bootstrap | |
9715 | BUILD_CONFIG=bootstrap-debug | |
9716 | ;; | |
9717 | no) | |
9718 | bootstrap_suffix=no-bootstrap | |
9719 | BUILD_CONFIG= | |
9720 | ;; | |
9721 | esac | |
9722 | ||
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9724 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9725 | ||
9726 | ||
9727 | # Check whether --with-build-config was given. | |
9728 | if test "${with_build_config+set}" = set; then : | |
9729 | withval=$with_build_config; case $with_build_config in | |
9730 | yes) with_build_config= ;; | |
9731 | no) with_build_config= BUILD_CONFIG= ;; | |
9732 | esac | |
9733 | fi | |
9734 | ||
9735 | ||
9736 | if test "x${with_build_config}" != x; then | |
9737 | BUILD_CONFIG=$with_build_config | |
9738 | else | |
9739 | case $BUILD_CONFIG in | |
9740 | bootstrap-debug) | |
9741 | if echo "int f (void) { return 0; }" > conftest.c && | |
9742 | ${CC} -c conftest.c && | |
9743 | mv conftest.o conftest.o.g0 && | |
9744 | ${CC} -c -g conftest.c && | |
9745 | mv conftest.o conftest.o.g && | |
9746 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9747 | : | |
9748 | else | |
9749 | BUILD_CONFIG= | |
9750 | fi | |
9751 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9752 | ;; | |
9753 | esac | |
9754 | fi | |
9755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9756 | $as_echo "$BUILD_CONFIG" >&6; } | |
9757 | ||
9758 | ||
9759 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9761 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9762 | # Check whether --enable-vtable-verify was given. | |
9763 | if test "${enable_vtable_verify+set}" = set; then : | |
9764 | enableval=$enable_vtable_verify; case "$enableval" in | |
9765 | yes) enable_vtable_verify=yes ;; | |
9766 | no) enable_vtable_verify=no ;; | |
9767 | *) enable_vtable_verify=no;; | |
9768 | esac | |
9769 | else | |
9770 | enable_vtable_verify=no | |
9771 | fi | |
9772 | ||
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9774 | $as_echo "$enable_vtable_verify" >&6; } | |
9775 | ||
a0da8069 NN |
9776 | # Record target_configdirs and the configure arguments for target and |
9777 | # build configuration in Makefile. | |
9778 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 9779 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 9780 | bootstrap_fixincludes=no |
a0da8069 | 9781 | |
2aa2364a JR |
9782 | # If we are building libgomp, bootstrap it. |
9783 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9784 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9785 | fi | |
9786 | ||
730af8ee | 9787 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9788 | # or bootstrap-ubsan, bootstrap it. | |
9789 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9790 | case "$BUILD_CONFIG" in | |
228cf97d | 9791 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
730af8ee | 9792 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
201f096f | 9793 | bootstrap_fixincludes=yes |
730af8ee | 9794 | ;; |
9795 | esac | |
5eb08693 L |
9796 | fi |
9797 | ||
730af8ee | 9798 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9799 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9800 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
9801 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9802 | fi | |
9803 | ||
228cf97d AM |
9804 | # If we are building libatomic and the list of enabled languages includes the |
9805 | # D frontend, bootstrap it. | |
9806 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9807 | case ,${enable_languages}, in | |
9808 | *,d,*) | |
9809 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9810 | ;; | |
9811 | esac | |
9812 | fi | |
9813 | ||
a0da8069 NN |
9814 | # Determine whether gdb needs tk/tcl or not. |
9815 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9816 | # and in that case we want gdb to be built without tk. Ugh! | |
9817 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9818 | # so we should be able to put the 'maybe's in unconditionally and | |
9819 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9820 | # 100% sure that that's safe though. | |
c180f501 | 9821 | |
675c6968 | 9822 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
9823 | case "$enable_gdbtk" in |
9824 | no) | |
9825 | GDB_TK="" ;; | |
c180f501 AC |
9826 | yes) |
9827 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 9828 | *) |
c180f501 AC |
9829 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9830 | # distro. Eventually someone will fix this and move Insight, nee | |
9831 | # gdbtk to a separate directory. | |
9832 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9833 | GDB_TK="${gdb_tk}" | |
9834 | else | |
9835 | GDB_TK="" | |
9836 | fi | |
9837 | ;; | |
a0da8069 | 9838 | esac |
907be67c DJ |
9839 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9840 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 9841 | |
b6f9caee TT |
9842 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9843 | # else does, only include them if one of these is built. The Makefile | |
9844 | # provides the ordering, so it's enough here to add to the list. | |
9845 | case " ${configdirs} " in | |
9846 | *\ gdb\ *) | |
9847 | configdirs="${configdirs} gnulib gdbsupport" | |
9848 | ;; | |
9849 | *\ gdbserver\ *) | |
9850 | configdirs="${configdirs} gnulib gdbsupport" | |
9851 | ;; | |
5c9e84c2 MF |
9852 | *\ sim\ *) |
9853 | configdirs="${configdirs} gnulib" | |
9854 | ;; | |
b6f9caee | 9855 | esac |
73cc7272 | 9856 | |
6bd3dfaa | 9857 | # Strip out unwanted targets. |
dd12c3a8 NN |
9858 | |
9859 | # While at that, we remove Makefiles if we were started for recursive | |
9860 | # configuration, so that the top-level Makefile reconfigures them, | |
9861 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 9862 | |
06a51eac RW |
9863 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9864 | # but now we're fixing up the Makefile ourselves with the additional | |
9865 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9866 | # extrasub-{build,host,target} not because there is any reason to split | |
9867 | # the substitutions up that way, but only to remain below the limit of | |
9868 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
9869 | |
9870 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9871 | # configure will not warn you at all. | |
dd12c3a8 | 9872 | |
16b1ad29 RW |
9873 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9874 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9875 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 9876 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
9877 | ;; |
9878 | esac | |
9879 | ||
06a51eac | 9880 | extrasub_build= |
6a9cf61e | 9881 | for module in ${build_configdirs} ; do |
498d4a71 CF |
9882 | if test -z "${no_recursion}" \ |
9883 | && test -f ${build_subdir}/${module}/Makefile; then | |
9884 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9885 | rm -f ${build_subdir}/${module}/Makefile | |
9886 | fi | |
06a51eac | 9887 | extrasub_build="$extrasub_build |
498d4a71 CF |
9888 | /^@if build-$module\$/d |
9889 | /^@endif build-$module\$/d | |
4119873a | 9890 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 9891 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
9892 | /^@endif build-$module-$bootstrap_suffix\$/d |
9893 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 9894 | done |
06a51eac | 9895 | extrasub_host= |
498d4a71 | 9896 | for module in ${configdirs} ; do |
80911fe1 | 9897 | if test -z "${no_recursion}"; then |
8cf39b1b | 9898 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
9899 | if test -f ${file}; then |
9900 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9901 | rm -f ${file} | |
9902 | fi | |
9903 | done | |
498d4a71 | 9904 | fi |
201f096f | 9905 | case ${module},${bootstrap_fixincludes} in |
9906 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9907 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9908 | esac | |
06a51eac | 9909 | extrasub_host="$extrasub_host |
498d4a71 CF |
9910 | /^@if $module\$/d |
9911 | /^@endif $module\$/d | |
4119873a | 9912 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 9913 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
9914 | /^@endif $module-$host_bootstrap_suffix\$/d |
9915 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 9916 | done |
06a51eac | 9917 | extrasub_target= |
498d4a71 CF |
9918 | for module in ${target_configdirs} ; do |
9919 | if test -z "${no_recursion}" \ | |
9920 | && test -f ${target_subdir}/${module}/Makefile; then | |
9921 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9922 | rm -f ${target_subdir}/${module}/Makefile | |
9923 | fi | |
e8a5fa9c RW |
9924 | |
9925 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9926 | case $bootstrap_target_libs in | |
9927 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9928 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9929 | esac | |
9930 | ||
06a51eac | 9931 | extrasub_target="$extrasub_target |
498d4a71 CF |
9932 | /^@if target-$module\$/d |
9933 | /^@endif target-$module\$/d | |
4119873a | 9934 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 9935 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
9936 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9937 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
9938 | done |
9939 | ||
06a51eac RW |
9940 | # Do the final fixup along with target modules. |
9941 | extrasub_target="$extrasub_target | |
4119873a AO |
9942 | /^@if /,/^@endif /d |
9943 | /^@unless /d | |
9944 | /^@endunless /d" | |
a0da8069 | 9945 | |
af019bfd L |
9946 | if test "$enable_pgo_build" != "no"; then |
9947 | extrasub_build="$extrasub_build | |
9948 | /^@if pgo-build\$/d | |
9949 | /^@endif pgo-build\$/d" | |
9950 | fi | |
9951 | ||
a0da8069 NN |
9952 | # Create the serialization dependencies. This uses a temporary file. |
9953 | ||
81ecdfbb RW |
9954 | # Check whether --enable-serial-configure was given. |
9955 | if test "${enable_serial_configure+set}" = set; then : | |
9956 | enableval=$enable_serial_configure; | |
9957 | fi | |
e6bfb94a AO |
9958 | |
9959 | ||
1047cb91 DD |
9960 | case ${enable_serial_configure} in |
9961 | yes) | |
9962 | enable_serial_build_configure=yes | |
9963 | enable_serial_host_configure=yes | |
9964 | enable_serial_target_configure=yes | |
9965 | ;; | |
9966 | esac | |
9967 | ||
a0da8069 NN |
9968 | # These force 'configure's to be done one at a time, to avoid problems |
9969 | # with contention over a shared config.cache. | |
9970 | rm -f serdep.tmp | |
e6bfb94a | 9971 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 9972 | olditem= |
1047cb91 | 9973 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
9974 | for item in ${build_configdirs} ; do |
9975 | case ${olditem} in | |
9976 | "") ;; | |
e6bfb94a | 9977 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9978 | esac |
9979 | olditem=${item} | |
9980 | done | |
9981 | olditem= | |
1047cb91 | 9982 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
9983 | for item in ${configdirs} ; do |
9984 | case ${olditem} in | |
9985 | "") ;; | |
e6bfb94a | 9986 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9987 | esac |
9988 | olditem=${item} | |
9989 | done | |
9990 | olditem= | |
1047cb91 | 9991 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
9992 | for item in ${target_configdirs} ; do |
9993 | case ${olditem} in | |
9994 | "") ;; | |
e6bfb94a | 9995 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9996 | esac |
9997 | olditem=${item} | |
9998 | done | |
9999 | serialization_dependencies=serdep.tmp | |
10000 | ||
10001 | ||
e6bfb94a | 10002 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 10003 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
10004 | # might not want to pass down to subconfigures. The exception being |
10005 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10006 | # files altogether, and which should be passed on to subconfigures. | |
10007 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10008 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 10009 | baseargs= |
65b4571a | 10010 | tbaseargs= |
c6b750e1 DJ |
10011 | keep_next=no |
10012 | skip_next=no | |
10013 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
10014 | for ac_arg |
10015 | do | |
c6b750e1 DJ |
10016 | if test X"$skip_next" = X"yes"; then |
10017 | skip_next=no | |
10018 | continue | |
10019 | fi | |
10020 | if test X"$keep_next" = X"yes"; then | |
10021 | case $ac_arg in | |
10022 | *\'*) | |
10023 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10024 | esac | |
10025 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10026 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
10027 | keep_next=no |
10028 | continue | |
10029 | fi | |
10030 | ||
10031 | # Handle separated arguments. Based on the logic generated by | |
10032 | # autoconf 2.59. | |
10033 | case $ac_arg in | |
10034 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10035 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10036 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10037 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10038 | separate_arg=no | |
10039 | ;; | |
10040 | -*) | |
10041 | separate_arg=yes | |
10042 | ;; | |
10043 | *) | |
10044 | separate_arg=no | |
10045 | ;; | |
10046 | esac | |
10047 | ||
65b4571a AO |
10048 | skip_targ=no |
10049 | case $ac_arg in | |
10050 | ||
10051 | --with-* | --without-*) | |
10052 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10053 | ||
10054 | case $libopt in | |
10055 | *[-_]include) | |
10056 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10057 | ;; | |
10058 | *[-_]lib) | |
10059 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10060 | ;; | |
10061 | *) | |
10062 | lib=$libopt | |
10063 | ;; | |
10064 | esac | |
10065 | ||
10066 | ||
10067 | case $lib in | |
1b6c0831 | 10068 | mpc | mpfr | gmp | isl) |
65b4571a AO |
10069 | # If we're processing --with-$lib, --with-$lib-include or |
10070 | # --with-$lib-lib, for one of the libs above, and target is | |
10071 | # different from host, don't pass the current argument to any | |
10072 | # target library's configure. | |
10073 | if test x$is_cross_compiler = xyes; then | |
10074 | skip_targ=yes | |
10075 | fi | |
10076 | ;; | |
10077 | esac | |
10078 | ;; | |
10079 | esac | |
10080 | ||
c6b750e1 | 10081 | case "$ac_arg" in |
30167e0a NC |
10082 | --cache-file=/dev/null | \ |
10083 | -cache-file=/dev/null ) | |
10084 | # Handled here to avoid the test to skip args below. | |
10085 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10086 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
10087 | # Assert: $separate_arg should always be no. |
10088 | keep_next=$separate_arg | |
10089 | ;; | |
c6b750e1 DJ |
10090 | --no*) |
10091 | continue | |
10092 | ;; | |
10093 | --c* | \ | |
10094 | --sr* | \ | |
10095 | --ho* | \ | |
10096 | --bu* | \ | |
10097 | --t* | \ | |
10098 | --program-* | \ | |
10099 | -cache_file* | \ | |
10100 | -srcdir* | \ | |
10101 | -host* | \ | |
10102 | -build* | \ | |
10103 | -target* | \ | |
10104 | -program-prefix* | \ | |
10105 | -program-suffix* | \ | |
10106 | -program-transform-name* ) | |
10107 | skip_next=$separate_arg | |
10108 | continue | |
10109 | ;; | |
10110 | -*) | |
10111 | # An option. Add it. | |
10112 | case $ac_arg in | |
10113 | *\'*) | |
10114 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10115 | esac | |
10116 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
10117 | if test X"$skip_targ" = Xno; then |
10118 | tbaseargs="$tbaseargs '$ac_arg'" | |
10119 | fi | |
c6b750e1 DJ |
10120 | keep_next=$separate_arg |
10121 | ;; | |
10122 | *) | |
10123 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10124 | # pass it down; let the Makefile handle this. | |
10125 | continue | |
10126 | ;; | |
10127 | esac | |
10128 | done | |
10129 | # Remove the initial space we just introduced and, as these will be | |
10130 | # expanded by make, quote '$'. | |
10131 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 10132 | |
f27d4f92 DJ |
10133 | # Add in --program-transform-name, after --program-prefix and |
10134 | # --program-suffix have been applied to it. Autoconf has already | |
10135 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10136 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 10137 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
10138 | # Also, because we want to override the logic in subdir configure scripts to |
10139 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10140 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10141 | ${program_transform_name} | |
10142 | EOF_SED | |
10143 | gcc_transform_name=`cat conftestsed.out` | |
10144 | rm -f conftestsed.out | |
10145 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 10146 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
10147 | if test "$silent" = yes; then |
10148 | baseargs="$baseargs --silent" | |
65b4571a | 10149 | tbaseargs="$tbaseargs --silent" |
2444379b | 10150 | fi |
e5f2f7d9 | 10151 | |
34a0f3cf | 10152 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 10153 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 10154 | |
e5f2f7d9 LM |
10155 | if test "$enable_year2038" = no; then |
10156 | baseargs="$baseargs --disable-year2038" | |
10157 | tbaseargs="$tbaseargs --disable-year2038" | |
10158 | fi | |
10159 | ||
4074d5f2 RW |
10160 | # Record and document user additions to sub configure arguments. |
10161 | ||
10162 | ||
10163 | ||
10164 | ||
a0da8069 NN |
10165 | # For the build-side libraries, we just need to pretend we're native, |
10166 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
10167 | # desired. We can't even use the same cache file for all build-side |
10168 | # libraries, as they're compiled differently; some with C, some with | |
10169 | # C++ or with different feature-enabling options. | |
10170 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
10171 | |
10172 | # For host modules, accept cache file option, or specification as blank. | |
10173 | case "${cache_file}" in | |
10174 | "") # empty | |
10175 | cache_file_option="" ;; | |
10176 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10177 | cache_file_option="--cache-file=${cache_file}" ;; | |
10178 | *) # relative path | |
10179 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10180 | esac | |
10181 | ||
82252c06 NN |
10182 | # Host dirs don't like to share a cache file either, horribly enough. |
10183 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 10184 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 10185 | |
65b4571a | 10186 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
10187 | |
10188 | # Passing a --with-cross-host argument lets the target libraries know | |
10189 | # whether they are being built with a cross-compiler or being built | |
10190 | # native. However, it would be better to use other mechanisms to make the | |
10191 | # sorts of decisions they want to make on this basis. Please consider | |
10192 | # this option to be deprecated. FIXME. | |
10193 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 10194 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
10195 | fi |
10196 | ||
afc0578d | 10197 | # Special user-friendly check for native x86_64-linux build, if |
10198 | # multilib is not explicitly enabled. | |
10199 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10200 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 10201 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 10202 | dev64=no |
10203 | echo "int main () { return 0; }" > conftest.c | |
10204 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10205 | if test $? = 0 ; then | |
10206 | if test -s conftest || test -s conftest.exe ; then | |
10207 | dev64=yes | |
10208 | fi | |
10209 | fi | |
10210 | rm -f conftest* | |
10211 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 10212 | 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 | 10213 | fi |
10214 | ;; | |
10215 | esac | |
10216 | ||
938d2b74 RW |
10217 | # Default to --enable-multilib. |
10218 | if test x${enable_multilib} = x ; then | |
a0da8069 | 10219 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 10220 | fi |
a0da8069 NN |
10221 | |
10222 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10223 | # changed from the earlier setting of with_newlib. | |
10224 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10225 | target_configargs="--with-newlib ${target_configargs}" | |
10226 | fi | |
10227 | ||
95036d20 NN |
10228 | # Different target subdirs use different values of certain variables |
10229 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10230 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10231 | # it doesn't automatically accept command-line overrides of them. | |
10232 | # This means it's not safe for target subdirs to share a cache file, | |
10233 | # which is disgusting, but there you have it. Hopefully this can be | |
10234 | # fixed in future. It's still worthwhile to use a cache file for each | |
10235 | # directory. I think. | |
10236 | ||
ae380b45 MS |
10237 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10238 | # We need to pass --target, as newer autoconf's requires consistency | |
10239 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 10240 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 10241 | |
a0da8069 NN |
10242 | FLAGS_FOR_TARGET= |
10243 | case " $target_configdirs " in | |
10244 | *" newlib "*) | |
10245 | case " $target_configargs " in | |
10246 | *" --with-newlib "*) | |
10247 | case "$target" in | |
1f53ca9a | 10248 | *-cygwin*) |
6d94c122 | 10249 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 10250 | ;; |
a0da8069 NN |
10251 | esac |
10252 | ||
10253 | # If we're not building GCC, don't discard standard headers. | |
10254 | if test -d ${srcdir}/gcc; then | |
10255 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10256 | ||
10257 | if test "${build}" != "${host}"; then | |
10258 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10259 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10260 | # to it. This is right: we don't want to search that directory | |
10261 | # for binaries, but we want the header files in there, so add | |
10262 | # them explicitly. | |
e552509b | 10263 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
10264 | |
10265 | # Someone might think of using the pre-installed headers on | |
10266 | # Canadian crosses, in case the installed compiler is not fully | |
10267 | # compatible with the compiler being built. In this case, it | |
10268 | # would be better to flag an error than risking having | |
10269 | # incompatible object files being constructed. We can't | |
10270 | # guarantee that an error will be flagged, but let's hope the | |
10271 | # compiler will do it, when presented with incompatible header | |
10272 | # files. | |
10273 | fi | |
10274 | fi | |
10275 | ||
10276 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 10277 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
10278 | # Here host == target, so we don't need to build gcc, |
10279 | # so we don't want to discard standard headers. | |
10280 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10281 | ;; | |
10282 | *) | |
10283 | # If we're building newlib, use its generic headers last, but search | |
10284 | # for any libc-related directories first (so make it the last -B | |
10285 | # switch). | |
10286 | 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 |
10287 | |
10288 | # If we're building libgloss, find the startup file, simulator library | |
10289 | # and linker script. | |
10290 | case " $target_configdirs " in | |
10291 | *" libgloss "*) | |
10292 | # Look for startup file, simulator library and maybe linker script. | |
10293 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10294 | # Look for libnosys.a in case the target needs it. | |
10295 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10296 | # Most targets have the linker script in the source directory. | |
10297 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10298 | ;; | |
10299 | esac | |
a0da8069 NN |
10300 | ;; |
10301 | esac | |
10302 | ;; | |
10303 | esac | |
10304 | ;; | |
10305 | esac | |
1f53ca9a | 10306 | |
45055374 | 10307 | case "$target" in |
1f53ca9a AO |
10308 | x86_64-*mingw* | *-w64-mingw*) |
10309 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10310 | # however, use a symlink named 'mingw' in ${prefix} . | |
10311 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10312 | ;; | |
10313 | *-mingw*) | |
10314 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10315 | 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' | |
10316 | ;; | |
45055374 | 10317 | esac |
a0da8069 | 10318 | |
5fbad20a DD |
10319 | # Allow the user to override the flags for |
10320 | # our build compiler if desired. | |
c66487f8 NC |
10321 | if test x"${build}" = x"${host}" ; then |
10322 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
e472ec9f | 10323 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
c66487f8 NC |
10324 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10325 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10326 | fi | |
5fbad20a | 10327 | |
a0da8069 NN |
10328 | # On Canadian crosses, we'll be searching the right directories for |
10329 | # the previously-installed cross compiler, so don't bother to add | |
10330 | # flags for directories within the install tree of the compiler | |
10331 | # being built; programs in there won't even run. | |
10332 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10333 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 10334 | 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 |
10335 | fi |
10336 | ||
10337 | if test "x${use_gnu_ld}" = x && | |
10338 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10339 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 10340 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
10341 | fi |
10342 | ||
a481dbb7 DD |
10343 | # Search for other target-specific linker scripts and such. |
10344 | case "${target}" in | |
4e206d7e DB |
10345 | mep*) |
10346 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10347 | ;; | |
228cf97d AM |
10348 | # The VxWorks support for shared libraries is getting in |
10349 | # incrementally. Make sure it doesn't get activated implicitly: | |
10350 | *vxworks*) | |
10351 | if test "${enable_shared-unset}" = unset ; then | |
10352 | enable_shared=no | |
10353 | # So the build of libraries knows ... | |
10354 | target_configargs="${target_configargs} --disable-shared" | |
10355 | # So gcc knows ... | |
10356 | host_configargs="${host_configargs} --disable-shared" | |
10357 | fi | |
10358 | ;; | |
4e206d7e DB |
10359 | esac |
10360 | ||
a0da8069 | 10361 | # Makefile fragments. |
3e707e94 PB |
10362 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10363 | do | |
10364 | eval fragval=\$$frag | |
10365 | if test $fragval != /dev/null; then | |
10366 | eval $frag=${srcdir}/$fragval | |
10367 | fi | |
10368 | done | |
a0da8069 NN |
10369 | |
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | # Miscellanea: directories, flags, etc. | |
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
3bbd2f8f | 10382 | |
6a9cf61e | 10383 | # Build module lists & subconfigure args. |
a0da8069 NN |
10384 | |
10385 | ||
10386 | ||
be01d343 PB |
10387 | # Host module lists & subconfigure args. |
10388 | ||
10389 | ||
10390 | ||
911e63d0 | 10391 | |
be01d343 PB |
10392 | # Target module lists & subconfigure args. |
10393 | ||
10394 | ||
10395 | ||
10396 | # Build tools. | |
10397 | ||
10398 | ||
10399 | ||
1576798e PB |
10400 | |
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
e472ec9f | 10413 | |
228cf97d AM |
10414 | |
10415 | ||
10416 | ||
be01d343 PB |
10417 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10418 | # on the build machine. These are used if the Makefile can't locate these | |
10419 | # programs in objdir. | |
10420 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10421 | ||
10422 | for ac_prog in 'bison -y' byacc yacc | |
10423 | do | |
c6b750e1 | 10424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10425 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10427 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10428 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 10429 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10430 | else |
10431 | if test -n "$YACC"; then | |
10432 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10433 | else | |
c6b750e1 DJ |
10434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10435 | for as_dir in $PATH | |
10436 | do | |
10437 | IFS=$as_save_IFS | |
10438 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10439 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10441 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 10442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10443 | break 2 |
10444 | fi | |
10445 | done | |
81ecdfbb RW |
10446 | done |
10447 | IFS=$as_save_IFS | |
c6b750e1 | 10448 | |
be01d343 PB |
10449 | fi |
10450 | fi | |
c6b750e1 | 10451 | YACC=$ac_cv_prog_YACC |
be01d343 | 10452 | if test -n "$YACC"; then |
81ecdfbb RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10454 | $as_echo "$YACC" >&6; } | |
be01d343 | 10455 | else |
81ecdfbb RW |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10457 | $as_echo "no" >&6; } | |
be01d343 PB |
10458 | fi |
10459 | ||
81ecdfbb | 10460 | |
c6b750e1 | 10461 | test -n "$YACC" && break |
be01d343 PB |
10462 | done |
10463 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10464 | ||
10465 | case " $build_configdirs " in | |
10466 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
10467 | esac |
10468 | ||
10469 | for ac_prog in bison | |
10470 | do | |
c6b750e1 | 10471 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10472 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10474 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10475 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 10476 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10477 | else |
10478 | if test -n "$BISON"; then | |
10479 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10480 | else | |
c6b750e1 DJ |
10481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10482 | for as_dir in $PATH | |
10483 | do | |
10484 | IFS=$as_save_IFS | |
10485 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10486 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10488 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 10489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10490 | break 2 |
10491 | fi | |
10492 | done | |
81ecdfbb RW |
10493 | done |
10494 | IFS=$as_save_IFS | |
c6b750e1 | 10495 | |
be01d343 PB |
10496 | fi |
10497 | fi | |
c6b750e1 | 10498 | BISON=$ac_cv_prog_BISON |
be01d343 | 10499 | if test -n "$BISON"; then |
81ecdfbb RW |
10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10501 | $as_echo "$BISON" >&6; } | |
be01d343 | 10502 | else |
81ecdfbb RW |
10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10504 | $as_echo "no" >&6; } | |
be01d343 PB |
10505 | fi |
10506 | ||
81ecdfbb | 10507 | |
c6b750e1 | 10508 | test -n "$BISON" && break |
be01d343 PB |
10509 | done |
10510 | test -n "$BISON" || BISON="$MISSING bison" | |
10511 | ||
10512 | case " $build_configdirs " in | |
10513 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10514 | esac | |
10515 | ||
10516 | for ac_prog in gm4 gnum4 m4 | |
10517 | do | |
c6b750e1 | 10518 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10519 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10521 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10522 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 10523 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10524 | else |
10525 | if test -n "$M4"; then | |
10526 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10527 | else | |
c6b750e1 DJ |
10528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10529 | for as_dir in $PATH | |
10530 | do | |
10531 | IFS=$as_save_IFS | |
10532 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10533 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10535 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 10536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10537 | break 2 |
10538 | fi | |
10539 | done | |
81ecdfbb RW |
10540 | done |
10541 | IFS=$as_save_IFS | |
c6b750e1 | 10542 | |
be01d343 PB |
10543 | fi |
10544 | fi | |
c6b750e1 | 10545 | M4=$ac_cv_prog_M4 |
be01d343 | 10546 | if test -n "$M4"; then |
81ecdfbb RW |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10548 | $as_echo "$M4" >&6; } | |
be01d343 | 10549 | else |
81ecdfbb RW |
10550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10551 | $as_echo "no" >&6; } | |
be01d343 PB |
10552 | fi |
10553 | ||
81ecdfbb | 10554 | |
c6b750e1 | 10555 | test -n "$M4" && break |
be01d343 PB |
10556 | done |
10557 | test -n "$M4" || M4="$MISSING m4" | |
10558 | ||
10559 | case " $build_configdirs " in | |
10560 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10561 | esac | |
10562 | ||
10563 | for ac_prog in flex lex | |
10564 | do | |
c6b750e1 | 10565 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10566 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10568 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10569 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 10570 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10571 | else |
10572 | if test -n "$LEX"; then | |
10573 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10574 | else | |
c6b750e1 DJ |
10575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10576 | for as_dir in $PATH | |
10577 | do | |
10578 | IFS=$as_save_IFS | |
10579 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10580 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10581 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10582 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 10583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10584 | break 2 |
10585 | fi | |
10586 | done | |
81ecdfbb RW |
10587 | done |
10588 | IFS=$as_save_IFS | |
c6b750e1 | 10589 | |
be01d343 PB |
10590 | fi |
10591 | fi | |
c6b750e1 | 10592 | LEX=$ac_cv_prog_LEX |
be01d343 | 10593 | if test -n "$LEX"; then |
81ecdfbb RW |
10594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10595 | $as_echo "$LEX" >&6; } | |
be01d343 | 10596 | else |
81ecdfbb RW |
10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10598 | $as_echo "no" >&6; } | |
be01d343 PB |
10599 | fi |
10600 | ||
81ecdfbb | 10601 | |
c6b750e1 | 10602 | test -n "$LEX" && break |
be01d343 PB |
10603 | done |
10604 | test -n "$LEX" || LEX="$MISSING flex" | |
10605 | ||
10606 | case " $build_configdirs " in | |
10607 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10608 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10609 | esac | |
10610 | ||
10611 | for ac_prog in flex | |
10612 | do | |
c6b750e1 | 10613 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10614 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10616 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10617 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 10618 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10619 | else |
10620 | if test -n "$FLEX"; then | |
10621 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10622 | else | |
c6b750e1 DJ |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10624 | for as_dir in $PATH | |
10625 | do | |
10626 | IFS=$as_save_IFS | |
10627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10628 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10630 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 10631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10632 | break 2 |
10633 | fi | |
10634 | done | |
81ecdfbb RW |
10635 | done |
10636 | IFS=$as_save_IFS | |
c6b750e1 | 10637 | |
be01d343 PB |
10638 | fi |
10639 | fi | |
c6b750e1 | 10640 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 10641 | if test -n "$FLEX"; then |
81ecdfbb RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10643 | $as_echo "$FLEX" >&6; } | |
be01d343 | 10644 | else |
81ecdfbb RW |
10645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10646 | $as_echo "no" >&6; } | |
be01d343 PB |
10647 | fi |
10648 | ||
81ecdfbb | 10649 | |
c6b750e1 | 10650 | test -n "$FLEX" && break |
be01d343 PB |
10651 | done |
10652 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10653 | ||
10654 | case " $build_configdirs " in | |
10655 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10656 | esac | |
10657 | ||
10658 | for ac_prog in makeinfo | |
10659 | do | |
c6b750e1 | 10660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10661 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10663 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10664 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 10665 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10666 | else |
10667 | if test -n "$MAKEINFO"; then | |
10668 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10669 | else | |
c6b750e1 DJ |
10670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10671 | for as_dir in $PATH | |
10672 | do | |
10673 | IFS=$as_save_IFS | |
10674 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10675 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10677 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 10678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10679 | break 2 |
10680 | fi | |
10681 | done | |
81ecdfbb RW |
10682 | done |
10683 | IFS=$as_save_IFS | |
c6b750e1 | 10684 | |
be01d343 PB |
10685 | fi |
10686 | fi | |
c6b750e1 | 10687 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 10688 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10690 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 10691 | else |
81ecdfbb RW |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10693 | $as_echo "no" >&6; } | |
be01d343 PB |
10694 | fi |
10695 | ||
81ecdfbb | 10696 | |
c6b750e1 | 10697 | test -n "$MAKEINFO" && break |
be01d343 PB |
10698 | done |
10699 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10700 | ||
10701 | case " $build_configdirs " in | |
10702 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10703 | *) | |
10704 | ||
10ad8ef3 | 10705 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
10706 | # higher, else we use the "missing" dummy. |
10707 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 10708 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
10709 | : |
10710 | else | |
10711 | MAKEINFO="$MISSING makeinfo" | |
10712 | fi | |
10713 | ;; | |
10714 | ||
10715 | esac | |
a0da8069 | 10716 | |
be01d343 | 10717 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 10718 | |
be01d343 PB |
10719 | for ac_prog in expect |
10720 | do | |
c6b750e1 | 10721 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10722 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10724 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10725 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 10726 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10727 | else |
10728 | if test -n "$EXPECT"; then | |
10729 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10730 | else | |
c6b750e1 DJ |
10731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10732 | for as_dir in $PATH | |
10733 | do | |
10734 | IFS=$as_save_IFS | |
10735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10736 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10738 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 10739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10740 | break 2 |
10741 | fi | |
10742 | done | |
81ecdfbb RW |
10743 | done |
10744 | IFS=$as_save_IFS | |
c6b750e1 | 10745 | |
be01d343 PB |
10746 | fi |
10747 | fi | |
c6b750e1 | 10748 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 10749 | if test -n "$EXPECT"; then |
81ecdfbb RW |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10751 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 10752 | else |
81ecdfbb RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10754 | $as_echo "no" >&6; } | |
be01d343 | 10755 | fi |
a0da8069 | 10756 | |
81ecdfbb | 10757 | |
c6b750e1 | 10758 | test -n "$EXPECT" && break |
be01d343 PB |
10759 | done |
10760 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 10761 | |
be01d343 PB |
10762 | case " $configdirs " in |
10763 | *" expect "*) | |
10764 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10765 | ;; | |
10766 | esac | |
a0da8069 | 10767 | |
be01d343 PB |
10768 | for ac_prog in runtest |
10769 | do | |
c6b750e1 | 10770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10771 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10773 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10774 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 10775 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10776 | else |
10777 | if test -n "$RUNTEST"; then | |
10778 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
10779 | else | |
c6b750e1 DJ |
10780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10781 | for as_dir in $PATH | |
10782 | do | |
10783 | IFS=$as_save_IFS | |
10784 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10785 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10787 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 10788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10789 | break 2 |
10790 | fi | |
10791 | done | |
81ecdfbb RW |
10792 | done |
10793 | IFS=$as_save_IFS | |
c6b750e1 | 10794 | |
be01d343 PB |
10795 | fi |
10796 | fi | |
c6b750e1 | 10797 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 10798 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10800 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 10801 | else |
81ecdfbb RW |
10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10803 | $as_echo "no" >&6; } | |
be01d343 | 10804 | fi |
a0da8069 | 10805 | |
81ecdfbb | 10806 | |
c6b750e1 | 10807 | test -n "$RUNTEST" && break |
be01d343 PB |
10808 | done |
10809 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 10810 | |
be01d343 PB |
10811 | case " $configdirs " in |
10812 | *" dejagnu "*) | |
6b89cc21 | 10813 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
10814 | ;; |
10815 | esac | |
a0da8069 NN |
10816 | |
10817 | ||
a0da8069 | 10818 | # Host tools. |
859789af AC |
10819 | ncn_tool_prefix= |
10820 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10821 | ncn_target_tool_prefix= | |
10822 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10823 | ||
9a819804 AO |
10824 | |
10825 | ||
10826 | if test -n "$AR"; then | |
10827 | ac_cv_prog_AR=$AR | |
10828 | elif test -n "$ac_cv_prog_AR"; then | |
10829 | AR=$ac_cv_prog_AR | |
10830 | fi | |
10831 | ||
10832 | if test -n "$ac_cv_prog_AR"; then | |
10833 | for ncn_progname in ar; do | |
10834 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10835 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10837 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10838 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10839 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10840 | else |
10841 | if test -n "$AR"; then | |
10842 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10843 | else | |
10844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10845 | for as_dir in $PATH | |
10846 | do | |
10847 | IFS=$as_save_IFS | |
10848 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10849 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10850 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10851 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10853 | break 2 |
10854 | fi | |
10855 | done | |
81ecdfbb RW |
10856 | done |
10857 | IFS=$as_save_IFS | |
9a819804 AO |
10858 | |
10859 | fi | |
10860 | fi | |
10861 | AR=$ac_cv_prog_AR | |
10862 | if test -n "$AR"; then | |
81ecdfbb RW |
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10864 | $as_echo "$AR" >&6; } | |
9a819804 | 10865 | else |
81ecdfbb RW |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10867 | $as_echo "no" >&6; } | |
9a819804 AO |
10868 | fi |
10869 | ||
81ecdfbb | 10870 | |
9a819804 AO |
10871 | done |
10872 | fi | |
10873 | ||
10874 | for ncn_progname in ar; do | |
05cbd757 PB |
10875 | if test -n "$ncn_tool_prefix"; then |
10876 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10877 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10879 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10880 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10881 | $as_echo_n "(cached) " >&6 |
859789af AC |
10882 | else |
10883 | if test -n "$AR"; then | |
10884 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10885 | else | |
c6b750e1 DJ |
10886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10887 | for as_dir in $PATH | |
10888 | do | |
10889 | IFS=$as_save_IFS | |
10890 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10891 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10893 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 10894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10895 | break 2 |
10896 | fi | |
10897 | done | |
81ecdfbb RW |
10898 | done |
10899 | IFS=$as_save_IFS | |
c6b750e1 | 10900 | |
859789af AC |
10901 | fi |
10902 | fi | |
c6b750e1 | 10903 | AR=$ac_cv_prog_AR |
859789af | 10904 | if test -n "$AR"; then |
81ecdfbb RW |
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10906 | $as_echo "$AR" >&6; } | |
859789af | 10907 | else |
81ecdfbb RW |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10909 | $as_echo "no" >&6; } | |
859789af AC |
10910 | fi |
10911 | ||
81ecdfbb | 10912 | |
05cbd757 PB |
10913 | fi |
10914 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10915 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10916 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10918 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10919 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10920 | $as_echo_n "(cached) " >&6 |
859789af | 10921 | else |
05cbd757 PB |
10922 | if test -n "$AR"; then |
10923 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 10924 | else |
c6b750e1 DJ |
10925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10926 | for as_dir in $PATH | |
10927 | do | |
10928 | IFS=$as_save_IFS | |
10929 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10930 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10932 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10934 | break 2 |
10935 | fi | |
10936 | done | |
81ecdfbb RW |
10937 | done |
10938 | IFS=$as_save_IFS | |
c6b750e1 | 10939 | |
859789af AC |
10940 | fi |
10941 | fi | |
c6b750e1 | 10942 | AR=$ac_cv_prog_AR |
05cbd757 | 10943 | if test -n "$AR"; then |
81ecdfbb RW |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10945 | $as_echo "$AR" >&6; } | |
859789af | 10946 | else |
81ecdfbb RW |
10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10948 | $as_echo "no" >&6; } | |
859789af | 10949 | fi |
c6b750e1 | 10950 | |
81ecdfbb | 10951 | |
05cbd757 PB |
10952 | fi |
10953 | test -n "$ac_cv_prog_AR" && break | |
10954 | done | |
10955 | ||
10956 | if test -z "$ac_cv_prog_AR" ; then | |
10957 | set dummy ar | |
10958 | if test $build = $host ; then | |
10959 | AR="$2" | |
859789af | 10960 | else |
05cbd757 | 10961 | AR="${ncn_tool_prefix}$2" |
859789af | 10962 | fi |
859789af AC |
10963 | fi |
10964 | ||
9a819804 AO |
10965 | |
10966 | ||
10967 | if test -n "$AS"; then | |
10968 | ac_cv_prog_AS=$AS | |
10969 | elif test -n "$ac_cv_prog_AS"; then | |
10970 | AS=$ac_cv_prog_AS | |
10971 | fi | |
10972 | ||
10973 | if test -n "$ac_cv_prog_AS"; then | |
10974 | for ncn_progname in as; do | |
10975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10976 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10979 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 10980 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10981 | else |
10982 | if test -n "$AS"; then | |
10983 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10984 | else | |
10985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10986 | for as_dir in $PATH | |
10987 | do | |
10988 | IFS=$as_save_IFS | |
10989 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10990 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10991 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10992 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 10993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10994 | break 2 |
10995 | fi | |
10996 | done | |
81ecdfbb RW |
10997 | done |
10998 | IFS=$as_save_IFS | |
9a819804 AO |
10999 | |
11000 | fi | |
11001 | fi | |
11002 | AS=$ac_cv_prog_AS | |
11003 | if test -n "$AS"; then | |
81ecdfbb RW |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11005 | $as_echo "$AS" >&6; } | |
9a819804 | 11006 | else |
81ecdfbb RW |
11007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11008 | $as_echo "no" >&6; } | |
9a819804 AO |
11009 | fi |
11010 | ||
81ecdfbb | 11011 | |
9a819804 AO |
11012 | done |
11013 | fi | |
11014 | ||
11015 | for ncn_progname in as; do | |
05cbd757 PB |
11016 | if test -n "$ncn_tool_prefix"; then |
11017 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11018 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11020 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11021 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11022 | $as_echo_n "(cached) " >&6 |
859789af AC |
11023 | else |
11024 | if test -n "$AS"; then | |
11025 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
11026 | else |
11027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11028 | for as_dir in $PATH | |
11029 | do | |
11030 | IFS=$as_save_IFS | |
11031 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11032 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11033 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11034 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11036 | break 2 |
11037 | fi | |
11038 | done | |
81ecdfbb RW |
11039 | done |
11040 | IFS=$as_save_IFS | |
c6b750e1 | 11041 | |
859789af AC |
11042 | fi |
11043 | fi | |
c6b750e1 | 11044 | AS=$ac_cv_prog_AS |
859789af | 11045 | if test -n "$AS"; then |
81ecdfbb RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11047 | $as_echo "$AS" >&6; } | |
859789af | 11048 | else |
81ecdfbb RW |
11049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11050 | $as_echo "no" >&6; } | |
859789af AC |
11051 | fi |
11052 | ||
81ecdfbb | 11053 | |
05cbd757 PB |
11054 | fi |
11055 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11056 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11057 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11059 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11060 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11061 | $as_echo_n "(cached) " >&6 |
859789af | 11062 | else |
05cbd757 PB |
11063 | if test -n "$AS"; then |
11064 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 11065 | else |
c6b750e1 DJ |
11066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11067 | for as_dir in $PATH | |
11068 | do | |
11069 | IFS=$as_save_IFS | |
11070 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11071 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11073 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 11074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11075 | break 2 |
11076 | fi | |
11077 | done | |
81ecdfbb RW |
11078 | done |
11079 | IFS=$as_save_IFS | |
c6b750e1 | 11080 | |
859789af AC |
11081 | fi |
11082 | fi | |
c6b750e1 | 11083 | AS=$ac_cv_prog_AS |
05cbd757 | 11084 | if test -n "$AS"; then |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11086 | $as_echo "$AS" >&6; } | |
859789af | 11087 | else |
81ecdfbb RW |
11088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11089 | $as_echo "no" >&6; } | |
859789af | 11090 | fi |
c6b750e1 | 11091 | |
81ecdfbb | 11092 | |
05cbd757 PB |
11093 | fi |
11094 | test -n "$ac_cv_prog_AS" && break | |
11095 | done | |
11096 | ||
11097 | if test -z "$ac_cv_prog_AS" ; then | |
11098 | set dummy as | |
11099 | if test $build = $host ; then | |
11100 | AS="$2" | |
859789af | 11101 | else |
05cbd757 | 11102 | AS="${ncn_tool_prefix}$2" |
859789af | 11103 | fi |
859789af AC |
11104 | fi |
11105 | ||
9a819804 AO |
11106 | |
11107 | ||
11108 | if test -n "$DLLTOOL"; then | |
11109 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11110 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11111 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11112 | fi | |
11113 | ||
11114 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11115 | for ncn_progname in dlltool; do | |
11116 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11117 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11119 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11120 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11121 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11122 | else |
11123 | if test -n "$DLLTOOL"; then | |
11124 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11125 | else | |
11126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11127 | for as_dir in $PATH | |
11128 | do | |
11129 | IFS=$as_save_IFS | |
11130 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11131 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11133 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11135 | break 2 |
11136 | fi | |
11137 | done | |
81ecdfbb RW |
11138 | done |
11139 | IFS=$as_save_IFS | |
9a819804 AO |
11140 | |
11141 | fi | |
11142 | fi | |
11143 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11144 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11146 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 11147 | else |
81ecdfbb RW |
11148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11149 | $as_echo "no" >&6; } | |
9a819804 AO |
11150 | fi |
11151 | ||
81ecdfbb | 11152 | |
9a819804 AO |
11153 | done |
11154 | fi | |
11155 | ||
11156 | for ncn_progname in dlltool; do | |
05cbd757 PB |
11157 | if test -n "$ncn_tool_prefix"; then |
11158 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11159 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11161 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11162 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11163 | $as_echo_n "(cached) " >&6 |
859789af AC |
11164 | else |
11165 | if test -n "$DLLTOOL"; then | |
11166 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11167 | else | |
c6b750e1 DJ |
11168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11169 | for as_dir in $PATH | |
11170 | do | |
11171 | IFS=$as_save_IFS | |
11172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11173 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11175 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11177 | break 2 |
11178 | fi | |
11179 | done | |
81ecdfbb RW |
11180 | done |
11181 | IFS=$as_save_IFS | |
c6b750e1 | 11182 | |
859789af AC |
11183 | fi |
11184 | fi | |
c6b750e1 | 11185 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 11186 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11188 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11189 | else |
81ecdfbb RW |
11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11191 | $as_echo "no" >&6; } | |
859789af AC |
11192 | fi |
11193 | ||
81ecdfbb | 11194 | |
05cbd757 PB |
11195 | fi |
11196 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11197 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11198 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11200 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11201 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11202 | $as_echo_n "(cached) " >&6 |
859789af | 11203 | else |
05cbd757 PB |
11204 | if test -n "$DLLTOOL"; then |
11205 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 11206 | else |
c6b750e1 DJ |
11207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11208 | for as_dir in $PATH | |
11209 | do | |
11210 | IFS=$as_save_IFS | |
11211 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11212 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11213 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11214 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11216 | break 2 |
11217 | fi | |
11218 | done | |
81ecdfbb RW |
11219 | done |
11220 | IFS=$as_save_IFS | |
c6b750e1 | 11221 | |
859789af AC |
11222 | fi |
11223 | fi | |
c6b750e1 | 11224 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 11225 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11227 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11228 | else |
81ecdfbb RW |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11230 | $as_echo "no" >&6; } | |
859789af | 11231 | fi |
c6b750e1 | 11232 | |
81ecdfbb | 11233 | |
05cbd757 PB |
11234 | fi |
11235 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11236 | done | |
11237 | ||
11238 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11239 | set dummy dlltool | |
11240 | if test $build = $host ; then | |
11241 | DLLTOOL="$2" | |
859789af | 11242 | else |
05cbd757 | 11243 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 11244 | fi |
859789af AC |
11245 | fi |
11246 | ||
9a819804 AO |
11247 | |
11248 | ||
228cf97d AM |
11249 | if test -n "$DSYMUTIL"; then |
11250 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11251 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11252 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11253 | fi | |
11254 | ||
11255 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11256 | for ncn_progname in dsymutil; do | |
11257 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11258 | set dummy ${ncn_progname}; ac_word=$2 | |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11260 | $as_echo_n "checking for $ac_word... " >&6; } | |
11261 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11262 | $as_echo_n "(cached) " >&6 | |
11263 | else | |
11264 | if test -n "$DSYMUTIL"; then | |
11265 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11266 | else | |
11267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11268 | for as_dir in $PATH | |
11269 | do | |
11270 | IFS=$as_save_IFS | |
11271 | test -z "$as_dir" && as_dir=. | |
11272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11274 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11276 | break 2 | |
11277 | fi | |
11278 | done | |
11279 | done | |
11280 | IFS=$as_save_IFS | |
11281 | ||
11282 | fi | |
11283 | fi | |
11284 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11285 | if test -n "$DSYMUTIL"; then | |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11287 | $as_echo "$DSYMUTIL" >&6; } | |
11288 | else | |
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11290 | $as_echo "no" >&6; } | |
11291 | fi | |
11292 | ||
11293 | ||
11294 | done | |
11295 | fi | |
11296 | ||
11297 | for ncn_progname in dsymutil; do | |
11298 | if test -n "$ncn_tool_prefix"; then | |
11299 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11300 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11302 | $as_echo_n "checking for $ac_word... " >&6; } | |
11303 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11304 | $as_echo_n "(cached) " >&6 | |
11305 | else | |
11306 | if test -n "$DSYMUTIL"; then | |
11307 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11308 | else | |
11309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11310 | for as_dir in $PATH | |
11311 | do | |
11312 | IFS=$as_save_IFS | |
11313 | test -z "$as_dir" && as_dir=. | |
11314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11316 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11318 | break 2 | |
11319 | fi | |
11320 | done | |
11321 | done | |
11322 | IFS=$as_save_IFS | |
11323 | ||
11324 | fi | |
11325 | fi | |
11326 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11327 | if test -n "$DSYMUTIL"; then | |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11329 | $as_echo "$DSYMUTIL" >&6; } | |
11330 | else | |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11332 | $as_echo "no" >&6; } | |
11333 | fi | |
11334 | ||
11335 | ||
11336 | fi | |
11337 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11338 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11339 | set dummy ${ncn_progname}; ac_word=$2 | |
11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11341 | $as_echo_n "checking for $ac_word... " >&6; } | |
11342 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11343 | $as_echo_n "(cached) " >&6 | |
11344 | else | |
11345 | if test -n "$DSYMUTIL"; then | |
11346 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11347 | else | |
11348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11349 | for as_dir in $PATH | |
11350 | do | |
11351 | IFS=$as_save_IFS | |
11352 | test -z "$as_dir" && as_dir=. | |
11353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11354 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11355 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11357 | break 2 | |
11358 | fi | |
11359 | done | |
11360 | done | |
11361 | IFS=$as_save_IFS | |
11362 | ||
11363 | fi | |
11364 | fi | |
11365 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11366 | if test -n "$DSYMUTIL"; then | |
11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11368 | $as_echo "$DSYMUTIL" >&6; } | |
11369 | else | |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11371 | $as_echo "no" >&6; } | |
11372 | fi | |
11373 | ||
11374 | ||
11375 | fi | |
11376 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11377 | done | |
11378 | ||
11379 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11380 | set dummy dsymutil | |
11381 | if test $build = $host ; then | |
11382 | DSYMUTIL="$2" | |
11383 | else | |
11384 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11385 | fi | |
11386 | fi | |
11387 | ||
11388 | ||
11389 | ||
9a819804 AO |
11390 | if test -n "$LD"; then |
11391 | ac_cv_prog_LD=$LD | |
11392 | elif test -n "$ac_cv_prog_LD"; then | |
11393 | LD=$ac_cv_prog_LD | |
11394 | fi | |
11395 | ||
11396 | if test -n "$ac_cv_prog_LD"; then | |
11397 | for ncn_progname in ld; do | |
11398 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11399 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11401 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11402 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11403 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11404 | else |
11405 | if test -n "$LD"; then | |
11406 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11407 | else | |
11408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11409 | for as_dir in $PATH | |
11410 | do | |
11411 | IFS=$as_save_IFS | |
11412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11413 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11415 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11417 | break 2 |
11418 | fi | |
11419 | done | |
81ecdfbb RW |
11420 | done |
11421 | IFS=$as_save_IFS | |
9a819804 AO |
11422 | |
11423 | fi | |
11424 | fi | |
11425 | LD=$ac_cv_prog_LD | |
11426 | if test -n "$LD"; then | |
81ecdfbb RW |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11428 | $as_echo "$LD" >&6; } | |
9a819804 | 11429 | else |
81ecdfbb RW |
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11431 | $as_echo "no" >&6; } | |
9a819804 AO |
11432 | fi |
11433 | ||
81ecdfbb | 11434 | |
9a819804 AO |
11435 | done |
11436 | fi | |
11437 | ||
11438 | for ncn_progname in ld; do | |
05cbd757 PB |
11439 | if test -n "$ncn_tool_prefix"; then |
11440 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11441 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11443 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11444 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11445 | $as_echo_n "(cached) " >&6 |
859789af AC |
11446 | else |
11447 | if test -n "$LD"; then | |
11448 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11449 | else | |
c6b750e1 DJ |
11450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11451 | for as_dir in $PATH | |
11452 | do | |
11453 | IFS=$as_save_IFS | |
11454 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11455 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11457 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11459 | break 2 |
11460 | fi | |
11461 | done | |
81ecdfbb RW |
11462 | done |
11463 | IFS=$as_save_IFS | |
c6b750e1 | 11464 | |
859789af AC |
11465 | fi |
11466 | fi | |
c6b750e1 | 11467 | LD=$ac_cv_prog_LD |
859789af | 11468 | if test -n "$LD"; then |
81ecdfbb RW |
11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11470 | $as_echo "$LD" >&6; } | |
859789af | 11471 | else |
81ecdfbb RW |
11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11473 | $as_echo "no" >&6; } | |
859789af AC |
11474 | fi |
11475 | ||
81ecdfbb | 11476 | |
05cbd757 PB |
11477 | fi |
11478 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11480 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11482 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11483 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11484 | $as_echo_n "(cached) " >&6 |
859789af | 11485 | else |
05cbd757 PB |
11486 | if test -n "$LD"; then |
11487 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 11488 | else |
c6b750e1 DJ |
11489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11490 | for as_dir in $PATH | |
11491 | do | |
11492 | IFS=$as_save_IFS | |
11493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11494 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11496 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11498 | break 2 |
11499 | fi | |
11500 | done | |
81ecdfbb RW |
11501 | done |
11502 | IFS=$as_save_IFS | |
c6b750e1 | 11503 | |
859789af AC |
11504 | fi |
11505 | fi | |
c6b750e1 | 11506 | LD=$ac_cv_prog_LD |
05cbd757 | 11507 | if test -n "$LD"; then |
81ecdfbb RW |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11509 | $as_echo "$LD" >&6; } | |
859789af | 11510 | else |
81ecdfbb RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11512 | $as_echo "no" >&6; } | |
859789af | 11513 | fi |
c6b750e1 | 11514 | |
81ecdfbb | 11515 | |
05cbd757 PB |
11516 | fi |
11517 | test -n "$ac_cv_prog_LD" && break | |
11518 | done | |
11519 | ||
11520 | if test -z "$ac_cv_prog_LD" ; then | |
11521 | set dummy ld | |
11522 | if test $build = $host ; then | |
11523 | LD="$2" | |
859789af | 11524 | else |
05cbd757 | 11525 | LD="${ncn_tool_prefix}$2" |
859789af | 11526 | fi |
859789af AC |
11527 | fi |
11528 | ||
9a819804 AO |
11529 | |
11530 | ||
11531 | if test -n "$LIPO"; then | |
11532 | ac_cv_prog_LIPO=$LIPO | |
11533 | elif test -n "$ac_cv_prog_LIPO"; then | |
11534 | LIPO=$ac_cv_prog_LIPO | |
11535 | fi | |
11536 | ||
11537 | if test -n "$ac_cv_prog_LIPO"; then | |
11538 | for ncn_progname in lipo; do | |
11539 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11540 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11542 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11543 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11544 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11545 | else |
11546 | if test -n "$LIPO"; then | |
11547 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11548 | else | |
11549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11550 | for as_dir in $PATH | |
11551 | do | |
11552 | IFS=$as_save_IFS | |
11553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11554 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11556 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11558 | break 2 |
11559 | fi | |
11560 | done | |
81ecdfbb RW |
11561 | done |
11562 | IFS=$as_save_IFS | |
9a819804 AO |
11563 | |
11564 | fi | |
11565 | fi | |
11566 | LIPO=$ac_cv_prog_LIPO | |
11567 | if test -n "$LIPO"; then | |
81ecdfbb RW |
11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11569 | $as_echo "$LIPO" >&6; } | |
9a819804 | 11570 | else |
81ecdfbb RW |
11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11572 | $as_echo "no" >&6; } | |
9a819804 AO |
11573 | fi |
11574 | ||
81ecdfbb | 11575 | |
9a819804 AO |
11576 | done |
11577 | fi | |
11578 | ||
11579 | for ncn_progname in lipo; do | |
be01d343 PB |
11580 | if test -n "$ncn_tool_prefix"; then |
11581 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11582 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11584 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11585 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11586 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11587 | else |
11588 | if test -n "$LIPO"; then | |
11589 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11590 | else | |
c6b750e1 DJ |
11591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11592 | for as_dir in $PATH | |
11593 | do | |
11594 | IFS=$as_save_IFS | |
11595 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11596 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11598 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11600 | break 2 |
11601 | fi | |
11602 | done | |
81ecdfbb RW |
11603 | done |
11604 | IFS=$as_save_IFS | |
c6b750e1 | 11605 | |
be01d343 PB |
11606 | fi |
11607 | fi | |
c6b750e1 | 11608 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11609 | if test -n "$LIPO"; then |
81ecdfbb RW |
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11611 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11612 | else |
81ecdfbb RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11614 | $as_echo "no" >&6; } | |
be01d343 PB |
11615 | fi |
11616 | ||
81ecdfbb | 11617 | |
be01d343 PB |
11618 | fi |
11619 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11620 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11621 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11623 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11624 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11625 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11626 | else |
11627 | if test -n "$LIPO"; then | |
11628 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11629 | else | |
c6b750e1 DJ |
11630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11631 | for as_dir in $PATH | |
11632 | do | |
11633 | IFS=$as_save_IFS | |
11634 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11635 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11637 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11639 | break 2 |
11640 | fi | |
11641 | done | |
81ecdfbb RW |
11642 | done |
11643 | IFS=$as_save_IFS | |
c6b750e1 | 11644 | |
be01d343 PB |
11645 | fi |
11646 | fi | |
c6b750e1 | 11647 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11648 | if test -n "$LIPO"; then |
81ecdfbb RW |
11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11650 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11651 | else |
81ecdfbb RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | $as_echo "no" >&6; } | |
be01d343 | 11654 | fi |
c6b750e1 | 11655 | |
81ecdfbb | 11656 | |
be01d343 PB |
11657 | fi |
11658 | test -n "$ac_cv_prog_LIPO" && break | |
11659 | done | |
11660 | ||
11661 | if test -z "$ac_cv_prog_LIPO" ; then | |
11662 | set dummy lipo | |
11663 | if test $build = $host ; then | |
11664 | LIPO="$2" | |
11665 | else | |
11666 | LIPO="${ncn_tool_prefix}$2" | |
11667 | fi | |
11668 | fi | |
11669 | ||
9a819804 AO |
11670 | |
11671 | ||
11672 | if test -n "$NM"; then | |
11673 | ac_cv_prog_NM=$NM | |
11674 | elif test -n "$ac_cv_prog_NM"; then | |
11675 | NM=$ac_cv_prog_NM | |
11676 | fi | |
11677 | ||
11678 | if test -n "$ac_cv_prog_NM"; then | |
11679 | for ncn_progname in nm; do | |
11680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11681 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11683 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11684 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11685 | $as_echo_n "(cached) " >&6 |
859789af AC |
11686 | else |
11687 | if test -n "$NM"; then | |
11688 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11689 | else | |
c6b750e1 DJ |
11690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11691 | for as_dir in $PATH | |
11692 | do | |
11693 | IFS=$as_save_IFS | |
11694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11695 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11697 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11699 | break 2 |
11700 | fi | |
11701 | done | |
81ecdfbb RW |
11702 | done |
11703 | IFS=$as_save_IFS | |
c6b750e1 | 11704 | |
859789af AC |
11705 | fi |
11706 | fi | |
c6b750e1 | 11707 | NM=$ac_cv_prog_NM |
859789af | 11708 | if test -n "$NM"; then |
81ecdfbb RW |
11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11710 | $as_echo "$NM" >&6; } | |
859789af | 11711 | else |
81ecdfbb RW |
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11713 | $as_echo "no" >&6; } | |
859789af AC |
11714 | fi |
11715 | ||
81ecdfbb | 11716 | |
9a819804 AO |
11717 | done |
11718 | fi | |
11719 | ||
11720 | for ncn_progname in nm; do | |
11721 | if test -n "$ncn_tool_prefix"; then | |
11722 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11723 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11725 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11726 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11727 | $as_echo_n "(cached) " >&6 |
859789af | 11728 | else |
05cbd757 PB |
11729 | if test -n "$NM"; then |
11730 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 11731 | else |
c6b750e1 DJ |
11732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11733 | for as_dir in $PATH | |
11734 | do | |
11735 | IFS=$as_save_IFS | |
11736 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11737 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11739 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11741 | break 2 |
11742 | fi | |
11743 | done | |
81ecdfbb RW |
11744 | done |
11745 | IFS=$as_save_IFS | |
c6b750e1 | 11746 | |
859789af AC |
11747 | fi |
11748 | fi | |
c6b750e1 | 11749 | NM=$ac_cv_prog_NM |
05cbd757 | 11750 | if test -n "$NM"; then |
81ecdfbb RW |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11752 | $as_echo "$NM" >&6; } | |
859789af | 11753 | else |
81ecdfbb RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11755 | $as_echo "no" >&6; } | |
859789af | 11756 | fi |
c6b750e1 | 11757 | |
81ecdfbb | 11758 | |
05cbd757 | 11759 | fi |
9a819804 AO |
11760 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11761 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11762 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11764 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11765 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11766 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11767 | else |
11768 | if test -n "$NM"; then | |
11769 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11770 | else | |
11771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11772 | for as_dir in $PATH | |
11773 | do | |
11774 | IFS=$as_save_IFS | |
11775 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11776 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11778 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11780 | break 2 |
11781 | fi | |
11782 | done | |
81ecdfbb RW |
11783 | done |
11784 | IFS=$as_save_IFS | |
9a819804 AO |
11785 | |
11786 | fi | |
11787 | fi | |
11788 | NM=$ac_cv_prog_NM | |
11789 | if test -n "$NM"; then | |
81ecdfbb RW |
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11791 | $as_echo "$NM" >&6; } | |
9a819804 | 11792 | else |
81ecdfbb RW |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11794 | $as_echo "no" >&6; } | |
9a819804 AO |
11795 | fi |
11796 | ||
81ecdfbb | 11797 | |
9a819804 AO |
11798 | fi |
11799 | test -n "$ac_cv_prog_NM" && break | |
11800 | done | |
11801 | ||
11802 | if test -z "$ac_cv_prog_NM" ; then | |
11803 | set dummy nm | |
11804 | if test $build = $host ; then | |
11805 | NM="$2" | |
11806 | else | |
11807 | NM="${ncn_tool_prefix}$2" | |
11808 | fi | |
11809 | fi | |
11810 | ||
11811 | ||
11812 | ||
11813 | if test -n "$RANLIB"; then | |
11814 | ac_cv_prog_RANLIB=$RANLIB | |
11815 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11816 | RANLIB=$ac_cv_prog_RANLIB | |
11817 | fi | |
11818 | ||
11819 | if test -n "$ac_cv_prog_RANLIB"; then | |
11820 | for ncn_progname in ranlib; do | |
11821 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11822 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11824 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11825 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11826 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11827 | else |
11828 | if test -n "$RANLIB"; then | |
11829 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11830 | else | |
11831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11832 | for as_dir in $PATH | |
11833 | do | |
11834 | IFS=$as_save_IFS | |
11835 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11836 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11837 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11838 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11840 | break 2 |
11841 | fi | |
11842 | done | |
81ecdfbb RW |
11843 | done |
11844 | IFS=$as_save_IFS | |
9a819804 AO |
11845 | |
11846 | fi | |
11847 | fi | |
11848 | RANLIB=$ac_cv_prog_RANLIB | |
11849 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11851 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 11852 | else |
81ecdfbb RW |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11854 | $as_echo "no" >&6; } | |
9a819804 AO |
11855 | fi |
11856 | ||
81ecdfbb | 11857 | |
9a819804 AO |
11858 | done |
11859 | fi | |
859789af | 11860 | |
9a819804 | 11861 | for ncn_progname in ranlib; do |
05cbd757 PB |
11862 | if test -n "$ncn_tool_prefix"; then |
11863 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11864 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11866 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11867 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11868 | $as_echo_n "(cached) " >&6 |
859789af AC |
11869 | else |
11870 | if test -n "$RANLIB"; then | |
11871 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11872 | else | |
c6b750e1 DJ |
11873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11874 | for as_dir in $PATH | |
11875 | do | |
11876 | IFS=$as_save_IFS | |
11877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11878 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11880 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11882 | break 2 |
11883 | fi | |
11884 | done | |
81ecdfbb RW |
11885 | done |
11886 | IFS=$as_save_IFS | |
c6b750e1 | 11887 | |
859789af AC |
11888 | fi |
11889 | fi | |
c6b750e1 | 11890 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 11891 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11893 | $as_echo "$RANLIB" >&6; } | |
859789af | 11894 | else |
81ecdfbb RW |
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11896 | $as_echo "no" >&6; } | |
859789af AC |
11897 | fi |
11898 | ||
81ecdfbb | 11899 | |
05cbd757 PB |
11900 | fi |
11901 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11902 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11903 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11905 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11906 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11907 | $as_echo_n "(cached) " >&6 |
859789af | 11908 | else |
05cbd757 PB |
11909 | if test -n "$RANLIB"; then |
11910 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 11911 | else |
c6b750e1 DJ |
11912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11913 | for as_dir in $PATH | |
11914 | do | |
11915 | IFS=$as_save_IFS | |
11916 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11917 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11919 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11921 | break 2 |
11922 | fi | |
11923 | done | |
81ecdfbb RW |
11924 | done |
11925 | IFS=$as_save_IFS | |
c6b750e1 | 11926 | |
859789af AC |
11927 | fi |
11928 | fi | |
c6b750e1 | 11929 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 11930 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11932 | $as_echo "$RANLIB" >&6; } | |
859789af | 11933 | else |
81ecdfbb RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11935 | $as_echo "no" >&6; } | |
859789af | 11936 | fi |
c6b750e1 | 11937 | |
81ecdfbb | 11938 | |
859789af | 11939 | fi |
05cbd757 PB |
11940 | test -n "$ac_cv_prog_RANLIB" && break |
11941 | done | |
11942 | ||
11943 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 11944 | RANLIB="true" |
859789af AC |
11945 | fi |
11946 | ||
9a819804 AO |
11947 | |
11948 | ||
11949 | if test -n "$STRIP"; then | |
11950 | ac_cv_prog_STRIP=$STRIP | |
11951 | elif test -n "$ac_cv_prog_STRIP"; then | |
11952 | STRIP=$ac_cv_prog_STRIP | |
11953 | fi | |
11954 | ||
11955 | if test -n "$ac_cv_prog_STRIP"; then | |
11956 | for ncn_progname in strip; do | |
11957 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11958 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11960 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11961 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 11962 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11963 | else |
11964 | if test -n "$STRIP"; then | |
11965 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11966 | else | |
11967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11968 | for as_dir in $PATH | |
11969 | do | |
11970 | IFS=$as_save_IFS | |
11971 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11972 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11974 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 11975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11976 | break 2 |
11977 | fi | |
11978 | done | |
81ecdfbb RW |
11979 | done |
11980 | IFS=$as_save_IFS | |
9a819804 AO |
11981 | |
11982 | fi | |
11983 | fi | |
11984 | STRIP=$ac_cv_prog_STRIP | |
11985 | if test -n "$STRIP"; then | |
81ecdfbb RW |
11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11987 | $as_echo "$STRIP" >&6; } | |
9a819804 | 11988 | else |
81ecdfbb RW |
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11990 | $as_echo "no" >&6; } | |
9a819804 AO |
11991 | fi |
11992 | ||
81ecdfbb | 11993 | |
9a819804 AO |
11994 | done |
11995 | fi | |
11996 | ||
11997 | for ncn_progname in strip; do | |
be01d343 PB |
11998 | if test -n "$ncn_tool_prefix"; then |
11999 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12000 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12002 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12003 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12004 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12005 | else |
12006 | if test -n "$STRIP"; then | |
12007 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12008 | else | |
c6b750e1 DJ |
12009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12010 | for as_dir in $PATH | |
12011 | do | |
12012 | IFS=$as_save_IFS | |
12013 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12014 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12016 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12018 | break 2 |
12019 | fi | |
12020 | done | |
81ecdfbb RW |
12021 | done |
12022 | IFS=$as_save_IFS | |
c6b750e1 | 12023 | |
be01d343 PB |
12024 | fi |
12025 | fi | |
c6b750e1 | 12026 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12027 | if test -n "$STRIP"; then |
81ecdfbb RW |
12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12029 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12030 | else |
81ecdfbb RW |
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12032 | $as_echo "no" >&6; } | |
be01d343 PB |
12033 | fi |
12034 | ||
81ecdfbb | 12035 | |
be01d343 PB |
12036 | fi |
12037 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12038 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12039 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12041 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12042 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12043 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12044 | else |
12045 | if test -n "$STRIP"; then | |
12046 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12047 | else | |
c6b750e1 DJ |
12048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12049 | for as_dir in $PATH | |
12050 | do | |
12051 | IFS=$as_save_IFS | |
12052 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12053 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12055 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 12056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12057 | break 2 |
12058 | fi | |
12059 | done | |
81ecdfbb RW |
12060 | done |
12061 | IFS=$as_save_IFS | |
c6b750e1 | 12062 | |
be01d343 PB |
12063 | fi |
12064 | fi | |
c6b750e1 | 12065 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12066 | if test -n "$STRIP"; then |
81ecdfbb RW |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12068 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12069 | else |
81ecdfbb RW |
12070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12071 | $as_echo "no" >&6; } | |
be01d343 | 12072 | fi |
c6b750e1 | 12073 | |
81ecdfbb | 12074 | |
be01d343 PB |
12075 | fi |
12076 | test -n "$ac_cv_prog_STRIP" && break | |
12077 | done | |
12078 | ||
12079 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 12080 | STRIP="true" |
be01d343 PB |
12081 | fi |
12082 | ||
9a819804 AO |
12083 | |
12084 | ||
12085 | if test -n "$WINDRES"; then | |
12086 | ac_cv_prog_WINDRES=$WINDRES | |
12087 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12088 | WINDRES=$ac_cv_prog_WINDRES | |
12089 | fi | |
12090 | ||
12091 | if test -n "$ac_cv_prog_WINDRES"; then | |
12092 | for ncn_progname in windres; do | |
12093 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12094 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12096 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12097 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12098 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12099 | else |
12100 | if test -n "$WINDRES"; then | |
12101 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12102 | else | |
12103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12104 | for as_dir in $PATH | |
12105 | do | |
12106 | IFS=$as_save_IFS | |
12107 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12108 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12110 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12112 | break 2 |
12113 | fi | |
12114 | done | |
81ecdfbb RW |
12115 | done |
12116 | IFS=$as_save_IFS | |
9a819804 AO |
12117 | |
12118 | fi | |
12119 | fi | |
12120 | WINDRES=$ac_cv_prog_WINDRES | |
12121 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12123 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 12124 | else |
81ecdfbb RW |
12125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12126 | $as_echo "no" >&6; } | |
9a819804 AO |
12127 | fi |
12128 | ||
81ecdfbb | 12129 | |
9a819804 AO |
12130 | done |
12131 | fi | |
12132 | ||
12133 | for ncn_progname in windres; do | |
05cbd757 PB |
12134 | if test -n "$ncn_tool_prefix"; then |
12135 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12136 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12138 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12139 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12140 | $as_echo_n "(cached) " >&6 |
859789af AC |
12141 | else |
12142 | if test -n "$WINDRES"; then | |
12143 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12144 | else | |
c6b750e1 DJ |
12145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12146 | for as_dir in $PATH | |
12147 | do | |
12148 | IFS=$as_save_IFS | |
12149 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12150 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12152 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12154 | break 2 |
12155 | fi | |
12156 | done | |
81ecdfbb RW |
12157 | done |
12158 | IFS=$as_save_IFS | |
c6b750e1 | 12159 | |
859789af AC |
12160 | fi |
12161 | fi | |
c6b750e1 | 12162 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 12163 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12165 | $as_echo "$WINDRES" >&6; } | |
859789af | 12166 | else |
81ecdfbb RW |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12168 | $as_echo "no" >&6; } | |
859789af AC |
12169 | fi |
12170 | ||
81ecdfbb | 12171 | |
05cbd757 PB |
12172 | fi |
12173 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12174 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12175 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12177 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12178 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12179 | $as_echo_n "(cached) " >&6 |
859789af | 12180 | else |
05cbd757 PB |
12181 | if test -n "$WINDRES"; then |
12182 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 12183 | else |
c6b750e1 DJ |
12184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12185 | for as_dir in $PATH | |
12186 | do | |
12187 | IFS=$as_save_IFS | |
12188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12189 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12191 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12193 | break 2 |
12194 | fi | |
12195 | done | |
81ecdfbb RW |
12196 | done |
12197 | IFS=$as_save_IFS | |
c6b750e1 | 12198 | |
859789af AC |
12199 | fi |
12200 | fi | |
c6b750e1 | 12201 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 12202 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12204 | $as_echo "$WINDRES" >&6; } | |
859789af | 12205 | else |
81ecdfbb RW |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12207 | $as_echo "no" >&6; } | |
859789af | 12208 | fi |
c6b750e1 | 12209 | |
81ecdfbb | 12210 | |
05cbd757 PB |
12211 | fi |
12212 | test -n "$ac_cv_prog_WINDRES" && break | |
12213 | done | |
12214 | ||
12215 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12216 | set dummy windres | |
12217 | if test $build = $host ; then | |
12218 | WINDRES="$2" | |
859789af | 12219 | else |
05cbd757 | 12220 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 12221 | fi |
859789af AC |
12222 | fi |
12223 | ||
9a819804 AO |
12224 | |
12225 | ||
0c24b341 NC |
12226 | if test -n "$WINDMC"; then |
12227 | ac_cv_prog_WINDMC=$WINDMC | |
12228 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12229 | WINDMC=$ac_cv_prog_WINDMC | |
12230 | fi | |
12231 | ||
12232 | if test -n "$ac_cv_prog_WINDMC"; then | |
12233 | for ncn_progname in windmc; do | |
12234 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12235 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12237 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12238 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12239 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12240 | else |
12241 | if test -n "$WINDMC"; then | |
12242 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12243 | else | |
12244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12245 | for as_dir in $PATH | |
12246 | do | |
12247 | IFS=$as_save_IFS | |
12248 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12249 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12250 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12251 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12253 | break 2 |
12254 | fi | |
12255 | done | |
81ecdfbb RW |
12256 | done |
12257 | IFS=$as_save_IFS | |
0c24b341 NC |
12258 | |
12259 | fi | |
12260 | fi | |
12261 | WINDMC=$ac_cv_prog_WINDMC | |
12262 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12264 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12265 | else |
81ecdfbb RW |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12267 | $as_echo "no" >&6; } | |
0c24b341 NC |
12268 | fi |
12269 | ||
81ecdfbb | 12270 | |
0c24b341 NC |
12271 | done |
12272 | fi | |
12273 | ||
12274 | for ncn_progname in windmc; do | |
12275 | if test -n "$ncn_tool_prefix"; then | |
12276 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12277 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12279 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12280 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12281 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12282 | else |
12283 | if test -n "$WINDMC"; then | |
12284 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12285 | else | |
12286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12287 | for as_dir in $PATH | |
12288 | do | |
12289 | IFS=$as_save_IFS | |
12290 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12291 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12293 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12295 | break 2 |
12296 | fi | |
12297 | done | |
81ecdfbb RW |
12298 | done |
12299 | IFS=$as_save_IFS | |
0c24b341 NC |
12300 | |
12301 | fi | |
12302 | fi | |
12303 | WINDMC=$ac_cv_prog_WINDMC | |
12304 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12306 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12307 | else |
81ecdfbb RW |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12309 | $as_echo "no" >&6; } | |
0c24b341 NC |
12310 | fi |
12311 | ||
81ecdfbb | 12312 | |
0c24b341 NC |
12313 | fi |
12314 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12315 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12316 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12318 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12319 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12320 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12321 | else |
12322 | if test -n "$WINDMC"; then | |
12323 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12324 | else | |
12325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12326 | for as_dir in $PATH | |
12327 | do | |
12328 | IFS=$as_save_IFS | |
12329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12330 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12332 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12334 | break 2 |
12335 | fi | |
12336 | done | |
81ecdfbb RW |
12337 | done |
12338 | IFS=$as_save_IFS | |
0c24b341 NC |
12339 | |
12340 | fi | |
12341 | fi | |
12342 | WINDMC=$ac_cv_prog_WINDMC | |
12343 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12345 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12346 | else |
81ecdfbb RW |
12347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12348 | $as_echo "no" >&6; } | |
0c24b341 NC |
12349 | fi |
12350 | ||
81ecdfbb | 12351 | |
0c24b341 NC |
12352 | fi |
12353 | test -n "$ac_cv_prog_WINDMC" && break | |
12354 | done | |
12355 | ||
12356 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12357 | set dummy windmc | |
12358 | if test $build = $host ; then | |
12359 | WINDMC="$2" | |
12360 | else | |
12361 | WINDMC="${ncn_tool_prefix}$2" | |
12362 | fi | |
12363 | fi | |
12364 | ||
12365 | ||
12366 | ||
9a819804 AO |
12367 | if test -n "$OBJCOPY"; then |
12368 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12369 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12370 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12371 | fi | |
12372 | ||
12373 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12374 | for ncn_progname in objcopy; do | |
12375 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12376 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12378 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12379 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 12380 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12381 | else |
12382 | if test -n "$OBJCOPY"; then | |
12383 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12384 | else | |
12385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12386 | for as_dir in $PATH | |
12387 | do | |
12388 | IFS=$as_save_IFS | |
12389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12390 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12392 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 12393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12394 | break 2 |
12395 | fi | |
12396 | done | |
81ecdfbb RW |
12397 | done |
12398 | IFS=$as_save_IFS | |
9a819804 AO |
12399 | |
12400 | fi | |
12401 | fi | |
228cf97d AM |
12402 | OBJCOPY=$ac_cv_prog_OBJCOPY |
12403 | if test -n "$OBJCOPY"; then | |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12405 | $as_echo "$OBJCOPY" >&6; } | |
12406 | else | |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12408 | $as_echo "no" >&6; } | |
12409 | fi | |
12410 | ||
12411 | ||
12412 | done | |
12413 | fi | |
12414 | ||
12415 | for ncn_progname in objcopy; do | |
12416 | if test -n "$ncn_tool_prefix"; then | |
12417 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12418 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12420 | $as_echo_n "checking for $ac_word... " >&6; } | |
12421 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12422 | $as_echo_n "(cached) " >&6 | |
12423 | else | |
12424 | if test -n "$OBJCOPY"; then | |
12425 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12426 | else | |
12427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12428 | for as_dir in $PATH | |
12429 | do | |
12430 | IFS=$as_save_IFS | |
12431 | test -z "$as_dir" && as_dir=. | |
12432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12434 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
12435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12436 | break 2 | |
12437 | fi | |
12438 | done | |
12439 | done | |
12440 | IFS=$as_save_IFS | |
12441 | ||
12442 | fi | |
12443 | fi | |
12444 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12445 | if test -n "$OBJCOPY"; then | |
12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12447 | $as_echo "$OBJCOPY" >&6; } | |
12448 | else | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12450 | $as_echo "no" >&6; } | |
12451 | fi | |
12452 | ||
12453 | ||
12454 | fi | |
12455 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12456 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12457 | set dummy ${ncn_progname}; ac_word=$2 | |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12459 | $as_echo_n "checking for $ac_word... " >&6; } | |
12460 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12461 | $as_echo_n "(cached) " >&6 | |
12462 | else | |
12463 | if test -n "$OBJCOPY"; then | |
12464 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12465 | else | |
12466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12467 | for as_dir in $PATH | |
12468 | do | |
12469 | IFS=$as_save_IFS | |
12470 | test -z "$as_dir" && as_dir=. | |
12471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12472 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12473 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
12474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12475 | break 2 | |
12476 | fi | |
12477 | done | |
12478 | done | |
12479 | IFS=$as_save_IFS | |
12480 | ||
12481 | fi | |
12482 | fi | |
12483 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12484 | if test -n "$OBJCOPY"; then | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12486 | $as_echo "$OBJCOPY" >&6; } | |
12487 | else | |
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12489 | $as_echo "no" >&6; } | |
12490 | fi | |
12491 | ||
12492 | ||
12493 | fi | |
12494 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12495 | done | |
12496 | ||
12497 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12498 | set dummy objcopy | |
12499 | if test $build = $host ; then | |
12500 | OBJCOPY="$2" | |
12501 | else | |
12502 | OBJCOPY="${ncn_tool_prefix}$2" | |
12503 | fi | |
12504 | fi | |
12505 | ||
12506 | ||
12507 | ||
12508 | if test -n "$OBJDUMP"; then | |
12509 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12510 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12511 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12512 | fi | |
12513 | ||
12514 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12515 | for ncn_progname in objdump; do | |
12516 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12517 | set dummy ${ncn_progname}; ac_word=$2 | |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12519 | $as_echo_n "checking for $ac_word... " >&6; } | |
12520 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
12521 | $as_echo_n "(cached) " >&6 | |
12522 | else | |
12523 | if test -n "$OBJDUMP"; then | |
12524 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12525 | else | |
12526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12527 | for as_dir in $PATH | |
12528 | do | |
12529 | IFS=$as_save_IFS | |
12530 | test -z "$as_dir" && as_dir=. | |
12531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12533 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
12534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12535 | break 2 | |
12536 | fi | |
12537 | done | |
12538 | done | |
12539 | IFS=$as_save_IFS | |
12540 | ||
12541 | fi | |
12542 | fi | |
12543 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12544 | if test -n "$OBJDUMP"; then | |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12546 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 12547 | else |
81ecdfbb RW |
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12549 | $as_echo "no" >&6; } | |
9a819804 AO |
12550 | fi |
12551 | ||
81ecdfbb | 12552 | |
9a819804 AO |
12553 | done |
12554 | fi | |
12555 | ||
228cf97d | 12556 | for ncn_progname in objdump; do |
05cbd757 PB |
12557 | if test -n "$ncn_tool_prefix"; then |
12558 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12559 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12561 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12562 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12563 | $as_echo_n "(cached) " >&6 |
859789af | 12564 | else |
228cf97d AM |
12565 | if test -n "$OBJDUMP"; then |
12566 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12567 | else |
c6b750e1 DJ |
12568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12569 | for as_dir in $PATH | |
12570 | do | |
12571 | IFS=$as_save_IFS | |
12572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12573 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12575 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12577 | break 2 |
12578 | fi | |
12579 | done | |
81ecdfbb RW |
12580 | done |
12581 | IFS=$as_save_IFS | |
c6b750e1 | 12582 | |
859789af AC |
12583 | fi |
12584 | fi | |
228cf97d AM |
12585 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12586 | if test -n "$OBJDUMP"; then | |
12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12588 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12589 | else |
81ecdfbb RW |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12591 | $as_echo "no" >&6; } | |
859789af AC |
12592 | fi |
12593 | ||
81ecdfbb | 12594 | |
05cbd757 | 12595 | fi |
228cf97d | 12596 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then |
05cbd757 PB |
12597 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12598 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12600 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12601 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12602 | $as_echo_n "(cached) " >&6 |
859789af | 12603 | else |
228cf97d AM |
12604 | if test -n "$OBJDUMP"; then |
12605 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12606 | else |
c6b750e1 DJ |
12607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12608 | for as_dir in $PATH | |
12609 | do | |
12610 | IFS=$as_save_IFS | |
12611 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12612 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12614 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 12615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12616 | break 2 |
12617 | fi | |
12618 | done | |
81ecdfbb RW |
12619 | done |
12620 | IFS=$as_save_IFS | |
c6b750e1 | 12621 | |
859789af AC |
12622 | fi |
12623 | fi | |
228cf97d AM |
12624 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12625 | if test -n "$OBJDUMP"; then | |
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12627 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12628 | else |
81ecdfbb RW |
12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12630 | $as_echo "no" >&6; } | |
859789af | 12631 | fi |
c6b750e1 | 12632 | |
81ecdfbb | 12633 | |
05cbd757 | 12634 | fi |
228cf97d | 12635 | test -n "$ac_cv_prog_OBJDUMP" && break |
05cbd757 PB |
12636 | done |
12637 | ||
228cf97d AM |
12638 | if test -z "$ac_cv_prog_OBJDUMP" ; then |
12639 | set dummy objdump | |
05cbd757 | 12640 | if test $build = $host ; then |
228cf97d | 12641 | OBJDUMP="$2" |
859789af | 12642 | else |
228cf97d | 12643 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 12644 | fi |
859789af AC |
12645 | fi |
12646 | ||
9a819804 AO |
12647 | |
12648 | ||
228cf97d AM |
12649 | if test -n "$OTOOL"; then |
12650 | ac_cv_prog_OTOOL=$OTOOL | |
12651 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12652 | OTOOL=$ac_cv_prog_OTOOL | |
9a819804 AO |
12653 | fi |
12654 | ||
228cf97d AM |
12655 | if test -n "$ac_cv_prog_OTOOL"; then |
12656 | for ncn_progname in otool; do | |
9a819804 AO |
12657 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12658 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12660 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12661 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12662 | $as_echo_n "(cached) " >&6 |
9a819804 | 12663 | else |
228cf97d AM |
12664 | if test -n "$OTOOL"; then |
12665 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9a819804 AO |
12666 | else |
12667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12668 | for as_dir in $PATH | |
12669 | do | |
12670 | IFS=$as_save_IFS | |
12671 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12672 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12674 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12676 | break 2 |
12677 | fi | |
12678 | done | |
81ecdfbb RW |
12679 | done |
12680 | IFS=$as_save_IFS | |
9a819804 AO |
12681 | |
12682 | fi | |
12683 | fi | |
228cf97d AM |
12684 | OTOOL=$ac_cv_prog_OTOOL |
12685 | if test -n "$OTOOL"; then | |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12687 | $as_echo "$OTOOL" >&6; } | |
9a819804 | 12688 | else |
81ecdfbb RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12690 | $as_echo "no" >&6; } | |
9a819804 AO |
12691 | fi |
12692 | ||
81ecdfbb | 12693 | |
9a819804 AO |
12694 | done |
12695 | fi | |
12696 | ||
228cf97d | 12697 | for ncn_progname in otool; do |
05cbd757 PB |
12698 | if test -n "$ncn_tool_prefix"; then |
12699 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12700 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12702 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12703 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12704 | $as_echo_n "(cached) " >&6 |
859789af | 12705 | else |
228cf97d AM |
12706 | if test -n "$OTOOL"; then |
12707 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12708 | else |
c6b750e1 DJ |
12709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12710 | for as_dir in $PATH | |
12711 | do | |
12712 | IFS=$as_save_IFS | |
12713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12714 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12716 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12718 | break 2 |
12719 | fi | |
12720 | done | |
81ecdfbb RW |
12721 | done |
12722 | IFS=$as_save_IFS | |
c6b750e1 | 12723 | |
859789af AC |
12724 | fi |
12725 | fi | |
228cf97d AM |
12726 | OTOOL=$ac_cv_prog_OTOOL |
12727 | if test -n "$OTOOL"; then | |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12729 | $as_echo "$OTOOL" >&6; } | |
859789af | 12730 | else |
81ecdfbb RW |
12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12732 | $as_echo "no" >&6; } | |
859789af AC |
12733 | fi |
12734 | ||
81ecdfbb | 12735 | |
05cbd757 | 12736 | fi |
228cf97d | 12737 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then |
05cbd757 PB |
12738 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12739 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12741 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12742 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12743 | $as_echo_n "(cached) " >&6 |
859789af | 12744 | else |
228cf97d AM |
12745 | if test -n "$OTOOL"; then |
12746 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12747 | else |
c6b750e1 DJ |
12748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12749 | for as_dir in $PATH | |
12750 | do | |
12751 | IFS=$as_save_IFS | |
12752 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12753 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12754 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12755 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12757 | break 2 |
12758 | fi | |
12759 | done | |
81ecdfbb RW |
12760 | done |
12761 | IFS=$as_save_IFS | |
c6b750e1 | 12762 | |
859789af AC |
12763 | fi |
12764 | fi | |
228cf97d AM |
12765 | OTOOL=$ac_cv_prog_OTOOL |
12766 | if test -n "$OTOOL"; then | |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12768 | $as_echo "$OTOOL" >&6; } | |
859789af | 12769 | else |
81ecdfbb RW |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12771 | $as_echo "no" >&6; } | |
859789af | 12772 | fi |
c6b750e1 | 12773 | |
81ecdfbb | 12774 | |
05cbd757 | 12775 | fi |
228cf97d | 12776 | test -n "$ac_cv_prog_OTOOL" && break |
05cbd757 PB |
12777 | done |
12778 | ||
228cf97d AM |
12779 | if test -z "$ac_cv_prog_OTOOL" ; then |
12780 | set dummy otool | |
05cbd757 | 12781 | if test $build = $host ; then |
228cf97d | 12782 | OTOOL="$2" |
859789af | 12783 | else |
228cf97d | 12784 | OTOOL="${ncn_tool_prefix}$2" |
859789af | 12785 | fi |
859789af AC |
12786 | fi |
12787 | ||
a0da8069 NN |
12788 | |
12789 | ||
b121d7d4 DD |
12790 | if test -n "$READELF"; then |
12791 | ac_cv_prog_READELF=$READELF | |
12792 | elif test -n "$ac_cv_prog_READELF"; then | |
12793 | READELF=$ac_cv_prog_READELF | |
12794 | fi | |
12795 | ||
12796 | if test -n "$ac_cv_prog_READELF"; then | |
12797 | for ncn_progname in readelf; do | |
12798 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12799 | set dummy ${ncn_progname}; ac_word=$2 | |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12801 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12802 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12803 | $as_echo_n "(cached) " >&6 |
12804 | else | |
12805 | if test -n "$READELF"; then | |
12806 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12807 | else | |
12808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12809 | for as_dir in $PATH | |
12810 | do | |
12811 | IFS=$as_save_IFS | |
12812 | test -z "$as_dir" && as_dir=. | |
12813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12815 | ac_cv_prog_READELF="${ncn_progname}" |
12816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12817 | break 2 | |
12818 | fi | |
12819 | done | |
12820 | done | |
12821 | IFS=$as_save_IFS | |
12822 | ||
12823 | fi | |
12824 | fi | |
12825 | READELF=$ac_cv_prog_READELF | |
12826 | if test -n "$READELF"; then | |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12828 | $as_echo "$READELF" >&6; } | |
12829 | else | |
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12831 | $as_echo "no" >&6; } | |
12832 | fi | |
12833 | ||
12834 | ||
12835 | done | |
12836 | fi | |
12837 | ||
12838 | for ncn_progname in readelf; do | |
12839 | if test -n "$ncn_tool_prefix"; then | |
12840 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12841 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12843 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12844 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12845 | $as_echo_n "(cached) " >&6 |
12846 | else | |
12847 | if test -n "$READELF"; then | |
12848 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12849 | else | |
12850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12851 | for as_dir in $PATH | |
12852 | do | |
12853 | IFS=$as_save_IFS | |
12854 | test -z "$as_dir" && as_dir=. | |
12855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12857 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12859 | break 2 | |
12860 | fi | |
12861 | done | |
12862 | done | |
12863 | IFS=$as_save_IFS | |
12864 | ||
12865 | fi | |
12866 | fi | |
12867 | READELF=$ac_cv_prog_READELF | |
12868 | if test -n "$READELF"; then | |
12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12870 | $as_echo "$READELF" >&6; } | |
12871 | else | |
12872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12873 | $as_echo "no" >&6; } | |
12874 | fi | |
12875 | ||
12876 | ||
12877 | fi | |
12878 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12879 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12880 | set dummy ${ncn_progname}; ac_word=$2 | |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12882 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12883 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12884 | $as_echo_n "(cached) " >&6 |
12885 | else | |
12886 | if test -n "$READELF"; then | |
12887 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12888 | else | |
12889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12890 | for as_dir in $PATH | |
12891 | do | |
12892 | IFS=$as_save_IFS | |
12893 | test -z "$as_dir" && as_dir=. | |
12894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12896 | ac_cv_prog_READELF="${ncn_progname}" |
12897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12898 | break 2 | |
12899 | fi | |
12900 | done | |
12901 | done | |
12902 | IFS=$as_save_IFS | |
12903 | ||
12904 | fi | |
12905 | fi | |
12906 | READELF=$ac_cv_prog_READELF | |
12907 | if test -n "$READELF"; then | |
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12909 | $as_echo "$READELF" >&6; } | |
12910 | else | |
12911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12912 | $as_echo "no" >&6; } | |
12913 | fi | |
12914 | ||
12915 | ||
12916 | fi | |
12917 | test -n "$ac_cv_prog_READELF" && break | |
12918 | done | |
12919 | ||
12920 | if test -z "$ac_cv_prog_READELF" ; then | |
12921 | set dummy readelf | |
12922 | if test $build = $host ; then | |
12923 | READELF="$2" | |
12924 | else | |
12925 | READELF="${ncn_tool_prefix}$2" | |
12926 | fi | |
12927 | fi | |
12928 | ||
12929 | ||
12930 | ||
a0da8069 NN |
12931 | |
12932 | ||
12933 | ||
de83289e | 12934 | |
228cf97d | 12935 | |
9e65489a | 12936 | |
50ad1254 L |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12938 | $as_echo_n "checking for -plugin option... " >&6; } | |
12939 | ||
12940 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
12941 | plugin_option= | |
12942 | for plugin in $plugin_names; do | |
12943 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
12944 | if test x$plugin_so = x$plugin; then | |
12945 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
12946 | fi | |
12947 | if test x$plugin_so != x$plugin; then | |
12948 | plugin_option="--plugin $plugin_so" | |
12949 | break | |
12950 | fi | |
12951 | done | |
03c02f31 L |
12952 | if test -n "$ac_tool_prefix"; then |
12953 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
12954 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12956 | $as_echo_n "checking for $ac_word... " >&6; } | |
12957 | if ${ac_cv_prog_AR+:} false; then : | |
12958 | $as_echo_n "(cached) " >&6 | |
12959 | else | |
12960 | if test -n "$AR"; then | |
12961 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12962 | else | |
12963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12964 | for as_dir in $PATH | |
12965 | do | |
12966 | IFS=$as_save_IFS | |
12967 | test -z "$as_dir" && as_dir=. | |
12968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12970 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
12971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12972 | break 2 | |
12973 | fi | |
12974 | done | |
12975 | done | |
12976 | IFS=$as_save_IFS | |
12977 | ||
12978 | fi | |
12979 | fi | |
12980 | AR=$ac_cv_prog_AR | |
12981 | if test -n "$AR"; then | |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12983 | $as_echo "$AR" >&6; } | |
12984 | else | |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12986 | $as_echo "no" >&6; } | |
12987 | fi | |
12988 | ||
12989 | ||
12990 | fi | |
12991 | if test -z "$ac_cv_prog_AR"; then | |
12992 | ac_ct_AR=$AR | |
12993 | # Extract the first word of "ar", so it can be a program name with args. | |
12994 | set dummy ar; ac_word=$2 | |
12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12996 | $as_echo_n "checking for $ac_word... " >&6; } | |
12997 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
12998 | $as_echo_n "(cached) " >&6 | |
12999 | else | |
13000 | if test -n "$ac_ct_AR"; then | |
13001 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13002 | else | |
13003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13004 | for as_dir in $PATH | |
13005 | do | |
13006 | IFS=$as_save_IFS | |
13007 | test -z "$as_dir" && as_dir=. | |
13008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13009 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13010 | ac_cv_prog_ac_ct_AR="ar" | |
13011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13012 | break 2 | |
13013 | fi | |
13014 | done | |
13015 | done | |
13016 | IFS=$as_save_IFS | |
13017 | ||
13018 | fi | |
13019 | fi | |
13020 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13021 | if test -n "$ac_ct_AR"; then | |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13023 | $as_echo "$ac_ct_AR" >&6; } | |
13024 | else | |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13026 | $as_echo "no" >&6; } | |
13027 | fi | |
13028 | ||
13029 | if test "x$ac_ct_AR" = x; then | |
13030 | AR="" | |
13031 | else | |
13032 | case $cross_compiling:$ac_tool_warned in | |
13033 | yes:) | |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13036 | ac_tool_warned=yes ;; | |
13037 | esac | |
13038 | AR=$ac_ct_AR | |
13039 | fi | |
13040 | else | |
13041 | AR="$ac_cv_prog_AR" | |
13042 | fi | |
13043 | ||
13044 | if test "${AR}" = "" ; then | |
13045 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13046 | fi | |
13047 | touch conftest.c | |
13048 | ${AR} $plugin_option rc conftest.a conftest.c | |
13049 | if test "$?" != 0; then | |
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13051 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13052 | plugin_option= | |
13053 | fi | |
13054 | rm -f conftest.* | |
50ad1254 L |
13055 | if test -n "$plugin_option"; then |
13056 | PLUGIN_OPTION="$plugin_option" | |
13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13058 | $as_echo "$plugin_option" >&6; } | |
13059 | else | |
13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13061 | $as_echo "no" >&6; } | |
13062 | fi | |
13063 | ||
13064 | AR_PLUGIN_OPTION= | |
13065 | RANLIB_PLUGIN_OPTION= | |
13066 | if test -n "$PLUGIN_OPTION"; then | |
13067 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13068 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13069 | fi | |
13070 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13071 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13072 | fi | |
13073 | fi | |
13074 | ||
13075 | ||
13076 | ||
be01d343 | 13077 | # Target tools. |
c6b750e1 | 13078 | |
81ecdfbb RW |
13079 | # Check whether --with-build-time-tools was given. |
13080 | if test "${with_build_time_tools+set}" = set; then : | |
13081 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
13082 | x/*) ;; |
13083 | *) | |
13084 | with_build_time_tools= | |
81ecdfbb RW |
13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13086 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
13087 | ;; |
13088 | esac | |
859789af | 13089 | else |
2429c060 | 13090 | with_build_time_tools= |
81ecdfbb RW |
13091 | fi |
13092 | ||
859789af | 13093 | |
9a819804 AO |
13094 | |
13095 | ||
13096 | if test -n "$CC_FOR_TARGET"; then | |
13097 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13098 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13099 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13100 | fi | |
13101 | ||
13102 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13103 | for ncn_progname in cc gcc; do | |
13104 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13105 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13107 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13108 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13109 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13110 | else |
13111 | if test -n "$CC_FOR_TARGET"; then | |
13112 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13113 | else | |
13114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13115 | for as_dir in $PATH | |
13116 | do | |
13117 | IFS=$as_save_IFS | |
13118 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13119 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13121 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13123 | break 2 |
13124 | fi | |
13125 | done | |
81ecdfbb RW |
13126 | done |
13127 | IFS=$as_save_IFS | |
9a819804 AO |
13128 | |
13129 | fi | |
13130 | fi | |
13131 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13132 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13134 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 13135 | else |
81ecdfbb RW |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13137 | $as_echo "no" >&6; } | |
9a819804 AO |
13138 | fi |
13139 | ||
81ecdfbb | 13140 | |
9a819804 AO |
13141 | done |
13142 | fi | |
13143 | ||
13144 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13145 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13147 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13148 | if test -x $with_build_time_tools/${ncn_progname}; then |
13149 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13151 | $as_echo "yes" >&6; } | |
cac3d6c4 | 13152 | break |
2429c060 | 13153 | else |
81ecdfbb RW |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13155 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
13156 | fi |
13157 | done | |
55db4b87 PB |
13158 | fi |
13159 | ||
2429c060 PB |
13160 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13161 | for ncn_progname in cc gcc; do | |
13162 | if test -n "$ncn_target_tool_prefix"; then | |
13163 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13164 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13166 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13167 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13168 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13169 | else |
13170 | if test -n "$CC_FOR_TARGET"; then | |
13171 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13172 | else | |
c6b750e1 DJ |
13173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13174 | for as_dir in $PATH | |
13175 | do | |
13176 | IFS=$as_save_IFS | |
13177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13178 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13180 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13182 | break 2 |
13183 | fi | |
13184 | done | |
81ecdfbb RW |
13185 | done |
13186 | IFS=$as_save_IFS | |
c6b750e1 | 13187 | |
55db4b87 PB |
13188 | fi |
13189 | fi | |
c6b750e1 | 13190 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 13191 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13193 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13194 | else |
81ecdfbb RW |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13196 | $as_echo "no" >&6; } | |
55db4b87 PB |
13197 | fi |
13198 | ||
81ecdfbb | 13199 | |
2429c060 PB |
13200 | fi |
13201 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13202 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13203 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13206 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13207 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13208 | else |
05cbd757 PB |
13209 | if test -n "$CC_FOR_TARGET"; then |
13210 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13211 | else |
c6b750e1 DJ |
13212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13213 | for as_dir in $PATH | |
13214 | do | |
13215 | IFS=$as_save_IFS | |
13216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13219 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13221 | break 2 |
13222 | fi | |
13223 | done | |
81ecdfbb RW |
13224 | done |
13225 | IFS=$as_save_IFS | |
c6b750e1 | 13226 | |
55db4b87 PB |
13227 | fi |
13228 | fi | |
c6b750e1 | 13229 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 13230 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13232 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13233 | else |
81ecdfbb RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13235 | $as_echo "no" >&6; } | |
55db4b87 | 13236 | fi |
c6b750e1 | 13237 | |
81ecdfbb | 13238 | |
2429c060 PB |
13239 | fi |
13240 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13241 | done | |
13242 | fi | |
c6b750e1 | 13243 | |
05cbd757 PB |
13244 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13245 | set dummy cc gcc | |
13246 | if test $build = $target ; then | |
13247 | CC_FOR_TARGET="$2" | |
55db4b87 | 13248 | else |
05cbd757 | 13249 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13250 | fi |
d3f5afc4 MS |
13251 | else |
13252 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
13253 | fi |
13254 | ||
9a819804 AO |
13255 | |
13256 | ||
13257 | if test -n "$CXX_FOR_TARGET"; then | |
13258 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13259 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13260 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13261 | fi | |
13262 | ||
13263 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13264 | for ncn_progname in c++ g++ cxx gxx; do | |
13265 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13266 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13268 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13269 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13270 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13271 | else |
13272 | if test -n "$CXX_FOR_TARGET"; then | |
13273 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13274 | else | |
13275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13276 | for as_dir in $PATH | |
13277 | do | |
13278 | IFS=$as_save_IFS | |
13279 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13280 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13281 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13282 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13284 | break 2 |
13285 | fi | |
13286 | done | |
81ecdfbb RW |
13287 | done |
13288 | IFS=$as_save_IFS | |
9a819804 AO |
13289 | |
13290 | fi | |
13291 | fi | |
13292 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13293 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13295 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 13296 | else |
81ecdfbb RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13298 | $as_echo "no" >&6; } | |
9a819804 AO |
13299 | fi |
13300 | ||
81ecdfbb | 13301 | |
9a819804 AO |
13302 | done |
13303 | fi | |
13304 | ||
13305 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13306 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
13307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13308 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13309 | if test -x $with_build_time_tools/${ncn_progname}; then |
13310 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13312 | $as_echo "yes" >&6; } | |
2429c060 PB |
13313 | break |
13314 | else | |
81ecdfbb RW |
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13316 | $as_echo "no" >&6; } | |
2429c060 PB |
13317 | fi |
13318 | done | |
13319 | fi | |
13320 | ||
13321 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13322 | for ncn_progname in c++ g++ cxx gxx; do | |
13323 | if test -n "$ncn_target_tool_prefix"; then | |
13324 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13325 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13327 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13328 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13329 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13330 | else |
13331 | if test -n "$CXX_FOR_TARGET"; then | |
13332 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13333 | else | |
c6b750e1 DJ |
13334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13335 | for as_dir in $PATH | |
13336 | do | |
13337 | IFS=$as_save_IFS | |
13338 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13339 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13341 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13343 | break 2 |
13344 | fi | |
13345 | done | |
81ecdfbb RW |
13346 | done |
13347 | IFS=$as_save_IFS | |
c6b750e1 | 13348 | |
55db4b87 PB |
13349 | fi |
13350 | fi | |
c6b750e1 | 13351 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 13352 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13354 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13355 | else |
81ecdfbb RW |
13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13357 | $as_echo "no" >&6; } | |
55db4b87 PB |
13358 | fi |
13359 | ||
81ecdfbb | 13360 | |
2429c060 PB |
13361 | fi |
13362 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13364 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13366 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13367 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13368 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13369 | else |
05cbd757 PB |
13370 | if test -n "$CXX_FOR_TARGET"; then |
13371 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13372 | else |
c6b750e1 DJ |
13373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13374 | for as_dir in $PATH | |
13375 | do | |
13376 | IFS=$as_save_IFS | |
13377 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13378 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13380 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13382 | break 2 |
13383 | fi | |
13384 | done | |
81ecdfbb RW |
13385 | done |
13386 | IFS=$as_save_IFS | |
c6b750e1 | 13387 | |
55db4b87 PB |
13388 | fi |
13389 | fi | |
c6b750e1 | 13390 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 13391 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13393 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13394 | else |
81ecdfbb RW |
13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13396 | $as_echo "no" >&6; } | |
55db4b87 | 13397 | fi |
c6b750e1 | 13398 | |
81ecdfbb | 13399 | |
2429c060 PB |
13400 | fi |
13401 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13402 | done | |
13403 | fi | |
c6b750e1 | 13404 | |
05cbd757 PB |
13405 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13406 | set dummy c++ g++ cxx gxx | |
13407 | if test $build = $target ; then | |
13408 | CXX_FOR_TARGET="$2" | |
55db4b87 | 13409 | else |
05cbd757 | 13410 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13411 | fi |
d3f5afc4 MS |
13412 | else |
13413 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
13414 | fi |
13415 | ||
9a819804 AO |
13416 | |
13417 | ||
13418 | if test -n "$GCC_FOR_TARGET"; then | |
13419 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13420 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13421 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13422 | fi | |
13423 | ||
13424 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13425 | for ncn_progname in gcc; do | |
13426 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13427 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13429 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13430 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13431 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13432 | else |
13433 | if test -n "$GCC_FOR_TARGET"; then | |
13434 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13435 | else | |
13436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13437 | for as_dir in $PATH | |
13438 | do | |
13439 | IFS=$as_save_IFS | |
13440 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13441 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13443 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13445 | break 2 |
13446 | fi | |
13447 | done | |
81ecdfbb RW |
13448 | done |
13449 | IFS=$as_save_IFS | |
9a819804 AO |
13450 | |
13451 | fi | |
13452 | fi | |
13453 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13454 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13456 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 13457 | else |
81ecdfbb RW |
13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13459 | $as_echo "no" >&6; } | |
9a819804 AO |
13460 | fi |
13461 | ||
81ecdfbb | 13462 | |
9a819804 AO |
13463 | done |
13464 | fi | |
13465 | ||
13466 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13467 | for ncn_progname in gcc; do |
81ecdfbb RW |
13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13469 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13470 | if test -x $with_build_time_tools/${ncn_progname}; then |
13471 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13473 | $as_echo "yes" >&6; } | |
2429c060 PB |
13474 | break |
13475 | else | |
81ecdfbb RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13477 | $as_echo "no" >&6; } | |
2429c060 PB |
13478 | fi |
13479 | done | |
13480 | fi | |
13481 | ||
13482 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13483 | for ncn_progname in gcc; do | |
13484 | if test -n "$ncn_target_tool_prefix"; then | |
13485 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13486 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13488 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13489 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13490 | $as_echo_n "(cached) " >&6 |
859789af | 13491 | else |
2429c060 PB |
13492 | if test -n "$GCC_FOR_TARGET"; then |
13493 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13494 | else |
c6b750e1 DJ |
13495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13496 | for as_dir in $PATH | |
13497 | do | |
13498 | IFS=$as_save_IFS | |
13499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13500 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13502 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13504 | break 2 |
13505 | fi | |
13506 | done | |
81ecdfbb RW |
13507 | done |
13508 | IFS=$as_save_IFS | |
c6b750e1 | 13509 | |
55db4b87 PB |
13510 | fi |
13511 | fi | |
c6b750e1 | 13512 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 13513 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13515 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13516 | else |
81ecdfbb RW |
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13518 | $as_echo "no" >&6; } | |
55db4b87 PB |
13519 | fi |
13520 | ||
81ecdfbb | 13521 | |
2429c060 PB |
13522 | fi |
13523 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13524 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13525 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13527 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13528 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13529 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13530 | else |
05cbd757 PB |
13531 | if test -n "$GCC_FOR_TARGET"; then |
13532 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13533 | else |
c6b750e1 DJ |
13534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13535 | for as_dir in $PATH | |
13536 | do | |
13537 | IFS=$as_save_IFS | |
13538 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13539 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13541 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13543 | break 2 |
13544 | fi | |
13545 | done | |
81ecdfbb RW |
13546 | done |
13547 | IFS=$as_save_IFS | |
c6b750e1 | 13548 | |
55db4b87 PB |
13549 | fi |
13550 | fi | |
c6b750e1 | 13551 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 13552 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13554 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13555 | else |
81ecdfbb RW |
13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13557 | $as_echo "no" >&6; } | |
55db4b87 | 13558 | fi |
c6b750e1 | 13559 | |
81ecdfbb | 13560 | |
2429c060 PB |
13561 | fi |
13562 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13563 | done | |
13564 | fi | |
c6b750e1 | 13565 | |
05cbd757 PB |
13566 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13567 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
13568 | else |
13569 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
13570 | fi |
13571 | ||
9a819804 AO |
13572 | |
13573 | ||
9a819804 AO |
13574 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13575 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13576 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13577 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
13578 | fi |
13579 | ||
9a819804 AO |
13580 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13581 | for ncn_progname in gfortran; do | |
13582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13583 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13585 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13586 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13587 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13588 | else |
9a819804 AO |
13589 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13590 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13591 | else |
c6b750e1 DJ |
13592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13593 | for as_dir in $PATH | |
13594 | do | |
13595 | IFS=$as_save_IFS | |
13596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13597 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13599 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13601 | break 2 |
13602 | fi | |
13603 | done | |
81ecdfbb RW |
13604 | done |
13605 | IFS=$as_save_IFS | |
c6b750e1 | 13606 | |
55db4b87 PB |
13607 | fi |
13608 | fi | |
9a819804 AO |
13609 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13610 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13612 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 13613 | else |
81ecdfbb RW |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13615 | $as_echo "no" >&6; } | |
55db4b87 | 13616 | fi |
c6b750e1 | 13617 | |
81ecdfbb | 13618 | |
2429c060 PB |
13619 | done |
13620 | fi | |
c6b750e1 | 13621 | |
9a819804 | 13622 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 13623 | for ncn_progname in gfortran; do |
81ecdfbb RW |
13624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13625 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13626 | if test -x $with_build_time_tools/${ncn_progname}; then |
13627 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13629 | $as_echo "yes" >&6; } | |
2429c060 PB |
13630 | break |
13631 | else | |
81ecdfbb RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13633 | $as_echo "no" >&6; } | |
2429c060 PB |
13634 | fi |
13635 | done | |
13636 | fi | |
13637 | ||
13638 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13639 | for ncn_progname in gfortran; do | |
13640 | if test -n "$ncn_target_tool_prefix"; then | |
13641 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13642 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13644 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13645 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13646 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13647 | else |
228cf97d AM |
13648 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13649 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13650 | else | |
13651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13652 | for as_dir in $PATH | |
13653 | do | |
13654 | IFS=$as_save_IFS | |
13655 | test -z "$as_dir" && as_dir=. | |
13656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13658 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13660 | break 2 | |
13661 | fi | |
13662 | done | |
13663 | done | |
13664 | IFS=$as_save_IFS | |
13665 | ||
13666 | fi | |
13667 | fi | |
13668 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13669 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13671 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13672 | else | |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13674 | $as_echo "no" >&6; } | |
13675 | fi | |
13676 | ||
13677 | ||
13678 | fi | |
13679 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13681 | set dummy ${ncn_progname}; ac_word=$2 | |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13683 | $as_echo_n "checking for $ac_word... " >&6; } | |
13684 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : | |
13685 | $as_echo_n "(cached) " >&6 | |
13686 | else | |
13687 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13688 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13689 | else | |
13690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13691 | for as_dir in $PATH | |
13692 | do | |
13693 | IFS=$as_save_IFS | |
13694 | test -z "$as_dir" && as_dir=. | |
13695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13697 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
13698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13699 | break 2 | |
13700 | fi | |
13701 | done | |
13702 | done | |
13703 | IFS=$as_save_IFS | |
13704 | ||
13705 | fi | |
13706 | fi | |
13707 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13708 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13710 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13711 | else | |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13713 | $as_echo "no" >&6; } | |
13714 | fi | |
13715 | ||
13716 | ||
13717 | fi | |
13718 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13719 | done | |
13720 | fi | |
13721 | ||
13722 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
13723 | set dummy gfortran | |
13724 | if test $build = $target ; then | |
13725 | GFORTRAN_FOR_TARGET="$2" | |
13726 | else | |
13727 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13728 | fi | |
13729 | else | |
13730 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
13731 | fi | |
13732 | ||
13733 | ||
13734 | ||
13735 | if test -n "$GOC_FOR_TARGET"; then | |
13736 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13737 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13738 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13739 | fi | |
13740 | ||
13741 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13742 | for ncn_progname in gccgo; do | |
13743 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13744 | set dummy ${ncn_progname}; ac_word=$2 | |
13745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13746 | $as_echo_n "checking for $ac_word... " >&6; } | |
13747 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13748 | $as_echo_n "(cached) " >&6 | |
13749 | else | |
13750 | if test -n "$GOC_FOR_TARGET"; then | |
13751 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13752 | else | |
13753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13754 | for as_dir in $PATH | |
13755 | do | |
13756 | IFS=$as_save_IFS | |
13757 | test -z "$as_dir" && as_dir=. | |
13758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13760 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
13761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13762 | break 2 | |
13763 | fi | |
13764 | done | |
13765 | done | |
13766 | IFS=$as_save_IFS | |
13767 | ||
13768 | fi | |
13769 | fi | |
13770 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13771 | if test -n "$GOC_FOR_TARGET"; then | |
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13773 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13774 | else | |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13776 | $as_echo "no" >&6; } | |
13777 | fi | |
13778 | ||
13779 | ||
13780 | done | |
13781 | fi | |
13782 | ||
13783 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13784 | for ncn_progname in gccgo; do | |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13786 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13787 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13788 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13790 | $as_echo "yes" >&6; } | |
13791 | break | |
13792 | else | |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13794 | $as_echo "no" >&6; } | |
13795 | fi | |
13796 | done | |
13797 | fi | |
13798 | ||
13799 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13800 | for ncn_progname in gccgo; do | |
13801 | if test -n "$ncn_target_tool_prefix"; then | |
13802 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13803 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13805 | $as_echo_n "checking for $ac_word... " >&6; } | |
13806 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13807 | $as_echo_n "(cached) " >&6 | |
13808 | else | |
13809 | if test -n "$GOC_FOR_TARGET"; then | |
13810 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13811 | else |
c6b750e1 DJ |
13812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13813 | for as_dir in $PATH | |
13814 | do | |
13815 | IFS=$as_save_IFS | |
13816 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13817 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13819 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13821 | break 2 |
13822 | fi | |
13823 | done | |
81ecdfbb RW |
13824 | done |
13825 | IFS=$as_save_IFS | |
c6b750e1 | 13826 | |
55db4b87 PB |
13827 | fi |
13828 | fi | |
228cf97d AM |
13829 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13830 | if test -n "$GOC_FOR_TARGET"; then | |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13832 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13833 | else |
81ecdfbb RW |
13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13835 | $as_echo "no" >&6; } | |
55db4b87 PB |
13836 | fi |
13837 | ||
81ecdfbb | 13838 | |
2429c060 | 13839 | fi |
228cf97d | 13840 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then |
2429c060 | 13841 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
05cbd757 | 13842 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13844 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13845 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
81ecdfbb | 13846 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13847 | else |
228cf97d AM |
13848 | if test -n "$GOC_FOR_TARGET"; then |
13849 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13850 | else |
13851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13852 | for as_dir in $PATH | |
13853 | do | |
13854 | IFS=$as_save_IFS | |
13855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13856 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13857 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13858 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13860 | break 2 |
13861 | fi | |
13862 | done | |
81ecdfbb RW |
13863 | done |
13864 | IFS=$as_save_IFS | |
c6b750e1 | 13865 | |
55db4b87 PB |
13866 | fi |
13867 | fi | |
228cf97d AM |
13868 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13869 | if test -n "$GOC_FOR_TARGET"; then | |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13871 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13872 | else |
81ecdfbb RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13874 | $as_echo "no" >&6; } | |
55db4b87 | 13875 | fi |
c6b750e1 | 13876 | |
81ecdfbb | 13877 | |
2429c060 | 13878 | fi |
228cf97d | 13879 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break |
2429c060 PB |
13880 | done |
13881 | fi | |
c6b750e1 | 13882 | |
228cf97d AM |
13883 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then |
13884 | set dummy gccgo | |
05cbd757 | 13885 | if test $build = $target ; then |
228cf97d | 13886 | GOC_FOR_TARGET="$2" |
55db4b87 | 13887 | else |
228cf97d | 13888 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13889 | fi |
d3f5afc4 | 13890 | else |
228cf97d | 13891 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" |
859789af AC |
13892 | fi |
13893 | ||
2429c060 PB |
13894 | |
13895 | ||
228cf97d AM |
13896 | if test -n "$GDC_FOR_TARGET"; then |
13897 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13898 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13899 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
e552509b ILT |
13900 | fi |
13901 | ||
228cf97d AM |
13902 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then |
13903 | for ncn_progname in gdc; do | |
e552509b ILT |
13904 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
13905 | set dummy ${ncn_progname}; ac_word=$2 | |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13907 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13908 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13909 | $as_echo_n "(cached) " >&6 |
13910 | else | |
228cf97d AM |
13911 | if test -n "$GDC_FOR_TARGET"; then |
13912 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13913 | else |
13914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13915 | for as_dir in $PATH | |
13916 | do | |
13917 | IFS=$as_save_IFS | |
13918 | test -z "$as_dir" && as_dir=. | |
13919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13921 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
13922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13923 | break 2 | |
13924 | fi | |
13925 | done | |
13926 | done | |
13927 | IFS=$as_save_IFS | |
13928 | ||
13929 | fi | |
13930 | fi | |
228cf97d AM |
13931 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13932 | if test -n "$GDC_FOR_TARGET"; then | |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13934 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13935 | else |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13937 | $as_echo "no" >&6; } | |
13938 | fi | |
13939 | ||
13940 | ||
13941 | done | |
13942 | fi | |
13943 | ||
228cf97d AM |
13944 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then |
13945 | for ncn_progname in gdc; do | |
e552509b ILT |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13947 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13948 | if test -x $with_build_time_tools/${ncn_progname}; then | |
228cf97d | 13949 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} |
e552509b ILT |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13951 | $as_echo "yes" >&6; } | |
13952 | break | |
13953 | else | |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13955 | $as_echo "no" >&6; } | |
13956 | fi | |
13957 | done | |
13958 | fi | |
13959 | ||
228cf97d AM |
13960 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then |
13961 | for ncn_progname in gdc; do | |
e552509b ILT |
13962 | if test -n "$ncn_target_tool_prefix"; then |
13963 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13964 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13966 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13967 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13968 | $as_echo_n "(cached) " >&6 |
13969 | else | |
228cf97d AM |
13970 | if test -n "$GDC_FOR_TARGET"; then |
13971 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13972 | else |
13973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13974 | for as_dir in $PATH | |
13975 | do | |
13976 | IFS=$as_save_IFS | |
13977 | test -z "$as_dir" && as_dir=. | |
13978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13980 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
e552509b ILT |
13981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13982 | break 2 | |
13983 | fi | |
13984 | done | |
13985 | done | |
13986 | IFS=$as_save_IFS | |
13987 | ||
13988 | fi | |
13989 | fi | |
228cf97d AM |
13990 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13991 | if test -n "$GDC_FOR_TARGET"; then | |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13993 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13994 | else |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13996 | $as_echo "no" >&6; } | |
13997 | fi | |
13998 | ||
13999 | ||
14000 | fi | |
228cf97d | 14001 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then |
e552509b ILT |
14002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
14003 | set dummy ${ncn_progname}; ac_word=$2 | |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14005 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 14006 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
14007 | $as_echo_n "(cached) " >&6 |
14008 | else | |
228cf97d AM |
14009 | if test -n "$GDC_FOR_TARGET"; then |
14010 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
14011 | else |
14012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14013 | for as_dir in $PATH | |
14014 | do | |
14015 | IFS=$as_save_IFS | |
14016 | test -z "$as_dir" && as_dir=. | |
14017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 14018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 14019 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
14020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14021 | break 2 | |
14022 | fi | |
14023 | done | |
14024 | done | |
14025 | IFS=$as_save_IFS | |
14026 | ||
14027 | fi | |
14028 | fi | |
228cf97d AM |
14029 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
14030 | if test -n "$GDC_FOR_TARGET"; then | |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14032 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14033 | else |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14035 | $as_echo "no" >&6; } | |
14036 | fi | |
14037 | ||
14038 | ||
14039 | fi | |
228cf97d | 14040 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break |
e552509b ILT |
14041 | done |
14042 | fi | |
14043 | ||
228cf97d AM |
14044 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then |
14045 | set dummy gdc | |
e552509b | 14046 | if test $build = $target ; then |
228cf97d | 14047 | GDC_FOR_TARGET="$2" |
e552509b | 14048 | else |
228cf97d | 14049 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
e552509b ILT |
14050 | fi |
14051 | else | |
228cf97d | 14052 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" |
e552509b ILT |
14053 | fi |
14054 | ||
14055 | ||
14056 | ||
2429c060 PB |
14057 | cat > conftest.c << \EOF |
14058 | #ifdef __GNUC__ | |
14059 | gcc_yay; | |
14060 | #endif | |
14061 | EOF | |
14062 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14063 | have_gcc_for_target=yes | |
859789af | 14064 | else |
2429c060 PB |
14065 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
14066 | have_gcc_for_target=no | |
859789af | 14067 | fi |
2429c060 PB |
14068 | rm conftest.c |
14069 | ||
14070 | ||
14071 | ||
859789af | 14072 | |
2429c060 PB |
14073 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
14074 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14076 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14077 | if test -x $with_build_time_tools/ar; then |
14078 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14079 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14081 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 14082 | else |
81ecdfbb RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14084 | $as_echo "no" >&6; } | |
3a35eeb3 | 14085 | fi |
2429c060 PB |
14086 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14087 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
14088 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14089 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 14090 | fi |
2429c060 | 14091 | fi |
c6b750e1 | 14092 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14093 | # Extract the first word of "ar", so it can be a program name with args. |
14094 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14096 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14097 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14098 | $as_echo_n "(cached) " >&6 |
859789af | 14099 | else |
c6b750e1 DJ |
14100 | case $AR_FOR_TARGET in |
14101 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14102 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14103 | ;; | |
2429c060 | 14104 | *) |
c6b750e1 DJ |
14105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14106 | for as_dir in $gcc_cv_tool_dirs | |
14107 | do | |
14108 | IFS=$as_save_IFS | |
14109 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14110 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14112 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14114 | break 2 |
14115 | fi | |
14116 | done | |
81ecdfbb RW |
14117 | done |
14118 | IFS=$as_save_IFS | |
c6b750e1 | 14119 | |
2429c060 PB |
14120 | ;; |
14121 | esac | |
859789af | 14122 | fi |
c6b750e1 | 14123 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 14124 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14126 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 14127 | else |
81ecdfbb RW |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14129 | $as_echo "no" >&6; } | |
859789af | 14130 | fi |
05cbd757 | 14131 | |
81ecdfbb | 14132 | |
2429c060 PB |
14133 | fi |
14134 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
14135 | |
14136 | ||
14137 | if test -n "$AR_FOR_TARGET"; then | |
14138 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14139 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14140 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14141 | fi | |
14142 | ||
14143 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14144 | for ncn_progname in ar; do | |
14145 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14146 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14148 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14149 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14150 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14151 | else |
14152 | if test -n "$AR_FOR_TARGET"; then | |
14153 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14154 | else | |
14155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14156 | for as_dir in $PATH | |
14157 | do | |
14158 | IFS=$as_save_IFS | |
14159 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14160 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14162 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14164 | break 2 |
14165 | fi | |
14166 | done | |
81ecdfbb RW |
14167 | done |
14168 | IFS=$as_save_IFS | |
9a819804 AO |
14169 | |
14170 | fi | |
14171 | fi | |
14172 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14173 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
14174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14175 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 14176 | else |
81ecdfbb RW |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14178 | $as_echo "no" >&6; } | |
9a819804 AO |
14179 | fi |
14180 | ||
81ecdfbb | 14181 | |
9a819804 AO |
14182 | done |
14183 | fi | |
14184 | ||
14185 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14186 | for ncn_progname in ar; do |
81ecdfbb RW |
14187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14188 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14189 | if test -x $with_build_time_tools/${ncn_progname}; then |
14190 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14192 | $as_echo "yes" >&6; } | |
2429c060 PB |
14193 | break |
14194 | else | |
81ecdfbb RW |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14196 | $as_echo "no" >&6; } | |
2429c060 PB |
14197 | fi |
14198 | done | |
859789af AC |
14199 | fi |
14200 | ||
2429c060 PB |
14201 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
14202 | for ncn_progname in ar; do | |
14203 | if test -n "$ncn_target_tool_prefix"; then | |
14204 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14205 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14207 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14208 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14209 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14210 | else |
2429c060 PB |
14211 | if test -n "$AR_FOR_TARGET"; then |
14212 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 14213 | else |
c6b750e1 DJ |
14214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14215 | for as_dir in $PATH | |
14216 | do | |
14217 | IFS=$as_save_IFS | |
14218 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14219 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14221 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14223 | break 2 |
14224 | fi | |
14225 | done | |
81ecdfbb RW |
14226 | done |
14227 | IFS=$as_save_IFS | |
c6b750e1 | 14228 | |
7e0f7140 GK |
14229 | fi |
14230 | fi | |
c6b750e1 | 14231 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14232 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14234 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14235 | else |
81ecdfbb RW |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14237 | $as_echo "no" >&6; } | |
7e0f7140 GK |
14238 | fi |
14239 | ||
81ecdfbb | 14240 | |
2429c060 PB |
14241 | fi |
14242 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14243 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 14244 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14246 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14247 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14248 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14249 | else |
2429c060 PB |
14250 | if test -n "$AR_FOR_TARGET"; then |
14251 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 14252 | else |
c6b750e1 DJ |
14253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14254 | for as_dir in $PATH | |
14255 | do | |
14256 | IFS=$as_save_IFS | |
14257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14258 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14260 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14262 | break 2 |
14263 | fi | |
14264 | done | |
81ecdfbb RW |
14265 | done |
14266 | IFS=$as_save_IFS | |
c6b750e1 | 14267 | |
7e0f7140 GK |
14268 | fi |
14269 | fi | |
c6b750e1 | 14270 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14271 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14273 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14274 | else |
81ecdfbb RW |
14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14276 | $as_echo "no" >&6; } | |
7e0f7140 | 14277 | fi |
c6b750e1 | 14278 | |
81ecdfbb | 14279 | |
2429c060 PB |
14280 | fi |
14281 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14282 | done | |
14283 | fi | |
c6b750e1 | 14284 | |
2429c060 PB |
14285 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14286 | set dummy ar | |
7e0f7140 | 14287 | if test $build = $target ; then |
2429c060 | 14288 | AR_FOR_TARGET="$2" |
7e0f7140 | 14289 | else |
2429c060 | 14290 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 14291 | fi |
d3f5afc4 MS |
14292 | else |
14293 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
14294 | fi |
14295 | ||
3a35eeb3 PB |
14296 | else |
14297 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
14298 | fi |
14299 | ||
14300 | ||
14301 | ||
14302 | ||
14303 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14304 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14306 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14307 | if test -x $with_build_time_tools/as; then |
14308 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14309 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14311 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 14312 | else |
81ecdfbb RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14314 | $as_echo "no" >&6; } | |
3a35eeb3 | 14315 | fi |
2429c060 PB |
14316 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14317 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
14318 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14319 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
14320 | fi |
14321 | fi | |
c6b750e1 | 14322 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14323 | # Extract the first word of "as", so it can be a program name with args. |
14324 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14326 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14327 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14328 | $as_echo_n "(cached) " >&6 |
2429c060 | 14329 | else |
c6b750e1 DJ |
14330 | case $AS_FOR_TARGET in |
14331 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14332 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14333 | ;; | |
2429c060 | 14334 | *) |
c6b750e1 DJ |
14335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14336 | for as_dir in $gcc_cv_tool_dirs | |
14337 | do | |
14338 | IFS=$as_save_IFS | |
14339 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14340 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14342 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14344 | break 2 |
14345 | fi | |
14346 | done | |
81ecdfbb RW |
14347 | done |
14348 | IFS=$as_save_IFS | |
c6b750e1 | 14349 | |
2429c060 PB |
14350 | ;; |
14351 | esac | |
14352 | fi | |
c6b750e1 | 14353 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 14354 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14356 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14357 | else |
81ecdfbb RW |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14359 | $as_echo "no" >&6; } | |
2429c060 PB |
14360 | fi |
14361 | ||
81ecdfbb | 14362 | |
2429c060 PB |
14363 | fi |
14364 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
14365 | |
14366 | ||
14367 | if test -n "$AS_FOR_TARGET"; then | |
14368 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14369 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14370 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14371 | fi | |
14372 | ||
14373 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14374 | for ncn_progname in as; do | |
14375 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14376 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14378 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14379 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14380 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14381 | else |
14382 | if test -n "$AS_FOR_TARGET"; then | |
14383 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14384 | else | |
14385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14386 | for as_dir in $PATH | |
14387 | do | |
14388 | IFS=$as_save_IFS | |
14389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14390 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14392 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14394 | break 2 |
14395 | fi | |
14396 | done | |
81ecdfbb RW |
14397 | done |
14398 | IFS=$as_save_IFS | |
9a819804 AO |
14399 | |
14400 | fi | |
14401 | fi | |
14402 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14403 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14405 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 14406 | else |
81ecdfbb RW |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14408 | $as_echo "no" >&6; } | |
9a819804 AO |
14409 | fi |
14410 | ||
81ecdfbb | 14411 | |
9a819804 AO |
14412 | done |
14413 | fi | |
14414 | ||
14415 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14416 | for ncn_progname in as; do |
81ecdfbb RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14418 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14419 | if test -x $with_build_time_tools/${ncn_progname}; then |
14420 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14422 | $as_echo "yes" >&6; } | |
2429c060 PB |
14423 | break |
14424 | else | |
81ecdfbb RW |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14426 | $as_echo "no" >&6; } | |
2429c060 PB |
14427 | fi |
14428 | done | |
14429 | fi | |
14430 | ||
14431 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14432 | for ncn_progname in as; do | |
14433 | if test -n "$ncn_target_tool_prefix"; then | |
14434 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14435 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14437 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14438 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14439 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14440 | else |
14441 | if test -n "$AS_FOR_TARGET"; then | |
14442 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14443 | else | |
c6b750e1 DJ |
14444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14445 | for as_dir in $PATH | |
14446 | do | |
14447 | IFS=$as_save_IFS | |
14448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14449 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14450 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14451 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14453 | break 2 |
14454 | fi | |
14455 | done | |
81ecdfbb RW |
14456 | done |
14457 | IFS=$as_save_IFS | |
c6b750e1 | 14458 | |
2429c060 PB |
14459 | fi |
14460 | fi | |
c6b750e1 | 14461 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14462 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14464 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14465 | else |
81ecdfbb RW |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14467 | $as_echo "no" >&6; } | |
2429c060 PB |
14468 | fi |
14469 | ||
81ecdfbb | 14470 | |
2429c060 PB |
14471 | fi |
14472 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14473 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14474 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14476 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14477 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14478 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14479 | else |
14480 | if test -n "$AS_FOR_TARGET"; then | |
14481 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14482 | else | |
c6b750e1 DJ |
14483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14484 | for as_dir in $PATH | |
14485 | do | |
14486 | IFS=$as_save_IFS | |
14487 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14488 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14490 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14492 | break 2 |
14493 | fi | |
14494 | done | |
81ecdfbb RW |
14495 | done |
14496 | IFS=$as_save_IFS | |
c6b750e1 | 14497 | |
2429c060 PB |
14498 | fi |
14499 | fi | |
c6b750e1 | 14500 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14501 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14503 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14504 | else |
81ecdfbb RW |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14506 | $as_echo "no" >&6; } | |
2429c060 | 14507 | fi |
c6b750e1 | 14508 | |
81ecdfbb | 14509 | |
2429c060 PB |
14510 | fi |
14511 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14512 | done | |
14513 | fi | |
c6b750e1 | 14514 | |
2429c060 PB |
14515 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14516 | set dummy as | |
14517 | if test $build = $target ; then | |
14518 | AS_FOR_TARGET="$2" | |
14519 | else | |
14520 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14521 | fi | |
d3f5afc4 MS |
14522 | else |
14523 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
14524 | fi |
14525 | ||
3a35eeb3 PB |
14526 | else |
14527 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
14528 | fi |
14529 | ||
14530 | ||
14531 | ||
14532 | ||
14533 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14534 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14536 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14537 | if test -x $with_build_time_tools/dlltool; then |
14538 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14539 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14541 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 14542 | else |
81ecdfbb RW |
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14544 | $as_echo "no" >&6; } | |
3a35eeb3 | 14545 | fi |
2429c060 PB |
14546 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14547 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
14548 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14549 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
14550 | fi |
14551 | fi | |
c6b750e1 | 14552 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14553 | # Extract the first word of "dlltool", so it can be a program name with args. |
14554 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
14555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14556 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14557 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14558 | $as_echo_n "(cached) " >&6 |
2429c060 | 14559 | else |
c6b750e1 DJ |
14560 | case $DLLTOOL_FOR_TARGET in |
14561 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14562 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14563 | ;; | |
2429c060 | 14564 | *) |
c6b750e1 DJ |
14565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14566 | for as_dir in $gcc_cv_tool_dirs | |
14567 | do | |
14568 | IFS=$as_save_IFS | |
14569 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14570 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14572 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14574 | break 2 |
14575 | fi | |
14576 | done | |
81ecdfbb RW |
14577 | done |
14578 | IFS=$as_save_IFS | |
c6b750e1 | 14579 | |
2429c060 PB |
14580 | ;; |
14581 | esac | |
14582 | fi | |
c6b750e1 | 14583 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 14584 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14586 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14587 | else |
81ecdfbb RW |
14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14589 | $as_echo "no" >&6; } | |
2429c060 PB |
14590 | fi |
14591 | ||
81ecdfbb | 14592 | |
2429c060 PB |
14593 | fi |
14594 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
14595 | |
14596 | ||
14597 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14598 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14599 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14600 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14601 | fi | |
14602 | ||
14603 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14604 | for ncn_progname in dlltool; do | |
14605 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14606 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14608 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14609 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14610 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14611 | else |
14612 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14613 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14614 | else | |
14615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14616 | for as_dir in $PATH | |
14617 | do | |
14618 | IFS=$as_save_IFS | |
14619 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14620 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14622 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14624 | break 2 |
14625 | fi | |
14626 | done | |
81ecdfbb RW |
14627 | done |
14628 | IFS=$as_save_IFS | |
9a819804 AO |
14629 | |
14630 | fi | |
14631 | fi | |
14632 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14633 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
14634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14635 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 14636 | else |
81ecdfbb RW |
14637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14638 | $as_echo "no" >&6; } | |
9a819804 AO |
14639 | fi |
14640 | ||
81ecdfbb | 14641 | |
9a819804 AO |
14642 | done |
14643 | fi | |
14644 | ||
14645 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14646 | for ncn_progname in dlltool; do |
81ecdfbb RW |
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14648 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14649 | if test -x $with_build_time_tools/${ncn_progname}; then |
14650 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14652 | $as_echo "yes" >&6; } | |
2429c060 PB |
14653 | break |
14654 | else | |
81ecdfbb RW |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14656 | $as_echo "no" >&6; } | |
2429c060 PB |
14657 | fi |
14658 | done | |
14659 | fi | |
14660 | ||
14661 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14662 | for ncn_progname in dlltool; do | |
14663 | if test -n "$ncn_target_tool_prefix"; then | |
14664 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14665 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14667 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14668 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14669 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14670 | else |
14671 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14672 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14673 | else | |
c6b750e1 DJ |
14674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14675 | for as_dir in $PATH | |
14676 | do | |
14677 | IFS=$as_save_IFS | |
14678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14679 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14681 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14683 | break 2 |
14684 | fi | |
14685 | done | |
81ecdfbb RW |
14686 | done |
14687 | IFS=$as_save_IFS | |
c6b750e1 | 14688 | |
2429c060 PB |
14689 | fi |
14690 | fi | |
c6b750e1 | 14691 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14692 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14694 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14695 | else |
81ecdfbb RW |
14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14697 | $as_echo "no" >&6; } | |
2429c060 PB |
14698 | fi |
14699 | ||
81ecdfbb | 14700 | |
2429c060 PB |
14701 | fi |
14702 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14703 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14704 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14706 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14707 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14708 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14709 | else |
14710 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14711 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14712 | else | |
c6b750e1 DJ |
14713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14714 | for as_dir in $PATH | |
14715 | do | |
14716 | IFS=$as_save_IFS | |
14717 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14718 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14720 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14722 | break 2 |
14723 | fi | |
14724 | done | |
81ecdfbb RW |
14725 | done |
14726 | IFS=$as_save_IFS | |
c6b750e1 | 14727 | |
2429c060 PB |
14728 | fi |
14729 | fi | |
c6b750e1 | 14730 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14731 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14733 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14734 | else |
81ecdfbb RW |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14736 | $as_echo "no" >&6; } | |
2429c060 | 14737 | fi |
c6b750e1 | 14738 | |
81ecdfbb | 14739 | |
2429c060 | 14740 | fi |
228cf97d AM |
14741 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break |
14742 | done | |
14743 | fi | |
14744 | ||
14745 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
14746 | set dummy dlltool | |
14747 | if test $build = $target ; then | |
14748 | DLLTOOL_FOR_TARGET="$2" | |
14749 | else | |
14750 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14751 | fi | |
14752 | else | |
14753 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
14754 | fi | |
14755 | ||
14756 | else | |
14757 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
14758 | fi | |
14759 | ||
14760 | ||
14761 | ||
14762 | ||
14763 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14764 | if test -n "$with_build_time_tools"; then | |
14765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14766 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14767 | if test -x $with_build_time_tools/dsymutil; then | |
14768 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14769 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14771 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14772 | else | |
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14774 | $as_echo "no" >&6; } | |
14775 | fi | |
14776 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14777 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14778 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14779 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14780 | fi | |
14781 | fi | |
14782 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14783 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14784 | set dummy dsymutil; ac_word=$2 | |
14785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14786 | $as_echo_n "checking for $ac_word... " >&6; } | |
14787 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14788 | $as_echo_n "(cached) " >&6 | |
14789 | else | |
14790 | case $DSYMUTIL_FOR_TARGET in | |
14791 | [\\/]* | ?:[\\/]*) | |
14792 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14793 | ;; | |
14794 | *) | |
14795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14796 | for as_dir in $gcc_cv_tool_dirs | |
14797 | do | |
14798 | IFS=$as_save_IFS | |
14799 | test -z "$as_dir" && as_dir=. | |
14800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14802 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14804 | break 2 | |
14805 | fi | |
14806 | done | |
14807 | done | |
14808 | IFS=$as_save_IFS | |
14809 | ||
14810 | ;; | |
14811 | esac | |
14812 | fi | |
14813 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14814 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14816 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14817 | else | |
14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14819 | $as_echo "no" >&6; } | |
14820 | fi | |
14821 | ||
14822 | ||
14823 | fi | |
14824 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14825 | ||
14826 | ||
14827 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14828 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14829 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14830 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14831 | fi | |
14832 | ||
14833 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14834 | for ncn_progname in dsymutil; do | |
14835 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14836 | set dummy ${ncn_progname}; ac_word=$2 | |
14837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14838 | $as_echo_n "checking for $ac_word... " >&6; } | |
14839 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14840 | $as_echo_n "(cached) " >&6 | |
14841 | else | |
14842 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14843 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14844 | else | |
14845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14846 | for as_dir in $PATH | |
14847 | do | |
14848 | IFS=$as_save_IFS | |
14849 | test -z "$as_dir" && as_dir=. | |
14850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14852 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14854 | break 2 | |
14855 | fi | |
14856 | done | |
14857 | done | |
14858 | IFS=$as_save_IFS | |
14859 | ||
14860 | fi | |
14861 | fi | |
14862 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14863 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14865 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14866 | else | |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14868 | $as_echo "no" >&6; } | |
14869 | fi | |
14870 | ||
14871 | ||
14872 | done | |
14873 | fi | |
14874 | ||
14875 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14876 | for ncn_progname in dsymutil; do | |
14877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14878 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14879 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14880 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14882 | $as_echo "yes" >&6; } | |
14883 | break | |
14884 | else | |
14885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14886 | $as_echo "no" >&6; } | |
14887 | fi | |
14888 | done | |
14889 | fi | |
14890 | ||
14891 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14892 | for ncn_progname in dsymutil; do | |
14893 | if test -n "$ncn_target_tool_prefix"; then | |
14894 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14895 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14897 | $as_echo_n "checking for $ac_word... " >&6; } | |
14898 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14899 | $as_echo_n "(cached) " >&6 | |
14900 | else | |
14901 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14902 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14903 | else | |
14904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14905 | for as_dir in $PATH | |
14906 | do | |
14907 | IFS=$as_save_IFS | |
14908 | test -z "$as_dir" && as_dir=. | |
14909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14911 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14913 | break 2 | |
14914 | fi | |
14915 | done | |
14916 | done | |
14917 | IFS=$as_save_IFS | |
14918 | ||
14919 | fi | |
14920 | fi | |
14921 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14922 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14924 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14925 | else | |
14926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14927 | $as_echo "no" >&6; } | |
14928 | fi | |
14929 | ||
14930 | ||
14931 | fi | |
14932 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14933 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14934 | set dummy ${ncn_progname}; ac_word=$2 | |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14936 | $as_echo_n "checking for $ac_word... " >&6; } | |
14937 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14938 | $as_echo_n "(cached) " >&6 | |
14939 | else | |
14940 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14941 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14942 | else | |
14943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14944 | for as_dir in $PATH | |
14945 | do | |
14946 | IFS=$as_save_IFS | |
14947 | test -z "$as_dir" && as_dir=. | |
14948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14950 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14952 | break 2 | |
14953 | fi | |
14954 | done | |
14955 | done | |
14956 | IFS=$as_save_IFS | |
14957 | ||
14958 | fi | |
14959 | fi | |
14960 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14961 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14963 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14964 | else | |
14965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14966 | $as_echo "no" >&6; } | |
14967 | fi | |
14968 | ||
14969 | ||
14970 | fi | |
14971 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
2429c060 PB |
14972 | done |
14973 | fi | |
c6b750e1 | 14974 | |
228cf97d AM |
14975 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then |
14976 | set dummy dsymutil | |
2429c060 | 14977 | if test $build = $target ; then |
228cf97d | 14978 | DSYMUTIL_FOR_TARGET="$2" |
2429c060 | 14979 | else |
228cf97d | 14980 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" |
2429c060 | 14981 | fi |
d3f5afc4 | 14982 | else |
228cf97d | 14983 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" |
2429c060 PB |
14984 | fi |
14985 | ||
3a35eeb3 | 14986 | else |
228cf97d | 14987 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET |
2429c060 PB |
14988 | fi |
14989 | ||
14990 | ||
14991 | ||
14992 | ||
14993 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
14994 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14996 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14997 | if test -x $with_build_time_tools/ld; then |
14998 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14999 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
15001 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 15002 | else |
81ecdfbb RW |
15003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15004 | $as_echo "no" >&6; } | |
3a35eeb3 | 15005 | fi |
2429c060 PB |
15006 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15007 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
15008 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15009 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
15010 | fi |
15011 | fi | |
c6b750e1 | 15012 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15013 | # Extract the first word of "ld", so it can be a program name with args. |
15014 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15016 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15017 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15018 | $as_echo_n "(cached) " >&6 |
2429c060 | 15019 | else |
c6b750e1 DJ |
15020 | case $LD_FOR_TARGET in |
15021 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15022 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15023 | ;; | |
2429c060 | 15024 | *) |
c6b750e1 DJ |
15025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15026 | for as_dir in $gcc_cv_tool_dirs | |
15027 | do | |
15028 | IFS=$as_save_IFS | |
15029 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15030 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15031 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15032 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15034 | break 2 |
15035 | fi | |
15036 | done | |
81ecdfbb RW |
15037 | done |
15038 | IFS=$as_save_IFS | |
c6b750e1 | 15039 | |
2429c060 PB |
15040 | ;; |
15041 | esac | |
15042 | fi | |
c6b750e1 | 15043 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 15044 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15046 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15047 | else |
81ecdfbb RW |
15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15049 | $as_echo "no" >&6; } | |
2429c060 PB |
15050 | fi |
15051 | ||
81ecdfbb | 15052 | |
2429c060 PB |
15053 | fi |
15054 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
15055 | |
15056 | ||
15057 | if test -n "$LD_FOR_TARGET"; then | |
15058 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15059 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15060 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15061 | fi | |
15062 | ||
15063 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15064 | for ncn_progname in ld; do | |
15065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15066 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15068 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15069 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15070 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15071 | else |
15072 | if test -n "$LD_FOR_TARGET"; then | |
15073 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15074 | else | |
15075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15076 | for as_dir in $PATH | |
15077 | do | |
15078 | IFS=$as_save_IFS | |
15079 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15080 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15082 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15084 | break 2 |
15085 | fi | |
15086 | done | |
81ecdfbb RW |
15087 | done |
15088 | IFS=$as_save_IFS | |
9a819804 AO |
15089 | |
15090 | fi | |
15091 | fi | |
15092 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15093 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
15094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15095 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 15096 | else |
81ecdfbb RW |
15097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15098 | $as_echo "no" >&6; } | |
9a819804 AO |
15099 | fi |
15100 | ||
81ecdfbb | 15101 | |
9a819804 AO |
15102 | done |
15103 | fi | |
15104 | ||
15105 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15106 | for ncn_progname in ld; do |
81ecdfbb RW |
15107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15108 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15109 | if test -x $with_build_time_tools/${ncn_progname}; then |
15110 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15112 | $as_echo "yes" >&6; } | |
2429c060 PB |
15113 | break |
15114 | else | |
81ecdfbb RW |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15116 | $as_echo "no" >&6; } | |
2429c060 PB |
15117 | fi |
15118 | done | |
15119 | fi | |
15120 | ||
15121 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
15122 | for ncn_progname in ld; do | |
15123 | if test -n "$ncn_target_tool_prefix"; then | |
15124 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15125 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15127 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15128 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15129 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15130 | else |
15131 | if test -n "$LD_FOR_TARGET"; then | |
15132 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15133 | else | |
c6b750e1 DJ |
15134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15135 | for as_dir in $PATH | |
15136 | do | |
15137 | IFS=$as_save_IFS | |
15138 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15139 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15141 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15143 | break 2 |
15144 | fi | |
15145 | done | |
81ecdfbb RW |
15146 | done |
15147 | IFS=$as_save_IFS | |
c6b750e1 | 15148 | |
2429c060 PB |
15149 | fi |
15150 | fi | |
c6b750e1 | 15151 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15152 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15154 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15155 | else |
81ecdfbb RW |
15156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15157 | $as_echo "no" >&6; } | |
2429c060 PB |
15158 | fi |
15159 | ||
81ecdfbb | 15160 | |
2429c060 PB |
15161 | fi |
15162 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15163 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15164 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15166 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15167 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15168 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15169 | else |
15170 | if test -n "$LD_FOR_TARGET"; then | |
15171 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15172 | else | |
c6b750e1 DJ |
15173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15174 | for as_dir in $PATH | |
15175 | do | |
15176 | IFS=$as_save_IFS | |
15177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15178 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15180 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15182 | break 2 |
15183 | fi | |
15184 | done | |
81ecdfbb RW |
15185 | done |
15186 | IFS=$as_save_IFS | |
c6b750e1 | 15187 | |
2429c060 PB |
15188 | fi |
15189 | fi | |
c6b750e1 | 15190 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15191 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15193 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15194 | else |
81ecdfbb RW |
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15196 | $as_echo "no" >&6; } | |
2429c060 | 15197 | fi |
c6b750e1 | 15198 | |
81ecdfbb | 15199 | |
2429c060 PB |
15200 | fi |
15201 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15202 | done | |
15203 | fi | |
c6b750e1 | 15204 | |
2429c060 PB |
15205 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15206 | set dummy ld | |
15207 | if test $build = $target ; then | |
15208 | LD_FOR_TARGET="$2" | |
15209 | else | |
15210 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15211 | fi | |
d3f5afc4 MS |
15212 | else |
15213 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
15214 | fi |
15215 | ||
3a35eeb3 PB |
15216 | else |
15217 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
15218 | fi |
15219 | ||
15220 | ||
15221 | ||
15222 | ||
15223 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15224 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15226 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15227 | if test -x $with_build_time_tools/lipo; then |
15228 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15229 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
15230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15231 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 15232 | else |
81ecdfbb RW |
15233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15234 | $as_echo "no" >&6; } | |
3a35eeb3 | 15235 | fi |
2429c060 PB |
15236 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15237 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
15238 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15239 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
15240 | fi |
15241 | fi | |
9a819804 AO |
15242 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15243 | # Extract the first word of "lipo", so it can be a program name with args. | |
15244 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
15245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15246 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15247 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15248 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15249 | else |
15250 | case $LIPO_FOR_TARGET in | |
15251 | [\\/]* | ?:[\\/]*) | |
15252 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15253 | ;; | |
15254 | *) | |
15255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15256 | for as_dir in $gcc_cv_tool_dirs | |
15257 | do | |
15258 | IFS=$as_save_IFS | |
15259 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15260 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15262 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15264 | break 2 |
15265 | fi | |
15266 | done | |
81ecdfbb RW |
15267 | done |
15268 | IFS=$as_save_IFS | |
9a819804 AO |
15269 | |
15270 | ;; | |
15271 | esac | |
15272 | fi | |
15273 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 15274 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15276 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 15277 | else |
81ecdfbb RW |
15278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15279 | $as_echo "no" >&6; } | |
9a819804 AO |
15280 | fi |
15281 | ||
81ecdfbb | 15282 | |
9a819804 AO |
15283 | fi |
15284 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15285 | ||
15286 | ||
15287 | if test -n "$LIPO_FOR_TARGET"; then | |
15288 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15289 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15290 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15291 | fi | |
15292 | ||
15293 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15294 | for ncn_progname in lipo; do | |
15295 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15296 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15298 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15299 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15300 | $as_echo_n "(cached) " >&6 |
2429c060 | 15301 | else |
9a819804 AO |
15302 | if test -n "$LIPO_FOR_TARGET"; then |
15303 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15304 | else | |
15305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15306 | for as_dir in $PATH | |
c6b750e1 DJ |
15307 | do |
15308 | IFS=$as_save_IFS | |
15309 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15310 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15312 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15314 | break 2 |
15315 | fi | |
15316 | done | |
81ecdfbb RW |
15317 | done |
15318 | IFS=$as_save_IFS | |
c6b750e1 | 15319 | |
2429c060 | 15320 | fi |
9a819804 AO |
15321 | fi |
15322 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 15323 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15325 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15326 | else |
81ecdfbb RW |
15327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15328 | $as_echo "no" >&6; } | |
2429c060 PB |
15329 | fi |
15330 | ||
81ecdfbb | 15331 | |
9a819804 | 15332 | done |
2429c060 | 15333 | fi |
9a819804 AO |
15334 | |
15335 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15336 | for ncn_progname in lipo; do |
81ecdfbb RW |
15337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15338 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15339 | if test -x $with_build_time_tools/${ncn_progname}; then |
15340 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15342 | $as_echo "yes" >&6; } | |
2429c060 PB |
15343 | break |
15344 | else | |
81ecdfbb RW |
15345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15346 | $as_echo "no" >&6; } | |
2429c060 PB |
15347 | fi |
15348 | done | |
15349 | fi | |
15350 | ||
15351 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15352 | for ncn_progname in lipo; do | |
15353 | if test -n "$ncn_target_tool_prefix"; then | |
15354 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15355 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15357 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15358 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15359 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15360 | else |
15361 | if test -n "$LIPO_FOR_TARGET"; then | |
15362 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15363 | else | |
c6b750e1 DJ |
15364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15365 | for as_dir in $PATH | |
15366 | do | |
15367 | IFS=$as_save_IFS | |
15368 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15369 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15371 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15373 | break 2 |
15374 | fi | |
15375 | done | |
81ecdfbb RW |
15376 | done |
15377 | IFS=$as_save_IFS | |
c6b750e1 | 15378 | |
2429c060 PB |
15379 | fi |
15380 | fi | |
c6b750e1 | 15381 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15382 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15384 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15385 | else |
81ecdfbb RW |
15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15387 | $as_echo "no" >&6; } | |
2429c060 PB |
15388 | fi |
15389 | ||
81ecdfbb | 15390 | |
2429c060 PB |
15391 | fi |
15392 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15393 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15394 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15396 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15397 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15398 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15399 | else |
15400 | if test -n "$LIPO_FOR_TARGET"; then | |
15401 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15402 | else | |
c6b750e1 DJ |
15403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15404 | for as_dir in $PATH | |
15405 | do | |
15406 | IFS=$as_save_IFS | |
15407 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15408 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15410 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15412 | break 2 |
15413 | fi | |
15414 | done | |
81ecdfbb RW |
15415 | done |
15416 | IFS=$as_save_IFS | |
c6b750e1 | 15417 | |
2429c060 PB |
15418 | fi |
15419 | fi | |
c6b750e1 | 15420 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15421 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15423 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15424 | else |
81ecdfbb RW |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15426 | $as_echo "no" >&6; } | |
2429c060 | 15427 | fi |
c6b750e1 | 15428 | |
81ecdfbb | 15429 | |
2429c060 PB |
15430 | fi |
15431 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15432 | done | |
15433 | fi | |
c6b750e1 | 15434 | |
2429c060 PB |
15435 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15436 | set dummy lipo | |
15437 | if test $build = $target ; then | |
15438 | LIPO_FOR_TARGET="$2" | |
15439 | else | |
15440 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15441 | fi | |
d3f5afc4 MS |
15442 | else |
15443 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
15444 | fi |
15445 | ||
3a35eeb3 PB |
15446 | else |
15447 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
15448 | fi |
15449 | ||
15450 | ||
15451 | ||
15452 | ||
15453 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15454 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15456 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15457 | if test -x $with_build_time_tools/nm; then |
15458 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15459 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
15460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15461 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 15462 | else |
81ecdfbb RW |
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15464 | $as_echo "no" >&6; } | |
3a35eeb3 | 15465 | fi |
2429c060 PB |
15466 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15467 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
15468 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15469 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
15470 | fi |
15471 | fi | |
c6b750e1 | 15472 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15473 | # Extract the first word of "nm", so it can be a program name with args. |
15474 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
15475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15476 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15477 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15478 | $as_echo_n "(cached) " >&6 |
2429c060 | 15479 | else |
c6b750e1 DJ |
15480 | case $NM_FOR_TARGET in |
15481 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15482 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15483 | ;; | |
2429c060 | 15484 | *) |
c6b750e1 DJ |
15485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15486 | for as_dir in $gcc_cv_tool_dirs | |
15487 | do | |
15488 | IFS=$as_save_IFS | |
15489 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15490 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15492 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15494 | break 2 |
15495 | fi | |
15496 | done | |
81ecdfbb RW |
15497 | done |
15498 | IFS=$as_save_IFS | |
c6b750e1 | 15499 | |
2429c060 PB |
15500 | ;; |
15501 | esac | |
15502 | fi | |
c6b750e1 | 15503 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 15504 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15506 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 15507 | else |
81ecdfbb RW |
15508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15509 | $as_echo "no" >&6; } | |
2429c060 PB |
15510 | fi |
15511 | ||
81ecdfbb | 15512 | |
2429c060 PB |
15513 | fi |
15514 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
15515 | |
15516 | ||
15517 | if test -n "$NM_FOR_TARGET"; then | |
15518 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15519 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15520 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15521 | fi | |
15522 | ||
15523 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15524 | for ncn_progname in nm; do | |
15525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15526 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15528 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15529 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15530 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15531 | else |
15532 | if test -n "$NM_FOR_TARGET"; then | |
15533 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15534 | else | |
15535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15536 | for as_dir in $PATH | |
15537 | do | |
15538 | IFS=$as_save_IFS | |
15539 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15540 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15542 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15544 | break 2 |
15545 | fi | |
15546 | done | |
81ecdfbb RW |
15547 | done |
15548 | IFS=$as_save_IFS | |
9a819804 AO |
15549 | |
15550 | fi | |
15551 | fi | |
15552 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15553 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15555 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 15556 | else |
81ecdfbb RW |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15558 | $as_echo "no" >&6; } | |
9a819804 AO |
15559 | fi |
15560 | ||
81ecdfbb | 15561 | |
9a819804 AO |
15562 | done |
15563 | fi | |
15564 | ||
15565 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15566 | for ncn_progname in nm; do |
81ecdfbb RW |
15567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15568 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15569 | if test -x $with_build_time_tools/${ncn_progname}; then |
15570 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15572 | $as_echo "yes" >&6; } | |
2429c060 PB |
15573 | break |
15574 | else | |
81ecdfbb RW |
15575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15576 | $as_echo "no" >&6; } | |
2429c060 PB |
15577 | fi |
15578 | done | |
15579 | fi | |
15580 | ||
15581 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15582 | for ncn_progname in nm; do | |
15583 | if test -n "$ncn_target_tool_prefix"; then | |
15584 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 15585 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15587 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15588 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15589 | $as_echo_n "(cached) " >&6 |
859789af | 15590 | else |
55db4b87 PB |
15591 | if test -n "$NM_FOR_TARGET"; then |
15592 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15593 | else |
c6b750e1 DJ |
15594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15595 | for as_dir in $PATH | |
15596 | do | |
15597 | IFS=$as_save_IFS | |
15598 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15599 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15601 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15603 | break 2 |
15604 | fi | |
15605 | done | |
81ecdfbb RW |
15606 | done |
15607 | IFS=$as_save_IFS | |
c6b750e1 | 15608 | |
859789af AC |
15609 | fi |
15610 | fi | |
c6b750e1 | 15611 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 15612 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15614 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15615 | else |
81ecdfbb RW |
15616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15617 | $as_echo "no" >&6; } | |
859789af AC |
15618 | fi |
15619 | ||
81ecdfbb | 15620 | |
2429c060 PB |
15621 | fi |
15622 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15623 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 15624 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15626 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15627 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15628 | $as_echo_n "(cached) " >&6 |
859789af | 15629 | else |
05cbd757 PB |
15630 | if test -n "$NM_FOR_TARGET"; then |
15631 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15632 | else |
c6b750e1 DJ |
15633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15634 | for as_dir in $PATH | |
15635 | do | |
15636 | IFS=$as_save_IFS | |
15637 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15638 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15640 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15642 | break 2 |
15643 | fi | |
15644 | done | |
81ecdfbb RW |
15645 | done |
15646 | IFS=$as_save_IFS | |
c6b750e1 | 15647 | |
859789af AC |
15648 | fi |
15649 | fi | |
c6b750e1 | 15650 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 15651 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15653 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15654 | else |
81ecdfbb RW |
15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15656 | $as_echo "no" >&6; } | |
859789af | 15657 | fi |
c6b750e1 | 15658 | |
81ecdfbb | 15659 | |
2429c060 PB |
15660 | fi |
15661 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15662 | done | |
15663 | fi | |
c6b750e1 | 15664 | |
05cbd757 PB |
15665 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15666 | set dummy nm | |
15667 | if test $build = $target ; then | |
15668 | NM_FOR_TARGET="$2" | |
859789af | 15669 | else |
05cbd757 | 15670 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 15671 | fi |
d3f5afc4 MS |
15672 | else |
15673 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
15674 | fi |
15675 | ||
3a35eeb3 PB |
15676 | else |
15677 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
15678 | fi |
15679 | ||
15680 | ||
15681 | ||
15682 | ||
6b91c541 AP |
15683 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15684 | if test -n "$with_build_time_tools"; then | |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15686 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15687 | if test -x $with_build_time_tools/objcopy; then | |
15688 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15689 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15691 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15692 | else | |
15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15694 | $as_echo "no" >&6; } | |
15695 | fi | |
15696 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15697 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15698 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15699 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15700 | fi | |
15701 | fi | |
15702 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15703 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15704 | set dummy objcopy; ac_word=$2 | |
15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15706 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15707 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15708 | $as_echo_n "(cached) " >&6 |
15709 | else | |
15710 | case $OBJCOPY_FOR_TARGET in | |
15711 | [\\/]* | ?:[\\/]*) | |
15712 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15713 | ;; | |
15714 | *) | |
15715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15716 | for as_dir in $gcc_cv_tool_dirs | |
15717 | do | |
15718 | IFS=$as_save_IFS | |
15719 | test -z "$as_dir" && as_dir=. | |
15720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15722 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15724 | break 2 | |
15725 | fi | |
15726 | done | |
15727 | done | |
15728 | IFS=$as_save_IFS | |
15729 | ||
15730 | ;; | |
15731 | esac | |
15732 | fi | |
15733 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15734 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15736 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15737 | else | |
15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15739 | $as_echo "no" >&6; } | |
15740 | fi | |
15741 | ||
15742 | ||
15743 | fi | |
15744 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15745 | ||
15746 | ||
15747 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15748 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15749 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15750 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15751 | fi | |
15752 | ||
15753 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15754 | for ncn_progname in objcopy; do | |
15755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15756 | set dummy ${ncn_progname}; ac_word=$2 | |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15758 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15759 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15760 | $as_echo_n "(cached) " >&6 |
15761 | else | |
15762 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15763 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15764 | else | |
15765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15766 | for as_dir in $PATH | |
15767 | do | |
15768 | IFS=$as_save_IFS | |
15769 | test -z "$as_dir" && as_dir=. | |
15770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15772 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15774 | break 2 | |
15775 | fi | |
15776 | done | |
15777 | done | |
15778 | IFS=$as_save_IFS | |
15779 | ||
15780 | fi | |
15781 | fi | |
15782 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15783 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15785 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15786 | else | |
15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15788 | $as_echo "no" >&6; } | |
15789 | fi | |
15790 | ||
15791 | ||
15792 | done | |
15793 | fi | |
15794 | ||
15795 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15796 | for ncn_progname in objcopy; do | |
15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15798 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15799 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15800 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15802 | $as_echo "yes" >&6; } | |
15803 | break | |
15804 | else | |
15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15806 | $as_echo "no" >&6; } | |
15807 | fi | |
15808 | done | |
15809 | fi | |
15810 | ||
15811 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15812 | for ncn_progname in objcopy; do | |
15813 | if test -n "$ncn_target_tool_prefix"; then | |
15814 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15815 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15817 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15818 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15819 | $as_echo_n "(cached) " >&6 |
15820 | else | |
15821 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15822 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15823 | else | |
15824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15825 | for as_dir in $PATH | |
15826 | do | |
15827 | IFS=$as_save_IFS | |
15828 | test -z "$as_dir" && as_dir=. | |
15829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15831 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15833 | break 2 | |
15834 | fi | |
15835 | done | |
15836 | done | |
15837 | IFS=$as_save_IFS | |
15838 | ||
15839 | fi | |
15840 | fi | |
15841 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15842 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15844 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15845 | else | |
15846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15847 | $as_echo "no" >&6; } | |
15848 | fi | |
15849 | ||
15850 | ||
15851 | fi | |
15852 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15853 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15854 | set dummy ${ncn_progname}; ac_word=$2 | |
15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15856 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15857 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15858 | $as_echo_n "(cached) " >&6 |
15859 | else | |
15860 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15861 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15862 | else | |
15863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15864 | for as_dir in $PATH | |
15865 | do | |
15866 | IFS=$as_save_IFS | |
15867 | test -z "$as_dir" && as_dir=. | |
15868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15870 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15872 | break 2 | |
15873 | fi | |
15874 | done | |
15875 | done | |
15876 | IFS=$as_save_IFS | |
15877 | ||
15878 | fi | |
15879 | fi | |
15880 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15881 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15883 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15884 | else | |
15885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15886 | $as_echo "no" >&6; } | |
15887 | fi | |
15888 | ||
15889 | ||
15890 | fi | |
15891 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15892 | done | |
15893 | fi | |
15894 | ||
15895 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15896 | set dummy objcopy | |
15897 | if test $build = $target ; then | |
15898 | OBJCOPY_FOR_TARGET="$2" | |
15899 | else | |
15900 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15901 | fi | |
15902 | else | |
15903 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15904 | fi | |
15905 | ||
15906 | else | |
15907 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15908 | fi | |
15909 | ||
15910 | ||
15911 | ||
15912 | ||
2429c060 PB |
15913 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15914 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15916 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15917 | if test -x $with_build_time_tools/objdump; then |
15918 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15919 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
15920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15921 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 15922 | else |
81ecdfbb RW |
15923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15924 | $as_echo "no" >&6; } | |
3a35eeb3 | 15925 | fi |
2429c060 PB |
15926 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15927 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
15928 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15929 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
15930 | fi |
15931 | fi | |
c6b750e1 | 15932 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15933 | # Extract the first word of "objdump", so it can be a program name with args. |
15934 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15936 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15937 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15938 | $as_echo_n "(cached) " >&6 |
2429c060 | 15939 | else |
c6b750e1 DJ |
15940 | case $OBJDUMP_FOR_TARGET in |
15941 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15942 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15943 | ;; | |
2429c060 | 15944 | *) |
c6b750e1 DJ |
15945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15946 | for as_dir in $gcc_cv_tool_dirs | |
15947 | do | |
15948 | IFS=$as_save_IFS | |
15949 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15950 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15952 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15954 | break 2 |
15955 | fi | |
15956 | done | |
81ecdfbb RW |
15957 | done |
15958 | IFS=$as_save_IFS | |
c6b750e1 | 15959 | |
2429c060 PB |
15960 | ;; |
15961 | esac | |
15962 | fi | |
c6b750e1 | 15963 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 15964 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
15965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15966 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 15967 | else |
81ecdfbb RW |
15968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15969 | $as_echo "no" >&6; } | |
2429c060 PB |
15970 | fi |
15971 | ||
81ecdfbb | 15972 | |
2429c060 PB |
15973 | fi |
15974 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
15975 | |
15976 | ||
15977 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15978 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15979 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15980 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15981 | fi | |
15982 | ||
15983 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15984 | for ncn_progname in objdump; do | |
15985 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15986 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15988 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15989 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15990 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15991 | else |
15992 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15993 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15994 | else | |
15995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15996 | for as_dir in $PATH | |
15997 | do | |
15998 | IFS=$as_save_IFS | |
15999 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16000 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16001 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16002 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16004 | break 2 |
16005 | fi | |
16006 | done | |
81ecdfbb RW |
16007 | done |
16008 | IFS=$as_save_IFS | |
9a819804 AO |
16009 | |
16010 | fi | |
16011 | fi | |
16012 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16013 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16015 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 16016 | else |
81ecdfbb RW |
16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16018 | $as_echo "no" >&6; } | |
9a819804 AO |
16019 | fi |
16020 | ||
81ecdfbb | 16021 | |
9a819804 AO |
16022 | done |
16023 | fi | |
16024 | ||
16025 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16026 | for ncn_progname in objdump; do |
81ecdfbb RW |
16027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16028 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16029 | if test -x $with_build_time_tools/${ncn_progname}; then |
16030 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16032 | $as_echo "yes" >&6; } | |
2429c060 PB |
16033 | break |
16034 | else | |
81ecdfbb RW |
16035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16036 | $as_echo "no" >&6; } | |
2429c060 PB |
16037 | fi |
16038 | done | |
16039 | fi | |
16040 | ||
16041 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16042 | for ncn_progname in objdump; do | |
16043 | if test -n "$ncn_target_tool_prefix"; then | |
16044 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16045 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16047 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16048 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16049 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16050 | else |
16051 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16052 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16053 | else | |
c6b750e1 DJ |
16054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16055 | for as_dir in $PATH | |
16056 | do | |
16057 | IFS=$as_save_IFS | |
16058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16059 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16061 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16063 | break 2 |
16064 | fi | |
16065 | done | |
81ecdfbb RW |
16066 | done |
16067 | IFS=$as_save_IFS | |
c6b750e1 | 16068 | |
5ae72758 DJ |
16069 | fi |
16070 | fi | |
c6b750e1 | 16071 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16072 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16074 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16075 | else |
81ecdfbb RW |
16076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16077 | $as_echo "no" >&6; } | |
5ae72758 DJ |
16078 | fi |
16079 | ||
81ecdfbb | 16080 | |
2429c060 PB |
16081 | fi |
16082 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16083 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16084 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16086 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16087 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16088 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16089 | else |
16090 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16091 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16092 | else | |
c6b750e1 DJ |
16093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16094 | for as_dir in $PATH | |
16095 | do | |
16096 | IFS=$as_save_IFS | |
16097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16098 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16100 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16102 | break 2 |
16103 | fi | |
16104 | done | |
81ecdfbb RW |
16105 | done |
16106 | IFS=$as_save_IFS | |
c6b750e1 | 16107 | |
5ae72758 DJ |
16108 | fi |
16109 | fi | |
c6b750e1 | 16110 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16111 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16113 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16114 | else |
81ecdfbb RW |
16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16116 | $as_echo "no" >&6; } | |
5ae72758 | 16117 | fi |
c6b750e1 | 16118 | |
81ecdfbb | 16119 | |
2429c060 PB |
16120 | fi |
16121 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16122 | done | |
16123 | fi | |
c6b750e1 | 16124 | |
5ae72758 DJ |
16125 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16126 | set dummy objdump | |
16127 | if test $build = $target ; then | |
16128 | OBJDUMP_FOR_TARGET="$2" | |
16129 | else | |
16130 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16131 | fi | |
d3f5afc4 MS |
16132 | else |
16133 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
16134 | fi |
16135 | ||
3a35eeb3 PB |
16136 | else |
16137 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
16138 | fi |
16139 | ||
16140 | ||
16141 | ||
16142 | ||
228cf97d AM |
16143 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16144 | if test -n "$with_build_time_tools"; then | |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16146 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16147 | if test -x $with_build_time_tools/otool; then | |
16148 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16149 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16151 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16152 | else | |
16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16154 | $as_echo "no" >&6; } | |
16155 | fi | |
16156 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16157 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16158 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16159 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16160 | fi | |
16161 | fi | |
16162 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16163 | # Extract the first word of "otool", so it can be a program name with args. | |
16164 | set dummy otool; ac_word=$2 | |
16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16166 | $as_echo_n "checking for $ac_word... " >&6; } | |
16167 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16168 | $as_echo_n "(cached) " >&6 | |
16169 | else | |
16170 | case $OTOOL_FOR_TARGET in | |
16171 | [\\/]* | ?:[\\/]*) | |
16172 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16173 | ;; | |
16174 | *) | |
16175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16176 | for as_dir in $gcc_cv_tool_dirs | |
16177 | do | |
16178 | IFS=$as_save_IFS | |
16179 | test -z "$as_dir" && as_dir=. | |
16180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16182 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16184 | break 2 | |
16185 | fi | |
16186 | done | |
16187 | done | |
16188 | IFS=$as_save_IFS | |
16189 | ||
16190 | ;; | |
16191 | esac | |
16192 | fi | |
16193 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16194 | if test -n "$OTOOL_FOR_TARGET"; then | |
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16196 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16197 | else | |
16198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16199 | $as_echo "no" >&6; } | |
16200 | fi | |
16201 | ||
16202 | ||
16203 | fi | |
16204 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16205 | ||
16206 | ||
16207 | if test -n "$OTOOL_FOR_TARGET"; then | |
16208 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16209 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16210 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16211 | fi | |
16212 | ||
16213 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16214 | for ncn_progname in otool; do | |
16215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16216 | set dummy ${ncn_progname}; ac_word=$2 | |
16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16218 | $as_echo_n "checking for $ac_word... " >&6; } | |
16219 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16220 | $as_echo_n "(cached) " >&6 | |
16221 | else | |
16222 | if test -n "$OTOOL_FOR_TARGET"; then | |
16223 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16224 | else | |
16225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16226 | for as_dir in $PATH | |
16227 | do | |
16228 | IFS=$as_save_IFS | |
16229 | test -z "$as_dir" && as_dir=. | |
16230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16232 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16234 | break 2 | |
16235 | fi | |
16236 | done | |
16237 | done | |
16238 | IFS=$as_save_IFS | |
16239 | ||
16240 | fi | |
16241 | fi | |
16242 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16243 | if test -n "$OTOOL_FOR_TARGET"; then | |
16244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16245 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16246 | else | |
16247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16248 | $as_echo "no" >&6; } | |
16249 | fi | |
16250 | ||
16251 | ||
16252 | done | |
16253 | fi | |
16254 | ||
16255 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16256 | for ncn_progname in otool; do | |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16258 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16259 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16260 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16262 | $as_echo "yes" >&6; } | |
16263 | break | |
16264 | else | |
16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16266 | $as_echo "no" >&6; } | |
16267 | fi | |
16268 | done | |
16269 | fi | |
16270 | ||
16271 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16272 | for ncn_progname in otool; do | |
16273 | if test -n "$ncn_target_tool_prefix"; then | |
16274 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16275 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16277 | $as_echo_n "checking for $ac_word... " >&6; } | |
16278 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16279 | $as_echo_n "(cached) " >&6 | |
16280 | else | |
16281 | if test -n "$OTOOL_FOR_TARGET"; then | |
16282 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16283 | else | |
16284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16285 | for as_dir in $PATH | |
16286 | do | |
16287 | IFS=$as_save_IFS | |
16288 | test -z "$as_dir" && as_dir=. | |
16289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16291 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16293 | break 2 | |
16294 | fi | |
16295 | done | |
16296 | done | |
16297 | IFS=$as_save_IFS | |
16298 | ||
16299 | fi | |
16300 | fi | |
16301 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16302 | if test -n "$OTOOL_FOR_TARGET"; then | |
16303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16304 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16305 | else | |
16306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16307 | $as_echo "no" >&6; } | |
16308 | fi | |
16309 | ||
16310 | ||
16311 | fi | |
16312 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16313 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16314 | set dummy ${ncn_progname}; ac_word=$2 | |
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16316 | $as_echo_n "checking for $ac_word... " >&6; } | |
16317 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16318 | $as_echo_n "(cached) " >&6 | |
16319 | else | |
16320 | if test -n "$OTOOL_FOR_TARGET"; then | |
16321 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16322 | else | |
16323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16324 | for as_dir in $PATH | |
16325 | do | |
16326 | IFS=$as_save_IFS | |
16327 | test -z "$as_dir" && as_dir=. | |
16328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16330 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16332 | break 2 | |
16333 | fi | |
16334 | done | |
16335 | done | |
16336 | IFS=$as_save_IFS | |
16337 | ||
16338 | fi | |
16339 | fi | |
16340 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16341 | if test -n "$OTOOL_FOR_TARGET"; then | |
16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16343 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16344 | else | |
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16346 | $as_echo "no" >&6; } | |
16347 | fi | |
16348 | ||
16349 | ||
16350 | fi | |
16351 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16352 | done | |
16353 | fi | |
16354 | ||
16355 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16356 | set dummy otool | |
16357 | if test $build = $target ; then | |
16358 | OTOOL_FOR_TARGET="$2" | |
16359 | else | |
16360 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16361 | fi | |
16362 | else | |
16363 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16364 | fi | |
16365 | ||
16366 | else | |
16367 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16368 | fi | |
16369 | ||
16370 | ||
16371 | ||
16372 | ||
2429c060 PB |
16373 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16374 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16376 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16377 | if test -x $with_build_time_tools/ranlib; then |
16378 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16379 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16381 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 16382 | else |
81ecdfbb RW |
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16384 | $as_echo "no" >&6; } | |
3a35eeb3 | 16385 | fi |
2429c060 PB |
16386 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16387 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
16388 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16389 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
16390 | fi |
16391 | fi | |
c6b750e1 | 16392 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16393 | # Extract the first word of "ranlib", so it can be a program name with args. |
16394 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16396 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16397 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16398 | $as_echo_n "(cached) " >&6 |
2429c060 | 16399 | else |
c6b750e1 DJ |
16400 | case $RANLIB_FOR_TARGET in |
16401 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16402 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16403 | ;; | |
2429c060 | 16404 | *) |
c6b750e1 DJ |
16405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16406 | for as_dir in $gcc_cv_tool_dirs | |
16407 | do | |
16408 | IFS=$as_save_IFS | |
16409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16410 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16412 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16414 | break 2 |
16415 | fi | |
16416 | done | |
81ecdfbb RW |
16417 | done |
16418 | IFS=$as_save_IFS | |
c6b750e1 | 16419 | |
2429c060 PB |
16420 | ;; |
16421 | esac | |
16422 | fi | |
c6b750e1 | 16423 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 16424 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16426 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 16427 | else |
81ecdfbb RW |
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16429 | $as_echo "no" >&6; } | |
2429c060 PB |
16430 | fi |
16431 | ||
81ecdfbb | 16432 | |
2429c060 PB |
16433 | fi |
16434 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
16435 | |
16436 | ||
16437 | if test -n "$RANLIB_FOR_TARGET"; then | |
16438 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16439 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16440 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16441 | fi | |
16442 | ||
16443 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16444 | for ncn_progname in ranlib; do | |
16445 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16446 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16448 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16449 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16450 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16451 | else |
16452 | if test -n "$RANLIB_FOR_TARGET"; then | |
16453 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16454 | else | |
16455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16456 | for as_dir in $PATH | |
16457 | do | |
16458 | IFS=$as_save_IFS | |
16459 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16460 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16462 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16464 | break 2 |
16465 | fi | |
16466 | done | |
81ecdfbb RW |
16467 | done |
16468 | IFS=$as_save_IFS | |
9a819804 AO |
16469 | |
16470 | fi | |
16471 | fi | |
16472 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16473 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
16474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16475 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 16476 | else |
81ecdfbb RW |
16477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16478 | $as_echo "no" >&6; } | |
9a819804 AO |
16479 | fi |
16480 | ||
81ecdfbb | 16481 | |
9a819804 AO |
16482 | done |
16483 | fi | |
16484 | ||
16485 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16486 | for ncn_progname in ranlib; do |
81ecdfbb RW |
16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16488 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16489 | if test -x $with_build_time_tools/${ncn_progname}; then |
16490 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16492 | $as_echo "yes" >&6; } | |
2429c060 PB |
16493 | break |
16494 | else | |
81ecdfbb RW |
16495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16496 | $as_echo "no" >&6; } | |
2429c060 PB |
16497 | fi |
16498 | done | |
16499 | fi | |
16500 | ||
16501 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16502 | for ncn_progname in ranlib; do | |
16503 | if test -n "$ncn_target_tool_prefix"; then | |
16504 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16505 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16507 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16508 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16509 | $as_echo_n "(cached) " >&6 |
859789af | 16510 | else |
55db4b87 PB |
16511 | if test -n "$RANLIB_FOR_TARGET"; then |
16512 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16513 | else |
c6b750e1 DJ |
16514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16515 | for as_dir in $PATH | |
16516 | do | |
16517 | IFS=$as_save_IFS | |
16518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16519 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16521 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16523 | break 2 |
16524 | fi | |
16525 | done | |
81ecdfbb RW |
16526 | done |
16527 | IFS=$as_save_IFS | |
c6b750e1 | 16528 | |
859789af AC |
16529 | fi |
16530 | fi | |
c6b750e1 | 16531 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 16532 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16534 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16535 | else |
81ecdfbb RW |
16536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16537 | $as_echo "no" >&6; } | |
859789af AC |
16538 | fi |
16539 | ||
81ecdfbb | 16540 | |
2429c060 PB |
16541 | fi |
16542 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16544 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16546 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16547 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16548 | $as_echo_n "(cached) " >&6 |
859789af | 16549 | else |
05cbd757 PB |
16550 | if test -n "$RANLIB_FOR_TARGET"; then |
16551 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16552 | else |
c6b750e1 DJ |
16553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16554 | for as_dir in $PATH | |
16555 | do | |
16556 | IFS=$as_save_IFS | |
16557 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16558 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16560 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16562 | break 2 |
16563 | fi | |
16564 | done | |
81ecdfbb RW |
16565 | done |
16566 | IFS=$as_save_IFS | |
c6b750e1 | 16567 | |
859789af AC |
16568 | fi |
16569 | fi | |
c6b750e1 | 16570 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 16571 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16573 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16574 | else |
81ecdfbb RW |
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16576 | $as_echo "no" >&6; } | |
859789af | 16577 | fi |
c6b750e1 | 16578 | |
81ecdfbb | 16579 | |
2429c060 PB |
16580 | fi |
16581 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16582 | done | |
16583 | fi | |
c6b750e1 | 16584 | |
2429c060 PB |
16585 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16586 | set dummy ranlib | |
16587 | if test $build = $target ; then | |
16588 | RANLIB_FOR_TARGET="$2" | |
16589 | else | |
16590 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 16591 | fi |
d3f5afc4 MS |
16592 | else |
16593 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 16594 | fi |
05cbd757 | 16595 | |
3a35eeb3 PB |
16596 | else |
16597 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
16598 | fi |
16599 | ||
2429c060 PB |
16600 | |
16601 | ||
16602 | ||
b121d7d4 DD |
16603 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16604 | if test -n "$with_build_time_tools"; then | |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16606 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16607 | if test -x $with_build_time_tools/readelf; then | |
16608 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16609 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16611 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16612 | else | |
16613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16614 | $as_echo "no" >&6; } | |
16615 | fi | |
16616 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16617 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16618 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16619 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16620 | fi | |
16621 | fi | |
16622 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16623 | # Extract the first word of "readelf", so it can be a program name with args. | |
16624 | set dummy readelf; ac_word=$2 | |
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16626 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16627 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16628 | $as_echo_n "(cached) " >&6 |
16629 | else | |
16630 | case $READELF_FOR_TARGET in | |
16631 | [\\/]* | ?:[\\/]*) | |
16632 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16633 | ;; | |
16634 | *) | |
16635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16636 | for as_dir in $gcc_cv_tool_dirs | |
16637 | do | |
16638 | IFS=$as_save_IFS | |
16639 | test -z "$as_dir" && as_dir=. | |
16640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16642 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16644 | break 2 | |
16645 | fi | |
16646 | done | |
16647 | done | |
16648 | IFS=$as_save_IFS | |
16649 | ||
16650 | ;; | |
16651 | esac | |
16652 | fi | |
16653 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16654 | if test -n "$READELF_FOR_TARGET"; then | |
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16656 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16657 | else | |
16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16659 | $as_echo "no" >&6; } | |
16660 | fi | |
16661 | ||
16662 | ||
16663 | fi | |
16664 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16665 | ||
16666 | ||
16667 | if test -n "$READELF_FOR_TARGET"; then | |
16668 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16669 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16670 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16671 | fi | |
16672 | ||
16673 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16674 | for ncn_progname in readelf; do | |
16675 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16676 | set dummy ${ncn_progname}; ac_word=$2 | |
16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16678 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16679 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16680 | $as_echo_n "(cached) " >&6 |
16681 | else | |
16682 | if test -n "$READELF_FOR_TARGET"; then | |
16683 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16684 | else | |
16685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16686 | for as_dir in $PATH | |
16687 | do | |
16688 | IFS=$as_save_IFS | |
16689 | test -z "$as_dir" && as_dir=. | |
16690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16692 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16694 | break 2 | |
16695 | fi | |
16696 | done | |
16697 | done | |
16698 | IFS=$as_save_IFS | |
16699 | ||
16700 | fi | |
16701 | fi | |
16702 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16703 | if test -n "$READELF_FOR_TARGET"; then | |
16704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16705 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16706 | else | |
16707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16708 | $as_echo "no" >&6; } | |
16709 | fi | |
16710 | ||
16711 | ||
16712 | done | |
16713 | fi | |
16714 | ||
16715 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16716 | for ncn_progname in readelf; do | |
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16718 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16719 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16720 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16722 | $as_echo "yes" >&6; } | |
16723 | break | |
16724 | else | |
16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16726 | $as_echo "no" >&6; } | |
16727 | fi | |
16728 | done | |
16729 | fi | |
16730 | ||
16731 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16732 | for ncn_progname in readelf; do | |
16733 | if test -n "$ncn_target_tool_prefix"; then | |
16734 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16735 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16737 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16738 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16739 | $as_echo_n "(cached) " >&6 |
16740 | else | |
16741 | if test -n "$READELF_FOR_TARGET"; then | |
16742 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16743 | else | |
16744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16745 | for as_dir in $PATH | |
16746 | do | |
16747 | IFS=$as_save_IFS | |
16748 | test -z "$as_dir" && as_dir=. | |
16749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16750 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16751 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16753 | break 2 | |
16754 | fi | |
16755 | done | |
16756 | done | |
16757 | IFS=$as_save_IFS | |
16758 | ||
16759 | fi | |
16760 | fi | |
16761 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16762 | if test -n "$READELF_FOR_TARGET"; then | |
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16764 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16765 | else | |
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16767 | $as_echo "no" >&6; } | |
16768 | fi | |
16769 | ||
16770 | ||
16771 | fi | |
16772 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16773 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16774 | set dummy ${ncn_progname}; ac_word=$2 | |
16775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16776 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16777 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16778 | $as_echo_n "(cached) " >&6 |
16779 | else | |
16780 | if test -n "$READELF_FOR_TARGET"; then | |
16781 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16782 | else | |
16783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16784 | for as_dir in $PATH | |
16785 | do | |
16786 | IFS=$as_save_IFS | |
16787 | test -z "$as_dir" && as_dir=. | |
16788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16790 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16792 | break 2 | |
16793 | fi | |
16794 | done | |
16795 | done | |
16796 | IFS=$as_save_IFS | |
16797 | ||
16798 | fi | |
16799 | fi | |
16800 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16801 | if test -n "$READELF_FOR_TARGET"; then | |
16802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16803 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16804 | else | |
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16806 | $as_echo "no" >&6; } | |
16807 | fi | |
16808 | ||
16809 | ||
16810 | fi | |
16811 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16812 | done | |
16813 | fi | |
16814 | ||
16815 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16816 | set dummy readelf | |
16817 | if test $build = $target ; then | |
16818 | READELF_FOR_TARGET="$2" | |
16819 | else | |
16820 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16821 | fi | |
16822 | else | |
16823 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16824 | fi | |
16825 | ||
16826 | else | |
16827 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16828 | fi | |
16829 | ||
16830 | ||
16831 | ||
16832 | ||
2429c060 PB |
16833 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16834 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16836 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16837 | if test -x $with_build_time_tools/strip; then |
16838 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16839 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
16840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16841 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 16842 | else |
81ecdfbb RW |
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16844 | $as_echo "no" >&6; } | |
3a35eeb3 | 16845 | fi |
2429c060 PB |
16846 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16847 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
16848 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16849 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
16850 | fi |
16851 | fi | |
c6b750e1 | 16852 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16853 | # Extract the first word of "strip", so it can be a program name with args. |
16854 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
16855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16856 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16857 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16858 | $as_echo_n "(cached) " >&6 |
2429c060 | 16859 | else |
c6b750e1 DJ |
16860 | case $STRIP_FOR_TARGET in |
16861 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16862 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16863 | ;; | |
2429c060 | 16864 | *) |
c6b750e1 DJ |
16865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16866 | for as_dir in $gcc_cv_tool_dirs | |
16867 | do | |
16868 | IFS=$as_save_IFS | |
16869 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16870 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16872 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16874 | break 2 |
16875 | fi | |
16876 | done | |
81ecdfbb RW |
16877 | done |
16878 | IFS=$as_save_IFS | |
c6b750e1 | 16879 | |
2429c060 PB |
16880 | ;; |
16881 | esac | |
16882 | fi | |
c6b750e1 | 16883 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 16884 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16886 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 16887 | else |
81ecdfbb RW |
16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16889 | $as_echo "no" >&6; } | |
2429c060 PB |
16890 | fi |
16891 | ||
81ecdfbb | 16892 | |
2429c060 PB |
16893 | fi |
16894 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
16895 | |
16896 | ||
16897 | if test -n "$STRIP_FOR_TARGET"; then | |
16898 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16899 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16900 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16901 | fi | |
16902 | ||
16903 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16904 | for ncn_progname in strip; do | |
16905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16906 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16908 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16909 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16910 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16911 | else |
16912 | if test -n "$STRIP_FOR_TARGET"; then | |
16913 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16914 | else | |
16915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16916 | for as_dir in $PATH | |
16917 | do | |
16918 | IFS=$as_save_IFS | |
16919 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16920 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16922 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16924 | break 2 |
16925 | fi | |
16926 | done | |
81ecdfbb RW |
16927 | done |
16928 | IFS=$as_save_IFS | |
9a819804 AO |
16929 | |
16930 | fi | |
16931 | fi | |
16932 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16933 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16935 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 16936 | else |
81ecdfbb RW |
16937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16938 | $as_echo "no" >&6; } | |
9a819804 AO |
16939 | fi |
16940 | ||
81ecdfbb | 16941 | |
9a819804 AO |
16942 | done |
16943 | fi | |
16944 | ||
16945 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16946 | for ncn_progname in strip; do |
81ecdfbb RW |
16947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16948 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16949 | if test -x $with_build_time_tools/${ncn_progname}; then |
16950 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16952 | $as_echo "yes" >&6; } | |
2429c060 PB |
16953 | break |
16954 | else | |
81ecdfbb RW |
16955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16956 | $as_echo "no" >&6; } | |
2429c060 PB |
16957 | fi |
16958 | done | |
16959 | fi | |
16960 | ||
16961 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16962 | for ncn_progname in strip; do | |
16963 | if test -n "$ncn_target_tool_prefix"; then | |
16964 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 16965 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16967 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16968 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16969 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
16970 | else |
16971 | if test -n "$STRIP_FOR_TARGET"; then | |
16972 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
16973 | else |
16974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16975 | for as_dir in $PATH | |
16976 | do | |
16977 | IFS=$as_save_IFS | |
16978 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16979 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16981 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16983 | break 2 |
16984 | fi | |
16985 | done | |
81ecdfbb RW |
16986 | done |
16987 | IFS=$as_save_IFS | |
c6b750e1 | 16988 | |
7e0f7140 GK |
16989 | fi |
16990 | fi | |
c6b750e1 | 16991 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 16992 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16994 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 16995 | else |
81ecdfbb RW |
16996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16997 | $as_echo "no" >&6; } | |
7e0f7140 GK |
16998 | fi |
16999 | ||
81ecdfbb | 17000 | |
2429c060 PB |
17001 | fi |
17002 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17003 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 17004 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17006 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17007 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 17008 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
17009 | else |
17010 | if test -n "$STRIP_FOR_TARGET"; then | |
17011 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17012 | else | |
c6b750e1 DJ |
17013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17014 | for as_dir in $PATH | |
17015 | do | |
17016 | IFS=$as_save_IFS | |
17017 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17018 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17020 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17022 | break 2 |
17023 | fi | |
17024 | done | |
81ecdfbb RW |
17025 | done |
17026 | IFS=$as_save_IFS | |
c6b750e1 | 17027 | |
7e0f7140 GK |
17028 | fi |
17029 | fi | |
c6b750e1 | 17030 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 17031 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
17032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17033 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17034 | else |
81ecdfbb RW |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17036 | $as_echo "no" >&6; } | |
7e0f7140 | 17037 | fi |
c6b750e1 | 17038 | |
81ecdfbb | 17039 | |
2429c060 PB |
17040 | fi |
17041 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17042 | done | |
17043 | fi | |
c6b750e1 | 17044 | |
7e0f7140 GK |
17045 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17046 | set dummy strip | |
17047 | if test $build = $target ; then | |
17048 | STRIP_FOR_TARGET="$2" | |
17049 | else | |
17050 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17051 | fi | |
d3f5afc4 MS |
17052 | else |
17053 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
17054 | fi |
17055 | ||
3a35eeb3 PB |
17056 | else |
17057 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
17058 | fi |
17059 | ||
17060 | ||
17061 | ||
17062 | ||
17063 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17064 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17066 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17067 | if test -x $with_build_time_tools/windres; then |
17068 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17069 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
17070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17071 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 17072 | else |
81ecdfbb RW |
17073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17074 | $as_echo "no" >&6; } | |
3a35eeb3 | 17075 | fi |
2429c060 PB |
17076 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17077 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
17078 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17079 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
17080 | fi |
17081 | fi | |
c6b750e1 | 17082 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
17083 | # Extract the first word of "windres", so it can be a program name with args. |
17084 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17086 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17087 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17088 | $as_echo_n "(cached) " >&6 |
2429c060 | 17089 | else |
c6b750e1 DJ |
17090 | case $WINDRES_FOR_TARGET in |
17091 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
17092 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17093 | ;; | |
2429c060 | 17094 | *) |
c6b750e1 DJ |
17095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17096 | for as_dir in $gcc_cv_tool_dirs | |
17097 | do | |
17098 | IFS=$as_save_IFS | |
17099 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17100 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17101 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17102 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17104 | break 2 |
17105 | fi | |
17106 | done | |
81ecdfbb RW |
17107 | done |
17108 | IFS=$as_save_IFS | |
c6b750e1 | 17109 | |
2429c060 PB |
17110 | ;; |
17111 | esac | |
17112 | fi | |
c6b750e1 | 17113 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 17114 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17116 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 17117 | else |
81ecdfbb RW |
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17119 | $as_echo "no" >&6; } | |
2429c060 PB |
17120 | fi |
17121 | ||
81ecdfbb | 17122 | |
2429c060 PB |
17123 | fi |
17124 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
17125 | |
17126 | ||
17127 | if test -n "$WINDRES_FOR_TARGET"; then | |
17128 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17129 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17130 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17131 | fi | |
17132 | ||
17133 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17134 | for ncn_progname in windres; do | |
17135 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17136 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17138 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17139 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17140 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
17141 | else |
17142 | if test -n "$WINDRES_FOR_TARGET"; then | |
17143 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17144 | else | |
17145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17146 | for as_dir in $PATH | |
17147 | do | |
17148 | IFS=$as_save_IFS | |
17149 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17150 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 17152 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
17154 | break 2 |
17155 | fi | |
17156 | done | |
81ecdfbb RW |
17157 | done |
17158 | IFS=$as_save_IFS | |
9a819804 AO |
17159 | |
17160 | fi | |
17161 | fi | |
17162 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17163 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17165 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 17166 | else |
81ecdfbb RW |
17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17168 | $as_echo "no" >&6; } | |
9a819804 AO |
17169 | fi |
17170 | ||
81ecdfbb | 17171 | |
9a819804 AO |
17172 | done |
17173 | fi | |
17174 | ||
17175 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 17176 | for ncn_progname in windres; do |
81ecdfbb RW |
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17178 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17179 | if test -x $with_build_time_tools/${ncn_progname}; then |
17180 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17182 | $as_echo "yes" >&6; } | |
2429c060 PB |
17183 | break |
17184 | else | |
81ecdfbb RW |
17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17186 | $as_echo "no" >&6; } | |
2429c060 PB |
17187 | fi |
17188 | done | |
17189 | fi | |
17190 | ||
17191 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17192 | for ncn_progname in windres; do | |
17193 | if test -n "$ncn_target_tool_prefix"; then | |
17194 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17195 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17197 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17198 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17199 | $as_echo_n "(cached) " >&6 |
859789af | 17200 | else |
55db4b87 PB |
17201 | if test -n "$WINDRES_FOR_TARGET"; then |
17202 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17203 | else |
c6b750e1 DJ |
17204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17205 | for as_dir in $PATH | |
17206 | do | |
17207 | IFS=$as_save_IFS | |
17208 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17209 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17210 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17211 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17213 | break 2 |
17214 | fi | |
17215 | done | |
81ecdfbb RW |
17216 | done |
17217 | IFS=$as_save_IFS | |
c6b750e1 | 17218 | |
859789af AC |
17219 | fi |
17220 | fi | |
c6b750e1 | 17221 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 17222 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17224 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17225 | else |
81ecdfbb RW |
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17227 | $as_echo "no" >&6; } | |
859789af AC |
17228 | fi |
17229 | ||
81ecdfbb | 17230 | |
2429c060 PB |
17231 | fi |
17232 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17233 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17234 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17236 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17237 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17238 | $as_echo_n "(cached) " >&6 |
859789af | 17239 | else |
05cbd757 PB |
17240 | if test -n "$WINDRES_FOR_TARGET"; then |
17241 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17242 | else |
c6b750e1 DJ |
17243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17244 | for as_dir in $PATH | |
17245 | do | |
17246 | IFS=$as_save_IFS | |
17247 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17248 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17250 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17252 | break 2 |
17253 | fi | |
17254 | done | |
81ecdfbb RW |
17255 | done |
17256 | IFS=$as_save_IFS | |
c6b750e1 | 17257 | |
859789af AC |
17258 | fi |
17259 | fi | |
c6b750e1 | 17260 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 17261 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17263 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17264 | else |
81ecdfbb RW |
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17266 | $as_echo "no" >&6; } | |
859789af | 17267 | fi |
c6b750e1 | 17268 | |
81ecdfbb | 17269 | |
2429c060 PB |
17270 | fi |
17271 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17272 | done | |
17273 | fi | |
c6b750e1 | 17274 | |
05cbd757 PB |
17275 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17276 | set dummy windres | |
17277 | if test $build = $target ; then | |
17278 | WINDRES_FOR_TARGET="$2" | |
859789af | 17279 | else |
05cbd757 | 17280 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 17281 | fi |
d3f5afc4 MS |
17282 | else |
17283 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
17284 | fi |
17285 | ||
3a35eeb3 PB |
17286 | else |
17287 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
17288 | fi |
17289 | ||
852e5f18 | 17290 | |
0c24b341 NC |
17291 | |
17292 | ||
17293 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17294 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17296 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17297 | if test -x $with_build_time_tools/windmc; then |
17298 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17299 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17301 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17302 | else |
81ecdfbb RW |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17304 | $as_echo "no" >&6; } | |
0c24b341 NC |
17305 | fi |
17306 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17307 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
17308 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
17309 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17310 | fi | |
17311 | fi | |
17312 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17313 | # Extract the first word of "windmc", so it can be a program name with args. | |
17314 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17316 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17317 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17318 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17319 | else |
17320 | case $WINDMC_FOR_TARGET in | |
17321 | [\\/]* | ?:[\\/]*) | |
17322 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17323 | ;; | |
17324 | *) | |
17325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17326 | for as_dir in $gcc_cv_tool_dirs | |
17327 | do | |
17328 | IFS=$as_save_IFS | |
17329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17330 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17331 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17332 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17334 | break 2 |
17335 | fi | |
17336 | done | |
81ecdfbb RW |
17337 | done |
17338 | IFS=$as_save_IFS | |
0c24b341 NC |
17339 | |
17340 | ;; | |
17341 | esac | |
17342 | fi | |
17343 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 17344 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
17345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17346 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17347 | else |
81ecdfbb RW |
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17349 | $as_echo "no" >&6; } | |
0c24b341 NC |
17350 | fi |
17351 | ||
81ecdfbb | 17352 | |
0c24b341 NC |
17353 | fi |
17354 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17355 | ||
17356 | ||
17357 | if test -n "$WINDMC_FOR_TARGET"; then | |
17358 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17359 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17360 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17361 | fi | |
17362 | ||
17363 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17364 | for ncn_progname in windmc; do | |
17365 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17366 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17368 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17369 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17370 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17371 | else |
17372 | if test -n "$WINDMC_FOR_TARGET"; then | |
17373 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17374 | else | |
17375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17376 | for as_dir in $PATH | |
17377 | do | |
17378 | IFS=$as_save_IFS | |
17379 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17380 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17382 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17384 | break 2 |
17385 | fi | |
17386 | done | |
81ecdfbb RW |
17387 | done |
17388 | IFS=$as_save_IFS | |
0c24b341 NC |
17389 | |
17390 | fi | |
17391 | fi | |
17392 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17393 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17395 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17396 | else |
81ecdfbb RW |
17397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17398 | $as_echo "no" >&6; } | |
0c24b341 NC |
17399 | fi |
17400 | ||
81ecdfbb | 17401 | |
0c24b341 NC |
17402 | done |
17403 | fi | |
17404 | ||
17405 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17406 | for ncn_progname in windmc; do | |
81ecdfbb RW |
17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17408 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17409 | if test -x $with_build_time_tools/${ncn_progname}; then |
17410 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17412 | $as_echo "yes" >&6; } | |
0c24b341 NC |
17413 | break |
17414 | else | |
81ecdfbb RW |
17415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17416 | $as_echo "no" >&6; } | |
0c24b341 NC |
17417 | fi |
17418 | done | |
17419 | fi | |
17420 | ||
17421 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17422 | for ncn_progname in windmc; do | |
17423 | if test -n "$ncn_target_tool_prefix"; then | |
17424 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17425 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17427 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17428 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17429 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17430 | else |
17431 | if test -n "$WINDMC_FOR_TARGET"; then | |
17432 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17433 | else | |
17434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17435 | for as_dir in $PATH | |
17436 | do | |
17437 | IFS=$as_save_IFS | |
17438 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17439 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17441 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17443 | break 2 |
17444 | fi | |
17445 | done | |
81ecdfbb RW |
17446 | done |
17447 | IFS=$as_save_IFS | |
0c24b341 NC |
17448 | |
17449 | fi | |
17450 | fi | |
17451 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17452 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17454 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17455 | else |
81ecdfbb RW |
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17457 | $as_echo "no" >&6; } | |
0c24b341 NC |
17458 | fi |
17459 | ||
81ecdfbb | 17460 | |
0c24b341 NC |
17461 | fi |
17462 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17463 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17464 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17466 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17467 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17468 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17469 | else |
17470 | if test -n "$WINDMC_FOR_TARGET"; then | |
17471 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17472 | else | |
17473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17474 | for as_dir in $PATH | |
17475 | do | |
17476 | IFS=$as_save_IFS | |
17477 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17478 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17480 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17482 | break 2 |
17483 | fi | |
17484 | done | |
81ecdfbb RW |
17485 | done |
17486 | IFS=$as_save_IFS | |
0c24b341 NC |
17487 | |
17488 | fi | |
17489 | fi | |
17490 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17491 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17493 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17494 | else |
81ecdfbb RW |
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17496 | $as_echo "no" >&6; } | |
0c24b341 NC |
17497 | fi |
17498 | ||
81ecdfbb | 17499 | |
0c24b341 NC |
17500 | fi |
17501 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17502 | done | |
17503 | fi | |
17504 | ||
17505 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17506 | set dummy windmc | |
17507 | if test $build = $target ; then | |
17508 | WINDMC_FOR_TARGET="$2" | |
17509 | else | |
17510 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17511 | fi | |
17512 | else | |
17513 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
17514 | fi | |
17515 | ||
17516 | else | |
17517 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17518 | fi | |
17519 | ||
17520 | ||
be01d343 PB |
17521 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17522 | ||
81ecdfbb RW |
17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17524 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 17525 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17526 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17527 | # We already found the complete path | |
b8025f34 | 17528 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17530 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17531 | else |
17532 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17534 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17535 | fi |
be01d343 PB |
17536 | else |
17537 | ok=yes | |
17538 | case " ${configdirs} " in | |
17539 | *" binutils "*) ;; | |
17540 | *) ok=no ;; | |
17541 | esac | |
c6b750e1 | 17542 | |
be01d343 PB |
17543 | if test $ok = yes; then |
17544 | # An in-tree tool is available and we can use it | |
17545 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
17546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17547 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17548 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17549 | # We already found the complete path | |
b8025f34 | 17550 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17552 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17553 | elif test "x$target" = "x$host"; then |
17554 | # We can use an host tool | |
17555 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17557 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17558 | else |
17559 | # We need a cross tool | |
81ecdfbb RW |
17560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17561 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17562 | fi |
17563 | fi | |
4b900473 | 17564 | |
81ecdfbb RW |
17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17566 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 17567 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17568 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17569 | # We already found the complete path | |
b8025f34 | 17570 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17572 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17573 | else |
17574 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17576 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17577 | fi |
be01d343 PB |
17578 | else |
17579 | ok=yes | |
17580 | case " ${configdirs} " in | |
17581 | *" gas "*) ;; | |
17582 | *) ok=no ;; | |
17583 | esac | |
c6b750e1 | 17584 | |
be01d343 PB |
17585 | if test $ok = yes; then |
17586 | # An in-tree tool is available and we can use it | |
17587 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
17588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17589 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17590 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17591 | # We already found the complete path | |
b8025f34 | 17592 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17594 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17595 | elif test "x$target" = "x$host"; then |
17596 | # We can use an host tool | |
17597 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
17598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17599 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17600 | else |
17601 | # We need a cross tool | |
81ecdfbb RW |
17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17603 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17604 | fi |
17605 | fi | |
4b900473 | 17606 | |
81ecdfbb RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17608 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 17609 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17610 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17611 | # We already found the complete path | |
b8025f34 | 17612 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17614 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17615 | else |
17616 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17618 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17619 | fi |
be01d343 PB |
17620 | else |
17621 | ok=yes | |
17622 | case " ${configdirs} " in | |
17623 | *" gcc "*) ;; | |
17624 | *) ok=no ;; | |
17625 | esac | |
c6b750e1 | 17626 | |
be01d343 PB |
17627 | if test $ok = yes; then |
17628 | # An in-tree tool is available and we can use it | |
17629 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17631 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17632 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17633 | # We already found the complete path | |
b8025f34 | 17634 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17636 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17637 | elif test "x$target" = "x$host"; then |
17638 | # We can use an host tool | |
17639 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
17640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17641 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17642 | else |
17643 | # We need a cross tool | |
81ecdfbb RW |
17644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17645 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17646 | fi |
17647 | fi | |
4b900473 | 17648 | |
81ecdfbb RW |
17649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17650 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 17651 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17652 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17653 | # We already found the complete path | |
b8025f34 | 17654 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17656 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17657 | else |
17658 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17660 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17661 | fi |
be01d343 PB |
17662 | else |
17663 | ok=yes | |
17664 | case " ${configdirs} " in | |
17665 | *" gcc "*) ;; | |
17666 | *) ok=no ;; | |
17667 | esac | |
17668 | case ,${enable_languages}, in | |
17669 | *,c++,*) ;; | |
17670 | *) ok=no ;; | |
17671 | esac | |
17672 | if test $ok = yes; then | |
17673 | # An in-tree tool is available and we can use it | |
95e43135 | 17674 | 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 |
17675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17676 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17677 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17678 | # We already found the complete path | |
b8025f34 | 17679 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17681 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17682 | elif test "x$target" = "x$host"; then |
17683 | # We can use an host tool | |
17684 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17686 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17687 | else |
17688 | # We need a cross tool | |
81ecdfbb RW |
17689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17690 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17691 | fi |
17692 | fi | |
4b900473 | 17693 | |
81ecdfbb RW |
17694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17695 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 17696 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17697 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17698 | # We already found the complete path | |
b8025f34 | 17699 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17701 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17702 | else |
17703 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17705 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17706 | fi |
be01d343 PB |
17707 | else |
17708 | ok=yes | |
17709 | case " ${configdirs} " in | |
17710 | *" gcc "*) ;; | |
17711 | *) ok=no ;; | |
17712 | esac | |
17713 | case ,${enable_languages}, in | |
17714 | *,c++,*) ;; | |
17715 | *) ok=no ;; | |
17716 | esac | |
17717 | if test $ok = yes; then | |
17718 | # An in-tree tool is available and we can use it | |
95e43135 | 17719 | 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 |
17720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17721 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17722 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17723 | # We already found the complete path | |
b8025f34 | 17724 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17726 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17727 | elif test "x$target" = "x$host"; then |
17728 | # We can use an host tool | |
17729 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17731 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17732 | else |
17733 | # We need a cross tool | |
81ecdfbb RW |
17734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17735 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17736 | fi |
17737 | fi | |
4b900473 | 17738 | |
81ecdfbb RW |
17739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17740 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 17741 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17742 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17743 | # We already found the complete path | |
b8025f34 | 17744 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17747 | else |
17748 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17750 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17751 | fi |
be01d343 PB |
17752 | else |
17753 | ok=yes | |
17754 | case " ${configdirs} " in | |
17755 | *" binutils "*) ;; | |
17756 | *) ok=no ;; | |
17757 | esac | |
c6b750e1 | 17758 | |
be01d343 PB |
17759 | if test $ok = yes; then |
17760 | # An in-tree tool is available and we can use it | |
17761 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
17762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17763 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17764 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17765 | # We already found the complete path | |
b8025f34 | 17766 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17768 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17769 | elif test "x$target" = "x$host"; then |
17770 | # We can use an host tool | |
17771 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17773 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17774 | else |
17775 | # We need a cross tool | |
81ecdfbb RW |
17776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17777 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17778 | fi |
17779 | fi | |
4b900473 | 17780 | |
228cf97d AM |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17782 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17783 | if test "x${build}" != "x${host}" ; then | |
17784 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17785 | # We already found the complete path | |
17786 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17788 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17789 | else | |
17790 | # Canadian cross, just use what we found | |
17791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17792 | $as_echo "pre-installed" >&6; } | |
17793 | fi | |
17794 | else | |
17795 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17796 | # We already found the complete path | |
17797 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17799 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17800 | elif test "x$target" = "x$host"; then | |
17801 | # We can use an host tool | |
17802 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17804 | $as_echo "host tool" >&6; } | |
17805 | else | |
17806 | # We need a cross tool | |
17807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17808 | $as_echo "pre-installed" >&6; } | |
17809 | fi | |
17810 | fi | |
17811 | ||
81ecdfbb RW |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17813 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 17814 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17815 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17816 | # We already found the complete path | |
b8025f34 | 17817 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17819 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17820 | else |
17821 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17823 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17824 | fi |
be01d343 PB |
17825 | else |
17826 | ok=yes | |
17827 | case " ${configdirs} " in | |
17828 | *" gcc "*) ;; | |
17829 | *) ok=no ;; | |
17830 | esac | |
c6b750e1 | 17831 | |
be01d343 PB |
17832 | if test $ok = yes; then |
17833 | # An in-tree tool is available and we can use it | |
17834 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17836 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17837 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17838 | # We already found the complete path | |
b8025f34 | 17839 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17841 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17842 | elif test "x$target" = "x$host"; then |
17843 | # We can use an host tool | |
17844 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17846 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17847 | else |
17848 | # We need a cross tool | |
81ecdfbb RW |
17849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17850 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17851 | fi |
17852 | fi | |
4b900473 | 17853 | |
81ecdfbb RW |
17854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17855 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 17856 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17857 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17858 | # We already found the complete path | |
b8025f34 | 17859 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17861 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17862 | else |
17863 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17865 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17866 | fi |
be01d343 PB |
17867 | else |
17868 | ok=yes | |
17869 | case " ${configdirs} " in | |
17870 | *" gcc "*) ;; | |
17871 | *) ok=no ;; | |
17872 | esac | |
17873 | case ,${enable_languages}, in | |
17874 | *,fortran,*) ;; | |
17875 | *) ok=no ;; | |
17876 | esac | |
17877 | if test $ok = yes; then | |
17878 | # An in-tree tool is available and we can use it | |
17879 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17881 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17882 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17883 | # We already found the complete path | |
b8025f34 | 17884 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17887 | elif test "x$target" = "x$host"; then |
17888 | # We can use an host tool | |
17889 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
17890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17891 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17892 | else |
17893 | # We need a cross tool | |
81ecdfbb RW |
17894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17895 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17896 | fi |
17897 | fi | |
4b900473 | 17898 | |
e552509b ILT |
17899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17900 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17901 | if test "x${build}" != "x${host}" ; then | |
17902 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17903 | # We already found the complete path | |
17904 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17906 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17907 | else | |
17908 | # Canadian cross, just use what we found | |
17909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17910 | $as_echo "pre-installed" >&6; } | |
17911 | fi | |
17912 | else | |
17913 | ok=yes | |
17914 | case " ${configdirs} " in | |
17915 | *" gcc "*) ;; | |
17916 | *) ok=no ;; | |
17917 | esac | |
17918 | case ,${enable_languages}, in | |
17919 | *,go,*) ;; | |
17920 | *) ok=no ;; | |
17921 | esac | |
17922 | if test $ok = yes; then | |
17923 | # An in-tree tool is available and we can use it | |
17924 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17926 | $as_echo "just compiled" >&6; } | |
17927 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17928 | # We already found the complete path | |
17929 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17931 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17932 | elif test "x$target" = "x$host"; then | |
17933 | # We can use an host tool | |
17934 | GOC_FOR_TARGET='$(GOC)' | |
17935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17936 | $as_echo "host tool" >&6; } | |
17937 | else | |
17938 | # We need a cross tool | |
17939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17940 | $as_echo "pre-installed" >&6; } | |
17941 | fi | |
17942 | fi | |
17943 | ||
228cf97d AM |
17944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17945 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17946 | if test "x${build}" != "x${host}" ; then | |
17947 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17948 | # We already found the complete path | |
17949 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17951 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17952 | else | |
17953 | # Canadian cross, just use what we found | |
17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17955 | $as_echo "pre-installed" >&6; } | |
17956 | fi | |
17957 | else | |
17958 | ok=yes | |
17959 | case " ${configdirs} " in | |
17960 | *" gcc "*) ;; | |
17961 | *) ok=no ;; | |
17962 | esac | |
17963 | case ,${enable_languages}, in | |
17964 | *,d,*) ;; | |
17965 | *) ok=no ;; | |
17966 | esac | |
17967 | if test $ok = yes; then | |
17968 | # An in-tree tool is available and we can use it | |
17969 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17971 | $as_echo "just compiled" >&6; } | |
17972 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17973 | # We already found the complete path | |
17974 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17976 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17977 | elif test "x$target" = "x$host"; then | |
17978 | # We can use an host tool | |
17979 | GDC_FOR_TARGET='$(GDC)' | |
17980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17981 | $as_echo "host tool" >&6; } | |
17982 | else | |
17983 | # We need a cross tool | |
17984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17985 | $as_echo "pre-installed" >&6; } | |
17986 | fi | |
17987 | fi | |
17988 | ||
81ecdfbb RW |
17989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17990 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 17991 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17992 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17993 | # We already found the complete path | |
b8025f34 | 17994 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17996 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17997 | else |
17998 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18000 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18001 | fi |
be01d343 PB |
18002 | else |
18003 | ok=yes | |
18004 | case " ${configdirs} " in | |
18005 | *" ld "*) ;; | |
18006 | *) ok=no ;; | |
18007 | esac | |
c6b750e1 | 18008 | |
be01d343 PB |
18009 | if test $ok = yes; then |
18010 | # An in-tree tool is available and we can use it | |
18011 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
18012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18013 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18014 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18015 | # We already found the complete path | |
b8025f34 | 18016 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18018 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18019 | elif test "x$target" = "x$host"; then |
18020 | # We can use an host tool | |
18021 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
18022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18023 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18024 | else |
18025 | # We need a cross tool | |
81ecdfbb RW |
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18027 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18028 | fi |
18029 | fi | |
4b900473 | 18030 | |
81ecdfbb RW |
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18032 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 18033 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18034 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18035 | # We already found the complete path | |
b8025f34 | 18036 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18038 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18039 | else |
18040 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18042 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18043 | fi |
be01d343 | 18044 | else |
2429c060 PB |
18045 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18046 | # We already found the complete path | |
b8025f34 | 18047 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18049 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 18050 | elif test "x$target" = "x$host"; then |
be01d343 PB |
18051 | # We can use an host tool |
18052 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
18053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18054 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18055 | else |
18056 | # We need a cross tool | |
81ecdfbb RW |
18057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18058 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18059 | fi |
18060 | fi | |
4b900473 | 18061 | |
81ecdfbb RW |
18062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18063 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 18064 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18065 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18066 | # We already found the complete path | |
b8025f34 | 18067 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18069 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18070 | else |
18071 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18073 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18074 | fi |
be01d343 PB |
18075 | else |
18076 | ok=yes | |
18077 | case " ${configdirs} " in | |
18078 | *" binutils "*) ;; | |
18079 | *) ok=no ;; | |
18080 | esac | |
c6b750e1 | 18081 | |
be01d343 PB |
18082 | if test $ok = yes; then |
18083 | # An in-tree tool is available and we can use it | |
18084 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
18085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18086 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18087 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18088 | # We already found the complete path | |
b8025f34 | 18089 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18091 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18092 | elif test "x$target" = "x$host"; then |
18093 | # We can use an host tool | |
18094 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
18095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18096 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18097 | else |
18098 | # We need a cross tool | |
81ecdfbb RW |
18099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18100 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18101 | fi |
18102 | fi | |
4b900473 | 18103 | |
6b91c541 AP |
18104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18105 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18106 | if test "x${build}" != "x${host}" ; then | |
18107 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18108 | # We already found the complete path | |
18109 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18111 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18112 | else | |
18113 | # Canadian cross, just use what we found | |
18114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18115 | $as_echo "pre-installed" >&6; } | |
18116 | fi | |
18117 | else | |
18118 | ok=yes | |
18119 | case " ${configdirs} " in | |
18120 | *" binutils "*) ;; | |
18121 | *) ok=no ;; | |
18122 | esac | |
18123 | ||
18124 | if test $ok = yes; then | |
18125 | # An in-tree tool is available and we can use it | |
18126 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18128 | $as_echo "just compiled" >&6; } | |
18129 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18130 | # We already found the complete path | |
18131 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18133 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18134 | elif test "x$target" = "x$host"; then | |
18135 | # We can use an host tool | |
1b6c0831 | 18136 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
18137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18138 | $as_echo "host tool" >&6; } | |
18139 | else | |
18140 | # We need a cross tool | |
18141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18142 | $as_echo "pre-installed" >&6; } | |
18143 | fi | |
18144 | fi | |
18145 | ||
81ecdfbb RW |
18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18147 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 18148 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18149 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18150 | # We already found the complete path | |
b8025f34 | 18151 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18153 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18154 | else |
18155 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18157 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18158 | fi |
be01d343 PB |
18159 | else |
18160 | ok=yes | |
18161 | case " ${configdirs} " in | |
18162 | *" binutils "*) ;; | |
18163 | *) ok=no ;; | |
18164 | esac | |
c6b750e1 | 18165 | |
be01d343 PB |
18166 | if test $ok = yes; then |
18167 | # An in-tree tool is available and we can use it | |
18168 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
18169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18170 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18171 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18172 | # We already found the complete path | |
b8025f34 | 18173 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18175 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18176 | elif test "x$target" = "x$host"; then |
18177 | # We can use an host tool | |
18178 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
18179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18180 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18181 | else |
18182 | # We need a cross tool | |
81ecdfbb RW |
18183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18184 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18185 | fi |
18186 | fi | |
4b900473 | 18187 | |
228cf97d AM |
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18189 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18190 | if test "x${build}" != "x${host}" ; then | |
18191 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18192 | # We already found the complete path | |
18193 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18195 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18196 | else | |
18197 | # Canadian cross, just use what we found | |
18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18199 | $as_echo "pre-installed" >&6; } | |
18200 | fi | |
18201 | else | |
18202 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18203 | # We already found the complete path | |
18204 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18206 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18207 | elif test "x$target" = "x$host"; then | |
18208 | # We can use an host tool | |
18209 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18211 | $as_echo "host tool" >&6; } | |
18212 | else | |
18213 | # We need a cross tool | |
18214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18215 | $as_echo "pre-installed" >&6; } | |
18216 | fi | |
18217 | fi | |
18218 | ||
81ecdfbb RW |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18220 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 18221 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18222 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18223 | # We already found the complete path | |
b8025f34 | 18224 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18226 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18227 | else |
18228 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18230 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18231 | fi |
be01d343 PB |
18232 | else |
18233 | ok=yes | |
18234 | case " ${configdirs} " in | |
18235 | *" binutils "*) ;; | |
18236 | *) ok=no ;; | |
18237 | esac | |
c6b750e1 | 18238 | |
be01d343 PB |
18239 | if test $ok = yes; then |
18240 | # An in-tree tool is available and we can use it | |
18241 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
18242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18243 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18244 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18245 | # We already found the complete path | |
b8025f34 | 18246 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18248 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18249 | elif test "x$target" = "x$host"; then |
18250 | # We can use an host tool | |
18251 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
18252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18253 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18254 | else |
18255 | # We need a cross tool | |
81ecdfbb RW |
18256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18257 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18258 | fi |
18259 | fi | |
4b900473 | 18260 | |
b121d7d4 DD |
18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18262 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18263 | if test "x${build}" != "x${host}" ; then | |
18264 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18265 | # We already found the complete path | |
18266 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18268 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18269 | else | |
18270 | # Canadian cross, just use what we found | |
18271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18272 | $as_echo "pre-installed" >&6; } | |
18273 | fi | |
18274 | else | |
18275 | ok=yes | |
18276 | case " ${configdirs} " in | |
18277 | *" binutils "*) ;; | |
18278 | *) ok=no ;; | |
18279 | esac | |
18280 | ||
18281 | if test $ok = yes; then | |
18282 | # An in-tree tool is available and we can use it | |
18283 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18285 | $as_echo "just compiled" >&6; } | |
18286 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18287 | # We already found the complete path | |
18288 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18290 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18291 | elif test "x$target" = "x$host"; then | |
18292 | # We can use an host tool | |
18293 | READELF_FOR_TARGET='$(READELF)' | |
18294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18295 | $as_echo "host tool" >&6; } | |
18296 | else | |
18297 | # We need a cross tool | |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18299 | $as_echo "pre-installed" >&6; } | |
18300 | fi | |
18301 | fi | |
18302 | ||
81ecdfbb RW |
18303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18304 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 18305 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18306 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18307 | # We already found the complete path | |
b8025f34 | 18308 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18310 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18311 | else |
18312 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18314 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18315 | fi |
be01d343 PB |
18316 | else |
18317 | ok=yes | |
18318 | case " ${configdirs} " in | |
18319 | *" binutils "*) ;; | |
18320 | *) ok=no ;; | |
18321 | esac | |
c6b750e1 | 18322 | |
be01d343 PB |
18323 | if test $ok = yes; then |
18324 | # An in-tree tool is available and we can use it | |
9b980aa1 | 18325 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
18326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18327 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18328 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18329 | # We already found the complete path | |
b8025f34 | 18330 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18332 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18333 | elif test "x$target" = "x$host"; then |
18334 | # We can use an host tool | |
18335 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
18336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18337 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18338 | else |
18339 | # We need a cross tool | |
81ecdfbb RW |
18340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18341 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18342 | fi |
18343 | fi | |
4b900473 | 18344 | |
81ecdfbb RW |
18345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18346 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 18347 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18348 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18349 | # We already found the complete path | |
b8025f34 | 18350 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18352 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18353 | else |
18354 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18356 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18357 | fi |
be01d343 PB |
18358 | else |
18359 | ok=yes | |
18360 | case " ${configdirs} " in | |
18361 | *" binutils "*) ;; | |
18362 | *) ok=no ;; | |
18363 | esac | |
c6b750e1 | 18364 | |
be01d343 PB |
18365 | if test $ok = yes; then |
18366 | # An in-tree tool is available and we can use it | |
18367 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
18368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18369 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18370 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18371 | # We already found the complete path | |
b8025f34 | 18372 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18374 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18375 | elif test "x$target" = "x$host"; then |
18376 | # We can use an host tool | |
18377 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
18378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18379 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18380 | else |
18381 | # We need a cross tool | |
81ecdfbb RW |
18382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18383 | $as_echo "pre-installed" >&6; } | |
be01d343 | 18384 | fi |
a0da8069 | 18385 | fi |
54752a6b | 18386 | |
81ecdfbb RW |
18387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18388 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
18389 | if test "x${build}" != "x${host}" ; then |
18390 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18391 | # We already found the complete path | |
18392 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18394 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18395 | else |
18396 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18398 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18399 | fi |
18400 | else | |
18401 | ok=yes | |
18402 | case " ${configdirs} " in | |
18403 | *" binutils "*) ;; | |
18404 | *) ok=no ;; | |
18405 | esac | |
18406 | ||
18407 | if test $ok = yes; then | |
18408 | # An in-tree tool is available and we can use it | |
18409 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
18410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18411 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
18412 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18413 | # We already found the complete path | |
18414 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18416 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18417 | elif test "x$target" = "x$host"; then |
18418 | # We can use an host tool | |
18419 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
18420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18421 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
18422 | else |
18423 | # We need a cross tool | |
81ecdfbb RW |
18424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18425 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18426 | fi |
18427 | fi | |
18428 | ||
54752a6b NN |
18429 | |
18430 | ||
be01d343 | 18431 | |
4b900473 | 18432 | |
a0da8069 NN |
18433 | # Certain tools may need extra flags. |
18434 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18435 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18436 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18437 | ||
be01d343 PB |
18438 | # When building target libraries, except in a Canadian cross, we use |
18439 | # the same toolchain as the compiler we just built. | |
18440 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18441 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18442 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18443 | if test $host = $build; then | |
18444 | case " $configdirs " in | |
18445 | *" gcc "*) | |
18446 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18447 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18448 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18449 | ;; | |
18450 | esac | |
18451 | fi | |
18452 | ||
18453 | ||
18454 | ||
18455 | ||
18456 | ||
81ecdfbb RW |
18457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18458 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18459 | # Check whether --enable-maintainer-mode was given. | |
18460 | if test "${enable_maintainer_mode+set}" = set; then : | |
18461 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
18462 | else |
18463 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
18464 | fi |
18465 | ||
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18467 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
18468 | |
18469 | ||
18470 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18471 | MAINTAINER_MODE_TRUE= | |
18472 | MAINTAINER_MODE_FALSE='#' | |
18473 | else | |
18474 | MAINTAINER_MODE_TRUE='#' | |
18475 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 18476 | fi |
3d5e36ae AO |
18477 | MAINT=$MAINTAINER_MODE_TRUE |
18478 | ||
1d39f329 NN |
18479 | # --------------------- |
18480 | # GCC bootstrap support | |
18481 | # --------------------- | |
18482 | ||
18483 | # Stage specific cflags for build. | |
18484 | stage1_cflags="-g" | |
18485 | case $build in | |
18486 | vax-*-*) | |
18487 | case ${GCC} in | |
18488 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18489 | *) stage1_cflags="-g -J" ;; | |
18490 | esac ;; | |
1d39f329 NN |
18491 | esac |
18492 | ||
1d89b610 | 18493 | |
1d39f329 | 18494 | |
8a0d8a5c | 18495 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
18496 | # Check whether --enable-stage1-checking was given. |
18497 | if test "${enable_stage1_checking+set}" = set; then : | |
18498 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 18499 | else |
5566c1fa | 18500 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
18501 | # For --disable-checking or implicit --enable-checking=release, avoid |
18502 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18503 | # bootstraps. See PR62077. | |
ce6c656d L |
18504 | case $BUILD_CONFIG in |
18505 | *lto*) | |
05a13254 NC |
18506 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18507 | *) | |
18508 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 18509 | esac |
05a13254 NC |
18510 | if test "x$enable_checking" = x && \ |
18511 | test -d ${srcdir}/gcc && \ | |
18512 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
18513 | stage1_checking=--enable-checking=yes,types,extra | |
18514 | fi | |
8a0d8a5c | 18515 | else |
5566c1fa | 18516 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 18517 | fi |
81ecdfbb | 18518 | fi |
8a0d8a5c PB |
18519 | |
18520 | ||
c6b750e1 | 18521 | |
81ecdfbb RW |
18522 | # Enable -Werror in bootstrap stage2 and later. |
18523 | # Check whether --enable-werror was given. | |
18524 | if test "${enable_werror+set}" = set; then : | |
18525 | enableval=$enable_werror; | |
1a6f2dc7 NN |
18526 | case ${enable_werror} in |
18527 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18528 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
18529 | esac |
18530 | ||
82033c9b | 18531 | else |
82033c9b | 18532 | |
bf41f30d NC |
18533 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18534 | case $BUILD_CONFIG in | |
18535 | bootstrap-debug) | |
18536 | stage2_werror_flag="--enable-werror-always" ;; | |
18537 | "") | |
18538 | stage2_werror_flag="--enable-werror-always" ;; | |
18539 | esac | |
18540 | fi | |
82033c9b | 18541 | |
bf41f30d | 18542 | fi |
82033c9b | 18543 | |
1b6c0831 | 18544 | |
1b6c0831 | 18545 | |
1b6c0831 | 18546 | |
e8a5fa9c RW |
18547 | # Specify what files to not compare during bootstrap. |
18548 | ||
18549 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18550 | case "$target" in | |
18551 | hppa*64*-*-hpux*) ;; | |
228cf97d AM |
18552 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18553 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
e8a5fa9c RW |
18554 | esac |
18555 | ||
18556 | ||
81ecdfbb RW |
18557 | ac_config_files="$ac_config_files Makefile" |
18558 | ||
c6b750e1 | 18559 | cat >confcache <<\_ACEOF |
a0da8069 NN |
18560 | # This file is a shell script that caches the results of configure |
18561 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
18562 | # scripts and configure runs, see configure's option --config-cache. |
18563 | # It is not useful on other systems. If it contains results you don't | |
18564 | # want to keep, you may remove or edit it. | |
a0da8069 | 18565 | # |
c6b750e1 DJ |
18566 | # config.status only pays attention to the cache file if you give it |
18567 | # the --recheck option to rerun configure. | |
a0da8069 | 18568 | # |
c6b750e1 DJ |
18569 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18570 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18571 | # following values. | |
18572 | ||
18573 | _ACEOF | |
18574 | ||
a0da8069 NN |
18575 | # The following way of writing the cache mishandles newlines in values, |
18576 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 18577 | # So, we kill variables containing newlines. |
a0da8069 NN |
18578 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18579 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
18580 | ( |
18581 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18582 | eval ac_val=\$$ac_var | |
18583 | case $ac_val in #( | |
18584 | *${as_nl}*) | |
18585 | case $ac_var in #( | |
18586 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18587 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18588 | esac | |
18589 | case $ac_var in #( | |
18590 | _ | IFS | as_nl) ;; #( | |
18591 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18592 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18593 | esac ;; | |
18594 | esac | |
18595 | done | |
18596 | ||
c6b750e1 | 18597 | (set) 2>&1 | |
81ecdfbb RW |
18598 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18599 | *${as_nl}ac_space=\ *) | |
18600 | # `set' does not quote correctly, so add quotes: double-quote | |
18601 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
18602 | sed -n \ |
18603 | "s/'/'\\\\''/g; | |
18604 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 18605 | ;; #( |
c6b750e1 DJ |
18606 | *) |
18607 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 18608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 18609 | ;; |
81ecdfbb RW |
18610 | esac | |
18611 | sort | |
18612 | ) | | |
c6b750e1 | 18613 | sed ' |
81ecdfbb | 18614 | /^ac_cv_env_/b end |
c6b750e1 | 18615 | t clear |
81ecdfbb | 18616 | :clear |
c6b750e1 DJ |
18617 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18618 | t end | |
81ecdfbb RW |
18619 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18620 | :end' >>confcache | |
18621 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18622 | if test -w "$cache_file"; then | |
d0ac1c44 | 18623 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
18624 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18625 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
18626 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18627 | cat confcache >"$cache_file" | |
18628 | else | |
18629 | case $cache_file in #( | |
18630 | */* | ?:*) | |
18631 | mv -f confcache "$cache_file"$$ && | |
18632 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18633 | *) | |
18634 | mv -f confcache "$cache_file" ;; | |
18635 | esac | |
18636 | fi | |
18637 | fi | |
a0da8069 | 18638 | else |
81ecdfbb RW |
18639 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18640 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 18641 | fi |
852e5f18 | 18642 | fi |
a0da8069 | 18643 | rm -f confcache |
852e5f18 | 18644 | |
a0da8069 NN |
18645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18646 | # Let make expand exec_prefix. | |
18647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 18648 | |
a0da8069 NN |
18649 | # Transform confdefs.h into DEFS. |
18650 | # Protect against shell expansion while executing Makefile rules. | |
18651 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
18652 | # |
18653 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 18654 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 18655 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
18656 | ac_script=' |
18657 | :mline | |
18658 | /\\$/{ | |
18659 | N | |
18660 | s,\\\n,, | |
18661 | b mline | |
18662 | } | |
c6b750e1 | 18663 | t clear |
81ecdfbb RW |
18664 | :clear |
18665 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 18666 | t quote |
81ecdfbb | 18667 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 18668 | t quote |
81ecdfbb RW |
18669 | b any |
18670 | :quote | |
18671 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18672 | s/\[/\\&/g | |
18673 | s/\]/\\&/g | |
18674 | s/\$/$$/g | |
18675 | H | |
18676 | :any | |
18677 | ${ | |
18678 | g | |
18679 | s/^\n// | |
18680 | s/\n/ /g | |
18681 | p | |
18682 | } | |
18683 | ' | |
18684 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
18685 | |
18686 | ||
18687 | ac_libobjs= | |
18688 | ac_ltlibobjs= | |
d0ac1c44 | 18689 | U= |
c6b750e1 DJ |
18690 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18691 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
18692 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18693 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18694 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18695 | # will be set to the directory where LIBOBJS objects are built. | |
18696 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18697 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
18698 | done |
18699 | LIBOBJS=$ac_libobjs | |
852e5f18 | 18700 | |
c6b750e1 | 18701 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 18702 | |
cac3d6c4 | 18703 | |
c6b750e1 | 18704 | |
d0ac1c44 | 18705 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 18706 | ac_write_fail=0 |
c6b750e1 DJ |
18707 | ac_clean_files_save=$ac_clean_files |
18708 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18710 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18711 | as_write_fail=0 | |
18712 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
18713 | #! $SHELL |
18714 | # Generated by $as_me. | |
a0da8069 | 18715 | # Run this file to recreate the current configuration. |
a0da8069 | 18716 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 18717 | # configure, is in config.log if it exists. |
376a0e54 | 18718 | |
c6b750e1 DJ |
18719 | debug=false |
18720 | ac_cs_recheck=false | |
18721 | ac_cs_silent=false | |
c6b750e1 | 18722 | |
81ecdfbb RW |
18723 | SHELL=\${CONFIG_SHELL-$SHELL} |
18724 | export SHELL | |
18725 | _ASEOF | |
18726 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18727 | ## -------------------- ## | |
18728 | ## M4sh Initialization. ## | |
18729 | ## -------------------- ## | |
18730 | ||
18731 | # Be more Bourne compatible | |
18732 | DUALCASE=1; export DUALCASE # for MKS sh | |
18733 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18734 | emulate sh |
18735 | NULLCMD=: | |
81ecdfbb | 18736 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
18737 | # is contrary to our usage. Disable this feature. |
18738 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18739 | setopt NO_GLOB_SUBST |
18740 | else | |
18741 | case `(set -o) 2>/dev/null` in #( | |
18742 | *posix*) : | |
18743 | set -o posix ;; #( | |
18744 | *) : | |
18745 | ;; | |
18746 | esac | |
c6b750e1 | 18747 | fi |
c6b750e1 | 18748 | |
81ecdfbb RW |
18749 | |
18750 | as_nl=' | |
18751 | ' | |
18752 | export as_nl | |
18753 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18754 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18755 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18756 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18757 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18758 | # but without wasting forks for bash or zsh. | |
18759 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18760 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18761 | as_echo='print -r --' | |
18762 | as_echo_n='print -rn --' | |
18763 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18764 | as_echo='printf %s\n' | |
18765 | as_echo_n='printf %s' | |
18766 | else | |
18767 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18768 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18769 | as_echo_n='/usr/ucb/echo -n' | |
18770 | else | |
18771 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18772 | as_echo_n_body='eval | |
18773 | arg=$1; | |
18774 | case $arg in #( | |
18775 | *"$as_nl"*) | |
18776 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18777 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18778 | esac; | |
18779 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18780 | ' | |
18781 | export as_echo_n_body | |
18782 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18783 | fi | |
18784 | export as_echo_body | |
18785 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
18786 | fi |
18787 | ||
81ecdfbb RW |
18788 | # The user is always right. |
18789 | if test "${PATH_SEPARATOR+set}" != set; then | |
18790 | PATH_SEPARATOR=: | |
18791 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18792 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18793 | PATH_SEPARATOR=';' | |
18794 | } | |
18795 | fi | |
18796 | ||
18797 | ||
18798 | # IFS | |
18799 | # We need space, tab and new line, in precisely that order. Quoting is | |
18800 | # there to prevent editors from complaining about space-tab. | |
18801 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18802 | # splitting by setting IFS to empty value.) | |
18803 | IFS=" "" $as_nl" | |
18804 | ||
18805 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18806 | as_myself= |
81ecdfbb RW |
18807 | case $0 in #(( |
18808 | *[\\/]* ) as_myself=$0 ;; | |
18809 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18810 | for as_dir in $PATH | |
18811 | do | |
18812 | IFS=$as_save_IFS | |
18813 | test -z "$as_dir" && as_dir=. | |
18814 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18815 | done | |
18816 | IFS=$as_save_IFS | |
18817 | ||
18818 | ;; | |
18819 | esac | |
18820 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18821 | # in which case we are not to be found in the path. | |
18822 | if test "x$as_myself" = x; then | |
18823 | as_myself=$0 | |
18824 | fi | |
18825 | if test ! -f "$as_myself"; then | |
18826 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18827 | exit 1 | |
18828 | fi | |
c6b750e1 | 18829 | |
81ecdfbb RW |
18830 | # Unset variables that we do not need and which cause bugs (e.g. in |
18831 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18832 | # suppresses any "Segmentation fault" message there. '((' could | |
18833 | # trigger a bug in pdksh 5.2.14. | |
18834 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18835 | do eval test x\${$as_var+set} = xset \ | |
18836 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18837 | done | |
c6b750e1 DJ |
18838 | PS1='$ ' |
18839 | PS2='> ' | |
18840 | PS4='+ ' | |
18841 | ||
18842 | # NLS nuisances. | |
81ecdfbb RW |
18843 | LC_ALL=C |
18844 | export LC_ALL | |
18845 | LANGUAGE=C | |
18846 | export LANGUAGE | |
18847 | ||
18848 | # CDPATH. | |
18849 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18850 | ||
18851 | ||
d0ac1c44 SM |
18852 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18853 | # ---------------------------------------- | |
81ecdfbb RW |
18854 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18855 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18856 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18857 | as_fn_error () |
18858 | { | |
d0ac1c44 SM |
18859 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18860 | if test "$4"; then | |
18861 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18862 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 18863 | fi |
d0ac1c44 | 18864 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18865 | as_fn_exit $as_status |
18866 | } # as_fn_error | |
18867 | ||
18868 | ||
18869 | # as_fn_set_status STATUS | |
18870 | # ----------------------- | |
18871 | # Set $? to STATUS, without forking. | |
18872 | as_fn_set_status () | |
18873 | { | |
18874 | return $1 | |
18875 | } # as_fn_set_status | |
18876 | ||
18877 | # as_fn_exit STATUS | |
18878 | # ----------------- | |
18879 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18880 | as_fn_exit () | |
18881 | { | |
18882 | set +e | |
18883 | as_fn_set_status $1 | |
18884 | exit $1 | |
18885 | } # as_fn_exit | |
18886 | ||
18887 | # as_fn_unset VAR | |
18888 | # --------------- | |
18889 | # Portably unset VAR. | |
18890 | as_fn_unset () | |
18891 | { | |
18892 | { eval $1=; unset $1;} | |
18893 | } | |
18894 | as_unset=as_fn_unset | |
18895 | # as_fn_append VAR VALUE | |
18896 | # ---------------------- | |
18897 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18898 | # advantage of any shell optimizations that allow amortized linear growth over | |
18899 | # repeated appends, instead of the typical quadratic growth present in naive | |
18900 | # implementations. | |
18901 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18902 | eval 'as_fn_append () | |
18903 | { | |
18904 | eval $1+=\$2 | |
18905 | }' | |
18906 | else | |
18907 | as_fn_append () | |
18908 | { | |
18909 | eval $1=\$$1\$2 | |
18910 | } | |
18911 | fi # as_fn_append | |
18912 | ||
18913 | # as_fn_arith ARG... | |
18914 | # ------------------ | |
18915 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18916 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18917 | # must be portable across $(()) and expr. | |
18918 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18919 | eval 'as_fn_arith () | |
18920 | { | |
18921 | as_val=$(( $* )) | |
18922 | }' | |
18923 | else | |
18924 | as_fn_arith () | |
18925 | { | |
18926 | as_val=`expr "$@" || test $? -eq 1` | |
18927 | } | |
18928 | fi # as_fn_arith | |
18929 | ||
c6b750e1 | 18930 | |
81ecdfbb RW |
18931 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18932 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
18933 | as_expr=expr |
18934 | else | |
18935 | as_expr=false | |
18936 | fi | |
18937 | ||
81ecdfbb | 18938 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
18939 | as_basename=basename |
18940 | else | |
18941 | as_basename=false | |
18942 | fi | |
18943 | ||
81ecdfbb RW |
18944 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18945 | as_dirname=dirname | |
18946 | else | |
18947 | as_dirname=false | |
18948 | fi | |
c6b750e1 | 18949 | |
81ecdfbb | 18950 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
18951 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18952 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18953 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18954 | $as_echo X/"$0" | | |
18955 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18956 | s//\1/ | |
18957 | q | |
18958 | } | |
18959 | /^X\/\(\/\/\)$/{ | |
18960 | s//\1/ | |
18961 | q | |
18962 | } | |
18963 | /^X\/\(\/\).*/{ | |
18964 | s//\1/ | |
18965 | q | |
18966 | } | |
18967 | s/.*/./; q'` | |
c6b750e1 | 18968 | |
c6b750e1 DJ |
18969 | # Avoid depending upon Character Ranges. |
18970 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18971 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18972 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18973 | as_cr_digits='0123456789' | |
18974 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18975 | ||
81ecdfbb RW |
18976 | ECHO_C= ECHO_N= ECHO_T= |
18977 | case `echo -n x` in #((((( | |
18978 | -n*) | |
18979 | case `echo 'xy\c'` in | |
18980 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18981 | xy) ECHO_C='\c';; | |
18982 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18983 | ECHO_T=' ';; | |
18984 | esac;; | |
18985 | *) | |
18986 | ECHO_N='-n';; | |
c6b750e1 DJ |
18987 | esac |
18988 | ||
81ecdfbb RW |
18989 | rm -f conf$$ conf$$.exe conf$$.file |
18990 | if test -d conf$$.dir; then | |
18991 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 18992 | else |
81ecdfbb RW |
18993 | rm -f conf$$.dir |
18994 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 18995 | fi |
81ecdfbb RW |
18996 | if (echo >conf$$.file) 2>/dev/null; then |
18997 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 18998 | as_ln_s='ln -s' |
81ecdfbb RW |
18999 | # ... but there are two gotchas: |
19000 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19001 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 19002 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 19003 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 19004 | as_ln_s='cp -pR' |
81ecdfbb RW |
19005 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19006 | as_ln_s=ln | |
19007 | else | |
d0ac1c44 | 19008 | as_ln_s='cp -pR' |
c6b750e1 | 19009 | fi |
c6b750e1 | 19010 | else |
d0ac1c44 | 19011 | as_ln_s='cp -pR' |
c6b750e1 | 19012 | fi |
81ecdfbb RW |
19013 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19014 | rmdir conf$$.dir 2>/dev/null | |
19015 | ||
19016 | ||
19017 | # as_fn_mkdir_p | |
19018 | # ------------- | |
19019 | # Create "$as_dir" as a directory, including parents if necessary. | |
19020 | as_fn_mkdir_p () | |
19021 | { | |
19022 | ||
19023 | case $as_dir in #( | |
19024 | -*) as_dir=./$as_dir;; | |
19025 | esac | |
19026 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19027 | as_dirs= | |
19028 | while :; do | |
19029 | case $as_dir in #( | |
19030 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19031 | *) as_qdir=$as_dir;; | |
19032 | esac | |
19033 | as_dirs="'$as_qdir' $as_dirs" | |
19034 | as_dir=`$as_dirname -- "$as_dir" || | |
19035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19036 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19037 | X"$as_dir" : 'X\(//\)$' \| \ | |
19038 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19039 | $as_echo X"$as_dir" | | |
19040 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19041 | s//\1/ | |
19042 | q | |
19043 | } | |
19044 | /^X\(\/\/\)[^/].*/{ | |
19045 | s//\1/ | |
19046 | q | |
19047 | } | |
19048 | /^X\(\/\/\)$/{ | |
19049 | s//\1/ | |
19050 | q | |
19051 | } | |
19052 | /^X\(\/\).*/{ | |
19053 | s//\1/ | |
19054 | q | |
19055 | } | |
19056 | s/.*/./; q'` | |
19057 | test -d "$as_dir" && break | |
19058 | done | |
19059 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 19060 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 19061 | |
c6b750e1 | 19062 | |
81ecdfbb | 19063 | } # as_fn_mkdir_p |
c6b750e1 | 19064 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 19065 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
19066 | else |
19067 | test -d ./-p && rmdir ./-p | |
19068 | as_mkdir_p=false | |
19069 | fi | |
19070 | ||
d0ac1c44 SM |
19071 | |
19072 | # as_fn_executable_p FILE | |
19073 | # ----------------------- | |
19074 | # Test if FILE is an executable regular file. | |
19075 | as_fn_executable_p () | |
19076 | { | |
19077 | test -f "$1" && test -x "$1" | |
19078 | } # as_fn_executable_p | |
19079 | as_test_x='test -x' | |
19080 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
19081 | |
19082 | # Sed expression to map a string onto a valid CPP name. | |
19083 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19084 | ||
19085 | # Sed expression to map a string onto a valid variable name. | |
19086 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19087 | ||
19088 | ||
c6b750e1 | 19089 | exec 6>&1 |
81ecdfbb RW |
19090 | ## ----------------------------------- ## |
19091 | ## Main body of $CONFIG_STATUS script. ## | |
19092 | ## ----------------------------------- ## | |
19093 | _ASEOF | |
19094 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19095 | ||
19096 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19097 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 19098 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
19099 | # values after options handling. |
19100 | ac_log=" | |
c6b750e1 | 19101 | This file was extended by $as_me, which was |
d0ac1c44 | 19102 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
19103 | |
19104 | CONFIG_FILES = $CONFIG_FILES | |
19105 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19106 | CONFIG_LINKS = $CONFIG_LINKS | |
19107 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19108 | $ $0 $@ | |
19109 | ||
81ecdfbb RW |
19110 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19111 | " | |
19112 | ||
c6b750e1 DJ |
19113 | _ACEOF |
19114 | ||
81ecdfbb RW |
19115 | case $ac_config_files in *" |
19116 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19117 | esac | |
c6b750e1 | 19118 | |
c6b750e1 | 19119 | |
c6b750e1 | 19120 | |
81ecdfbb RW |
19121 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19122 | # Files that config.status was made for. | |
19123 | config_files="$ac_config_files" | |
c6b750e1 | 19124 | |
81ecdfbb | 19125 | _ACEOF |
c6b750e1 | 19126 | |
81ecdfbb | 19127 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19128 | ac_cs_usage="\ |
81ecdfbb RW |
19129 | \`$as_me' instantiates files and other configuration actions |
19130 | from templates according to the current configuration. Unless the files | |
19131 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 19132 | |
81ecdfbb | 19133 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
19134 | |
19135 | -h, --help print this help, then exit | |
81ecdfbb | 19136 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 19137 | --config print configuration, then exit |
81ecdfbb RW |
19138 | -q, --quiet, --silent |
19139 | do not print progress messages | |
c6b750e1 DJ |
19140 | -d, --debug don't remove temporary files |
19141 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
19142 | --file=FILE[:TEMPLATE] |
19143 | instantiate the configuration file FILE | |
c6b750e1 DJ |
19144 | |
19145 | Configuration files: | |
19146 | $config_files | |
19147 | ||
81ecdfbb | 19148 | Report bugs to the package provider." |
c6b750e1 | 19149 | |
81ecdfbb RW |
19150 | _ACEOF |
19151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19152 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
19153 | ac_cs_version="\\ |
19154 | config.status | |
d0ac1c44 SM |
19155 | configured by $0, generated by GNU Autoconf 2.69, |
19156 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 19157 | |
d0ac1c44 | 19158 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
19159 | This config.status script is free software; the Free Software Foundation |
19160 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
19161 | |
19162 | ac_pwd='$ac_pwd' | |
19163 | srcdir='$srcdir' | |
19164 | INSTALL='$INSTALL' | |
8e957354 | 19165 | AWK='$AWK' |
81ecdfbb | 19166 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
19167 | _ACEOF |
19168 | ||
81ecdfbb RW |
19169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19170 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
19171 | ac_need_defaults=: |
19172 | while test $# != 0 | |
a0da8069 | 19173 | do |
c6b750e1 | 19174 | case $1 in |
d0ac1c44 | 19175 | --*=?*) |
81ecdfbb RW |
19176 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19177 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
19178 | ac_shift=: |
19179 | ;; | |
d0ac1c44 SM |
19180 | --*=) |
19181 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19182 | ac_optarg= | |
19183 | ac_shift=: | |
19184 | ;; | |
81ecdfbb | 19185 | *) |
c6b750e1 DJ |
19186 | ac_option=$1 |
19187 | ac_optarg=$2 | |
19188 | ac_shift=shift | |
19189 | ;; | |
c6b750e1 DJ |
19190 | esac |
19191 | ||
19192 | case $ac_option in | |
19193 | # Handling of the options. | |
a0da8069 | 19194 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 19195 | ac_cs_recheck=: ;; |
81ecdfbb RW |
19196 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19197 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
19198 | --config | --confi | --conf | --con | --co | --c ) |
19199 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 19200 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
19201 | debug=: ;; |
19202 | --file | --fil | --fi | --f ) | |
19203 | $ac_shift | |
81ecdfbb RW |
19204 | case $ac_optarg in |
19205 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 19206 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
19207 | esac |
19208 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 19209 | ac_need_defaults=false;; |
81ecdfbb RW |
19210 | --he | --h | --help | --hel | -h ) |
19211 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
19212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19213 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19214 | ac_cs_silent=: ;; | |
19215 | ||
19216 | # This is an error. | |
d0ac1c44 | 19217 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 19218 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 19219 | |
81ecdfbb RW |
19220 | *) as_fn_append ac_config_targets " $1" |
19221 | ac_need_defaults=false ;; | |
c6b750e1 | 19222 | |
376a0e54 | 19223 | esac |
c6b750e1 | 19224 | shift |
376a0e54 CM |
19225 | done |
19226 | ||
c6b750e1 | 19227 | ac_configure_extra_args= |
376a0e54 | 19228 | |
c6b750e1 DJ |
19229 | if $ac_cs_silent; then |
19230 | exec 6>/dev/null | |
19231 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19232 | fi | |
376a0e54 | 19233 | |
c6b750e1 | 19234 | _ACEOF |
81ecdfbb | 19235 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 19236 | if \$ac_cs_recheck; then |
d0ac1c44 | 19237 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
19238 | shift |
19239 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19240 | CONFIG_SHELL='$SHELL' | |
19241 | export CONFIG_SHELL | |
19242 | exec "\$@" | |
c6b750e1 DJ |
19243 | fi |
19244 | ||
19245 | _ACEOF | |
81ecdfbb RW |
19246 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19247 | exec 5>>config.log | |
19248 | { | |
19249 | echo | |
19250 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19251 | ## Running $as_me. ## | |
19252 | _ASBOX | |
19253 | $as_echo "$ac_log" | |
19254 | } >&5 | |
c6b750e1 | 19255 | |
81ecdfbb RW |
19256 | _ACEOF |
19257 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
19258 | # |
19259 | # INIT-COMMANDS | |
19260 | # | |
19261 | extrasub_build="$extrasub_build" | |
19262 | extrasub_host="$extrasub_host" | |
19263 | extrasub_target="$extrasub_target" | |
19264 | ||
81ecdfbb | 19265 | _ACEOF |
c6b750e1 | 19266 | |
81ecdfbb | 19267 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19268 | |
81ecdfbb | 19269 | # Handling of arguments. |
c6b750e1 DJ |
19270 | for ac_config_target in $ac_config_targets |
19271 | do | |
81ecdfbb RW |
19272 | case $ac_config_target in |
19273 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19274 | ||
d0ac1c44 | 19275 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
19276 | esac |
19277 | done | |
19278 | ||
81ecdfbb | 19279 | |
c6b750e1 DJ |
19280 | # If the user did not use the arguments to specify the items to instantiate, |
19281 | # then the envvar interface is used. Set only those that are not. | |
19282 | # We use the long form for the default assignment because of an extremely | |
19283 | # bizarre bug on SunOS 4.1.3. | |
19284 | if $ac_need_defaults; then | |
19285 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19286 | fi | |
19287 | ||
19288 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 19289 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 19290 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
19291 | # Hook for its removal unless debugging. |
19292 | # Note that there is a small window in which the directory will not be cleaned: | |
19293 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
19294 | $debug || |
19295 | { | |
d0ac1c44 | 19296 | tmp= ac_tmp= |
81ecdfbb | 19297 | trap 'exit_status=$? |
d0ac1c44 SM |
19298 | : "${ac_tmp:=$tmp}" |
19299 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
19300 | ' 0 |
19301 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 19302 | } |
c6b750e1 DJ |
19303 | # Create a (secure) tmp directory for tmp files. |
19304 | ||
19305 | { | |
81ecdfbb | 19306 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 19307 | test -d "$tmp" |
c6b750e1 DJ |
19308 | } || |
19309 | { | |
81ecdfbb RW |
19310 | tmp=./conf$$-$RANDOM |
19311 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
19312 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19313 | ac_tmp=$tmp | |
81ecdfbb RW |
19314 | |
19315 | # Set up the scripts for CONFIG_FILES section. | |
19316 | # No need to generate them if there are no CONFIG_FILES. | |
19317 | # This happens for instance with `./config.status config.h'. | |
19318 | if test -n "$CONFIG_FILES"; then | |
19319 | ||
19320 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19321 | ac_cs_awk_getline=: | |
19322 | ac_cs_awk_pipe_init= | |
19323 | ac_cs_awk_read_file=' | |
19324 | while ((getline aline < (F[key])) > 0) | |
19325 | print(aline) | |
19326 | close(F[key])' | |
19327 | ac_cs_awk_pipe_fini= | |
19328 | else | |
19329 | ac_cs_awk_getline=false | |
19330 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19331 | ac_cs_awk_read_file=' | |
19332 | print "|#_!!_#|" | |
19333 | print "cat " F[key] " &&" | |
19334 | '$ac_cs_awk_pipe_init | |
19335 | # The final `:' finishes the AND list. | |
19336 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19337 | fi | |
19338 | ac_cr=`echo X | tr X '\015'` | |
19339 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19340 | # But we know of no other shell where ac_cr would be empty at this | |
19341 | # point, so we can use a bashism as a fallback. | |
19342 | if test "x$ac_cr" = x; then | |
19343 | eval ac_cr=\$\'\\r\' | |
19344 | fi | |
19345 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19346 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 19347 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
19348 | else |
19349 | ac_cs_awk_cr=$ac_cr | |
19350 | fi | |
19351 | ||
d0ac1c44 | 19352 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
19353 | _ACEOF |
19354 | ||
19355 | # Create commands to substitute file output variables. | |
c6b750e1 | 19356 | { |
81ecdfbb | 19357 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 19358 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
19359 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19360 | echo "_ACAWK" && | |
19361 | echo "_ACEOF" | |
19362 | } >conf$$files.sh && | |
19363 | . ./conf$$files.sh || | |
d0ac1c44 | 19364 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19365 | rm -f conf$$files.sh |
c6b750e1 | 19366 | |
81ecdfbb RW |
19367 | { |
19368 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19369 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19370 | echo "_ACEOF" | |
19371 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19372 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19373 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19374 | ac_delim='%!_!# ' |
19375 | for ac_last_try in false false false false false :; do | |
19376 | . ./conf$$subs.sh || | |
d0ac1c44 | 19377 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19378 | |
19379 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19380 | if test $ac_delim_n = $ac_delim_num; then | |
19381 | break | |
19382 | elif $ac_last_try; then | |
d0ac1c44 | 19383 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19384 | else |
19385 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19386 | fi | |
19387 | done | |
19388 | rm -f conf$$subs.sh | |
19389 | ||
19390 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19391 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 19392 | _ACEOF |
81ecdfbb RW |
19393 | sed -n ' |
19394 | h | |
19395 | s/^/S["/; s/!.*/"]=/ | |
19396 | p | |
19397 | g | |
19398 | s/^[^!]*!// | |
19399 | :repl | |
19400 | t repl | |
19401 | s/'"$ac_delim"'$// | |
19402 | t delim | |
19403 | :nl | |
19404 | h | |
d0ac1c44 | 19405 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19406 | t more1 |
19407 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19408 | p | |
19409 | n | |
19410 | b repl | |
19411 | :more1 | |
19412 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19413 | p | |
19414 | g | |
19415 | s/.\{148\}// | |
19416 | t nl | |
19417 | :delim | |
19418 | h | |
d0ac1c44 | 19419 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19420 | t more2 |
19421 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19422 | p | |
19423 | b | |
19424 | :more2 | |
19425 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19426 | p | |
19427 | g | |
19428 | s/.\{148\}// | |
19429 | t delim | |
19430 | ' <conf$$subs.awk | sed ' | |
19431 | /^[^""]/{ | |
19432 | N | |
19433 | s/\n// | |
19434 | } | |
19435 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19436 | rm -f conf$$subs.awk | |
19437 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19438 | _ACAWK | |
d0ac1c44 | 19439 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19440 | for (key in S) S_is_set[key] = 1 |
19441 | FS = "\a" | |
19442 | \$ac_cs_awk_pipe_init | |
19443 | } | |
19444 | { | |
19445 | line = $ 0 | |
19446 | nfields = split(line, field, "@") | |
19447 | substed = 0 | |
19448 | len = length(field[1]) | |
19449 | for (i = 2; i < nfields; i++) { | |
19450 | key = field[i] | |
19451 | keylen = length(key) | |
19452 | if (S_is_set[key]) { | |
19453 | value = S[key] | |
19454 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19455 | len += length(value) + length(field[++i]) | |
19456 | substed = 1 | |
19457 | } else | |
19458 | len += 1 + keylen | |
19459 | } | |
19460 | if (nfields == 3 && !substed) { | |
19461 | key = field[2] | |
19462 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19463 | \$ac_cs_awk_read_file | |
19464 | next | |
19465 | } | |
19466 | } | |
19467 | print line | |
19468 | } | |
19469 | \$ac_cs_awk_pipe_fini | |
19470 | _ACAWK | |
19471 | _ACEOF | |
19472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19473 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19474 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19475 | else | |
19476 | cat | |
d0ac1c44 SM |
19477 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19478 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
19479 | _ACEOF |
19480 | ||
d0ac1c44 SM |
19481 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19482 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19483 | # trailing colons and then remove the whole line if VPATH becomes empty |
19484 | # (actually we leave an empty line to preserve line numbers). | |
19485 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19486 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19487 | h | |
19488 | s/// | |
19489 | s/^/:/ | |
19490 | s/[ ]*$/:/ | |
19491 | s/:\$(srcdir):/:/g | |
19492 | s/:\${srcdir}:/:/g | |
19493 | s/:@srcdir@:/:/g | |
19494 | s/^:*// | |
81ecdfbb | 19495 | s/:*$// |
d0ac1c44 SM |
19496 | x |
19497 | s/\(=[ ]*\).*/\1/ | |
19498 | G | |
19499 | s/\n// | |
81ecdfbb RW |
19500 | s/^[^=]*=[ ]*$// |
19501 | }' | |
19502 | fi | |
c6b750e1 | 19503 | |
81ecdfbb RW |
19504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19505 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 19506 | |
c6b750e1 | 19507 | |
81ecdfbb RW |
19508 | eval set X " :F $CONFIG_FILES " |
19509 | shift | |
19510 | for ac_tag | |
19511 | do | |
19512 | case $ac_tag in | |
19513 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19514 | esac | |
19515 | case $ac_mode$ac_tag in | |
19516 | :[FHL]*:*);; | |
d0ac1c44 | 19517 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19518 | :[FH]-) ac_tag=-:-;; |
19519 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19520 | esac | |
19521 | ac_save_IFS=$IFS | |
19522 | IFS=: | |
19523 | set x $ac_tag | |
19524 | IFS=$ac_save_IFS | |
19525 | shift | |
19526 | ac_file=$1 | |
19527 | shift | |
252b5132 | 19528 | |
81ecdfbb RW |
19529 | case $ac_mode in |
19530 | :L) ac_source=$1;; | |
19531 | :[FH]) | |
19532 | ac_file_inputs= | |
19533 | for ac_f | |
19534 | do | |
19535 | case $ac_f in | |
d0ac1c44 | 19536 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19537 | *) # Look for the file first in the build tree, then in the source tree |
19538 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19539 | # because $ac_f cannot contain `:'. | |
19540 | test -f "$ac_f" || | |
19541 | case $ac_f in | |
19542 | [\\/$]*) false;; | |
19543 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19544 | esac || | |
d0ac1c44 | 19545 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19546 | esac |
19547 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19548 | as_fn_append ac_file_inputs " '$ac_f'" | |
19549 | done | |
c6b750e1 | 19550 | |
81ecdfbb RW |
19551 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19552 | # use $as_me), people would be surprised to read: | |
19553 | # /* config.h. Generated by config.status. */ | |
19554 | configure_input='Generated from '` | |
19555 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19556 | `' by configure.' | |
19557 | if test x"$ac_file" != x-; then | |
19558 | configure_input="$ac_file. $configure_input" | |
19559 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19560 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 19561 | fi |
81ecdfbb RW |
19562 | # Neutralize special characters interpreted by sed in replacement strings. |
19563 | case $configure_input in #( | |
19564 | *\&* | *\|* | *\\* ) | |
19565 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19566 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19567 | *) ac_sed_conf_input=$configure_input;; | |
19568 | esac | |
cac3d6c4 | 19569 | |
81ecdfbb | 19570 | case $ac_tag in |
d0ac1c44 SM |
19571 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19572 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19573 | esac |
19574 | ;; | |
a0da8069 | 19575 | esac |
252b5132 | 19576 | |
81ecdfbb | 19577 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
19578 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19579 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19580 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19581 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19582 | $as_echo X"$ac_file" | | |
19583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19584 | s//\1/ | |
19585 | q | |
19586 | } | |
19587 | /^X\(\/\/\)[^/].*/{ | |
19588 | s//\1/ | |
19589 | q | |
19590 | } | |
19591 | /^X\(\/\/\)$/{ | |
19592 | s//\1/ | |
19593 | q | |
19594 | } | |
19595 | /^X\(\/\).*/{ | |
19596 | s//\1/ | |
19597 | q | |
19598 | } | |
19599 | s/.*/./; q'` | |
19600 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 19601 | ac_builddir=. |
252b5132 | 19602 | |
81ecdfbb RW |
19603 | case "$ac_dir" in |
19604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19605 | *) | |
19606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19607 | # A ".." for each directory in $ac_dir_suffix. | |
19608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19609 | case $ac_top_builddir_sub in | |
19610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19612 | esac ;; | |
19613 | esac | |
19614 | ac_abs_top_builddir=$ac_pwd | |
19615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19616 | # for backward compatibility: | |
19617 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
19618 | |
19619 | case $srcdir in | |
81ecdfbb | 19620 | .) # We are building in place. |
c6b750e1 | 19621 | ac_srcdir=. |
81ecdfbb RW |
19622 | ac_top_srcdir=$ac_top_builddir_sub |
19623 | ac_abs_top_srcdir=$ac_pwd ;; | |
19624 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 19625 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19626 | ac_top_srcdir=$srcdir |
19627 | ac_abs_top_srcdir=$srcdir ;; | |
19628 | *) # Relative name. | |
19629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 19632 | esac |
81ecdfbb | 19633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 19634 | |
252b5132 | 19635 | |
81ecdfbb RW |
19636 | case $ac_mode in |
19637 | :F) | |
19638 | # | |
19639 | # CONFIG_FILE | |
19640 | # | |
c6b750e1 DJ |
19641 | |
19642 | case $INSTALL in | |
19643 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19644 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 19645 | esac |
81ecdfbb | 19646 | _ACEOF |
252b5132 | 19647 | |
81ecdfbb RW |
19648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19649 | # If the template does not know about datarootdir, expand it. | |
19650 | # FIXME: This hack should be removed a few years after 2.60. | |
19651 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19652 | ac_sed_dataroot=' | |
19653 | /datarootdir/ { | |
19654 | p | |
19655 | q | |
19656 | } | |
19657 | /@datadir@/p | |
19658 | /@docdir@/p | |
19659 | /@infodir@/p | |
19660 | /@localedir@/p | |
19661 | /@mandir@/p' | |
19662 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19663 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19664 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19666 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 19667 | _ACEOF |
81ecdfbb RW |
19668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19669 | ac_datarootdir_hack=' | |
19670 | s&@datadir@&$datadir&g | |
19671 | s&@docdir@&$docdir&g | |
19672 | s&@infodir@&$infodir&g | |
19673 | s&@localedir@&$localedir&g | |
19674 | s&@mandir@&$mandir&g | |
19675 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19676 | esac | |
19677 | _ACEOF | |
19678 | ||
19679 | # Neutralize VPATH when `$srcdir' = `.'. | |
19680 | # Shell code in configure.ac might set extrasub. | |
19681 | # FIXME: do we really want to maintain this feature? | |
19682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19683 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
19684 | $extrasub |
19685 | _ACEOF | |
81ecdfbb | 19686 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
19687 | :t |
19688 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19689 | s|@configure_input@|$ac_sed_conf_input|;t t |
19690 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19691 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19692 | s&@srcdir@&$ac_srcdir&;t t | |
19693 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19694 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19695 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19696 | s&@builddir@&$ac_builddir&;t t | |
19697 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19698 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19699 | s&@INSTALL@&$ac_INSTALL&;t t | |
19700 | $ac_datarootdir_hack | |
19701 | " | |
19702 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19703 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 19704 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 19705 | else |
d0ac1c44 SM |
19706 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19707 | fi \ | |
19708 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19709 | |
19710 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19711 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19712 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19713 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19715 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19716 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19717 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19718 | |
d0ac1c44 | 19719 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19720 | case $ac_file in |
d0ac1c44 SM |
19721 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19722 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19723 | esac \ |
d0ac1c44 | 19724 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19725 | ;; |
c148b4cb | 19726 | |
c148b4cb | 19727 | |
c148b4cb | 19728 | |
81ecdfbb RW |
19729 | esac |
19730 | ||
06a51eac RW |
19731 | |
19732 | case $ac_file$ac_mode in | |
19733 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19734 | sed "$extrasub_host" | | |
19735 | sed "$extrasub_target" > mf$$ | |
19736 | mv -f mf$$ Makefile ;; | |
19737 | ||
19738 | esac | |
81ecdfbb RW |
19739 | done # for ac_tag |
19740 | ||
19741 | ||
19742 | as_fn_exit 0 | |
c6b750e1 | 19743 | _ACEOF |
c6b750e1 DJ |
19744 | ac_clean_files=$ac_clean_files_save |
19745 | ||
81ecdfbb | 19746 | test $ac_write_fail = 0 || |
d0ac1c44 | 19747 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19748 | |
c6b750e1 DJ |
19749 | |
19750 | # configure is writing to config.log, and then calls config.status. | |
19751 | # config.status does its own redirection, appending to config.log. | |
19752 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19753 | # by configure, so config.status won't be able to write to it; its | |
19754 | # output is simply discarded. So we exec the FD to /dev/null, | |
19755 | # effectively closing config.log, so it can be properly (re)opened and | |
19756 | # appended to by config.status. When coming back to configure, we | |
19757 | # need to make the FD available again. | |
19758 | if test "$no_create" != yes; then | |
19759 | ac_cs_success=: | |
19760 | ac_config_status_args= | |
19761 | test "$silent" = yes && | |
19762 | ac_config_status_args="$ac_config_status_args --quiet" | |
19763 | exec 5>/dev/null | |
19764 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19765 | exec 5>>config.log | |
19766 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19767 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 19768 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
19769 | fi |
19770 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19772 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 19773 | fi |
c148b4cb | 19774 |