]>
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 | |
228cf97d | 624 | GDCFLAGS |
b121d7d4 | 625 | READELF |
228cf97d | 626 | OTOOL |
81ecdfbb RW |
627 | OBJDUMP |
628 | OBJCOPY | |
629 | WINDMC | |
630 | WINDRES | |
631 | STRIP | |
632 | RANLIB | |
633 | NM | |
634 | LIPO | |
635 | LD | |
228cf97d | 636 | DSYMUTIL |
81ecdfbb RW |
637 | DLLTOOL |
638 | AS | |
639 | AR | |
640 | RUNTEST | |
641 | EXPECT | |
642 | MAKEINFO | |
643 | FLEX | |
644 | LEX | |
645 | M4 | |
646 | BISON | |
647 | YACC | |
81ecdfbb RW |
648 | WINDRES_FOR_BUILD |
649 | WINDMC_FOR_BUILD | |
650 | RANLIB_FOR_BUILD | |
651 | NM_FOR_BUILD | |
652 | LD_FOR_BUILD | |
653 | LDFLAGS_FOR_BUILD | |
228cf97d | 654 | GDC_FOR_BUILD |
e552509b | 655 | GOC_FOR_BUILD |
81ecdfbb | 656 | GFORTRAN_FOR_BUILD |
228cf97d | 657 | DSYMUTIL_FOR_BUILD |
81ecdfbb RW |
658 | DLLTOOL_FOR_BUILD |
659 | CXX_FOR_BUILD | |
660 | CXXFLAGS_FOR_BUILD | |
e472ec9f | 661 | CPPFLAGS_FOR_BUILD |
228cf97d | 662 | CPP_FOR_BUILD |
81ecdfbb RW |
663 | CFLAGS_FOR_BUILD |
664 | CC_FOR_BUILD | |
665 | AS_FOR_BUILD | |
666 | AR_FOR_BUILD | |
911e63d0 | 667 | target_configdirs |
81ecdfbb | 668 | configdirs |
81ecdfbb | 669 | build_configdirs |
81ecdfbb RW |
670 | INSTALL_GDB_TK |
671 | GDB_TK | |
672 | CONFIGURE_GDB_TK | |
673 | build_tooldir | |
674 | tooldir | |
675 | GCC_SHLIB_SUBDIR | |
676 | RPATH_ENVVAR | |
4074d5f2 RW |
677 | target_configargs |
678 | host_configargs | |
679 | build_configargs | |
96655cc4 | 680 | BUILD_CONFIG |
91c1f14c | 681 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
682 | CXXFLAGS_FOR_TARGET |
683 | CFLAGS_FOR_TARGET | |
684 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
685 | SYSROOT_CFLAGS_FOR_TARGET | |
bf41f30d | 686 | get_gcc_base_ver |
e81d5d05 | 687 | extra_host_zlib_configure_flags |
700d40ca | 688 | extra_host_libiberty_configure_flags |
1b6c0831 | 689 | stage1_languages |
bf41f30d | 690 | host_shared |
1b6c0831 L |
691 | extra_linker_plugin_flags |
692 | extra_linker_plugin_configure_flags | |
7ec59b9e | 693 | islinc |
1b6c0831 | 694 | isllibs |
81ecdfbb | 695 | poststage1_ldflags |
143754cd | 696 | poststage1_libs |
81ecdfbb | 697 | stage1_ldflags |
b3676d82 | 698 | stage1_libs |
7ec59b9e | 699 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
700 | extra_mpc_mpfr_configure_flags |
701 | extra_mpc_gmp_configure_flags | |
702 | extra_mpfr_configure_flags | |
703 | gmpinc | |
704 | gmplibs | |
af019bfd L |
705 | PGO_BUILD_LTO_CFLAGS |
706 | PGO_BUILD_USE_CFLAGS | |
707 | PGO_BUILD_GEN_CFLAGS | |
228cf97d AM |
708 | HAVE_CXX11_FOR_BUILD |
709 | HAVE_CXX11 | |
81ecdfbb | 710 | do_compare |
b95bb526 | 711 | GDC |
81ecdfbb RW |
712 | GNATMAKE |
713 | GNATBIND | |
714 | ac_ct_CXX | |
715 | CXXFLAGS | |
716 | CXX | |
717 | OBJEXT | |
718 | EXEEXT | |
719 | ac_ct_CC | |
720 | CPPFLAGS | |
721 | LDFLAGS | |
722 | CFLAGS | |
723 | CC | |
1b6c0831 | 724 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
725 | target_subdir |
726 | host_subdir | |
727 | build_subdir | |
728 | build_libsubdir | |
8e957354 PB |
729 | AWK |
730 | SED | |
81ecdfbb RW |
731 | LN_S |
732 | LN | |
733 | INSTALL_DATA | |
734 | INSTALL_SCRIPT | |
735 | INSTALL_PROGRAM | |
736 | target_os | |
737 | target_vendor | |
738 | target_cpu | |
739 | target | |
740 | host_os | |
741 | host_vendor | |
742 | host_cpu | |
743 | host | |
744 | target_noncanonical | |
745 | host_noncanonical | |
746 | build_noncanonical | |
747 | build_os | |
748 | build_vendor | |
749 | build_cpu | |
750 | build | |
751 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
752 | target_alias | |
753 | host_alias | |
754 | build_alias | |
755 | LIBS | |
756 | ECHO_T | |
757 | ECHO_N | |
758 | ECHO_C | |
759 | DEFS | |
760 | mandir | |
761 | localedir | |
762 | libdir | |
763 | psdir | |
764 | pdfdir | |
765 | dvidir | |
766 | htmldir | |
767 | infodir | |
768 | docdir | |
769 | oldincludedir | |
770 | includedir | |
771 | localstatedir | |
772 | sharedstatedir | |
773 | sysconfdir | |
774 | datadir | |
775 | datarootdir | |
776 | libexecdir | |
777 | sbindir | |
778 | bindir | |
779 | program_transform_name | |
780 | prefix | |
781 | exec_prefix | |
782 | PACKAGE_URL | |
783 | PACKAGE_BUGREPORT | |
784 | PACKAGE_STRING | |
785 | PACKAGE_VERSION | |
786 | PACKAGE_TARNAME | |
787 | PACKAGE_NAME | |
788 | PATH_SEPARATOR | |
789 | SHELL' | |
790 | ac_subst_files='serialization_dependencies | |
791 | host_makefile_frag | |
792 | target_makefile_frag | |
793 | alphaieee_frag | |
794 | ospace_frag' | |
795 | ac_user_opts=' | |
796 | enable_option_checking | |
797 | with_build_libsubdir | |
cf39cfc5 | 798 | with_system_zlib |
2cac01e3 | 799 | with_zstd |
1b6c0831 L |
800 | enable_as_accelerator_for |
801 | enable_offload_targets | |
228cf97d | 802 | enable_offload_defaulted |
81ecdfbb | 803 | enable_gold |
c7791212 | 804 | enable_ld |
bb368aad | 805 | enable_gprofng |
edeefb67 | 806 | enable_compressed_debug_sections |
b0c295e1 | 807 | enable_default_compressed_debug_sections_algorithm |
e5f2f7d9 | 808 | enable_year2038 |
89a1e9c3 PB |
809 | enable_libquadmath |
810 | enable_libquadmath_support | |
81ecdfbb RW |
811 | enable_libada |
812 | enable_libssp | |
f66a9a70 | 813 | enable_libstdcxx |
1b6c0831 | 814 | enable_liboffloadmic |
ffdd6afc | 815 | enable_bootstrap |
af019bfd | 816 | enable_pgo_build |
81ecdfbb RW |
817 | with_mpc |
818 | with_mpc_include | |
819 | with_mpc_lib | |
81ecdfbb RW |
820 | with_mpfr |
821 | with_mpfr_include | |
822 | with_mpfr_lib | |
81ecdfbb RW |
823 | with_gmp |
824 | with_gmp_include | |
825 | with_gmp_lib | |
81ecdfbb | 826 | with_stage1_libs |
c1a5d03a | 827 | with_static_standard_libraries |
b3676d82 | 828 | with_stage1_ldflags |
81ecdfbb | 829 | with_boot_libs |
143754cd | 830 | with_boot_ldflags |
7ec59b9e L |
831 | with_isl |
832 | with_isl_include | |
833 | with_isl_lib | |
834 | enable_isl_version_check | |
700d40ca | 835 | enable_lto |
1b6c0831 L |
836 | enable_linker_plugin_configure_flags |
837 | enable_linker_plugin_flags | |
bf41f30d | 838 | enable_host_shared |
81ecdfbb RW |
839 | enable_stage1_languages |
840 | enable_objc_gc | |
05a13254 NC |
841 | with_target_bdw_gc |
842 | with_target_bdw_gc_include | |
843 | with_target_bdw_gc_lib | |
bf41f30d | 844 | with_gcc_major_version_only |
81ecdfbb RW |
845 | with_build_sysroot |
846 | with_debug_prefix_map | |
96655cc4 | 847 | with_build_config |
730af8ee | 848 | enable_vtable_verify |
81ecdfbb RW |
849 | enable_serial_configure |
850 | with_build_time_tools | |
851 | enable_maintainer_mode | |
852 | enable_stage1_checking | |
853 | enable_werror | |
81ecdfbb RW |
854 | ' |
855 | ac_precious_vars='build_alias | |
856 | host_alias | |
857 | target_alias | |
858 | CC | |
859 | CFLAGS | |
860 | LDFLAGS | |
861 | LIBS | |
862 | CPPFLAGS | |
863 | CXX | |
864 | CXXFLAGS | |
865 | CCC | |
4074d5f2 RW |
866 | build_configargs |
867 | host_configargs | |
868 | target_configargs | |
81ecdfbb RW |
869 | AR |
870 | AS | |
871 | DLLTOOL | |
228cf97d | 872 | DSYMUTIL |
81ecdfbb RW |
873 | LD |
874 | LIPO | |
875 | NM | |
876 | RANLIB | |
877 | STRIP | |
878 | WINDRES | |
879 | WINDMC | |
880 | OBJCOPY | |
881 | OBJDUMP | |
228cf97d | 882 | OTOOL |
b121d7d4 | 883 | READELF |
81ecdfbb RW |
884 | CC_FOR_TARGET |
885 | CXX_FOR_TARGET | |
886 | GCC_FOR_TARGET | |
81ecdfbb | 887 | GFORTRAN_FOR_TARGET |
e552509b | 888 | GOC_FOR_TARGET |
228cf97d | 889 | GDC_FOR_TARGET |
81ecdfbb RW |
890 | AR_FOR_TARGET |
891 | AS_FOR_TARGET | |
892 | DLLTOOL_FOR_TARGET | |
228cf97d | 893 | DSYMUTIL_FOR_TARGET |
81ecdfbb RW |
894 | LD_FOR_TARGET |
895 | LIPO_FOR_TARGET | |
896 | NM_FOR_TARGET | |
6b91c541 | 897 | OBJCOPY_FOR_TARGET |
81ecdfbb | 898 | OBJDUMP_FOR_TARGET |
228cf97d | 899 | OTOOL_FOR_TARGET |
81ecdfbb | 900 | RANLIB_FOR_TARGET |
b121d7d4 | 901 | READELF_FOR_TARGET |
81ecdfbb RW |
902 | STRIP_FOR_TARGET |
903 | WINDRES_FOR_TARGET | |
904 | WINDMC_FOR_TARGET' | |
905 | ||
a0da8069 NN |
906 | |
907 | # Initialize some variables set by options. | |
c6b750e1 DJ |
908 | ac_init_help= |
909 | ac_init_version=false | |
81ecdfbb RW |
910 | ac_unrecognized_opts= |
911 | ac_unrecognized_sep= | |
a0da8069 NN |
912 | # The variables have the same names as the options, with |
913 | # dashes changed to underlines. | |
c6b750e1 | 914 | cache_file=/dev/null |
a0da8069 | 915 | exec_prefix=NONE |
a0da8069 | 916 | no_create= |
a0da8069 NN |
917 | no_recursion= |
918 | prefix=NONE | |
919 | program_prefix=NONE | |
920 | program_suffix=NONE | |
921 | program_transform_name=s,x,x, | |
922 | silent= | |
923 | site= | |
924 | srcdir= | |
a0da8069 NN |
925 | verbose= |
926 | x_includes=NONE | |
927 | x_libraries=NONE | |
c6b750e1 DJ |
928 | |
929 | # Installation directory options. | |
930 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
931 | # and all the variables that are supposed to be based on exec_prefix | |
932 | # by default will actually change. | |
933 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 934 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
935 | bindir='${exec_prefix}/bin' |
936 | sbindir='${exec_prefix}/sbin' | |
937 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
938 | datarootdir='${prefix}/share' |
939 | datadir='${datarootdir}' | |
a0da8069 NN |
940 | sysconfdir='${prefix}/etc' |
941 | sharedstatedir='${prefix}/com' | |
942 | localstatedir='${prefix}/var' | |
a0da8069 NN |
943 | includedir='${prefix}/include' |
944 | oldincludedir='/usr/include' | |
81ecdfbb RW |
945 | docdir='${datarootdir}/doc/${PACKAGE}' |
946 | infodir='${datarootdir}/info' | |
947 | htmldir='${docdir}' | |
948 | dvidir='${docdir}' | |
949 | pdfdir='${docdir}' | |
950 | psdir='${docdir}' | |
951 | libdir='${exec_prefix}/lib' | |
952 | localedir='${datarootdir}/locale' | |
953 | mandir='${datarootdir}/man' | |
252b5132 | 954 | |
a0da8069 | 955 | ac_prev= |
81ecdfbb | 956 | ac_dashdash= |
a0da8069 NN |
957 | for ac_option |
958 | do | |
a0da8069 NN |
959 | # If the previous option needs an argument, assign it. |
960 | if test -n "$ac_prev"; then | |
81ecdfbb | 961 | eval $ac_prev=\$ac_option |
a0da8069 NN |
962 | ac_prev= |
963 | continue | |
964 | fi | |
252b5132 | 965 | |
81ecdfbb | 966 | case $ac_option in |
d0ac1c44 SM |
967 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
968 | *=) ac_optarg= ;; | |
969 | *) ac_optarg=yes ;; | |
81ecdfbb | 970 | esac |
a0da8069 NN |
971 | |
972 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
973 | ||
81ecdfbb RW |
974 | case $ac_dashdash$ac_option in |
975 | --) | |
976 | ac_dashdash=yes ;; | |
a0da8069 NN |
977 | |
978 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
979 | ac_prev=bindir ;; | |
980 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 981 | bindir=$ac_optarg ;; |
a0da8069 NN |
982 | |
983 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 984 | ac_prev=build_alias ;; |
a0da8069 | 985 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 986 | build_alias=$ac_optarg ;; |
a0da8069 NN |
987 | |
988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
990 | ac_prev=cache_file ;; | |
991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
993 | cache_file=$ac_optarg ;; |
994 | ||
995 | --config-cache | -C) | |
996 | cache_file=config.cache ;; | |
a0da8069 | 997 | |
81ecdfbb | 998 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 999 | ac_prev=datadir ;; |
81ecdfbb | 1000 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 1001 | datadir=$ac_optarg ;; |
a0da8069 | 1002 | |
81ecdfbb RW |
1003 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1004 | | --dataroo | --dataro | --datar) | |
1005 | ac_prev=datarootdir ;; | |
1006 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1007 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1008 | datarootdir=$ac_optarg ;; | |
1009 | ||
a0da8069 | 1010 | -disable-* | --disable-*) |
81ecdfbb | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 1012 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1014 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1015 | ac_useropt_orig=$ac_useropt |
1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1017 | case $ac_user_opts in | |
1018 | *" | |
1019 | "enable_$ac_useropt" | |
1020 | "*) ;; | |
1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1022 | ac_unrecognized_sep=', ';; | |
1023 | esac | |
1024 | eval enable_$ac_useropt=no ;; | |
1025 | ||
1026 | -docdir | --docdir | --docdi | --doc | --do) | |
1027 | ac_prev=docdir ;; | |
1028 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1029 | docdir=$ac_optarg ;; | |
1030 | ||
1031 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1032 | ac_prev=dvidir ;; | |
1033 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1034 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
1035 | |
1036 | -enable-* | --enable-*) | |
81ecdfbb | 1037 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 1038 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1040 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1041 | ac_useropt_orig=$ac_useropt |
1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1043 | case $ac_user_opts in | |
1044 | *" | |
1045 | "enable_$ac_useropt" | |
1046 | "*) ;; | |
1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1048 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1049 | esac |
81ecdfbb | 1050 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1051 | |
1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1054 | | --exec | --exe | --ex) | |
1055 | ac_prev=exec_prefix ;; | |
1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1058 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1059 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1060 | |
1061 | -gas | --gas | --ga | --g) | |
1062 | # Obsolete; use --with-gas. | |
1063 | with_gas=yes ;; | |
1064 | ||
c6b750e1 DJ |
1065 | -help | --help | --hel | --he | -h) |
1066 | ac_init_help=long ;; | |
1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1068 | ac_init_help=recursive ;; | |
1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1070 | ac_init_help=short ;; | |
a0da8069 NN |
1071 | |
1072 | -host | --host | --hos | --ho) | |
c6b750e1 | 1073 | ac_prev=host_alias ;; |
a0da8069 | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1075 | host_alias=$ac_optarg ;; |
a0da8069 | 1076 | |
81ecdfbb RW |
1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1078 | ac_prev=htmldir ;; | |
1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1080 | | --ht=*) | |
1081 | htmldir=$ac_optarg ;; | |
1082 | ||
a0da8069 NN |
1083 | -includedir | --includedir | --includedi | --included | --include \ |
1084 | | --includ | --inclu | --incl | --inc) | |
1085 | ac_prev=includedir ;; | |
1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1088 | includedir=$ac_optarg ;; |
a0da8069 NN |
1089 | |
1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1091 | ac_prev=infodir ;; | |
1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1093 | infodir=$ac_optarg ;; |
a0da8069 NN |
1094 | |
1095 | -libdir | --libdir | --libdi | --libd) | |
1096 | ac_prev=libdir ;; | |
1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1098 | libdir=$ac_optarg ;; |
a0da8069 NN |
1099 | |
1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1101 | | --libexe | --libex | --libe) | |
1102 | ac_prev=libexecdir ;; | |
1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1104 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1105 | libexecdir=$ac_optarg ;; |
a0da8069 | 1106 | |
81ecdfbb RW |
1107 | -localedir | --localedir | --localedi | --localed | --locale) |
1108 | ac_prev=localedir ;; | |
1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1110 | localedir=$ac_optarg ;; | |
1111 | ||
a0da8069 | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1114 | ac_prev=localstatedir ;; |
1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1117 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1118 | |
1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1120 | ac_prev=mandir ;; | |
1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1122 | mandir=$ac_optarg ;; |
a0da8069 NN |
1123 | |
1124 | -nfp | --nfp | --nf) | |
1125 | # Obsolete; use --without-fp. | |
1126 | with_fp=no ;; | |
1127 | ||
1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1129 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1130 | no_create=yes ;; |
1131 | ||
1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1134 | no_recursion=yes ;; | |
1135 | ||
1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1138 | | --oldin | --oldi | --old | --ol | --o) | |
1139 | ac_prev=oldincludedir ;; | |
1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1143 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1144 | |
1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1146 | ac_prev=prefix ;; | |
1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1148 | prefix=$ac_optarg ;; |
a0da8069 NN |
1149 | |
1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1151 | | --program-pre | --program-pr | --program-p) | |
1152 | ac_prev=program_prefix ;; | |
1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1155 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1156 | |
1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1158 | | --program-suf | --program-su | --program-s) | |
1159 | ac_prev=program_suffix ;; | |
1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1162 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1163 | |
1164 | -program-transform-name | --program-transform-name \ | |
1165 | | --program-transform-nam | --program-transform-na \ | |
1166 | | --program-transform-n | --program-transform- \ | |
1167 | | --program-transform | --program-transfor \ | |
1168 | | --program-transfo | --program-transf \ | |
1169 | | --program-trans | --program-tran \ | |
1170 | | --progr-tra | --program-tr | --program-t) | |
1171 | ac_prev=program_transform_name ;; | |
1172 | -program-transform-name=* | --program-transform-name=* \ | |
1173 | | --program-transform-nam=* | --program-transform-na=* \ | |
1174 | | --program-transform-n=* | --program-transform-=* \ | |
1175 | | --program-transform=* | --program-transfor=* \ | |
1176 | | --program-transfo=* | --program-transf=* \ | |
1177 | | --program-trans=* | --program-tran=* \ | |
1178 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1179 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1180 | |
81ecdfbb RW |
1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1182 | ac_prev=pdfdir ;; | |
1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1184 | pdfdir=$ac_optarg ;; | |
1185 | ||
1186 | -psdir | --psdir | --psdi | --psd | --ps) | |
1187 | ac_prev=psdir ;; | |
1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1189 | psdir=$ac_optarg ;; | |
1190 | ||
a0da8069 NN |
1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1192 | | -silent | --silent | --silen | --sile | --sil) | |
1193 | silent=yes ;; | |
1194 | ||
1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1196 | ac_prev=sbindir ;; | |
1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1198 | | --sbi=* | --sb=*) | |
c6b750e1 | 1199 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1200 | |
1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1203 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1204 | | --sha | --sh) | |
1205 | ac_prev=sharedstatedir ;; | |
1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1209 | | --sha=* | --sh=*) | |
c6b750e1 | 1210 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1211 | |
1212 | -site | --site | --sit) | |
1213 | ac_prev=site ;; | |
1214 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1215 | site=$ac_optarg ;; |
a0da8069 NN |
1216 | |
1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1218 | ac_prev=srcdir ;; | |
1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1220 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1221 | |
1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1223 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1224 | ac_prev=sysconfdir ;; | |
1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1227 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1228 | |
1229 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1230 | ac_prev=target_alias ;; |
a0da8069 | 1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1232 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1233 | |
1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1235 | verbose=yes ;; | |
1236 | ||
c6b750e1 DJ |
1237 | -version | --version | --versio | --versi | --vers | -V) |
1238 | ac_init_version=: ;; | |
a0da8069 NN |
1239 | |
1240 | -with-* | --with-*) | |
81ecdfbb | 1241 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1242 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1243 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1244 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1245 | ac_useropt_orig=$ac_useropt |
1246 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1247 | case $ac_user_opts in | |
1248 | *" | |
1249 | "with_$ac_useropt" | |
1250 | "*) ;; | |
1251 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1252 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1253 | esac |
81ecdfbb | 1254 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1255 | |
1256 | -without-* | --without-*) | |
81ecdfbb | 1257 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1258 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1259 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1260 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1261 | ac_useropt_orig=$ac_useropt |
1262 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1263 | case $ac_user_opts in | |
1264 | *" | |
1265 | "with_$ac_useropt" | |
1266 | "*) ;; | |
1267 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1268 | ac_unrecognized_sep=', ';; | |
1269 | esac | |
1270 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1271 | |
1272 | --x) | |
1273 | # Obsolete; use --with-x. | |
1274 | with_x=yes ;; | |
1275 | ||
1276 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1277 | | --x-incl | --x-inc | --x-in | --x-i) | |
1278 | ac_prev=x_includes ;; | |
1279 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1280 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1281 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1282 | |
1283 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1284 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1285 | ac_prev=x_libraries ;; | |
1286 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1287 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1288 | x_libraries=$ac_optarg ;; |
a0da8069 | 1289 | |
d0ac1c44 SM |
1290 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1291 | Try \`$0 --help' for more information" | |
a0da8069 NN |
1292 | ;; |
1293 | ||
c6b750e1 DJ |
1294 | *=*) |
1295 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1296 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1297 | case $ac_envvar in #( |
1298 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1299 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1300 | esac |
1301 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1302 | export $ac_envvar ;; |
1303 | ||
a0da8069 | 1304 | *) |
c6b750e1 | 1305 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1306 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1307 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1308 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1309 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
a0da8069 NN |
1310 | ;; |
1311 | ||
1312 | esac | |
1313 | done | |
1314 | ||
1315 | if test -n "$ac_prev"; then | |
c6b750e1 | 1316 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1317 | as_fn_error $? "missing argument to $ac_option" |
a0da8069 | 1318 | fi |
a0da8069 | 1319 | |
81ecdfbb RW |
1320 | if test -n "$ac_unrecognized_opts"; then |
1321 | case $enable_option_checking in | |
1322 | no) ;; | |
d0ac1c44 | 1323 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1324 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
c6b750e1 | 1325 | esac |
81ecdfbb | 1326 | fi |
a0da8069 | 1327 | |
81ecdfbb RW |
1328 | # Check all directory arguments for consistency. |
1329 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1330 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1331 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1332 | libdir localedir mandir | |
a0da8069 | 1333 | do |
81ecdfbb RW |
1334 | eval ac_val=\$$ac_var |
1335 | # Remove trailing slashes. | |
1336 | case $ac_val in | |
1337 | */ ) | |
1338 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1339 | eval $ac_var=\$ac_val;; | |
1340 | esac | |
1341 | # Be sure to have absolute directory names. | |
c6b750e1 | 1342 | case $ac_val in |
81ecdfbb RW |
1343 | [\\/$]* | ?:[\\/]* ) continue;; |
1344 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1345 | esac |
d0ac1c44 | 1346 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1347 | done |
1348 | ||
c6b750e1 DJ |
1349 | # There might be people who depend on the old broken behavior: `$host' |
1350 | # used to hold the argument of --host etc. | |
1351 | # FIXME: To remove some day. | |
1352 | build=$build_alias | |
1353 | host=$host_alias | |
1354 | target=$target_alias | |
376a0e54 | 1355 | |
c6b750e1 DJ |
1356 | # FIXME: To remove some day. |
1357 | if test "x$host_alias" != x; then | |
1358 | if test "x$build_alias" = x; then | |
1359 | cross_compiling=maybe | |
c6b750e1 DJ |
1360 | elif test "x$build_alias" != "x$host_alias"; then |
1361 | cross_compiling=yes | |
1362 | fi | |
1363 | fi | |
1364 | ||
1365 | ac_tool_prefix= | |
1366 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1367 | ||
1368 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1369 | |
a0da8069 | 1370 | |
81ecdfbb RW |
1371 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1372 | ac_ls_di=`ls -di .` && | |
1373 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1374 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1375 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1376 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1377 | |
1378 | ||
a0da8069 NN |
1379 | # Find the source files, if location was not specified. |
1380 | if test -z "$srcdir"; then | |
1381 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1382 | # Try the directory containing this script, then the parent directory. |
1383 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1384 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1385 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1386 | X"$as_myself" : 'X\(//\)$' \| \ | |
1387 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1388 | $as_echo X"$as_myself" | | |
1389 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | /^X\(\/\/\)[^/].*/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | /^X\(\/\/\)$/{ | |
1398 | s//\1/ | |
1399 | q | |
1400 | } | |
1401 | /^X\(\/\).*/{ | |
1402 | s//\1/ | |
1403 | q | |
1404 | } | |
1405 | s/.*/./; q'` | |
a0da8069 | 1406 | srcdir=$ac_confdir |
81ecdfbb | 1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1408 | srcdir=.. |
1409 | fi | |
1410 | else | |
1411 | ac_srcdir_defaulted=no | |
1412 | fi | |
81ecdfbb RW |
1413 | if test ! -r "$srcdir/$ac_unique_file"; then |
1414 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1415 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1416 | fi |
1417 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1418 | ac_abs_confdir=`( | |
d0ac1c44 | 1419 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1420 | pwd)` |
1421 | # When building in place, set srcdir=. | |
1422 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1423 | srcdir=. | |
1424 | fi | |
1425 | # Remove unnecessary trailing slashes from srcdir. | |
1426 | # Double slashes in file names in object file debugging info | |
1427 | # mess up M-x gdb in Emacs. | |
1428 | case $srcdir in | |
1429 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1430 | esac | |
6d0cd39e AM |
1431 | case $srcdir in |
1432 | *" "*) | |
d0ac1c44 | 1433 | as_fn_error $? "path to source, $srcdir, contains spaces" |
6d0cd39e AM |
1434 | ;; |
1435 | esac | |
9cc8ae67 PB |
1436 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1437 | ||
81ecdfbb RW |
1438 | for ac_var in $ac_precious_vars; do |
1439 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1440 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1441 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1442 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1443 | done | |
c6b750e1 DJ |
1444 | |
1445 | # | |
1446 | # Report the --help message. | |
1447 | # | |
1448 | if test "$ac_init_help" = "long"; then | |
1449 | # Omit some internal or obsolete options to make the list less imposing. | |
1450 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1451 | cat <<_ACEOF | |
1452 | \`configure' configures this package to adapt to many kinds of systems. | |
1453 | ||
1454 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1455 | ||
1456 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1457 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1458 | ||
1459 | Defaults for the options are specified in brackets. | |
1460 | ||
1461 | Configuration: | |
1462 | -h, --help display this help and exit | |
1463 | --help=short display options specific to this package | |
1464 | --help=recursive display the short help of all the included packages | |
1465 | -V, --version display version information and exit | |
d0ac1c44 | 1466 | -q, --quiet, --silent do not print \`checking ...' messages |
c6b750e1 DJ |
1467 | --cache-file=FILE cache test results in FILE [disabled] |
1468 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1469 | -n, --no-create do not create output files | |
1470 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1471 | ||
c6b750e1 DJ |
1472 | Installation directories: |
1473 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1474 | [$ac_default_prefix] |
c6b750e1 | 1475 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1476 | [PREFIX] |
c6b750e1 DJ |
1477 | |
1478 | By default, \`make install' will install all the files in | |
1479 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1480 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1481 | for instance \`--prefix=\$HOME'. | |
1482 | ||
1483 | For better control, use the options below. | |
1484 | ||
1485 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1486 | --bindir=DIR user executables [EPREFIX/bin] |
1487 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1488 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1489 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1490 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1491 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1492 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1493 | --includedir=DIR C header files [PREFIX/include] | |
1494 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1495 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1496 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1497 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1498 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1499 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1500 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1501 | --htmldir=DIR html documentation [DOCDIR] | |
1502 | --dvidir=DIR dvi documentation [DOCDIR] | |
1503 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1504 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1505 | _ACEOF |
1506 | ||
1507 | cat <<\_ACEOF | |
1508 | ||
1509 | Program names: | |
1510 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1511 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1512 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1513 | ||
1514 | System types: | |
1515 | --build=BUILD configure for building on BUILD [guessed] | |
1516 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1517 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1518 | _ACEOF | |
a0da8069 | 1519 | fi |
a0da8069 | 1520 | |
c6b750e1 DJ |
1521 | if test -n "$ac_init_help"; then |
1522 | ||
1523 | cat <<\_ACEOF | |
1524 | ||
1525 | Optional Features: | |
81ecdfbb | 1526 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1529 | --enable-as-accelerator-for=ARG |
1530 | build as offload target compiler. Specify offload | |
1531 | host triple by ARG | |
1532 | --enable-offload-targets=LIST | |
1533 | enable offloading to devices from comma-separated | |
1534 | LIST of TARGET[=DIR]. Use optional path to find | |
1535 | offload target compiler during the build | |
228cf97d AM |
1536 | --enable-offload-defaulted |
1537 | If enabled, configured but not installed offload compilers and | |
1538 | libgomp plugins are silently ignored. Useful for distribution | |
1539 | compilers where those are in separate optional packages. | |
1540 | ||
c7791212 | 1541 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1542 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
bb368aad | 1543 | --enable-gprofng[=ARG] build gprofng [ARG={yes,no}] |
6c3bc0f8 | 1544 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1545 | Enable compressed debug sections for gas, gold or ld |
1546 | by default | |
b0c295e1 ML |
1547 | --enable-default-compressed-debug-sections-algorithm={zlib,zstd} |
1548 | Default compression algorithm for | |
1549 | --enable-compressed-debug-sections. | |
e5f2f7d9 | 1550 | --enable-year2038 enable support for timestamps past the year 2038 |
89a1e9c3 PB |
1551 | --disable-libquadmath do not build libquadmath directory |
1552 | --disable-libquadmath-support | |
1553 | disable libquadmath support for Fortran | |
521ec477 DD |
1554 | --enable-libada build libada directory |
1555 | --enable-libssp build libssp directory | |
f66a9a70 | 1556 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1557 | --enable-liboffloadmic=ARG |
1558 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc | 1559 | --enable-bootstrap enable bootstrapping [yes if native build] |
af019bfd L |
1560 | --enable-pgo-build[=lto] |
1561 | enable the PGO build | |
7ec59b9e | 1562 | --disable-isl-version-check |
4849dfd8 | 1563 | disable check for isl version |
700d40ca | 1564 | --enable-lto enable link time optimization support |
1b6c0831 L |
1565 | --enable-linker-plugin-configure-flags=FLAGS |
1566 | additional flags for configuring linker plugins | |
1567 | [none] | |
1568 | --enable-linker-plugin-flags=FLAGS | |
1569 | additional flags for configuring and building linker | |
1570 | plugins [none] | |
bf41f30d | 1571 | --enable-host-shared build host code as shared libraries |
7837304f AS |
1572 | --enable-stage1-languages[=all] |
1573 | choose additional languages to build during stage1. | |
1574 | Mostly useful for compiler development | |
1575 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1576 | Objective-C runtime | |
ce6c656d | 1577 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1578 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1579 | force sequential configuration of sub-packages for |
1580 | the host, target or build machine, or all | |
1581 | sub-packages | |
1582 | --enable-maintainer-mode | |
1583 | enable make rules and dependencies not useful (and | |
1584 | sometimes confusing) to the casual installer | |
1585 | --enable-stage1-checking[=all] | |
1586 | choose additional checking for stage1 of the | |
1587 | compiler | |
c6b750e1 DJ |
1588 | --enable-werror enable -Werror in bootstrap stage2 and later |
1589 | ||
1590 | Optional Packages: | |
1591 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1592 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1593 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1594 | --with-system-zlib use installed libz |
2cac01e3 FS |
1595 | --with-zstd Support zstd compressed debug sections |
1596 | (default=auto) | |
7837304f AS |
1597 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1598 | Equivalent to --with-mpc-include=PATH/include plus | |
1599 | --with-mpc-lib=PATH/lib | |
1600 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1601 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 | 1602 | --with-mpfr=PATH specify prefix directory for installed MPFR package. |
7837304f AS |
1603 | Equivalent to --with-mpfr-include=PATH/include plus |
1604 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1605 | --with-mpfr-include=PATH |
521ec477 DD |
1606 | specify directory for installed MPFR include files |
1607 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
7837304f AS |
1608 | --with-gmp=PATH specify prefix directory for the installed GMP |
1609 | package. Equivalent to | |
1610 | --with-gmp-include=PATH/include plus | |
1611 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1612 | --with-gmp-include=PATH specify directory for installed GMP include files |
1613 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1614 | --with-stage1-libs=LIBS libraries for stage1 |
c1a5d03a TT |
1615 | --with-static-standard-libraries |
1616 | use -static-libstdc++ and -static-libgcc | |
1617 | (default=auto) | |
7837304f AS |
1618 | --with-stage1-ldflags=FLAGS |
1619 | linker flags for stage1 | |
7837304f AS |
1620 | --with-boot-libs=LIBS libraries for stage2 and later |
1621 | --with-boot-ldflags=FLAGS | |
1622 | linker flags for stage2 and later | |
4849dfd8 | 1623 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1624 | package. Equivalent to |
7ec59b9e L |
1625 | --with-isl-include=PATH/include plus |
1626 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1627 | --with-isl-include=PATH Specify directory for installed isl include files |
1628 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
05a13254 NC |
1629 | --with-target-bdw-gc=PATHLIST |
1630 | specify prefix directory for installed bdw-gc | |
1631 | package. Equivalent to | |
1632 | --with-target-bdw-gc-include=PATH/include plus | |
1633 | --with-target-bdw-gc-lib=PATH/lib | |
1634 | --with-target-bdw-gc-include=PATHLIST | |
1635 | specify directories for installed bdw-gc include | |
1636 | files | |
1637 | --with-target-bdw-gc-lib=PATHLIST | |
1638 | specify directories for installed bdw-gc library | |
bf41f30d NC |
1639 | --with-gcc-major-version-only |
1640 | use only GCC major number in filesystem paths | |
521ec477 | 1641 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1642 | use sysroot as the system root during the build |
8a6ee3ab | 1643 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1644 | map A to B, C to D ... in debug information |
1645 | --with-build-config='NAME NAME2...' | |
1646 | use config/NAME.mk build configuration | |
521ec477 | 1647 | --with-build-time-tools=PATH |
c6b750e1 | 1648 | use given path to find target tools during the build |
c6b750e1 DJ |
1649 | |
1650 | Some influential environment variables: | |
1651 | CC C compiler command | |
1652 | CFLAGS C compiler flags | |
1653 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1654 | nonstandard directory <lib dir> | |
81ecdfbb | 1655 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1656 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1657 | you have headers in a nonstandard directory <include dir> |
18f6b6ee PB |
1658 | CXX C++ compiler command |
1659 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1660 | build_configargs |
1661 | additional configure arguments for build directories | |
1662 | host_configargs | |
1663 | additional configure arguments for host directories | |
1664 | target_configargs | |
1665 | additional configure arguments for target directories | |
9a819804 AO |
1666 | AR AR for the host |
1667 | AS AS for the host | |
1668 | DLLTOOL DLLTOOL for the host | |
228cf97d | 1669 | DSYMUTIL DSYMUTIL for the host |
9a819804 AO |
1670 | LD LD for the host |
1671 | LIPO LIPO for the host | |
1672 | NM NM for the host | |
1673 | RANLIB RANLIB for the host | |
1674 | STRIP STRIP for the host | |
1675 | WINDRES WINDRES for the host | |
0c24b341 | 1676 | WINDMC WINDMC for the host |
9a819804 AO |
1677 | OBJCOPY OBJCOPY for the host |
1678 | OBJDUMP OBJDUMP for the host | |
228cf97d | 1679 | OTOOL OTOOL for the host |
b121d7d4 | 1680 | READELF READELF for the host |
9a819804 AO |
1681 | CC_FOR_TARGET |
1682 | CC for the target | |
1683 | CXX_FOR_TARGET | |
1684 | CXX for the target | |
1685 | GCC_FOR_TARGET | |
1686 | GCC for the target | |
9a819804 AO |
1687 | GFORTRAN_FOR_TARGET |
1688 | GFORTRAN for the target | |
e552509b ILT |
1689 | GOC_FOR_TARGET |
1690 | GOC for the target | |
228cf97d AM |
1691 | GDC_FOR_TARGET |
1692 | GDC for the target | |
9a819804 AO |
1693 | AR_FOR_TARGET |
1694 | AR for the target | |
1695 | AS_FOR_TARGET | |
1696 | AS for the target | |
1697 | DLLTOOL_FOR_TARGET | |
1698 | DLLTOOL for the target | |
228cf97d AM |
1699 | DSYMUTIL_FOR_TARGET |
1700 | DSYMUTIL for the target | |
9a819804 AO |
1701 | LD_FOR_TARGET |
1702 | LD for the target | |
1703 | LIPO_FOR_TARGET | |
1704 | LIPO for the target | |
1705 | NM_FOR_TARGET | |
1706 | NM for the target | |
6b91c541 AP |
1707 | OBJCOPY_FOR_TARGET |
1708 | OBJCOPY for the target | |
9a819804 AO |
1709 | OBJDUMP_FOR_TARGET |
1710 | OBJDUMP for the target | |
228cf97d AM |
1711 | OTOOL_FOR_TARGET |
1712 | OTOOL for the target | |
9a819804 AO |
1713 | RANLIB_FOR_TARGET |
1714 | RANLIB for the target | |
b121d7d4 DD |
1715 | READELF_FOR_TARGET |
1716 | READELF for the target | |
9a819804 AO |
1717 | STRIP_FOR_TARGET |
1718 | STRIP for the target | |
1719 | WINDRES_FOR_TARGET | |
1720 | WINDRES for the target | |
0c24b341 NC |
1721 | WINDMC_FOR_TARGET |
1722 | WINDMC for the target | |
c6b750e1 DJ |
1723 | |
1724 | Use these variables to override the choices made by `configure' or to help | |
1725 | it to find libraries and programs with nonstandard names/locations. | |
1726 | ||
81ecdfbb | 1727 | Report bugs to the package provider. |
c6b750e1 | 1728 | _ACEOF |
81ecdfbb | 1729 | ac_status=$? |
c6b750e1 DJ |
1730 | fi |
1731 | ||
1732 | if test "$ac_init_help" = "recursive"; then | |
1733 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1734 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1735 | test -d "$ac_dir" || |
1736 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1737 | continue | |
c6b750e1 DJ |
1738 | ac_builddir=. |
1739 | ||
81ecdfbb RW |
1740 | case "$ac_dir" in |
1741 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1742 | *) | |
1743 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1744 | # A ".." for each directory in $ac_dir_suffix. | |
1745 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1746 | case $ac_top_builddir_sub in | |
1747 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1748 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1749 | esac ;; | |
1750 | esac | |
1751 | ac_abs_top_builddir=$ac_pwd | |
1752 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1753 | # for backward compatibility: | |
1754 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1755 | |
1756 | case $srcdir in | |
81ecdfbb | 1757 | .) # We are building in place. |
c6b750e1 | 1758 | ac_srcdir=. |
81ecdfbb RW |
1759 | ac_top_srcdir=$ac_top_builddir_sub |
1760 | ac_abs_top_srcdir=$ac_pwd ;; | |
1761 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1762 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1763 | ac_top_srcdir=$srcdir |
1764 | ac_abs_top_srcdir=$srcdir ;; | |
1765 | *) # Relative name. | |
1766 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1767 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1768 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1769 | esac |
81ecdfbb RW |
1770 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1771 | ||
1772 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1773 | # Check for guested configure. | |
1774 | if test -f "$ac_srcdir/configure.gnu"; then | |
1775 | echo && | |
1776 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1777 | elif test -f "$ac_srcdir/configure"; then | |
1778 | echo && | |
1779 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1780 | else |
81ecdfbb RW |
1781 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1782 | fi || ac_status=$? | |
1783 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1784 | done |
1785 | fi | |
1786 | ||
81ecdfbb | 1787 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1788 | if $ac_init_version; then |
1789 | cat <<\_ACEOF | |
81ecdfbb | 1790 | configure |
d0ac1c44 | 1791 | generated by GNU Autoconf 2.69 |
c6b750e1 | 1792 | |
d0ac1c44 | 1793 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
1794 | This configure script is free software; the Free Software Foundation |
1795 | gives unlimited permission to copy, distribute and modify it. | |
1796 | _ACEOF | |
81ecdfbb | 1797 | exit |
c6b750e1 | 1798 | fi |
81ecdfbb RW |
1799 | |
1800 | ## ------------------------ ## | |
1801 | ## Autoconf initialization. ## | |
1802 | ## ------------------------ ## | |
1803 | ||
1804 | # ac_fn_c_try_compile LINENO | |
1805 | # -------------------------- | |
1806 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1807 | ac_fn_c_try_compile () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | rm -f conftest.$ac_objext | |
1811 | if { { ac_try="$ac_compile" | |
1812 | case "(($ac_try" in | |
1813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1814 | *) ac_try_echo=$ac_try;; | |
1815 | esac | |
1816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1817 | $as_echo "$ac_try_echo"; } >&5 | |
1818 | (eval "$ac_compile") 2>conftest.err | |
1819 | ac_status=$? | |
1820 | if test -s conftest.err; then | |
1821 | grep -v '^ *+' conftest.err >conftest.er1 | |
1822 | cat conftest.er1 >&5 | |
1823 | mv -f conftest.er1 conftest.err | |
1824 | fi | |
1825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1826 | test $ac_status = 0; } && { | |
1827 | test -z "$ac_c_werror_flag" || | |
1828 | test ! -s conftest.err | |
1829 | } && test -s conftest.$ac_objext; then : | |
1830 | ac_retval=0 | |
1831 | else | |
1832 | $as_echo "$as_me: failed program was:" >&5 | |
1833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1834 | ||
1835 | ac_retval=1 | |
1836 | fi | |
d0ac1c44 SM |
1837 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1838 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1839 | |
1840 | } # ac_fn_c_try_compile | |
1841 | ||
1842 | # ac_fn_cxx_try_compile LINENO | |
1843 | # ---------------------------- | |
1844 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1845 | ac_fn_cxx_try_compile () | |
1846 | { | |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1848 | rm -f conftest.$ac_objext | |
1849 | if { { ac_try="$ac_compile" | |
1850 | case "(($ac_try" in | |
1851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1852 | *) ac_try_echo=$ac_try;; | |
1853 | esac | |
1854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1855 | $as_echo "$ac_try_echo"; } >&5 | |
1856 | (eval "$ac_compile") 2>conftest.err | |
1857 | ac_status=$? | |
1858 | if test -s conftest.err; then | |
1859 | grep -v '^ *+' conftest.err >conftest.er1 | |
1860 | cat conftest.er1 >&5 | |
1861 | mv -f conftest.er1 conftest.err | |
1862 | fi | |
1863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1864 | test $ac_status = 0; } && { | |
1865 | test -z "$ac_cxx_werror_flag" || | |
1866 | test ! -s conftest.err | |
1867 | } && test -s conftest.$ac_objext; then : | |
1868 | ac_retval=0 | |
1869 | else | |
1870 | $as_echo "$as_me: failed program was:" >&5 | |
1871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1872 | ||
1873 | ac_retval=1 | |
1874 | fi | |
d0ac1c44 SM |
1875 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1876 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1877 | |
1878 | } # ac_fn_cxx_try_compile | |
1879 | ||
b3676d82 EB |
1880 | # ac_fn_cxx_try_link LINENO |
1881 | # ------------------------- | |
1882 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1883 | ac_fn_cxx_try_link () | |
1884 | { | |
1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1887 | if { { ac_try="$ac_link" | |
1888 | case "(($ac_try" in | |
1889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1890 | *) ac_try_echo=$ac_try;; | |
1891 | esac | |
1892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1893 | $as_echo "$ac_try_echo"; } >&5 | |
1894 | (eval "$ac_link") 2>conftest.err | |
1895 | ac_status=$? | |
1896 | if test -s conftest.err; then | |
1897 | grep -v '^ *+' conftest.err >conftest.er1 | |
1898 | cat conftest.er1 >&5 | |
1899 | mv -f conftest.er1 conftest.err | |
1900 | fi | |
1901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1902 | test $ac_status = 0; } && { | |
1903 | test -z "$ac_cxx_werror_flag" || | |
1904 | test ! -s conftest.err | |
1905 | } && test -s conftest$ac_exeext && { | |
1906 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1907 | test -x conftest$ac_exeext |
b3676d82 EB |
1908 | }; then : |
1909 | ac_retval=0 | |
1910 | else | |
1911 | $as_echo "$as_me: failed program was:" >&5 | |
1912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1913 | ||
1914 | ac_retval=1 | |
1915 | fi | |
1916 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1917 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1918 | # interfere with the next link command; also delete a directory that is | |
1919 | # left behind by Apple's compiler. We do this before executing the actions. | |
1920 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1922 | as_fn_set_status $ac_retval | |
b3676d82 EB |
1923 | |
1924 | } # ac_fn_cxx_try_link | |
1925 | ||
81ecdfbb RW |
1926 | # ac_fn_c_try_link LINENO |
1927 | # ----------------------- | |
1928 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1929 | ac_fn_c_try_link () | |
1930 | { | |
1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1933 | if { { ac_try="$ac_link" | |
1934 | case "(($ac_try" in | |
1935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1936 | *) ac_try_echo=$ac_try;; | |
1937 | esac | |
1938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1939 | $as_echo "$ac_try_echo"; } >&5 | |
1940 | (eval "$ac_link") 2>conftest.err | |
1941 | ac_status=$? | |
1942 | if test -s conftest.err; then | |
1943 | grep -v '^ *+' conftest.err >conftest.er1 | |
1944 | cat conftest.er1 >&5 | |
1945 | mv -f conftest.er1 conftest.err | |
1946 | fi | |
1947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1948 | test $ac_status = 0; } && { | |
1949 | test -z "$ac_c_werror_flag" || | |
1950 | test ! -s conftest.err | |
1951 | } && test -s conftest$ac_exeext && { | |
1952 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1953 | test -x conftest$ac_exeext |
81ecdfbb RW |
1954 | }; then : |
1955 | ac_retval=0 | |
1956 | else | |
1957 | $as_echo "$as_me: failed program was:" >&5 | |
1958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1959 | ||
1960 | ac_retval=1 | |
1961 | fi | |
1962 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1963 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1964 | # interfere with the next link command; also delete a directory that is | |
1965 | # left behind by Apple's compiler. We do this before executing the actions. | |
1966 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1967 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1968 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1969 | |
1970 | } # ac_fn_c_try_link | |
1971 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1972 | This file contains any messages produced by compilers while |
1973 | running configure, to aid debugging if configure makes a mistake. | |
1974 | ||
1975 | It was created by $as_me, which was | |
d0ac1c44 | 1976 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
1977 | |
1978 | $ $0 $@ | |
1979 | ||
1980 | _ACEOF | |
81ecdfbb | 1981 | exec 5>>config.log |
c6b750e1 DJ |
1982 | { |
1983 | cat <<_ASUNAME | |
1984 | ## --------- ## | |
1985 | ## Platform. ## | |
1986 | ## --------- ## | |
1987 | ||
1988 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1989 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1990 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1991 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1992 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1993 | ||
1994 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1995 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1996 | ||
1997 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1998 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1999 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2000 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
2001 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2002 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2003 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2004 | ||
2005 | _ASUNAME | |
2006 | ||
2007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2008 | for as_dir in $PATH | |
2009 | do | |
2010 | IFS=$as_save_IFS | |
2011 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2012 | $as_echo "PATH: $as_dir" |
2013 | done | |
2014 | IFS=$as_save_IFS | |
c6b750e1 DJ |
2015 | |
2016 | } >&5 | |
2017 | ||
2018 | cat >&5 <<_ACEOF | |
2019 | ||
2020 | ||
2021 | ## ----------- ## | |
2022 | ## Core tests. ## | |
2023 | ## ----------- ## | |
2024 | ||
2025 | _ACEOF | |
2026 | ||
2027 | ||
2028 | # Keep a trace of the command line. | |
2029 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2030 | # Strip out --silent because we don't want to record it for future runs. | |
2031 | # Also quote any args containing shell meta-characters. | |
2032 | # Make two passes to allow for proper duplicate-argument suppression. | |
2033 | ac_configure_args= | |
2034 | ac_configure_args0= | |
2035 | ac_configure_args1= | |
c6b750e1 DJ |
2036 | ac_must_keep_next=false |
2037 | for ac_pass in 1 2 | |
2038 | do | |
2039 | for ac_arg | |
2040 | do | |
2041 | case $ac_arg in | |
2042 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2043 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2044 | | -silent | --silent | --silen | --sile | --sil) | |
2045 | continue ;; | |
81ecdfbb RW |
2046 | *\'*) |
2047 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
2048 | esac |
2049 | case $ac_pass in | |
81ecdfbb | 2050 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 2051 | 2) |
81ecdfbb | 2052 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
2053 | if test $ac_must_keep_next = true; then |
2054 | ac_must_keep_next=false # Got value, back to normal. | |
2055 | else | |
2056 | case $ac_arg in | |
2057 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2058 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2059 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2060 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2061 | case "$ac_configure_args0 " in | |
2062 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2063 | esac | |
2064 | ;; | |
2065 | -* ) ac_must_keep_next=true ;; | |
2066 | esac | |
2067 | fi | |
81ecdfbb | 2068 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2069 | ;; |
2070 | esac | |
2071 | done | |
2072 | done | |
81ecdfbb RW |
2073 | { ac_configure_args0=; unset ac_configure_args0;} |
2074 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2075 | |
2076 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2077 | # config.log. We remove comments because anyway the quotes in there | |
2078 | # would cause problems or look ugly. | |
81ecdfbb RW |
2079 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2080 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2081 | trap 'exit_status=$? |
2082 | # Save into config.log some information that might help in debugging. | |
2083 | { | |
2084 | echo | |
2085 | ||
d0ac1c44 | 2086 | $as_echo "## ---------------- ## |
c6b750e1 | 2087 | ## Cache variables. ## |
d0ac1c44 | 2088 | ## ---------------- ##" |
c6b750e1 DJ |
2089 | echo |
2090 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2091 | ( |
2092 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2093 | eval ac_val=\$$ac_var | |
2094 | case $ac_val in #( | |
2095 | *${as_nl}*) | |
2096 | case $ac_var in #( | |
2097 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2098 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2099 | esac | |
2100 | case $ac_var in #( | |
2101 | _ | IFS | as_nl) ;; #( | |
2102 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2103 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2104 | esac ;; | |
2105 | esac | |
2106 | done | |
c6b750e1 | 2107 | (set) 2>&1 | |
81ecdfbb RW |
2108 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2109 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2110 | sed -n \ |
81ecdfbb RW |
2111 | "s/'\''/'\''\\\\'\'''\''/g; |
2112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2113 | ;; #( | |
c6b750e1 | 2114 | *) |
81ecdfbb | 2115 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2116 | ;; |
81ecdfbb RW |
2117 | esac | |
2118 | sort | |
2119 | ) | |
c6b750e1 DJ |
2120 | echo |
2121 | ||
d0ac1c44 | 2122 | $as_echo "## ----------------- ## |
c6b750e1 | 2123 | ## Output variables. ## |
d0ac1c44 | 2124 | ## ----------------- ##" |
c6b750e1 DJ |
2125 | echo |
2126 | for ac_var in $ac_subst_vars | |
2127 | do | |
81ecdfbb RW |
2128 | eval ac_val=\$$ac_var |
2129 | case $ac_val in | |
2130 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2131 | esac | |
2132 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2133 | done | sort |
2134 | echo | |
2135 | ||
2136 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2137 | $as_echo "## ------------------- ## |
81ecdfbb | 2138 | ## File substitutions. ## |
d0ac1c44 | 2139 | ## ------------------- ##" |
c6b750e1 DJ |
2140 | echo |
2141 | for ac_var in $ac_subst_files | |
2142 | do | |
81ecdfbb RW |
2143 | eval ac_val=\$$ac_var |
2144 | case $ac_val in | |
2145 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2146 | esac | |
2147 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2148 | done | sort |
2149 | echo | |
2150 | fi | |
2151 | ||
2152 | if test -s confdefs.h; then | |
d0ac1c44 | 2153 | $as_echo "## ----------- ## |
c6b750e1 | 2154 | ## confdefs.h. ## |
d0ac1c44 | 2155 | ## ----------- ##" |
c6b750e1 | 2156 | echo |
81ecdfbb | 2157 | cat confdefs.h |
c6b750e1 DJ |
2158 | echo |
2159 | fi | |
2160 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2161 | $as_echo "$as_me: caught signal $ac_signal" |
2162 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2163 | } >&5 |
81ecdfbb RW |
2164 | rm -f core *.core core.conftest.* && |
2165 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2166 | exit $exit_status |
81ecdfbb | 2167 | ' 0 |
c6b750e1 | 2168 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2169 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2170 | done |
2171 | ac_signal=0 | |
2172 | ||
2173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2174 | rm -f -r conftest* confdefs.h |
2175 | ||
2176 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2177 | |
2178 | # Predefined preprocessor variables. | |
2179 | ||
2180 | cat >>confdefs.h <<_ACEOF | |
2181 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2182 | _ACEOF | |
2183 | ||
c6b750e1 DJ |
2184 | cat >>confdefs.h <<_ACEOF |
2185 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2186 | _ACEOF | |
2187 | ||
c6b750e1 DJ |
2188 | cat >>confdefs.h <<_ACEOF |
2189 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2190 | _ACEOF | |
2191 | ||
c6b750e1 DJ |
2192 | cat >>confdefs.h <<_ACEOF |
2193 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2194 | _ACEOF | |
2195 | ||
c6b750e1 DJ |
2196 | cat >>confdefs.h <<_ACEOF |
2197 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2198 | _ACEOF | |
2199 | ||
81ecdfbb RW |
2200 | cat >>confdefs.h <<_ACEOF |
2201 | #define PACKAGE_URL "$PACKAGE_URL" | |
2202 | _ACEOF | |
2203 | ||
c6b750e1 DJ |
2204 | |
2205 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2206 | # Prefer an explicitly selected file to automatically selected ones. |
2207 | ac_site_file1=NONE | |
2208 | ac_site_file2=NONE | |
2209 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2210 | # We do not want a PATH search for config.site. |
2211 | case $CONFIG_SITE in #(( | |
2212 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2213 | */*) ac_site_file1=$CONFIG_SITE;; | |
2214 | *) ac_site_file1=./$CONFIG_SITE;; | |
2215 | esac | |
81ecdfbb RW |
2216 | elif test "x$prefix" != xNONE; then |
2217 | ac_site_file1=$prefix/share/config.site | |
2218 | ac_site_file2=$prefix/etc/config.site | |
2219 | else | |
2220 | ac_site_file1=$ac_default_prefix/share/config.site | |
2221 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2222 | fi |
81ecdfbb RW |
2223 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2224 | do | |
2225 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2226 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2228 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2229 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2230 | . "$ac_site_file" \ |
2231 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2233 | as_fn_error $? "failed to load site script $ac_site_file | |
2234 | See \`config.log' for more details" "$LINENO" 5; } | |
a0da8069 NN |
2235 | fi |
2236 | done | |
2237 | ||
2238 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2239 | # Some versions of bash will fail to source /dev/null (special files |
2240 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2241 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2243 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2244 | case $cache_file in |
81ecdfbb RW |
2245 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2246 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2247 | esac |
2248 | fi | |
a0da8069 | 2249 | else |
81ecdfbb RW |
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2251 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2252 | >$cache_file |
2253 | fi | |
2254 | ||
2255 | # Check that the precious variables saved in the cache have kept the same | |
2256 | # value. | |
2257 | ac_cache_corrupted=false | |
81ecdfbb | 2258 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2260 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2261 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2262 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2263 | case $ac_old_set,$ac_new_set in |
2264 | set,) | |
81ecdfbb RW |
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2266 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2267 | ac_cache_corrupted=: ;; |
2268 | ,set) | |
81ecdfbb RW |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2270 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2271 | ac_cache_corrupted=: ;; |
2272 | ,);; | |
2273 | *) | |
2274 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2275 | # differences in whitespace do not lead to failure. |
2276 | ac_old_val_w=`echo x $ac_old_val` | |
2277 | ac_new_val_w=`echo x $ac_new_val` | |
2278 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2280 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2281 | ac_cache_corrupted=: | |
2282 | else | |
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2284 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2285 | eval $ac_var=\$ac_old_val | |
2286 | fi | |
2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2288 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2290 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2291 | fi;; |
2292 | esac | |
2293 | # Pass precious variables to config.status. | |
2294 | if test "$ac_new_set" = set; then | |
2295 | case $ac_new_val in | |
81ecdfbb | 2296 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2297 | *) ac_arg=$ac_var=$ac_new_val ;; |
2298 | esac | |
2299 | case " $ac_configure_args " in | |
2300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2301 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2302 | esac |
2303 | fi | |
2304 | done | |
2305 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2307 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2308 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2309 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2310 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
a0da8069 | 2311 | fi |
81ecdfbb RW |
2312 | ## -------------------- ## |
2313 | ## Main body of script. ## | |
2314 | ## -------------------- ## | |
a0da8069 NN |
2315 | |
2316 | ac_ext=c | |
a0da8069 | 2317 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2321 | ||
2322 | ||
2323 | ||
2324 | ||
c6b750e1 DJ |
2325 | |
2326 | ||
34a0f3cf | 2327 | |
c6b750e1 | 2328 | |
5b553f7e RW |
2329 | progname=$0 |
2330 | # if PWD already has a value, it is probably wrong. | |
2331 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2332 | ||
2333 | # Export original configure arguments for use by sub-configures. | |
2334 | # Quote arguments with shell meta charatcers. | |
2335 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2336 | set -- "$progname" "$@" | |
2337 | for ac_arg | |
2338 | do | |
2339 | case "$ac_arg" in | |
2340 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2341 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2342 | # if the argument is of the form -foo=baz, quote the baz part only | |
2343 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2344 | *) ;; | |
2345 | esac | |
2346 | # Add the quoted argument to the list. | |
2347 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2348 | done | |
2349 | if test "$silent" = yes; then | |
2350 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2351 | fi | |
2352 | # Remove the initial space we just introduced and, as these will be | |
2353 | # expanded by make, quote '$'. | |
2354 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2355 | ||
c6b750e1 DJ |
2356 | |
2357 | # Find the build, host, and target systems. | |
a0da8069 | 2358 | ac_aux_dir= |
81ecdfbb | 2359 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2360 | if test -f "$ac_dir/install-sh"; then |
2361 | ac_aux_dir=$ac_dir | |
2362 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2363 | break | |
2364 | elif test -f "$ac_dir/install.sh"; then | |
2365 | ac_aux_dir=$ac_dir | |
2366 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2367 | break | |
2368 | elif test -f "$ac_dir/shtool"; then | |
2369 | ac_aux_dir=$ac_dir | |
2370 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2371 | break | |
2372 | fi | |
a0da8069 NN |
2373 | done |
2374 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2375 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2376 | fi |
81ecdfbb RW |
2377 | |
2378 | # These three variables are undocumented and unsupported, | |
2379 | # and are intended to be withdrawn in a future Autoconf release. | |
2380 | # They can cause serious problems if a builder's source tree is in a directory | |
2381 | # whose full name contains unusual characters. | |
2382 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2383 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2384 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2385 | ||
a0da8069 | 2386 | |
c6b750e1 | 2387 | # Make sure we can run config.sub. |
81ecdfbb | 2388 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
d0ac1c44 | 2389 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2390 | |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2392 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2393 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2394 | $as_echo_n "(cached) " >&6 |
2395 | else | |
2396 | ac_build_alias=$build_alias | |
2397 | test "x$ac_build_alias" = x && | |
2398 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2399 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2400 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2401 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2402 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2403 | |
2404 | fi | |
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2406 | $as_echo "$ac_cv_build" >&6; } | |
2407 | case $ac_cv_build in | |
2408 | *-*-*) ;; | |
d0ac1c44 | 2409 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb | 2410 | esac |
c6b750e1 | 2411 | build=$ac_cv_build |
81ecdfbb RW |
2412 | ac_save_IFS=$IFS; IFS='-' |
2413 | set x $ac_cv_build | |
2414 | shift | |
2415 | build_cpu=$1 | |
2416 | build_vendor=$2 | |
2417 | shift; shift | |
2418 | # Remember, the first character of IFS is used to create $*, | |
2419 | # except with old shells: | |
2420 | build_os=$* | |
2421 | IFS=$ac_save_IFS | |
2422 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2423 | |
a0da8069 | 2424 | |
c6b750e1 DJ |
2425 | case ${build_alias} in |
2426 | "") build_noncanonical=${build} ;; | |
2427 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2428 | esac |
2429 | ||
2430 | ||
cac3d6c4 | 2431 | |
c6b750e1 DJ |
2432 | case ${host_alias} in |
2433 | "") host_noncanonical=${build_noncanonical} ;; | |
2434 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2435 | esac |
2436 | ||
cac3d6c4 | 2437 | |
c6b750e1 DJ |
2438 | |
2439 | case ${target_alias} in | |
2440 | "") target_noncanonical=${host_noncanonical} ;; | |
2441 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2442 | esac |
2443 | ||
cac3d6c4 | 2444 | |
c6b750e1 DJ |
2445 | |
2446 | ||
2447 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2448 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2449 | NONENONEs,x,x, && | |
c6b750e1 | 2450 | program_transform_name=s,y,y, |
cac3d6c4 | 2451 | |
81ecdfbb RW |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2453 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2454 | if ${ac_cv_host+:} false; then : |
81ecdfbb | 2455 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 2456 | else |
81ecdfbb RW |
2457 | if test "x$host_alias" = x; then |
2458 | ac_cv_host=$ac_cv_build | |
2459 | else | |
2460 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2461 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 2462 | fi |
c6b750e1 DJ |
2463 | |
2464 | fi | |
81ecdfbb RW |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2466 | $as_echo "$ac_cv_host" >&6; } | |
2467 | case $ac_cv_host in | |
2468 | *-*-*) ;; | |
d0ac1c44 | 2469 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb | 2470 | esac |
c6b750e1 | 2471 | host=$ac_cv_host |
81ecdfbb RW |
2472 | ac_save_IFS=$IFS; IFS='-' |
2473 | set x $ac_cv_host | |
2474 | shift | |
2475 | host_cpu=$1 | |
2476 | host_vendor=$2 | |
2477 | shift; shift | |
2478 | # Remember, the first character of IFS is used to create $*, | |
2479 | # except with old shells: | |
2480 | host_os=$* | |
2481 | IFS=$ac_save_IFS | |
2482 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2483 | |
2484 | ||
81ecdfbb RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2486 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2487 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2488 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 2489 | else |
81ecdfbb RW |
2490 | if test "x$target_alias" = x; then |
2491 | ac_cv_target=$ac_cv_host | |
2492 | else | |
2493 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2494 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 2495 | fi |
c6b750e1 | 2496 | |
cac3d6c4 | 2497 | fi |
81ecdfbb RW |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2499 | $as_echo "$ac_cv_target" >&6; } | |
2500 | case $ac_cv_target in | |
2501 | *-*-*) ;; | |
d0ac1c44 | 2502 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb | 2503 | esac |
c6b750e1 | 2504 | target=$ac_cv_target |
81ecdfbb RW |
2505 | ac_save_IFS=$IFS; IFS='-' |
2506 | set x $ac_cv_target | |
2507 | shift | |
2508 | target_cpu=$1 | |
2509 | target_vendor=$2 | |
2510 | shift; shift | |
2511 | # Remember, the first character of IFS is used to create $*, | |
2512 | # except with old shells: | |
2513 | target_os=$* | |
2514 | IFS=$ac_save_IFS | |
2515 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2516 | |
2517 | ||
2518 | # The aliases save the names the user supplied, while $host etc. | |
2519 | # will get canonicalized. | |
2520 | test -n "$target_alias" && | |
2521 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2522 | NONENONEs,x,x, && | |
2523 | program_prefix=${target_alias}- | |
81ecdfbb | 2524 | |
a0da8069 | 2525 | test "$program_prefix" != NONE && |
81ecdfbb | 2526 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2527 | # Use a double $ so make ignores it. |
2528 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2529 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2530 | # Double any \ or $. | |
c6b750e1 | 2531 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2532 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2533 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2534 | |
a0da8069 NN |
2535 | |
2536 | ||
e5c3f801 NN |
2537 | # Get 'install' or 'install-sh' and its variants. |
2538 | # Find a good install program. We prefer a C program (faster), | |
2539 | # so one script is as good as another. But avoid the broken or | |
2540 | # incompatible versions: | |
2541 | # SysV /etc/install, /usr/sbin/install | |
2542 | # SunOS /usr/etc/install | |
2543 | # IRIX /sbin/install | |
2544 | # AIX /bin/install | |
c6b750e1 | 2545 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2546 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2547 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2548 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2549 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2550 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2551 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2553 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2554 | if test -z "$INSTALL"; then |
d0ac1c44 | 2555 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2556 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
2557 | else |
2558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2559 | for as_dir in $PATH | |
2560 | do | |
2561 | IFS=$as_save_IFS | |
2562 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2563 | # Account for people who put trailing slashes in PATH elements. |
2564 | case $as_dir/ in #(( | |
2565 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2566 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2567 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2568 | /usr/ucb/* ) ;; |
2569 | *) | |
2570 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2571 | # Don't use installbsd from OSF since it installs stuff as root | |
2572 | # by default. | |
2573 | for ac_prog in ginstall scoinst install; do | |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2575 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
e5c3f801 | 2576 | if test $ac_prog = install && |
c6b750e1 | 2577 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2578 | # AIX install. It has an incompatible calling convention. |
2579 | : | |
c6b750e1 DJ |
2580 | elif test $ac_prog = install && |
2581 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2582 | # program-specific install script used by HP pwplus--don't use. | |
2583 | : | |
e5c3f801 | 2584 | else |
58c85be7 RW |
2585 | rm -rf conftest.one conftest.two conftest.dir |
2586 | echo one > conftest.one | |
2587 | echo two > conftest.two | |
2588 | mkdir conftest.dir | |
2589 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2590 | test -s conftest.one && test -s conftest.two && | |
2591 | test -s conftest.dir/conftest.one && | |
2592 | test -s conftest.dir/conftest.two | |
2593 | then | |
2594 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2595 | break 3 | |
2596 | fi | |
e5c3f801 NN |
2597 | fi |
2598 | fi | |
2599 | done | |
c6b750e1 DJ |
2600 | done |
2601 | ;; | |
2602 | esac | |
81ecdfbb RW |
2603 | |
2604 | done | |
2605 | IFS=$as_save_IFS | |
c6b750e1 | 2606 | |
58c85be7 | 2607 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2608 | |
2609 | fi | |
2610 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2611 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2612 | else |
58c85be7 RW |
2613 | # As a last resort, use the slow shell script. Don't cache a |
2614 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2615 | # break other packages using the cache if that directory is |
58c85be7 | 2616 | # removed, or if the value is a relative name. |
c6b750e1 | 2617 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2618 | fi |
2619 | fi | |
81ecdfbb RW |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2621 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2622 | |
2623 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2624 | # It thinks the first close brace ends the variable substitution. | |
2625 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2626 | ||
c6b750e1 | 2627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2628 | |
2629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2630 | ||
81ecdfbb RW |
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2632 | $as_echo_n "checking whether ln works... " >&6; } | |
d0ac1c44 | 2633 | if ${acx_cv_prog_LN+:} false; then : |
81ecdfbb | 2634 | $as_echo_n "(cached) " >&6 |
656fdd47 PB |
2635 | else |
2636 | rm -f conftestdata_t | |
2637 | echo >conftestdata_f | |
2638 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2639 | then | |
2640 | acx_cv_prog_LN=ln | |
2641 | else | |
2642 | acx_cv_prog_LN=no | |
2643 | fi | |
2644 | rm -f conftestdata_f conftestdata_t | |
2645 | ||
2646 | fi | |
2647 | if test $acx_cv_prog_LN = no; then | |
2648 | LN="cp" | |
81ecdfbb RW |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2650 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2651 | else |
2652 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2654 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2655 | fi |
2656 | ||
81ecdfbb RW |
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2658 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2659 | LN_S=$as_ln_s |
2660 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2662 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2663 | else |
81ecdfbb RW |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2665 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2666 | fi |
2667 | ||
8e957354 PB |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2669 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 2670 | if ${ac_cv_path_SED+:} false; then : |
8e957354 PB |
2671 | $as_echo_n "(cached) " >&6 |
2672 | else | |
2673 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2674 | for ac_i in 1 2 3 4 5 6 7; do | |
2675 | ac_script="$ac_script$as_nl$ac_script" | |
2676 | done | |
2677 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2678 | { ac_script=; unset ac_script;} | |
2679 | if test -z "$SED"; then | |
2680 | ac_path_SED_found=false | |
2681 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2683 | for as_dir in $PATH | |
2684 | do | |
2685 | IFS=$as_save_IFS | |
2686 | test -z "$as_dir" && as_dir=. | |
2687 | for ac_prog in sed gsed; do | |
2688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2689 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 2690 | as_fn_executable_p "$ac_path_SED" || continue |
8e957354 PB |
2691 | # Check for GNU ac_path_SED and select it if it is found. |
2692 | # Check for GNU $ac_path_SED | |
2693 | case `"$ac_path_SED" --version 2>&1` in | |
2694 | *GNU*) | |
2695 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2696 | *) | |
2697 | ac_count=0 | |
2698 | $as_echo_n 0123456789 >"conftest.in" | |
2699 | while : | |
2700 | do | |
2701 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2702 | mv "conftest.tmp" "conftest.in" | |
2703 | cp "conftest.in" "conftest.nl" | |
2704 | $as_echo '' >> "conftest.nl" | |
2705 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2706 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2707 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2708 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2709 | # Best one so far, save it but keep looking for a better one | |
2710 | ac_cv_path_SED="$ac_path_SED" | |
2711 | ac_path_SED_max=$ac_count | |
2712 | fi | |
2713 | # 10*(2^10) chars as input seems more than enough | |
2714 | test $ac_count -gt 10 && break | |
2715 | done | |
2716 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2717 | esac | |
2718 | ||
2719 | $ac_path_SED_found && break 3 | |
2720 | done | |
2721 | done | |
2722 | done | |
2723 | IFS=$as_save_IFS | |
2724 | if test -z "$ac_cv_path_SED"; then | |
d0ac1c44 | 2725 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8e957354 PB |
2726 | fi |
2727 | else | |
2728 | ac_cv_path_SED=$SED | |
2729 | fi | |
2730 | ||
2731 | fi | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2733 | $as_echo "$ac_cv_path_SED" >&6; } | |
2734 | SED="$ac_cv_path_SED" | |
2735 | rm -f conftest.sed | |
2736 | ||
2737 | for ac_prog in gawk mawk nawk awk | |
2738 | do | |
2739 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2740 | set dummy $ac_prog; ac_word=$2 | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2742 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2743 | if ${ac_cv_prog_AWK+:} false; then : |
8e957354 PB |
2744 | $as_echo_n "(cached) " >&6 |
2745 | else | |
2746 | if test -n "$AWK"; then | |
2747 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2748 | else | |
2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2750 | for as_dir in $PATH | |
2751 | do | |
2752 | IFS=$as_save_IFS | |
2753 | test -z "$as_dir" && as_dir=. | |
2754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8e957354 PB |
2756 | ac_cv_prog_AWK="$ac_prog" |
2757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2758 | break 2 | |
2759 | fi | |
2760 | done | |
2761 | done | |
2762 | IFS=$as_save_IFS | |
2763 | ||
2764 | fi | |
2765 | fi | |
2766 | AWK=$ac_cv_prog_AWK | |
2767 | if test -n "$AWK"; then | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2769 | $as_echo "$AWK" >&6; } | |
2770 | else | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2772 | $as_echo "no" >&6; } | |
2773 | fi | |
2774 | ||
2775 | ||
2776 | test -n "$AWK" && break | |
2777 | done | |
2778 | ||
e5c3f801 | 2779 | |
0fdbe983 DJ |
2780 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2781 | ||
2782 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2783 | # a relative path. | |
2784 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2785 | INSTALL="${srcpwd}/install-sh -c" | |
2786 | fi | |
2787 | ||
a0da8069 NN |
2788 | # Set srcdir to "." if that's what it is. |
2789 | # This is important for multilib support. | |
2790 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2791 | if test "${pwd}" = "${srcpwd}" ; then |
2792 | srcdir=. | |
252b5132 RH |
2793 | fi |
2794 | ||
a0da8069 | 2795 | topsrcdir=$srcpwd |
252b5132 | 2796 | |
a0da8069 | 2797 | extra_host_args= |
afefada0 | 2798 | |
a0da8069 NN |
2799 | ### To add a new directory to the tree, first choose whether it is a target |
2800 | ### or a host dependent tool. Then put it into the appropriate list | |
2801 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2802 | |
c6b750e1 | 2803 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2804 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2805 | |
c6b750e1 DJ |
2806 | # Dependency sorting is only needed when *configuration* must be done in |
2807 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2808 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2809 | |
a0da8069 NN |
2810 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2811 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2812 | |
6a9cf61e PB |
2813 | # these library is used by various programs built for the build |
2814 | # environment | |
2815 | # | |
1b6c0831 | 2816 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2817 | |
2818 | # these tools are built for the build environment | |
a90ef4bf | 2819 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2820 | |
a0da8069 | 2821 | # these libraries are used by various programs built for the host environment |
1b6c0831 | 2822 | #f |
228cf97d | 2823 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf" |
a0da8069 | 2824 | |
a0da8069 NN |
2825 | # these tools are built for the host environment |
2826 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2827 | # know that we are building the simulator. | |
2828 | # binutils, gas and ld appear in that order because it makes sense to run | |
2829 | # "make check" in that particular order. | |
e6de499b | 2830 | # If --enable-gold is used, "gold" may replace "ld". |
228cf97d | 2831 | 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 | 2832 | |
a0da8069 NN |
2833 | # these libraries are built for the target environment, and are built after |
2834 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2835 | # Note that libiberty is not a target library. |
b1299c4e | 2836 | target_libraries="target-libgcc \ |
2bf680c4 | 2837 | target-libbacktrace \ |
a0da8069 NN |
2838 | target-libgloss \ |
2839 | target-newlib \ | |
cff87f51 | 2840 | target-libgomp \ |
1b6c0831 | 2841 | target-liboffloadmic \ |
7ec59b9e | 2842 | target-libatomic \ |
d32e2926 | 2843 | target-libitm \ |
b9459e83 | 2844 | target-libstdc++-v3 \ |
5286fdef | 2845 | target-libsanitizer \ |
95e43135 | 2846 | target-libvtv \ |
bb780410 | 2847 | target-libssp \ |
e552509b | 2848 | target-libquadmath \ |
4b1cb4fe | 2849 | target-libgfortran \ |
05a13254 | 2850 | target-libffi \ |
a2592b1b | 2851 | target-libobjc \ |
e552509b | 2852 | target-libada \ |
228cf97d AM |
2853 | target-libgo \ |
2854 | target-libphobos \ | |
2855 | target-zlib" | |
a0da8069 | 2856 | |
9c14acb8 NN |
2857 | # these tools are built using the target libraries, and are intended to |
2858 | # run only in the target environment | |
a0da8069 | 2859 | # |
9c14acb8 | 2860 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2861 | # list belongs in this list. |
a0da8069 | 2862 | # |
a90ef4bf | 2863 | target_tools="target-rda" |
252b5132 | 2864 | |
a0da8069 | 2865 | ################################################################################ |
252b5132 | 2866 | |
a0da8069 NN |
2867 | ## All tools belong in one of the four categories, and are assigned above |
2868 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2869 | ## is important because configure will choke if they ever get through. | |
2870 | ## ${configdirs} is directories we build using the host tools. | |
2871 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2872 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2873 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2874 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2875 | |
9cc8ae67 PB |
2876 | |
2877 | ||
a0da8069 | 2878 | ################################################################################ |
252b5132 | 2879 | |
a0da8069 | 2880 | srcname="gnu development package" |
252b5132 | 2881 | |
a0da8069 NN |
2882 | # This gets set non-empty for some net releases of packages. |
2883 | appdirs="" | |
252b5132 | 2884 | |
a0da8069 NN |
2885 | # Define is_cross_compiler to save on calls to 'test'. |
2886 | is_cross_compiler= | |
2887 | if test x"${host}" = x"${target}" ; then | |
2888 | is_cross_compiler=no | |
252b5132 | 2889 | else |
a0da8069 | 2890 | is_cross_compiler=yes |
c6b750e1 | 2891 | fi |
252b5132 | 2892 | |
9175bfc0 | 2893 | # Find the build and target subdir names. |
dd12c3a8 | 2894 | |
66a79c16 DJ |
2895 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2896 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2897 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2898 | # However, they still use the build modules, because the corresponding | |
2899 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2900 | # finishes. So: | |
2901 | # - build_subdir is where we find build modules, and never changes. | |
2902 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2903 | ||
2904 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2905 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2906 | |
81ecdfbb RW |
2907 | # Check whether --with-build-libsubdir was given. |
2908 | if test "${with_build_libsubdir+set}" = set; then : | |
2909 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2910 | else |
2911 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2912 | fi |
2913 | ||
b00612cc PB |
2914 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2915 | if ( test $srcdir = . && test -d gcc ) \ | |
2916 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2917 | host_subdir="host-${host_noncanonical}" | |
2918 | else | |
2919 | host_subdir=. | |
2920 | fi | |
dd12c3a8 NN |
2921 | # No prefix. |
2922 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2923 | |
2fd0b40b RW |
2924 | # Be sure to cover against remnants of an in-tree build. |
2925 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
d0ac1c44 | 2926 | as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}. |
2fd0b40b RW |
2927 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 |
2928 | fi | |
252b5132 | 2929 | |
a0da8069 NN |
2930 | # Skipdirs are removed silently. |
2931 | skipdirs= | |
2932 | # Noconfigdirs are removed loudly. | |
2933 | noconfigdirs="" | |
252b5132 | 2934 | |
a0da8069 NN |
2935 | use_gnu_ld= |
2936 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2937 | if test x$with_gnu_ld = xno ; then | |
2938 | use_gnu_ld=no | |
93f9b408 | 2939 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2940 | fi |
2941 | ||
a0da8069 NN |
2942 | use_gnu_as= |
2943 | # Make sure we don't let GNU as be added if we didn't want it. | |
2944 | if test x$with_gnu_as = xno ; then | |
2945 | use_gnu_as=no | |
2946 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2947 | fi |
2948 | ||
700d40ca | 2949 | use_included_zlib= |
cf39cfc5 L |
2950 | |
2951 | # Check whether --with-system-zlib was given. | |
2952 | if test "${with_system_zlib+set}" = set; then : | |
2953 | withval=$with_system_zlib; | |
2954 | fi | |
2955 | ||
700d40ca ILT |
2956 | # Make sure we don't let ZLIB be added if we didn't want it. |
2957 | if test x$with_system_zlib = xyes ; then | |
2958 | use_included_zlib=no | |
2959 | noconfigdirs="$noconfigdirs zlib" | |
2960 | fi | |
2961 | ||
2cac01e3 FS |
2962 | |
2963 | # Check whether --with-zstd was given. | |
2964 | if test "${with_zstd+set}" = set; then : | |
2965 | withval=$with_zstd; | |
2966 | fi | |
2967 | ||
2968 | ||
c6b750e1 | 2969 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2970 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2971 | |
a0da8069 NN |
2972 | case ${with_x} in |
2973 | yes | "") ;; # the default value for this tree is that X11 is available | |
2974 | no) | |
675c6968 | 2975 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2976 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2977 | enable_gdbtk=no |
a0da8069 NN |
2978 | ;; |
2979 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2980 | esac | |
252b5132 | 2981 | |
0377a422 | 2982 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2983 | # Remove these if host=target. |
2984 | cross_only="target-libgloss target-newlib target-opcodes" | |
2985 | ||
2986 | case $is_cross_compiler in | |
2987 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2988 | esac |
252b5132 | 2989 | |
a0da8069 NN |
2990 | # If both --with-headers and --with-libs are specified, default to |
2991 | # --without-newlib. | |
32be62b5 RS |
2992 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2993 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2994 | if test x"${with_newlib}" = x ; then |
2995 | with_newlib=no | |
2996 | fi | |
252b5132 RH |
2997 | fi |
2998 | ||
a0da8069 NN |
2999 | # Recognize --with-newlib/--without-newlib. |
3000 | case ${with_newlib} in | |
3001 | no) skipdirs="${skipdirs} target-newlib" ;; | |
3002 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
3003 | esac | |
252b5132 | 3004 | |
1b6c0831 L |
3005 | # Check whether --enable-as-accelerator-for was given. |
3006 | if test "${enable_as_accelerator_for+set}" = set; then : | |
3007 | enableval=$enable_as_accelerator_for; | |
3008 | fi | |
3009 | ||
3010 | ||
3011 | # Check whether --enable-offload-targets was given. | |
3012 | if test "${enable_offload_targets+set}" = set; then : | |
3013 | enableval=$enable_offload_targets; | |
3014 | if test x"$enable_offload_targets" = x; then | |
d0ac1c44 | 3015 | as_fn_error $? "no offload targets specified" "$LINENO" 5 |
1b6c0831 L |
3016 | fi |
3017 | ||
3018 | else | |
3019 | enable_offload_targets= | |
3020 | fi | |
3021 | ||
3022 | ||
228cf97d AM |
3023 | # Check whether --enable-offload-defaulted was given. |
3024 | if test "${enable_offload_defaulted+set}" = set; then : | |
3025 | enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval | |
3026 | else | |
3027 | enable_offload_defaulted= | |
3028 | fi | |
3029 | ||
3030 | ||
c7791212 NC |
3031 | # Handle --enable-gold, --enable-ld. |
3032 | # --disable-gold [--enable-ld] | |
3033 | # Build only ld. Default option. | |
d3b50760 L |
3034 | # --enable-gold [--enable-ld] |
3035 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
3036 | # as "ld.bfd" and "ld". | |
3037 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
3038 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
3039 | # install ld as "ld.bfd". | |
3040 | # --enable-gold[=default] --disable-ld | |
3041 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
3042 | # --enable-gold --enable-ld=default | |
d3b50760 L |
3043 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
3044 | # and ld.bfd). | |
c7791212 NC |
3045 | # In other words, ld is default |
3046 | # --enable-gold=default --enable-ld=default | |
3047 | # Error. | |
3048 | ||
3049 | default_ld= | |
81ecdfbb RW |
3050 | # Check whether --enable-gold was given. |
3051 | if test "${enable_gold+set}" = set; then : | |
3052 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
3053 | else |
3054 | ENABLE_GOLD=no | |
81ecdfbb RW |
3055 | fi |
3056 | ||
c7791212 NC |
3057 | case "${ENABLE_GOLD}" in |
3058 | yes|default) | |
e6de499b NC |
3059 | # Check for ELF target. |
3060 | is_elf=no | |
3061 | case "${target}" in | |
3062 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 3063 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 3064 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
228cf97d | 3065 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
3066 | case "${target}" in |
3067 | *-*-linux*aout* | *-*-linux*oldld*) | |
3068 | ;; | |
3069 | *) | |
3070 | is_elf=yes | |
3071 | ;; | |
3072 | esac | |
3073 | esac | |
3074 | ||
3075 | if test "$is_elf" = "yes"; then | |
3076 | # Check for target supported by gold. | |
93f9b408 | 3077 | case "${target}" in |
6d26190c | 3078 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
228cf97d | 3079 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*) |
c7791212 NC |
3080 | configdirs="$configdirs gold" |
3081 | if test x${ENABLE_GOLD} = xdefault; then | |
3082 | default_ld=gold | |
3083 | fi | |
e6de499b | 3084 | ENABLE_GOLD=yes |
93f9b408 ILT |
3085 | ;; |
3086 | esac | |
e6de499b NC |
3087 | fi |
3088 | ;; | |
3089 | no) | |
3090 | ;; | |
3091 | *) | |
d0ac1c44 | 3092 | as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5 |
e6de499b | 3093 | ;; |
c7791212 NC |
3094 | esac |
3095 | ||
3096 | # Check whether --enable-ld was given. | |
3097 | if test "${enable_ld+set}" = set; then : | |
3098 | enableval=$enable_ld; ENABLE_LD=$enableval | |
3099 | else | |
3100 | ENABLE_LD=yes | |
3101 | fi | |
3102 | ||
3103 | ||
3104 | case "${ENABLE_LD}" in | |
3105 | default) | |
d3b50760 | 3106 | if test x${default_ld} != x; then |
d0ac1c44 | 3107 | as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5 |
c7791212 NC |
3108 | fi |
3109 | ;; | |
3110 | yes) | |
3111 | ;; | |
3112 | no) | |
3113 | if test x${ENABLE_GOLD} != xyes; then | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3115 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3116 | fi | |
3117 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3118 | ;; | |
3119 | *) | |
d0ac1c44 | 3120 | as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5 |
c7791212 NC |
3121 | ;; |
3122 | esac | |
93f9b408 | 3123 | |
bb368aad VM |
3124 | # Check whether --enable-gprofng was given. |
3125 | if test "${enable_gprofng+set}" = set; then : | |
3126 | enableval=$enable_gprofng; enable_gprofng=$enableval | |
3127 | else | |
3128 | enable_gprofng=yes | |
3129 | fi | |
3130 | ||
3131 | if test "$enable_gprofng" = "yes"; then | |
3132 | case "${target}" in | |
3133 | x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*) | |
3134 | configdirs="$configdirs gprofng" | |
3135 | ;; | |
3136 | esac | |
3137 | fi | |
3138 | ||
3139 | ||
edeefb67 L |
3140 | # PR gas/19109 |
3141 | # Decide the default method for compressing debug sections. | |
3142 | # Provide a configure time option to override our default. | |
3143 | # Check whether --enable-compressed_debug_sections was given. | |
3144 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3145 | enableval=$enable_compressed_debug_sections; | |
3146 | if test x"$enable_compressed_debug_sections" = xyes; then | |
d0ac1c44 | 3147 | as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5 |
edeefb67 L |
3148 | fi |
3149 | ||
3150 | else | |
3151 | enable_compressed_debug_sections= | |
3152 | fi | |
3153 | ||
3154 | ||
b0c295e1 ML |
3155 | # Select default compression algorithm. |
3156 | # Check whether --enable-default_compressed_debug_sections_algorithm was given. | |
3157 | if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then : | |
3158 | enableval=$enable_default_compressed_debug_sections_algorithm; | |
3159 | else | |
3160 | default_compressed_debug_sections_algorithm= | |
3161 | fi | |
3162 | ||
3163 | ||
a0da8069 | 3164 | # Configure extra directories which are host specific |
252b5132 | 3165 | |
a0da8069 NN |
3166 | case "${host}" in |
3167 | *-cygwin*) | |
3168 | configdirs="$configdirs libtermcap" ;; | |
3169 | esac | |
252b5132 | 3170 | |
59f7ec45 HPN |
3171 | # A target can indicate whether a language isn't supported for some reason. |
3172 | # Only spaces may be used in this macro; not newlines or tabs. | |
3173 | unsupported_languages= | |
3174 | ||
c6b750e1 | 3175 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3176 | # target this usually means that a port of the program doesn't |
3177 | # exist yet. | |
252b5132 | 3178 | |
a0da8069 | 3179 | case "${host}" in |
3516a403 | 3180 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3181 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3182 | ;; |
a0da8069 | 3183 | esac |
252b5132 | 3184 | |
e5f2f7d9 LM |
3185 | # Default to --disable-year2038 until we can handle differences between |
3186 | # projects that use gnulib (which understands year 2038) and projects that | |
3187 | # do not (like BFD). | |
3188 | # Check whether --enable-year2038 was given. | |
3189 | if test "${enable_year2038+set}" = set; then : | |
3190 | enableval=$enable_year2038; ENABLE_YEAR2038=$enableval | |
3191 | else | |
3192 | ENABLE_YEAR2038=no | |
3193 | fi | |
3194 | ||
3195 | enable_year2038= | |
3196 | if test "${ENABLE_YEAR2038}" = "no" ; then | |
3197 | enable_year2038=no | |
3198 | fi | |
4b1cb4fe | 3199 | |
89a1e9c3 PB |
3200 | # Check whether --enable-libquadmath was given. |
3201 | if test "${enable_libquadmath+set}" = set; then : | |
3202 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3203 | else | |
3204 | ENABLE_LIBQUADMATH=yes | |
3205 | fi | |
3206 | ||
3207 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3208 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | # Check whether --enable-libquadmath-support was given. | |
3213 | if test "${enable_libquadmath_support+set}" = set; then : | |
3214 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3215 | else | |
3216 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3217 | fi | |
3218 | ||
3219 | enable_libquadmath_support= | |
3220 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3221 | enable_libquadmath_support=no | |
3222 | fi | |
3223 | ||
3224 | ||
81ecdfbb RW |
3225 | # Check whether --enable-libada was given. |
3226 | if test "${enable_libada+set}" = set; then : | |
3227 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3228 | else |
3229 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3230 | fi |
3231 | ||
a2592b1b | 3232 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3233 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3234 | fi |
3235 | ||
81ecdfbb RW |
3236 | # Check whether --enable-libssp was given. |
3237 | if test "${enable_libssp+set}" = set; then : | |
3238 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3239 | else |
3240 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3241 | fi |
3242 | ||
5f128533 | 3243 | |
f66a9a70 L |
3244 | # Check whether --enable-libstdcxx was given. |
3245 | if test "${enable_libstdcxx+set}" = set; then : | |
3246 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3247 | else | |
3248 | ENABLE_LIBSTDCXX=default | |
3249 | fi | |
3250 | ||
3251 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3252 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3253 | fi | |
3254 | ||
3255 | # If this is accelerator compiler and its target is intelmic we enable | |
3256 | # target liboffloadmic by default. If this is compiler with offloading | |
3257 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3258 | # liboffloadmic is disabled by default. | |
3259 | # Check whether --enable-liboffloadmic was given. | |
3260 | if test "${enable_liboffloadmic+set}" = set; then : | |
3261 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3262 | no | host | target) | |
3263 | enable_liboffloadmic=$enableval ;; | |
3264 | *) | |
d0ac1c44 | 3265 | as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; |
1b6c0831 L |
3266 | esac |
3267 | else | |
3268 | if test x"$enable_as_accelerator_for" != x; then | |
3269 | case "${target}" in | |
3270 | *-intelmic-* | *-intelmicemul-*) | |
3271 | enable_liboffloadmic=target | |
3272 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3273 | ;; | |
3274 | *) | |
3275 | enable_liboffloadmic=no | |
3276 | ;; | |
3277 | esac | |
3278 | else | |
3279 | case "${enable_offload_targets}" in | |
3280 | *-intelmic-* | *-intelmicemul-*) | |
3281 | enable_liboffloadmic=host | |
3282 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3283 | ;; | |
3284 | *) | |
3285 | enable_liboffloadmic=no | |
3286 | ;; | |
3287 | esac | |
3288 | fi | |
f66a9a70 L |
3289 | fi |
3290 | ||
1b6c0831 L |
3291 | |
3292 | ||
68996839 | 3293 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3294 | if test x$enable_libgomp = x ; then |
b3ded179 | 3295 | case "${target}" in |
29383458 | 3296 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3297 | ;; |
5b806d27 | 3298 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3299 | ;; |
2479f722 | 3300 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3301 | ;; |
3302 | *-*-darwin* | *-*-aix*) | |
3303 | ;; | |
228cf97d | 3304 | nvptx*-*-* | amdgcn*-*-*) |
68996839 | 3305 | ;; |
b3ded179 PB |
3306 | *) |
3307 | noconfigdirs="$noconfigdirs target-libgomp" | |
3308 | ;; | |
3309 | esac | |
a6df5a19 | 3310 | fi |
b3ded179 | 3311 | |
7ec59b9e L |
3312 | # Disable libatomic on unsupported systems. |
3313 | if test -d ${srcdir}/libatomic; then | |
3314 | if test x$enable_libatomic = x; then | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3316 | $as_echo_n "checking for libatomic support... " >&6; } | |
3317 | if (srcdir=${srcdir}/libatomic; \ | |
3318 | . ${srcdir}/configure.tgt; \ | |
3319 | test -n "$UNSUPPORTED") | |
3320 | then | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3322 | $as_echo "no" >&6; } | |
3323 | noconfigdirs="$noconfigdirs target-libatomic" | |
3324 | else | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3326 | $as_echo "yes" >&6; } | |
3327 | fi | |
3328 | fi | |
3329 | fi | |
3330 | ||
1b6c0831 L |
3331 | # Disable liboffloadmic on unsupported systems. |
3332 | if test -d ${srcdir}/liboffloadmic; then | |
3333 | if test x$enable_liboffloadmic != xno; then | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3335 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3336 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3337 | . ${srcdir}/configure.tgt; \ | |
3338 | test -n "$UNSUPPORTED") | |
3339 | then | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3341 | $as_echo "no" >&6; } | |
3342 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3343 | else | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3345 | $as_echo "yes" >&6; } | |
3346 | fi | |
3347 | fi | |
3348 | fi | |
3349 | ||
d32e2926 RH |
3350 | # Disable libitm on unsupported systems. |
3351 | if test -d ${srcdir}/libitm; then | |
3352 | if test x$enable_libitm = x; then | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3354 | $as_echo_n "checking for libitm support... " >&6; } | |
3355 | if (srcdir=${srcdir}/libitm; \ | |
3356 | . ${srcdir}/configure.tgt; \ | |
3357 | test -n "$UNSUPPORTED") | |
3358 | then | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3360 | $as_echo "no" >&6; } | |
3361 | noconfigdirs="$noconfigdirs target-libitm" | |
3362 | else | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3364 | $as_echo "yes" >&6; } | |
3365 | fi | |
3366 | fi | |
3367 | fi | |
3368 | ||
5286fdef L |
3369 | # Disable libsanitizer on unsupported systems. |
3370 | if test -d ${srcdir}/libsanitizer; then | |
3371 | if test x$enable_libsanitizer = x; then | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3373 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3374 | if (srcdir=${srcdir}/libsanitizer; \ | |
3375 | . ${srcdir}/configure.tgt; \ | |
3376 | test -n "$UNSUPPORTED") | |
3377 | then | |
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3379 | $as_echo "no" >&6; } | |
3380 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3381 | else | |
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3383 | $as_echo "yes" >&6; } | |
3384 | fi | |
3385 | fi | |
3386 | fi | |
3387 | ||
95e43135 JBG |
3388 | # Disable libvtv on unsupported systems. |
3389 | if test -d ${srcdir}/libvtv; then | |
3390 | if test x$enable_libvtv = x; then | |
3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3392 | $as_echo_n "checking for libvtv support... " >&6; } | |
3393 | if (srcdir=${srcdir}/libvtv; \ | |
3394 | . ${srcdir}/configure.tgt; \ | |
3395 | test "$VTV_SUPPORTED" != "yes") | |
3396 | then | |
3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3398 | $as_echo "no" >&6; } | |
3399 | noconfigdirs="$noconfigdirs target-libvtv" | |
3400 | else | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3402 | $as_echo "yes" >&6; } | |
3403 | fi | |
3404 | fi | |
3405 | fi | |
3406 | ||
1488e230 DE |
3407 | # Disable libquadmath for some systems. |
3408 | case "${target}" in | |
5286fdef L |
3409 | avr-*-*) |
3410 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3411 | ;; | |
1488e230 DE |
3412 | # libquadmath is unused on AIX and libquadmath build process use of |
3413 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3414 | powerpc-*-aix* | rs6000-*-aix*) | |
3415 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3416 | ;; | |
3417 | esac | |
3418 | ||
065a5627 JM |
3419 | # Disable libssp for some systems. |
3420 | case "${target}" in | |
3421 | avr-*-*) | |
c5f5c3c2 | 3422 | # No hosted I/O support. |
065a5627 JM |
3423 | noconfigdirs="$noconfigdirs target-libssp" |
3424 | ;; | |
228cf97d AM |
3425 | bpf-*-*) |
3426 | noconfigdirs="$noconfigdirs target-libssp" | |
3427 | ;; | |
065a5627 JM |
3428 | powerpc-*-aix* | rs6000-*-aix*) |
3429 | noconfigdirs="$noconfigdirs target-libssp" | |
3430 | ;; | |
228cf97d AM |
3431 | pru-*-*) |
3432 | # No hosted I/O support. | |
3433 | noconfigdirs="$noconfigdirs target-libssp" | |
3434 | ;; | |
99c513f6 | 3435 | rl78-*-*) |
202e2356 NC |
3436 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3437 | # doesn't fault for those - instead, it gives a build-time error | |
3438 | # for explicit misaligned loads. | |
99c513f6 DD |
3439 | noconfigdirs="$noconfigdirs target-libssp" |
3440 | ;; | |
1b6c0831 L |
3441 | visium-*-*) |
3442 | # No hosted I/O support. | |
3443 | noconfigdirs="$noconfigdirs target-libssp" | |
3444 | ;; | |
065a5627 JM |
3445 | esac |
3446 | ||
065a5627 | 3447 | # Disable libstdc++-v3 for some systems. |
228cf97d | 3448 | # Allow user to override this if they pass --enable-libstdcxx |
f66a9a70 L |
3449 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then |
3450 | case "${target}" in | |
3451 | *-*-vxworks*) | |
3452 | # VxWorks uses the Dinkumware C++ library. | |
3453 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3454 | ;; | |
228cf97d AM |
3455 | amdgcn*-*-*) |
3456 | # Not ported/fails to build when using newlib. | |
3457 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3458 | ;; | |
f66a9a70 L |
3459 | arm*-wince-pe*) |
3460 | # the C++ libraries don't build on top of CE's C libraries | |
3461 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3462 | ;; | |
3463 | avr-*-*) | |
3464 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3465 | ;; | |
228cf97d AM |
3466 | bpf-*-*) |
3467 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3468 | ;; | |
969b1713 L |
3469 | ft32-*-*) |
3470 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3471 | ;; | |
f66a9a70 L |
3472 | esac |
3473 | fi | |
065a5627 | 3474 | |
228cf97d AM |
3475 | # Disable C++ on systems where it is known to not work. |
3476 | # For testing, you can override this with --enable-languages=c++. | |
3477 | case ,${enable_languages}, in | |
3478 | *,c++,*) | |
3479 | ;; | |
3480 | *) | |
3481 | case "${target}" in | |
3482 | bpf-*-*) | |
3483 | unsupported_languages="$unsupported_languages c++" | |
3484 | ;; | |
3485 | esac | |
3486 | ;; | |
3487 | esac | |
3488 | ||
3489 | # Disable Objc on systems where it is known to not work. | |
3490 | # For testing, you can override this with --enable-languages=objc. | |
3491 | case ,${enable_languages}, in | |
3492 | *,objc,*) | |
3493 | ;; | |
3494 | *) | |
3495 | case "${target}" in | |
3496 | bpf-*-*) | |
3497 | unsupported_languages="$unsupported_languages objc" | |
3498 | ;; | |
3499 | esac | |
3500 | ;; | |
3501 | esac | |
3502 | ||
3503 | # Disable D on systems where it is known to not work. | |
3504 | # For testing, you can override this with --enable-languages=d. | |
3505 | case ,${enable_languages}, in | |
3506 | *,d,*) | |
3507 | ;; | |
3508 | *) | |
3509 | case "${target}" in | |
3510 | bpf-*-*) | |
3511 | unsupported_languages="$unsupported_languages d" | |
3512 | ;; | |
3513 | esac | |
3514 | ;; | |
3515 | esac | |
3516 | ||
3517 | # Disable libphobos on unsupported systems. | |
3518 | # For testing, you can override this with --enable-libphobos. | |
3519 | if test -d ${srcdir}/libphobos; then | |
3520 | if test x$enable_libphobos = x; then | |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5 | |
3522 | $as_echo_n "checking for libphobos support... " >&6; } | |
3523 | if (srcdir=${srcdir}/libphobos; \ | |
3524 | . ${srcdir}/configure.tgt; \ | |
3525 | test "$LIBPHOBOS_SUPPORTED" != "yes") | |
3526 | then | |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3528 | $as_echo "no" >&6; } | |
3529 | noconfigdirs="$noconfigdirs target-libphobos" | |
3530 | else | |
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3532 | $as_echo "yes" >&6; } | |
3533 | fi | |
3534 | fi | |
3535 | fi | |
3536 | ||
065a5627 JM |
3537 | # Disable Fortran for some systems. |
3538 | case "${target}" in | |
3539 | mmix-*-*) | |
3540 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3541 | unsupported_languages="$unsupported_languages fortran" | |
3542 | ;; | |
228cf97d AM |
3543 | bpf-*-*) |
3544 | unsupported_languages="$unsupported_languages fortran" | |
3545 | ;; | |
065a5627 JM |
3546 | esac |
3547 | ||
05a13254 | 3548 | # Disable libffi for some systems. |
0827f9a6 | 3549 | case "${target}" in |
9863d716 JM |
3550 | powerpc-*-darwin*) |
3551 | ;; | |
3552 | i[3456789]86-*-darwin*) | |
3553 | ;; | |
3554 | x86_64-*-darwin[912]*) | |
3555 | ;; | |
3556 | *-*-darwin*) | |
05a13254 | 3557 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3558 | ;; |
9863d716 | 3559 | *-*-netware*) |
05a13254 NC |
3560 | noconfigdirs="$noconfigdirs target-libffi" |
3561 | ;; | |
3562 | *-*-phoenix*) | |
3563 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 JM |
3564 | ;; |
3565 | *-*-rtems*) | |
05a13254 | 3566 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3567 | ;; |
3568 | *-*-tpf*) | |
05a13254 | 3569 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3570 | ;; |
3571 | *-*-uclinux*) | |
05a13254 | 3572 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3573 | ;; |
3574 | *-*-vxworks*) | |
05a13254 NC |
3575 | noconfigdirs="$noconfigdirs target-libffi" |
3576 | ;; | |
3577 | aarch64*-*-freebsd*) | |
3578 | noconfigdirs="$noconfigdirs target-libffi" | |
9863d716 | 3579 | ;; |
9863d716 | 3580 | alpha*-*-*vms*) |
05a13254 | 3581 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3582 | ;; |
1b6c0831 | 3583 | arm*-*-freebsd*) |
05a13254 | 3584 | noconfigdirs="$noconfigdirs target-libffi" |
1b6c0831 | 3585 | ;; |
0827f9a6 | 3586 | arm-wince-pe) |
05a13254 | 3587 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3588 | ;; |
228cf97d AM |
3589 | arm*-*-symbianelf*) |
3590 | noconfigdirs="$noconfigdirs target-libffi" | |
3591 | ;; | |
3592 | bpf-*-*) | |
3593 | noconfigdirs="$noconfigdirs target-libffi" | |
3594 | ;; | |
9863d716 | 3595 | cris-*-* | crisv32-*-*) |
9863d716 JM |
3596 | case "${target}" in |
3597 | *-*-linux*) | |
3598 | ;; | |
3599 | *) # See PR46792 regarding target-libffi. | |
05a13254 | 3600 | noconfigdirs="$noconfigdirs target-libffi";; |
9863d716 JM |
3601 | esac |
3602 | ;; | |
82ae827f | 3603 | hppa*64*-*-hpux*) |
05a13254 | 3604 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3605 | ;; |
3606 | hppa*-hp-hpux11*) | |
3607 | ;; | |
82ae827f | 3608 | hppa*-*-hpux*) |
05a13254 | 3609 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3610 | ;; |
9863d716 | 3611 | ia64*-*-*vms*) |
05a13254 | 3612 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3613 | ;; |
9863d716 | 3614 | i[3456789]86-w64-mingw*) |
05a13254 | 3615 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3616 | ;; |
3617 | i[3456789]86-*-mingw*) | |
05a13254 | 3618 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3619 | ;; |
3620 | x86_64-*-mingw*) | |
05a13254 | 3621 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3622 | ;; |
9863d716 | 3623 | mmix-*-*) |
05a13254 | 3624 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 JM |
3625 | ;; |
3626 | powerpc-*-aix*) | |
9863d716 | 3627 | ;; |
9863d716 | 3628 | rs6000-*-aix*) |
9863d716 | 3629 | ;; |
3f8107ab | 3630 | ft32-*-*) |
05a13254 | 3631 | noconfigdirs="$noconfigdirs target-libffi" |
3f8107ab | 3632 | ;; |
9863d716 | 3633 | *-*-lynxos*) |
05a13254 | 3634 | noconfigdirs="$noconfigdirs target-libffi" |
9863d716 | 3635 | ;; |
9863d716 JM |
3636 | esac |
3637 | ||
1b6c0831 L |
3638 | # Disable the go frontend on systems where it is known to not work. Please keep |
3639 | # this in sync with contrib/config-list.mk. | |
3640 | case "${target}" in | |
228cf97d | 3641 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* ) |
1b6c0831 L |
3642 | unsupported_languages="$unsupported_languages go" |
3643 | ;; | |
3644 | esac | |
3645 | ||
919adfe8 TT |
3646 | # Only allow gdbserver on some systems. |
3647 | if test -d ${srcdir}/gdbserver; then | |
3648 | if test x$enable_gdbserver = x; then | |
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5 | |
3650 | $as_echo_n "checking for gdbserver support... " >&6; } | |
3651 | if (srcdir=${srcdir}/gdbserver; \ | |
3652 | . ${srcdir}/configure.srv; \ | |
3653 | test -n "$UNSUPPORTED") | |
3654 | then | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3656 | $as_echo "no" >&6; } | |
3657 | noconfigdirs="$noconfigdirs gdbserver" | |
3658 | else | |
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3660 | $as_echo "yes" >&6; } | |
3661 | fi | |
3662 | fi | |
3663 | fi | |
3664 | ||
a413f71a ILT |
3665 | # Disable libgo for some systems where it is known to not work. |
3666 | # For testing, you can easily override this with --enable-libgo. | |
3667 | if test x$enable_libgo = x; then | |
3668 | case "${target}" in | |
3669 | *-*-darwin*) | |
3670 | # PR 46986 | |
3671 | noconfigdirs="$noconfigdirs target-libgo" | |
3672 | ;; | |
3673 | *-*-cygwin* | *-*-mingw*) | |
3674 | noconfigdirs="$noconfigdirs target-libgo" | |
3675 | ;; | |
228cf97d AM |
3676 | bpf-*-*) |
3677 | noconfigdirs="$noconfigdirs target-libgo" | |
3678 | ;; | |
a413f71a ILT |
3679 | esac |
3680 | fi | |
3681 | ||
691bb5a1 DD |
3682 | # Default libgloss CPU subdirectory. |
3683 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3684 | |
ff46fb8f JM |
3685 | case "${target}" in |
3686 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3687 | libgloss_dir=wince | |
3688 | ;; | |
f1dd87fc YZ |
3689 | aarch64*-*-* ) |
3690 | libgloss_dir=aarch64 | |
3691 | ;; | |
ff46fb8f JM |
3692 | arm*-*-*) |
3693 | libgloss_dir=arm | |
3694 | ;; | |
3695 | cris-*-* | crisv32-*-*) | |
3696 | libgloss_dir=cris | |
3697 | ;; | |
3698 | hppa*-*-*) | |
3699 | libgloss_dir=pa | |
3700 | ;; | |
3701 | i[3456789]86-*-*) | |
3702 | libgloss_dir=i386 | |
3703 | ;; | |
228cf97d AM |
3704 | loongarch*-*-*) |
3705 | libgloss_dir=loongarch | |
3706 | ;; | |
ff46fb8f JM |
3707 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
3708 | libgloss_dir=m68hc11 | |
3709 | ;; | |
3710 | m68*-*-* | fido-*-*) | |
3711 | libgloss_dir=m68k | |
3712 | ;; | |
3713 | mips*-*-*) | |
3714 | libgloss_dir=mips | |
3715 | ;; | |
3716 | powerpc*-*-*) | |
3717 | libgloss_dir=rs6000 | |
3718 | ;; | |
228cf97d AM |
3719 | pru-*-*) |
3720 | libgloss_dir=pru | |
3721 | ;; | |
ff46fb8f JM |
3722 | sparc*-*-*) |
3723 | libgloss_dir=sparc | |
3724 | ;; | |
3725 | esac | |
3726 | ||
c7e4b184 | 3727 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3728 | case "${target}" in |
c7e4b184 JM |
3729 | alpha*-dec-osf*) |
3730 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3731 | ;; | |
3732 | i[3456789]86-*-linux*) | |
3733 | # This section makes it possible to build newlib natively on linux. | |
3734 | # If we are using a cross compiler then don't configure newlib. | |
3735 | if test x${is_cross_compiler} != xno ; then | |
3736 | noconfigdirs="$noconfigdirs target-newlib" | |
3737 | fi | |
3738 | noconfigdirs="$noconfigdirs target-libgloss" | |
3739 | # If we are not using a cross compiler, do configure newlib. | |
3740 | # Note however, that newlib will only be configured in this situation | |
3741 | # if the --with-newlib option has been given, because otherwise | |
3742 | # 'target-newlib' will appear in skipdirs. | |
3743 | ;; | |
3744 | i[3456789]86-*-rdos*) | |
3745 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3746 | ;; | |
3747 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3748 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3749 | ;; | |
3750 | sparc-*-sunos4*) | |
3751 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3752 | ;; | |
228cf97d AM |
3753 | bpf-*-*) |
3754 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3755 | ;; | |
c7e4b184 JM |
3756 | *-*-aix*) |
3757 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3758 | ;; | |
3759 | *-*-beos*) | |
3760 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3761 | ;; | |
a0da8069 | 3762 | *-*-chorusos) |
b2f14e4a | 3763 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3764 | ;; |
c7e4b184 JM |
3765 | *-*-dragonfly*) |
3766 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3767 | ;; | |
3768 | *-*-freebsd*) | |
3769 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3770 | ;; | |
3771 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3772 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3773 | ;; | |
3774 | *-*-lynxos*) | |
3775 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3776 | ;; | |
3777 | *-*-mingw*) | |
3778 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3779 | ;; | |
3780 | *-*-netbsd*) | |
3781 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3782 | ;; | |
3783 | *-*-netware*) | |
3784 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3785 | ;; | |
3786 | *-*-tpf*) | |
3787 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3788 | ;; | |
3789 | *-*-uclinux*) | |
3790 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3791 | ;; | |
3792 | *-*-vxworks*) | |
3793 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3794 | ;; | |
3795 | esac | |
3796 | ||
3797 | case "${target}" in | |
3798 | *-*-chorusos) | |
3799 | ;; | |
f075eb5e TG |
3800 | aarch64-*-darwin*) |
3801 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3802 | noconfigdirs="$noconfigdirs sim target-rda" | |
3803 | ;; | |
228cf97d AM |
3804 | amdgcn*-*-*) |
3805 | ;; | |
f075eb5e TG |
3806 | arm-*-darwin*) |
3807 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3808 | noconfigdirs="$noconfigdirs sim target-rda" | |
3809 | ;; | |
24741ab2 | 3810 | powerpc-*-darwin*) |
9d39db92 | 3811 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3812 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3813 | ;; |
85bd1942 TG |
3814 | i[3456789]86-*-darwin*) |
3815 | noconfigdirs="$noconfigdirs ld gprof" | |
3816 | noconfigdirs="$noconfigdirs sim target-rda" | |
3817 | ;; | |
e8a5fa9c | 3818 | x86_64-*-darwin[912]*) |
652dec25 TG |
3819 | noconfigdirs="$noconfigdirs ld gas gprof" |
3820 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3821 | ;; |
04d1ab34 | 3822 | *-*-darwin*) |
d320aacb | 3823 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3824 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3825 | ;; |
5b806d27 | 3826 | *-*-dragonfly*) |
5b806d27 | 3827 | ;; |
de0b4a87 | 3828 | *-*-freebsd*) |
228cf97d AM |
3829 | if test "x$with_gmp" = x \ |
3830 | && ! test -d ${srcdir}/gmp \ | |
4b1cb4fe DD |
3831 | && test -f /usr/local/include/gmp.h; then |
3832 | with_gmp=/usr/local | |
3833 | fi | |
4b1cb4fe | 3834 | ;; |
f8a495c8 NC |
3835 | *-*-kaos*) |
3836 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3837 | noconfigdirs="$noconfigdirs target-libgloss" |
3838 | ;; | |
a0da8069 | 3839 | *-*-netbsd*) |
a0da8069 | 3840 | ;; |
2a3124ca | 3841 | *-*-netware*) |
a0da8069 | 3842 | ;; |
05a13254 NC |
3843 | *-*-phoenix*) |
3844 | noconfigdirs="$noconfigdirs target-libgloss" | |
3845 | ;; | |
a0da8069 | 3846 | *-*-rtems*) |
9863d716 | 3847 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3848 | ;; |
1587117a EC |
3849 | # The tpf target doesn't support gdb yet. |
3850 | *-*-tpf*) | |
c7e4b184 | 3851 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3852 | ;; |
c1968181 | 3853 | *-*-uclinux*) |
c7e4b184 | 3854 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3855 | ;; |
a0da8069 | 3856 | *-*-vxworks*) |
a0da8069 NN |
3857 | ;; |
3858 | alpha*-dec-osf*) | |
3859 | # ld works, but does not support shared libraries. | |
a0da8069 | 3860 | # gas doesn't generate exception information. |
c7e4b184 | 3861 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3862 | ;; |
3863 | alpha*-*-*vms*) | |
9863d716 | 3864 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3865 | ;; |
a0da8069 NN |
3866 | alpha*-*-*) |
3867 | # newlib is not 64 bit ready | |
9863d716 | 3868 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3869 | ;; |
228cf97d AM |
3870 | bpf-*-*) |
3871 | noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace" | |
3872 | ;; | |
a0da8069 | 3873 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3874 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3875 | ;; |
05a13254 NC |
3876 | arc*-*-*) |
3877 | noconfigdirs="$noconfigdirs sim" | |
a0da8069 | 3878 | ;; |
a0da8069 | 3879 | arm-*-pe*) |
9863d716 | 3880 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3881 | ;; |
a0da8069 | 3882 | arm-*-riscix*) |
b2f14e4a | 3883 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3884 | ;; |
8e71395b L |
3885 | avr-*-*) |
3886 | if test x${with_avrlibc} != xno; then | |
3887 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3888 | fi | |
3889 | ;; | |
a0da8069 | 3890 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3891 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3892 | ;; |
b2f14e4a JM |
3893 | tic54x-*-*) |
3894 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3895 | ;; |
a0da8069 | 3896 | d10v-*-*) |
b2f14e4a | 3897 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3898 | ;; |
3899 | d30v-*-*) | |
b2f14e4a | 3900 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3901 | ;; |
3902 | fr30-*-elf*) | |
9863d716 | 3903 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3904 | ;; |
3f8107ab AM |
3905 | ft32-*-*) |
3906 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3907 | ;; | |
20135e4c | 3908 | moxie-*-*) |
10b8fe5e | 3909 | noconfigdirs="$noconfigdirs" |
20135e4c | 3910 | ;; |
a0da8069 | 3911 | h8300*-*-*) |
9863d716 | 3912 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3913 | ;; |
3914 | h8500-*-*) | |
b2f14e4a | 3915 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3916 | ;; |
caeba88f | 3917 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3918 | ;; |
5569a85f JDA |
3919 | hppa*64*-*-hpux*) |
3920 | noconfigdirs="$noconfigdirs gdb" | |
3921 | ;; | |
3922 | hppa*-*-hpux11*) | |
3923 | noconfigdirs="$noconfigdirs gdb ld" | |
3924 | ;; | |
93cc359e | 3925 | hppa*64*-*-linux*) |
a0da8069 | 3926 | ;; |
f0ff0f90 | 3927 | hppa*-*-linux*) |
5dcac624 | 3928 | ;; |
a0da8069 | 3929 | hppa*-*-*elf* | \ |
a0da8069 NN |
3930 | hppa*-*-lites* | \ |
3931 | hppa*-*-openbsd* | \ | |
3932 | hppa*64*-*-*) | |
4f0ef2d8 | 3933 | ;; |
691bb5a1 | 3934 | hppa*-*-pro*) |
691bb5a1 | 3935 | ;; |
a0da8069 | 3936 | hppa*-*-*) |
9863d716 | 3937 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3938 | ;; |
b07c2aad | 3939 | i960-*-*) |
b2f14e4a | 3940 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3941 | ;; |
a0da8069 NN |
3942 | ia64*-*-elf*) |
3943 | # No gdb support yet. | |
0377a422 | 3944 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3945 | ;; |
3946 | ia64*-**-hpux*) | |
92c9a463 | 3947 | # No ld support yet. |
5569a85f | 3948 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3949 | ;; |
19e99079 | 3950 | ia64*-*-*vms*) |
7ec59b9e L |
3951 | # No ld support yet. |
3952 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3953 | ;; |
1f53ca9a | 3954 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3955 | ;; |
3956 | i[3456789]86-*-mingw*) | |
45055374 | 3957 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3958 | ;; |
a0da8069 NN |
3959 | *-*-cygwin*) |
3960 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3961 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3962 | # always build newlib if winsup directory is present. |
45055374 | 3963 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3964 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3965 | elif test -d "$srcdir/newlib"; then |
45055374 | 3966 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3967 | fi |
c6b750e1 | 3968 | ;; |
ec11bdc6 | 3969 | i[3456789]86-*-pe) |
782cb41f | 3970 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3971 | ;; |
ec11bdc6 | 3972 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3973 | # The linker does not yet know about weak symbols in COFF, |
3974 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3975 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3976 | ;; |
ec11bdc6 | 3977 | i[3456789]86-*-sco*) |
b2f14e4a | 3978 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3979 | ;; |
cff32a7c | 3980 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3981 | noconfigdirs="$noconfigdirs target-libgloss" |
3982 | ;; | |
ec11bdc6 | 3983 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3984 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3985 | ;; |
ec11bdc6 | 3986 | i[3456789]86-*-beos*) |
c7e4b184 | 3987 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3988 | ;; |
b59bea8a | 3989 | i[3456789]86-*-rdos*) |
c7e4b184 | 3990 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3991 | ;; |
a0da8069 | 3992 | mmix-*-*) |
9863d716 | 3993 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3994 | ;; |
4970f871 | 3995 | mt-*-*) |
cdb9b172 AH |
3996 | noconfigdirs="$noconfigdirs sim" |
3997 | ;; | |
1063beb5 FT |
3998 | nfp-*-*) |
3999 | noconfigdirs="$noconfigdirs ld gas gdb gprof sim" | |
4000 | noconfigdirs="$noconfigdirs $target_libraries" | |
4001 | ;; | |
11104e42 SC |
4002 | pdp11-*-*) |
4003 | noconfigdirs="$noconfigdirs gdb gprof" | |
4004 | ;; | |
a0da8069 NN |
4005 | powerpc-*-aix*) |
4006 | # copied from rs6000-*-* entry | |
c7e4b184 | 4007 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4008 | ;; |
93cc359e | 4009 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 4010 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 4011 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
4012 | # always build newlib. |
4013 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
4014 | ;; | |
4015 | # This is temporary until we can link against shared libraries | |
4016 | powerpcle-*-solaris*) | |
b2f14e4a | 4017 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
4018 | ;; |
4019 | powerpc-*-beos*) | |
c7e4b184 | 4020 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 4021 | ;; |
a0da8069 | 4022 | rs6000-*-lynxos*) |
c7e4b184 | 4023 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4024 | ;; |
4025 | rs6000-*-aix*) | |
c7e4b184 | 4026 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4027 | ;; |
4028 | rs6000-*-*) | |
9863d716 | 4029 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
4030 | ;; |
4031 | m68k-apollo-*) | |
b2f14e4a | 4032 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 4033 | ;; |
25a07265 | 4034 | microblaze*) |
9863d716 | 4035 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 4036 | ;; |
a9d58c06 | 4037 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
4038 | if test x$with_newlib = xyes; then |
4039 | noconfigdirs="$noconfigdirs gprof" | |
4040 | fi | |
5bd8be13 | 4041 | ;; |
a0da8069 | 4042 | mips*-*-irix5*) |
b2f14e4a | 4043 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
4044 | ;; |
4045 | mips*-*-irix6*) | |
9863d716 | 4046 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 4047 | ;; |
a0da8069 | 4048 | mips*-*-bsd*) |
e8044f35 | 4049 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 4050 | ;; |
a0da8069 | 4051 | mips*-*-linux*) |
a0da8069 | 4052 | ;; |
e8044f35 RS |
4053 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
4054 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
4055 | noconfigdirs="$noconfigdirs ld gas gprof" | |
4056 | ;; | |
a0da8069 | 4057 | mips*-*-*) |
9863d716 | 4058 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 4059 | ;; |
1b6c0831 | 4060 | nvptx*-*-*) |
1b6c0831 L |
4061 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
4062 | ;; | |
05a13254 | 4063 | sh-*-*) |
e8a5fa9c RW |
4064 | case "${target}" in |
4065 | sh*-*-elf) | |
9863d716 | 4066 | ;; |
e8a5fa9c | 4067 | *) |
9863d716 | 4068 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 4069 | esac |
a0da8069 | 4070 | ;; |
a0da8069 | 4071 | sparc-*-sunos4*) |
c7e4b184 | 4072 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
4073 | use_gnu_ld=no |
4074 | fi | |
4075 | ;; | |
619a3713 | 4076 | tic6x-*-*) |
40ae9136 | 4077 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 4078 | ;; |
05a13254 | 4079 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
4080 | noconfigdirs="$noconfigdirs sim" |
4081 | ;; | |
a0da8069 | 4082 | v810-*-*) |
b2f14e4a | 4083 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
4084 | ;; |
4085 | vax-*-*) | |
9863d716 | 4086 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 4087 | ;; |
b29d2641 MR |
4088 | wasm32-*-*) |
4089 | noconfigdirs="$noconfigdirs ld" | |
4090 | ;; | |
228cf97d AM |
4091 | loongarch*-*-linux*) |
4092 | ;; | |
4093 | loongarch*-*-*) | |
4094 | noconfigdirs="$noconfigdirs gprof" | |
4095 | ;; | |
a0da8069 | 4096 | esac |
252b5132 | 4097 | |
a0da8069 NN |
4098 | # If we aren't building newlib, then don't build libgloss, since libgloss |
4099 | # depends upon some newlib header files. | |
4100 | case "${noconfigdirs}" in | |
4101 | *target-libgloss*) ;; | |
4102 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
4103 | esac | |
4104 | ||
a0da8069 | 4105 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
4106 | host_makefile_frag=/dev/null |
4107 | if test -d ${srcdir}/config ; then | |
4108 | case "${host}" in | |
ec11bdc6 | 4109 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
4110 | host_makefile_frag="config/mh-djgpp" |
4111 | ;; | |
4112 | *-cygwin*) | |
e33b51a6 | 4113 | |
81ecdfbb RW |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
4115 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 4116 | echo a >cygwin-cat-check |
1f53ca9a | 4117 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 4118 | rm cygwin-cat-check |
81ecdfbb RW |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4120 | $as_echo "yes" >&6; } | |
e33b51a6 | 4121 | else |
8ade07e9 | 4122 | rm cygwin-cat-check |
81ecdfbb RW |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4124 | $as_echo "no" >&6; } | |
d0ac1c44 | 4125 | as_fn_error $? "The cat command does not ignore carriage return characters. |
e33b51a6 NC |
4126 | Please either mount the build directory in binary mode or run the following |
4127 | commands before running any configure script: | |
4128 | set -o igncr | |
4129 | export SHELLOPTS | |
81ecdfbb | 4130 | " "$LINENO" 5 |
e33b51a6 | 4131 | fi |
e33b51a6 | 4132 | |
a0da8069 NN |
4133 | host_makefile_frag="config/mh-cygwin" |
4134 | ;; | |
8a1599ab | 4135 | *-mingw*) |
84e7906e | 4136 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4137 | ;; |
ce6c656d L |
4138 | alpha*-linux*) |
4139 | host_makefile_frag="config/mh-alpha-linux" | |
4140 | ;; | |
da888c87 | 4141 | hppa*-hp-hpux10*) |
da888c87 | 4142 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4143 | ;; |
3516a403 | 4144 | hppa*-hp-hpux*) |
da888c87 PB |
4145 | host_makefile_frag="config/mh-pa" |
4146 | ;; | |
4147 | hppa*-*) | |
4148 | host_makefile_frag="config/mh-pa" | |
4149 | ;; | |
228cf97d | 4150 | i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*) |
e552509b | 4151 | host_makefile_frag="config/mh-darwin" |
0df3d27f | 4152 | ;; |
f6d183c0 PB |
4153 | powerpc-*-aix*) |
4154 | host_makefile_frag="config/mh-ppc-aix" | |
4155 | ;; | |
4156 | rs6000-*-aix*) | |
4157 | host_makefile_frag="config/mh-ppc-aix" | |
4158 | ;; | |
a0da8069 NN |
4159 | esac |
4160 | fi | |
4161 | ||
9e07f89d | 4162 | if test "${build}" != "${host}" ; then |
1576798e PB |
4163 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4164 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4165 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
228cf97d | 4166 | CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}" |
1576798e | 4167 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
228cf97d | 4168 | DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil} |
1576798e | 4169 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
e552509b | 4170 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
228cf97d | 4171 | GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc} |
1576798e PB |
4172 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4173 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4174 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4175 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4176 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4177 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4178 | else | |
4179 | AR_FOR_BUILD="\$(AR)" | |
4180 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4181 | CC_FOR_BUILD="\$(CC)" |
1576798e | 4182 | CXX_FOR_BUILD="\$(CXX)" |
228cf97d | 4183 | DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)" |
1576798e | 4184 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
e552509b | 4185 | GOC_FOR_BUILD="\$(GOC)" |
228cf97d | 4186 | GDC_FOR_BUILD="\$(GDC)" |
1576798e PB |
4187 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4188 | LD_FOR_BUILD="\$(LD)" | |
4189 | NM_FOR_BUILD="\$(NM)" | |
4190 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4191 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4192 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4193 | fi |
4194 | ||
4195 | ac_ext=c | |
c6b750e1 DJ |
4196 | ac_cpp='$CPP $CPPFLAGS' |
4197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4200 | if test -n "$ac_tool_prefix"; then | |
4201 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4202 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4204 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4205 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4206 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4207 | else |
4208 | if test -n "$CC"; then | |
4209 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4210 | else | |
4211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4212 | for as_dir in $PATH | |
4213 | do | |
4214 | IFS=$as_save_IFS | |
4215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4216 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4218 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4220 | break 2 |
4221 | fi | |
4222 | done | |
81ecdfbb RW |
4223 | done |
4224 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4225 | |
4226 | fi | |
4227 | fi | |
4228 | CC=$ac_cv_prog_CC | |
4229 | if test -n "$CC"; then | |
81ecdfbb RW |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4231 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4232 | else |
81ecdfbb RW |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4234 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4235 | fi |
4236 | ||
81ecdfbb | 4237 | |
c6b750e1 DJ |
4238 | fi |
4239 | if test -z "$ac_cv_prog_CC"; then | |
4240 | ac_ct_CC=$CC | |
6a9cf61e | 4241 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4242 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4244 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4245 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4246 | $as_echo_n "(cached) " >&6 |
c6b750e1 DJ |
4247 | else |
4248 | if test -n "$ac_ct_CC"; then | |
4249 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4250 | else | |
4251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4252 | for as_dir in $PATH | |
4253 | do | |
4254 | IFS=$as_save_IFS | |
4255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4256 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4258 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4260 | break 2 |
4261 | fi | |
4262 | done | |
81ecdfbb RW |
4263 | done |
4264 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4265 | |
4266 | fi | |
4267 | fi | |
4268 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4269 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4271 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4272 | else |
81ecdfbb RW |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4274 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4275 | fi |
4276 | ||
81ecdfbb RW |
4277 | if test "x$ac_ct_CC" = x; then |
4278 | CC="" | |
4279 | else | |
4280 | case $cross_compiling:$ac_tool_warned in | |
4281 | yes:) | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4283 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4284 | ac_tool_warned=yes ;; | |
4285 | esac | |
4286 | CC=$ac_ct_CC | |
4287 | fi | |
c6b750e1 DJ |
4288 | else |
4289 | CC="$ac_cv_prog_CC" | |
4290 | fi | |
4291 | ||
4292 | if test -z "$CC"; then | |
81ecdfbb RW |
4293 | if test -n "$ac_tool_prefix"; then |
4294 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4295 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4297 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4298 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4299 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4300 | else |
4301 | if test -n "$CC"; then | |
4302 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4303 | else | |
c6b750e1 DJ |
4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4305 | for as_dir in $PATH | |
4306 | do | |
4307 | IFS=$as_save_IFS | |
4308 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4311 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4313 | break 2 |
4314 | fi | |
4315 | done | |
81ecdfbb RW |
4316 | done |
4317 | IFS=$as_save_IFS | |
c6b750e1 | 4318 | |
9e07f89d NN |
4319 | fi |
4320 | fi | |
c6b750e1 | 4321 | CC=$ac_cv_prog_CC |
9e07f89d | 4322 | if test -n "$CC"; then |
81ecdfbb RW |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4324 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4325 | else |
81ecdfbb RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4327 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4328 | fi |
4329 | ||
c6b750e1 | 4330 | |
81ecdfbb | 4331 | fi |
c6b750e1 | 4332 | fi |
9e07f89d NN |
4333 | if test -z "$CC"; then |
4334 | # Extract the first word of "cc", so it can be a program name with args. | |
4335 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4337 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4338 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4339 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4340 | else |
4341 | if test -n "$CC"; then | |
4342 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4343 | else | |
9e07f89d | 4344 | ac_prog_rejected=no |
c6b750e1 DJ |
4345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4346 | for as_dir in $PATH | |
4347 | do | |
4348 | IFS=$as_save_IFS | |
4349 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4350 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4351 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 DJ |
4352 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4353 | ac_prog_rejected=yes | |
4354 | continue | |
4355 | fi | |
4356 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4358 | break 2 |
4359 | fi | |
4360 | done | |
81ecdfbb RW |
4361 | done |
4362 | IFS=$as_save_IFS | |
c6b750e1 | 4363 | |
9e07f89d NN |
4364 | if test $ac_prog_rejected = yes; then |
4365 | # We found a bogon in the path, so make sure we never use it. | |
4366 | set dummy $ac_cv_prog_CC | |
4367 | shift | |
c6b750e1 | 4368 | if test $# != 0; then |
9e07f89d NN |
4369 | # We chose a different compiler from the bogus one. |
4370 | # However, it has the same basename, so the bogon will be chosen | |
4371 | # first if we set CC to just the basename; use the full file name. | |
4372 | shift | |
c6b750e1 | 4373 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4374 | fi |
4375 | fi | |
4376 | fi | |
4377 | fi | |
c6b750e1 | 4378 | CC=$ac_cv_prog_CC |
9e07f89d | 4379 | if test -n "$CC"; then |
81ecdfbb RW |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4381 | $as_echo "$CC" >&6; } | |
9e07f89d | 4382 | else |
81ecdfbb RW |
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4384 | $as_echo "no" >&6; } | |
9e07f89d NN |
4385 | fi |
4386 | ||
81ecdfbb | 4387 | |
c6b750e1 DJ |
4388 | fi |
4389 | if test -z "$CC"; then | |
4390 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4391 | for ac_prog in cl.exe |
c6b750e1 DJ |
4392 | do |
4393 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4394 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4396 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4397 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4398 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
4399 | else |
4400 | if test -n "$CC"; then | |
4401 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4402 | else | |
c6b750e1 DJ |
4403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4404 | for as_dir in $PATH | |
4405 | do | |
4406 | IFS=$as_save_IFS | |
4407 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4408 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4410 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4412 | break 2 |
376a0e54 | 4413 | fi |
c6b750e1 | 4414 | done |
81ecdfbb RW |
4415 | done |
4416 | IFS=$as_save_IFS | |
cac3d6c4 | 4417 | |
c6b750e1 DJ |
4418 | fi |
4419 | fi | |
4420 | CC=$ac_cv_prog_CC | |
4421 | if test -n "$CC"; then | |
81ecdfbb RW |
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4423 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4424 | else |
81ecdfbb RW |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4426 | $as_echo "no" >&6; } | |
9e07f89d | 4427 | fi |
cac3d6c4 | 4428 | |
81ecdfbb | 4429 | |
c6b750e1 DJ |
4430 | test -n "$CC" && break |
4431 | done | |
cac3d6c4 | 4432 | fi |
c6b750e1 DJ |
4433 | if test -z "$CC"; then |
4434 | ac_ct_CC=$CC | |
81ecdfbb | 4435 | for ac_prog in cl.exe |
c6b750e1 DJ |
4436 | do |
4437 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4438 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4440 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4441 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4442 | $as_echo_n "(cached) " >&6 |
cac3d6c4 | 4443 | else |
c6b750e1 DJ |
4444 | if test -n "$ac_ct_CC"; then |
4445 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4446 | else |
c6b750e1 DJ |
4447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4448 | for as_dir in $PATH | |
4449 | do | |
4450 | IFS=$as_save_IFS | |
4451 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4452 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4453 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 4454 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4456 | break 2 |
4457 | fi | |
4458 | done | |
81ecdfbb RW |
4459 | done |
4460 | IFS=$as_save_IFS | |
c6b750e1 | 4461 | |
cac3d6c4 CM |
4462 | fi |
4463 | fi | |
c6b750e1 DJ |
4464 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4465 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4467 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4468 | else |
81ecdfbb RW |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4470 | $as_echo "no" >&6; } | |
cac3d6c4 | 4471 | fi |
376a0e54 | 4472 | |
81ecdfbb | 4473 | |
c6b750e1 DJ |
4474 | test -n "$ac_ct_CC" && break |
4475 | done | |
4476 | ||
81ecdfbb RW |
4477 | if test "x$ac_ct_CC" = x; then |
4478 | CC="" | |
4479 | else | |
4480 | case $cross_compiling:$ac_tool_warned in | |
4481 | yes:) | |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4484 | ac_tool_warned=yes ;; | |
4485 | esac | |
4486 | CC=$ac_ct_CC | |
4487 | fi | |
c6b750e1 DJ |
4488 | fi |
4489 | ||
4490 | fi | |
4491 | ||
4492 | ||
81ecdfbb RW |
4493 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4495 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4496 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 DJ |
4497 | |
4498 | # Provide some information about the compiler. | |
81ecdfbb RW |
4499 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4500 | set X $ac_compile | |
4501 | ac_compiler=$2 | |
4502 | for ac_option in --version -v -V -qversion; do | |
4503 | { { ac_try="$ac_compiler $ac_option >&5" | |
4504 | case "(($ac_try" in | |
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4506 | *) ac_try_echo=$ac_try;; | |
4507 | esac | |
4508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4509 | $as_echo "$ac_try_echo"; } >&5 | |
4510 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4511 | ac_status=$? |
81ecdfbb RW |
4512 | if test -s conftest.err; then |
4513 | sed '10a\ | |
4514 | ... rest of stderr output deleted ... | |
4515 | 10q' conftest.err >conftest.er1 | |
4516 | cat conftest.er1 >&5 | |
81ecdfbb | 4517 | fi |
d0ac1c44 | 4518 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4520 | test $ac_status = 0; } | |
4521 | done | |
c6b750e1 | 4522 | |
81ecdfbb | 4523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4524 | /* end confdefs.h. */ |
4525 | ||
4526 | int | |
4527 | main () | |
4528 | { | |
4529 | ||
4530 | ; | |
4531 | return 0; | |
4532 | } | |
4533 | _ACEOF | |
4534 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 4535 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c6b750e1 DJ |
4536 | # Try to create an executable without -o first, disregard a.out. |
4537 | # It will help us diagnose broken compilers, and finding out an intuition | |
4538 | # of exeext. | |
d0ac1c44 SM |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4540 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4541 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4542 | ||
4543 | # The possible output files: | |
4544 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4545 | ||
4546 | ac_rmfiles= | |
4547 | for ac_file in $ac_files | |
4548 | do | |
4549 | case $ac_file in | |
4550 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4551 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4552 | esac | |
4553 | done | |
4554 | rm -f $ac_rmfiles | |
4555 | ||
4556 | if { { ac_try="$ac_link_default" | |
4557 | case "(($ac_try" in | |
4558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 | *) ac_try_echo=$ac_try;; | |
4560 | esac | |
4561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4562 | $as_echo "$ac_try_echo"; } >&5 | |
4563 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4564 | ac_status=$? |
81ecdfbb RW |
4565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4566 | test $ac_status = 0; }; then : | |
4567 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4568 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4569 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4570 | # so that the user can short-circuit this test for compilers unknown to | |
4571 | # Autoconf. | |
4572 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4573 | do |
4574 | test -f "$ac_file" || continue | |
4575 | case $ac_file in | |
81ecdfbb | 4576 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4577 | ;; |
4578 | [ab].out ) | |
4579 | # We found the default executable, but exeext='' is most | |
4580 | # certainly right. | |
4581 | break;; | |
4582 | *.* ) | |
81ecdfbb RW |
4583 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4584 | then :; else | |
4585 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4586 | fi | |
4587 | # We set ac_cv_exeext here because the later test for it is not | |
4588 | # safe: cross compilers may not add the suffix if given an `-o' | |
4589 | # argument, so we may need to know it at that point already. | |
4590 | # Even if this section looks crufty: it has the advantage of | |
4591 | # actually working. | |
c6b750e1 DJ |
4592 | break;; |
4593 | * ) | |
4594 | break;; | |
4595 | esac | |
4596 | done | |
81ecdfbb RW |
4597 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4598 | ||
c6b750e1 | 4599 | else |
81ecdfbb RW |
4600 | ac_file='' |
4601 | fi | |
81ecdfbb | 4602 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4604 | $as_echo "no" >&6; } | |
4605 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4606 | sed 's/^/| /' conftest.$ac_ext >&5 |
4607 | ||
81ecdfbb RW |
4608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4610 | as_fn_error 77 "C compiler cannot create executables |
4611 | See \`config.log' for more details" "$LINENO" 5; } | |
4612 | else | |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4614 | $as_echo "yes" >&6; } | |
c6b750e1 | 4615 | fi |
d0ac1c44 SM |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4617 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4619 | $as_echo "$ac_file" >&6; } | |
c6b750e1 | 4620 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4621 | |
d0ac1c44 | 4622 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c6b750e1 | 4623 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4625 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4626 | if { { ac_try="$ac_link" | |
4627 | case "(($ac_try" in | |
4628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4629 | *) ac_try_echo=$ac_try;; | |
4630 | esac | |
4631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4632 | $as_echo "$ac_try_echo"; } >&5 | |
4633 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4634 | ac_status=$? |
81ecdfbb RW |
4635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4636 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4637 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4638 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4639 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4640 | # `rm'. | |
4641 | for ac_file in conftest.exe conftest conftest.*; do | |
4642 | test -f "$ac_file" || continue | |
4643 | case $ac_file in | |
81ecdfbb | 4644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4645 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4646 | break;; |
4647 | * ) break;; | |
4648 | esac | |
4649 | done | |
4650 | else | |
81ecdfbb RW |
4651 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4652 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4653 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4654 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4655 | fi |
d0ac1c44 | 4656 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4658 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4659 | |
4660 | rm -f conftest.$ac_ext | |
4661 | EXEEXT=$ac_cv_exeext | |
4662 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4664 | /* end confdefs.h. */ | |
4665 | #include <stdio.h> | |
4666 | int | |
4667 | main () | |
4668 | { | |
4669 | FILE *f = fopen ("conftest.out", "w"); | |
4670 | return ferror (f) || fclose (f) != 0; | |
4671 | ||
4672 | ; | |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
4676 | ac_clean_files="$ac_clean_files conftest.out" | |
4677 | # Check that the compiler produces executables we can run. If not, either | |
4678 | # the compiler is broken, or we cross compile. | |
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4680 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4681 | if test "$cross_compiling" != yes; then | |
4682 | { { ac_try="$ac_link" | |
4683 | case "(($ac_try" in | |
4684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4685 | *) ac_try_echo=$ac_try;; | |
4686 | esac | |
4687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4688 | $as_echo "$ac_try_echo"; } >&5 | |
4689 | (eval "$ac_link") 2>&5 | |
4690 | ac_status=$? | |
4691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4692 | test $ac_status = 0; } | |
4693 | if { ac_try='./conftest$ac_cv_exeext' | |
4694 | { { case "(($ac_try" in | |
4695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4696 | *) ac_try_echo=$ac_try;; | |
4697 | esac | |
4698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4699 | $as_echo "$ac_try_echo"; } >&5 | |
4700 | (eval "$ac_try") 2>&5 | |
4701 | ac_status=$? | |
4702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4703 | test $ac_status = 0; }; }; then | |
4704 | cross_compiling=no | |
4705 | else | |
4706 | if test "$cross_compiling" = maybe; then | |
4707 | cross_compiling=yes | |
4708 | else | |
4709 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4711 | as_fn_error $? "cannot run C compiled programs. | |
4712 | If you meant to cross compile, use \`--host'. | |
4713 | See \`config.log' for more details" "$LINENO" 5; } | |
4714 | fi | |
4715 | fi | |
4716 | fi | |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4718 | $as_echo "$cross_compiling" >&6; } | |
4719 | ||
4720 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4721 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4723 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 4724 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4725 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4726 | else |
81ecdfbb | 4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4728 | /* end confdefs.h. */ |
4729 | ||
4730 | int | |
4731 | main () | |
4732 | { | |
4733 | ||
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
4738 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4739 | if { { ac_try="$ac_compile" |
4740 | case "(($ac_try" in | |
4741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4742 | *) ac_try_echo=$ac_try;; | |
4743 | esac | |
4744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4745 | $as_echo "$ac_try_echo"; } >&5 | |
4746 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4747 | ac_status=$? |
81ecdfbb RW |
4748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4749 | test $ac_status = 0; }; then : | |
4750 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4751 | test -f "$ac_file" || continue; | |
c6b750e1 | 4752 | case $ac_file in |
81ecdfbb | 4753 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4754 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4755 | break;; | |
4756 | esac | |
4757 | done | |
cac3d6c4 | 4758 | else |
81ecdfbb | 4759 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4760 | sed 's/^/| /' conftest.$ac_ext >&5 |
4761 | ||
81ecdfbb RW |
4762 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4763 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4764 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4765 | See \`config.log' for more details" "$LINENO" 5; } | |
c6b750e1 | 4766 | fi |
c6b750e1 DJ |
4767 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4768 | fi | |
81ecdfbb RW |
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4770 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4771 | OBJEXT=$ac_cv_objext |
4772 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4774 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4775 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4776 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4777 | else |
81ecdfbb | 4778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4779 | /* end confdefs.h. */ |
4780 | ||
4781 | int | |
4782 | main () | |
4783 | { | |
4784 | #ifndef __GNUC__ | |
4785 | choke me | |
4786 | #endif | |
4787 | ||
4788 | ; | |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
81ecdfbb | 4792 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4793 | ac_compiler_gnu=yes |
4794 | else | |
81ecdfbb | 4795 | ac_compiler_gnu=no |
c6b750e1 | 4796 | fi |
81ecdfbb | 4797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4798 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4799 | ||
4800 | fi | |
81ecdfbb RW |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4802 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4803 | if test $ac_compiler_gnu = yes; then | |
4804 | GCC=yes | |
4805 | else | |
4806 | GCC= | |
4807 | fi | |
c6b750e1 DJ |
4808 | ac_test_CFLAGS=${CFLAGS+set} |
4809 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4811 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4812 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4813 | $as_echo_n "(cached) " >&6 |
4814 | else | |
4815 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4816 | ac_c_werror_flag=yes | |
4817 | ac_cv_prog_cc_g=no | |
4818 | CFLAGS="-g" | |
4819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4820 | /* end confdefs.h. */ |
4821 | ||
4822 | int | |
4823 | main () | |
4824 | { | |
4825 | ||
4826 | ; | |
4827 | return 0; | |
4828 | } | |
4829 | _ACEOF | |
81ecdfbb | 4830 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4831 | ac_cv_prog_cc_g=yes |
4832 | else | |
81ecdfbb RW |
4833 | CFLAGS="" |
4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4835 | /* end confdefs.h. */ | |
4836 | ||
4837 | int | |
4838 | main () | |
4839 | { | |
4840 | ||
4841 | ; | |
4842 | return 0; | |
4843 | } | |
4844 | _ACEOF | |
4845 | if ac_fn_c_try_compile "$LINENO"; then : | |
4846 | ||
4847 | else | |
4848 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4849 | CFLAGS="-g" | |
4850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4851 | /* end confdefs.h. */ | |
cac3d6c4 | 4852 | |
81ecdfbb RW |
4853 | int |
4854 | main () | |
4855 | { | |
4856 | ||
4857 | ; | |
4858 | return 0; | |
4859 | } | |
4860 | _ACEOF | |
4861 | if ac_fn_c_try_compile "$LINENO"; then : | |
4862 | ac_cv_prog_cc_g=yes | |
4863 | fi | |
4864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4865 | fi |
81ecdfbb | 4866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4867 | fi |
81ecdfbb RW |
4868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4869 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4870 | fi | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4872 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4873 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4874 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4875 | elif test $ac_cv_prog_cc_g = yes; then |
4876 | if test "$GCC" = yes; then | |
4877 | CFLAGS="-g -O2" | |
4878 | else | |
4879 | CFLAGS="-g" | |
4880 | fi | |
4881 | else | |
4882 | if test "$GCC" = yes; then | |
4883 | CFLAGS="-O2" | |
4884 | else | |
4885 | CFLAGS= | |
4886 | fi | |
4887 | fi | |
81ecdfbb RW |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4889 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4890 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4891 | $as_echo_n "(cached) " >&6 |
c6b750e1 | 4892 | else |
81ecdfbb | 4893 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4894 | ac_save_CC=$CC |
81ecdfbb | 4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4896 | /* end confdefs.h. */ |
4897 | #include <stdarg.h> | |
4898 | #include <stdio.h> | |
d0ac1c44 | 4899 | struct stat; |
c6b750e1 DJ |
4900 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4901 | struct buf { int x; }; | |
4902 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4903 | static char *e (p, i) | |
4904 | char **p; | |
4905 | int i; | |
4906 | { | |
4907 | return p[i]; | |
4908 | } | |
4909 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4910 | { | |
4911 | char *s; | |
4912 | va_list v; | |
4913 | va_start (v,p); | |
4914 | s = g (p, va_arg (v,int)); | |
4915 | va_end (v); | |
4916 | return s; | |
4917 | } | |
4918 | ||
4919 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4920 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4921 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4922 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4923 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4924 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4925 | that's true only with -std. */ |
c6b750e1 DJ |
4926 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4927 | ||
81ecdfbb RW |
4928 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4929 | inside strings and character constants. */ | |
4930 | #define FOO(x) 'x' | |
4931 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4932 | ||
c6b750e1 DJ |
4933 | int test (int i, double x); |
4934 | struct s1 {int (*f) (int a);}; | |
4935 | struct s2 {int (*f) (double a);}; | |
4936 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4937 | int argc; | |
4938 | char **argv; | |
4939 | int | |
4940 | main () | |
4941 | { | |
4942 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4943 | ; | |
4944 | return 0; | |
4945 | } | |
4946 | _ACEOF | |
81ecdfbb RW |
4947 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4948 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4949 | do |
4950 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4951 | if ac_fn_c_try_compile "$LINENO"; then : |
4952 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4953 | fi |
81ecdfbb RW |
4954 | rm -f core conftest.err conftest.$ac_objext |
4955 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4956 | done |
81ecdfbb | 4957 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4958 | CC=$ac_save_CC |
4959 | ||
4960 | fi | |
81ecdfbb RW |
4961 | # AC_CACHE_VAL |
4962 | case "x$ac_cv_prog_cc_c89" in | |
4963 | x) | |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4965 | $as_echo "none needed" >&6; } ;; | |
4966 | xno) | |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4968 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4969 | *) |
81ecdfbb RW |
4970 | CC="$CC $ac_cv_prog_cc_c89" |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4972 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4973 | esac |
81ecdfbb | 4974 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4975 | |
c6b750e1 DJ |
4976 | fi |
4977 | ||
c6b750e1 DJ |
4978 | ac_ext=c |
4979 | ac_cpp='$CPP $CPPFLAGS' | |
4980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4983 | |
a8d6316b NC |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4985 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4986 | if ${ac_cv_prog_cc_c99+:} false; then : | |
4987 | $as_echo_n "(cached) " >&6 | |
4988 | else | |
4989 | ac_cv_prog_cc_c99=no | |
4990 | ac_save_CC=$CC | |
4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4992 | /* end confdefs.h. */ | |
4993 | #include <stdarg.h> | |
4994 | #include <stdbool.h> | |
4995 | #include <stdlib.h> | |
4996 | #include <wchar.h> | |
4997 | #include <stdio.h> | |
4998 | ||
4999 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5000 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5001 | #define showlist(...) puts (#__VA_ARGS__) | |
5002 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5003 | static void | |
5004 | test_varargs_macros (void) | |
5005 | { | |
5006 | int x = 1234; | |
5007 | int y = 5678; | |
5008 | debug ("Flag"); | |
5009 | debug ("X = %d\n", x); | |
5010 | showlist (The first, second, and third items.); | |
5011 | report (x>y, "x is %d but y is %d", x, y); | |
5012 | } | |
5013 | ||
5014 | // Check long long types. | |
5015 | #define BIG64 18446744073709551615ull | |
5016 | #define BIG32 4294967295ul | |
5017 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5018 | #if !BIG_OK | |
5019 | your preprocessor is broken; | |
5020 | #endif | |
5021 | #if BIG_OK | |
5022 | #else | |
5023 | your preprocessor is broken; | |
5024 | #endif | |
5025 | static long long int bignum = -9223372036854775807LL; | |
5026 | static unsigned long long int ubignum = BIG64; | |
5027 | ||
5028 | struct incomplete_array | |
5029 | { | |
5030 | int datasize; | |
5031 | double data[]; | |
5032 | }; | |
5033 | ||
5034 | struct named_init { | |
5035 | int number; | |
5036 | const wchar_t *name; | |
5037 | double average; | |
5038 | }; | |
5039 | ||
5040 | typedef const char *ccp; | |
5041 | ||
5042 | static inline int | |
5043 | test_restrict (ccp restrict text) | |
5044 | { | |
5045 | // See if C++-style comments work. | |
5046 | // Iterate through items via the restricted pointer. | |
5047 | // Also check for declarations in for loops. | |
5048 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5049 | continue; | |
5050 | return 0; | |
5051 | } | |
5052 | ||
5053 | // Check varargs and va_copy. | |
5054 | static void | |
5055 | test_varargs (const char *format, ...) | |
5056 | { | |
5057 | va_list args; | |
5058 | va_start (args, format); | |
5059 | va_list args_copy; | |
5060 | va_copy (args_copy, args); | |
5061 | ||
5062 | const char *str; | |
5063 | int number; | |
5064 | float fnumber; | |
5065 | ||
5066 | while (*format) | |
5067 | { | |
5068 | switch (*format++) | |
5069 | { | |
5070 | case 's': // string | |
5071 | str = va_arg (args_copy, const char *); | |
5072 | break; | |
5073 | case 'd': // int | |
5074 | number = va_arg (args_copy, int); | |
5075 | break; | |
5076 | case 'f': // float | |
5077 | fnumber = va_arg (args_copy, double); | |
5078 | break; | |
5079 | default: | |
5080 | break; | |
5081 | } | |
5082 | } | |
5083 | va_end (args_copy); | |
5084 | va_end (args); | |
5085 | } | |
5086 | ||
5087 | int | |
5088 | main () | |
5089 | { | |
5090 | ||
5091 | // Check bool. | |
5092 | _Bool success = false; | |
5093 | ||
5094 | // Check restrict. | |
5095 | if (test_restrict ("String literal") == 0) | |
5096 | success = true; | |
5097 | char *restrict newvar = "Another string"; | |
5098 | ||
5099 | // Check varargs. | |
5100 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
5101 | test_varargs_macros (); | |
5102 | ||
5103 | // Check flexible array members. | |
5104 | struct incomplete_array *ia = | |
5105 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5106 | ia->datasize = 10; | |
5107 | for (int i = 0; i < ia->datasize; ++i) | |
5108 | ia->data[i] = i * 1.234; | |
5109 | ||
5110 | // Check named initializers. | |
5111 | struct named_init ni = { | |
5112 | .number = 34, | |
5113 | .name = L"Test wide string", | |
5114 | .average = 543.34343, | |
5115 | }; | |
5116 | ||
5117 | ni.number = 58; | |
5118 | ||
5119 | int dynamic_array[ni.number]; | |
5120 | dynamic_array[ni.number - 1] = 543; | |
5121 | ||
5122 | // work around unused variable warnings | |
5123 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5124 | || dynamic_array[ni.number - 1] != 543); | |
5125 | ||
5126 | ; | |
5127 | return 0; | |
5128 | } | |
5129 | _ACEOF | |
5130 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5131 | do | |
5132 | CC="$ac_save_CC $ac_arg" | |
5133 | if ac_fn_c_try_compile "$LINENO"; then : | |
5134 | ac_cv_prog_cc_c99=$ac_arg | |
5135 | fi | |
5136 | rm -f core conftest.err conftest.$ac_objext | |
5137 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5138 | done | |
5139 | rm -f conftest.$ac_ext | |
5140 | CC=$ac_save_CC | |
5141 | ||
5142 | fi | |
5143 | # AC_CACHE_VAL | |
5144 | case "x$ac_cv_prog_cc_c99" in | |
5145 | x) | |
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5147 | $as_echo "none needed" >&6; } ;; | |
5148 | xno) | |
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5150 | $as_echo "unsupported" >&6; } ;; | |
5151 | *) | |
5152 | CC="$CC $ac_cv_prog_cc_c99" | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5154 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5155 | esac | |
5156 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5157 | ||
5158 | fi | |
5159 | ||
5160 | ||
81ecdfbb | 5161 | ac_ext=cpp |
18f6b6ee PB |
5162 | ac_cpp='$CXXCPP $CPPFLAGS' |
5163 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5164 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5165 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
5166 | if test -z "$CXX"; then |
5167 | if test -n "$CCC"; then | |
5168 | CXX=$CCC | |
5169 | else | |
5170 | if test -n "$ac_tool_prefix"; then | |
5171 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
5172 | do |
5173 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5174 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5176 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5177 | if ${ac_cv_prog_CXX+:} false; then : |
81ecdfbb | 5178 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5179 | else |
5180 | if test -n "$CXX"; then | |
5181 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5182 | else | |
5183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5184 | for as_dir in $PATH | |
5185 | do | |
5186 | IFS=$as_save_IFS | |
5187 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5188 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5190 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
5192 | break 2 |
5193 | fi | |
5194 | done | |
81ecdfbb RW |
5195 | done |
5196 | IFS=$as_save_IFS | |
512b7dfb | 5197 | |
18f6b6ee PB |
5198 | fi |
5199 | fi | |
5200 | CXX=$ac_cv_prog_CXX | |
5201 | if test -n "$CXX"; then | |
81ecdfbb RW |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
5203 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 5204 | else |
81ecdfbb RW |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5206 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5207 | fi |
5208 | ||
81ecdfbb | 5209 | |
18f6b6ee PB |
5210 | test -n "$CXX" && break |
5211 | done | |
5212 | fi | |
5213 | if test -z "$CXX"; then | |
5214 | ac_ct_CXX=$CXX | |
81ecdfbb | 5215 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
5216 | do |
5217 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5218 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5220 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5221 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
81ecdfbb | 5222 | $as_echo_n "(cached) " >&6 |
18f6b6ee PB |
5223 | else |
5224 | if test -n "$ac_ct_CXX"; then | |
5225 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5226 | else | |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5232 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18f6b6ee | 5234 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 5236 | break 2 |
512b7dfb | 5237 | fi |
18f6b6ee | 5238 | done |
81ecdfbb RW |
5239 | done |
5240 | IFS=$as_save_IFS | |
512b7dfb | 5241 | |
18f6b6ee PB |
5242 | fi |
5243 | fi | |
5244 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5245 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5247 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 5248 | else |
81ecdfbb RW |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5250 | $as_echo "no" >&6; } | |
18f6b6ee PB |
5251 | fi |
5252 | ||
81ecdfbb | 5253 | |
18f6b6ee PB |
5254 | test -n "$ac_ct_CXX" && break |
5255 | done | |
18f6b6ee | 5256 | |
81ecdfbb RW |
5257 | if test "x$ac_ct_CXX" = x; then |
5258 | CXX="g++" | |
5259 | else | |
5260 | case $cross_compiling:$ac_tool_warned in | |
5261 | yes:) | |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5263 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5264 | ac_tool_warned=yes ;; | |
5265 | esac | |
5266 | CXX=$ac_ct_CXX | |
5267 | fi | |
18f6b6ee PB |
5268 | fi |
5269 | ||
81ecdfbb RW |
5270 | fi |
5271 | fi | |
18f6b6ee | 5272 | # Provide some information about the compiler. |
81ecdfbb RW |
5273 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
5274 | set X $ac_compile | |
5275 | ac_compiler=$2 | |
5276 | for ac_option in --version -v -V -qversion; do | |
5277 | { { ac_try="$ac_compiler $ac_option >&5" | |
5278 | case "(($ac_try" in | |
5279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5280 | *) ac_try_echo=$ac_try;; | |
5281 | esac | |
5282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5283 | $as_echo "$ac_try_echo"; } >&5 | |
5284 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 5285 | ac_status=$? |
81ecdfbb RW |
5286 | if test -s conftest.err; then |
5287 | sed '10a\ | |
5288 | ... rest of stderr output deleted ... | |
5289 | 10q' conftest.err >conftest.er1 | |
5290 | cat conftest.er1 >&5 | |
81ecdfbb | 5291 | fi |
d0ac1c44 | 5292 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
5293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5294 | test $ac_status = 0; } | |
5295 | done | |
18f6b6ee | 5296 | |
81ecdfbb RW |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5298 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
d0ac1c44 | 5299 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
81ecdfbb | 5300 | $as_echo_n "(cached) " >&6 |
18f6b6ee | 5301 | else |
81ecdfbb | 5302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
5303 | /* end confdefs.h. */ |
5304 | ||
5305 | int | |
5306 | main () | |
5307 | { | |
5308 | #ifndef __GNUC__ | |
5309 | choke me | |
5310 | #endif | |
5311 | ||
5312 | ; | |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
81ecdfbb | 5316 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5317 | ac_compiler_gnu=yes |
5318 | else | |
81ecdfbb | 5319 | ac_compiler_gnu=no |
18f6b6ee | 5320 | fi |
81ecdfbb | 5321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
5322 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5323 | ||
5324 | fi | |
81ecdfbb RW |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5326 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5327 | if test $ac_compiler_gnu = yes; then | |
5328 | GXX=yes | |
5329 | else | |
5330 | GXX= | |
5331 | fi | |
18f6b6ee PB |
5332 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5333 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5335 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
d0ac1c44 | 5336 | if ${ac_cv_prog_cxx_g+:} false; then : |
81ecdfbb RW |
5337 | $as_echo_n "(cached) " >&6 |
5338 | else | |
5339 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5340 | ac_cxx_werror_flag=yes | |
5341 | ac_cv_prog_cxx_g=no | |
5342 | CXXFLAGS="-g" | |
5343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5344 | /* end confdefs.h. */ |
5345 | ||
5346 | int | |
5347 | main () | |
5348 | { | |
5349 | ||
5350 | ; | |
5351 | return 0; | |
5352 | } | |
5353 | _ACEOF | |
81ecdfbb | 5354 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5355 | ac_cv_prog_cxx_g=yes |
5356 | else | |
81ecdfbb RW |
5357 | CXXFLAGS="" |
5358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5359 | /* end confdefs.h. */ |
81ecdfbb | 5360 | |
18f6b6ee PB |
5361 | int |
5362 | main () | |
5363 | { | |
81ecdfbb | 5364 | |
18f6b6ee PB |
5365 | ; |
5366 | return 0; | |
5367 | } | |
5368 | _ACEOF | |
81ecdfbb | 5369 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5370 | |
81ecdfbb RW |
5371 | else |
5372 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5373 | CXXFLAGS="-g" | |
5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5375 | /* end confdefs.h. */ |
81ecdfbb | 5376 | |
18f6b6ee PB |
5377 | int |
5378 | main () | |
5379 | { | |
81ecdfbb | 5380 | |
18f6b6ee PB |
5381 | ; |
5382 | return 0; | |
5383 | } | |
5384 | _ACEOF | |
81ecdfbb RW |
5385 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5386 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5387 | fi |
81ecdfbb RW |
5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5389 | fi | |
5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5391 | fi | |
5392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5393 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5394 | fi | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5396 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5397 | if test "$ac_test_CXXFLAGS" = set; then | |
5398 | CXXFLAGS=$ac_save_CXXFLAGS | |
5399 | elif test $ac_cv_prog_cxx_g = yes; then | |
5400 | if test "$GXX" = yes; then | |
5401 | CXXFLAGS="-g -O2" | |
5402 | else | |
5403 | CXXFLAGS="-g" | |
5404 | fi | |
5405 | else | |
5406 | if test "$GXX" = yes; then | |
5407 | CXXFLAGS="-O2" | |
5408 | else | |
5409 | CXXFLAGS= | |
5410 | fi | |
18f6b6ee | 5411 | fi |
18f6b6ee PB |
5412 | ac_ext=c |
5413 | ac_cpp='$CPP $CPPFLAGS' | |
5414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5417 | ||
5418 | ||
5419 | # We must set the default linker to the linker used by gcc for the correct | |
5420 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5421 | # set the LD default to the ld used by gcc. | |
5422 | if test -z "$LD"; then | |
5423 | if test "$GCC" = yes; then | |
5424 | case $build in | |
5425 | *-*-mingw*) | |
5426 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5427 | *) | |
5428 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5429 | esac | |
5430 | case $gcc_prog_ld in | |
5431 | # Accept absolute paths. | |
5432 | [\\/]* | [A-Za-z]:[\\/]*) | |
5433 | LD="$gcc_prog_ld" ;; | |
5434 | esac | |
5435 | fi | |
512b7dfb PB |
5436 | fi |
5437 | ||
b3676d82 EB |
5438 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5439 | have_static_libs=no | |
5440 | if test "$GCC" = yes; then | |
5441 | saved_LDFLAGS="$LDFLAGS" | |
5442 | ||
5443 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5445 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5446 | ac_ext=cpp | |
5447 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5448 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5449 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5450 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5451 | ||
5452 | ||
5453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5454 | /* end confdefs.h. */ | |
a882be68 EB |
5455 | |
5456 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5457 | #error -static-libstdc++ not implemented | |
5458 | #endif | |
b3676d82 EB |
5459 | int main() {} |
5460 | _ACEOF | |
5461 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5463 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5464 | else | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5466 | $as_echo "no" >&6; } | |
5467 | fi | |
5468 | rm -f core conftest.err conftest.$ac_objext \ | |
5469 | conftest$ac_exeext conftest.$ac_ext | |
5470 | ac_ext=c | |
5471 | ac_cpp='$CPP $CPPFLAGS' | |
5472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5475 | ||
5476 | ||
5477 | LDFLAGS="$saved_LDFLAGS" | |
5478 | fi | |
5479 | ||
512b7dfb PB |
5480 | |
5481 | ||
5482 | ||
c6b750e1 | 5483 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5484 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5485 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5487 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5488 | if ${ac_cv_prog_GNATBIND+:} false; then : |
81ecdfbb | 5489 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5490 | else |
512b7dfb PB |
5491 | if test -n "$GNATBIND"; then |
5492 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5493 | else |
c6b750e1 DJ |
5494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5495 | for as_dir in $PATH | |
5496 | do | |
5497 | IFS=$as_save_IFS | |
5498 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5499 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5501 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5503 | break 2 |
5504 | fi | |
5505 | done | |
81ecdfbb RW |
5506 | done |
5507 | IFS=$as_save_IFS | |
c6b750e1 | 5508 | |
9e07f89d NN |
5509 | fi |
5510 | fi | |
512b7dfb PB |
5511 | GNATBIND=$ac_cv_prog_GNATBIND |
5512 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5514 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5515 | else |
81ecdfbb RW |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5517 | $as_echo "no" >&6; } | |
9e07f89d NN |
5518 | fi |
5519 | ||
81ecdfbb | 5520 | |
c6b750e1 | 5521 | fi |
512b7dfb PB |
5522 | if test -z "$ac_cv_prog_GNATBIND"; then |
5523 | ac_ct_GNATBIND=$GNATBIND | |
5524 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5525 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5527 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5528 | if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then : |
81ecdfbb | 5529 | $as_echo_n "(cached) " >&6 |
9e07f89d | 5530 | else |
512b7dfb PB |
5531 | if test -n "$ac_ct_GNATBIND"; then |
5532 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5533 | else |
c6b750e1 DJ |
5534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5535 | for as_dir in $PATH | |
5536 | do | |
5537 | IFS=$as_save_IFS | |
5538 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5539 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5541 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5543 | break 2 |
5544 | fi | |
5545 | done | |
81ecdfbb RW |
5546 | done |
5547 | IFS=$as_save_IFS | |
c6b750e1 | 5548 | |
9e07f89d NN |
5549 | fi |
5550 | fi | |
512b7dfb PB |
5551 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5552 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5554 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5555 | else |
81ecdfbb RW |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5557 | $as_echo "no" >&6; } | |
9e07f89d NN |
5558 | fi |
5559 | ||
81ecdfbb RW |
5560 | if test "x$ac_ct_GNATBIND" = x; then |
5561 | GNATBIND="no" | |
5562 | else | |
5563 | case $cross_compiling:$ac_tool_warned in | |
5564 | yes:) | |
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5566 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5567 | ac_tool_warned=yes ;; | |
5568 | esac | |
5569 | GNATBIND=$ac_ct_GNATBIND | |
5570 | fi | |
24ff9987 | 5571 | else |
512b7dfb | 5572 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5573 | fi |
5574 | ||
7df2cd5d | 5575 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5576 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5577 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5579 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5580 | if ${ac_cv_prog_GNATMAKE+:} false; then : |
81ecdfbb | 5581 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5582 | else |
512b7dfb PB |
5583 | if test -n "$GNATMAKE"; then |
5584 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5585 | else |
5586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5587 | for as_dir in $PATH | |
5588 | do | |
5589 | IFS=$as_save_IFS | |
5590 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5591 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5593 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5595 | break 2 |
5596 | fi | |
5597 | done | |
81ecdfbb RW |
5598 | done |
5599 | IFS=$as_save_IFS | |
7df2cd5d PB |
5600 | |
5601 | fi | |
5602 | fi | |
512b7dfb PB |
5603 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5604 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5606 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5607 | else |
81ecdfbb RW |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5609 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5610 | fi |
5611 | ||
81ecdfbb | 5612 | |
7df2cd5d | 5613 | fi |
512b7dfb PB |
5614 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5615 | ac_ct_GNATMAKE=$GNATMAKE | |
5616 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5617 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5619 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5620 | if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then : |
81ecdfbb | 5621 | $as_echo_n "(cached) " >&6 |
7df2cd5d | 5622 | else |
512b7dfb PB |
5623 | if test -n "$ac_ct_GNATMAKE"; then |
5624 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5625 | else |
5626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5627 | for as_dir in $PATH | |
5628 | do | |
5629 | IFS=$as_save_IFS | |
5630 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5631 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
512b7dfb | 5633 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5635 | break 2 |
5636 | fi | |
5637 | done | |
81ecdfbb RW |
5638 | done |
5639 | IFS=$as_save_IFS | |
7df2cd5d | 5640 | |
7df2cd5d PB |
5641 | fi |
5642 | fi | |
512b7dfb PB |
5643 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5644 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5646 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5647 | else |
81ecdfbb RW |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5649 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5650 | fi |
5651 | ||
81ecdfbb RW |
5652 | if test "x$ac_ct_GNATMAKE" = x; then |
5653 | GNATMAKE="no" | |
5654 | else | |
5655 | case $cross_compiling:$ac_tool_warned in | |
5656 | yes:) | |
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5658 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5659 | ac_tool_warned=yes ;; | |
5660 | esac | |
5661 | GNATMAKE=$ac_ct_GNATMAKE | |
5662 | fi | |
7df2cd5d | 5663 | else |
512b7dfb | 5664 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5665 | fi |
5666 | ||
b95bb526 AM |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5 |
5668 | $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; } | |
d0ac1c44 | 5669 | if ${acx_cv_cc_gcc_supports_ada+:} false; then : |
81ecdfbb | 5670 | $as_echo_n "(cached) " >&6 |
9e07f89d NN |
5671 | else |
5672 | cat >conftest.adb <<EOF | |
b95bb526 AM |
5673 | pragma Warnings (Off); |
5674 | with System.CRTL; | |
5675 | pragma Warnings (On); | |
5676 | use type System.CRTL.int64; | |
9e07f89d NN |
5677 | procedure conftest is begin null; end conftest; |
5678 | EOF | |
5679 | acx_cv_cc_gcc_supports_ada=no | |
5680 | # There is a bug in old released versions of GCC which causes the | |
5681 | # driver to exit successfully when the appropriate language module | |
5682 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5683 | # Therefore we must check for the error message as well as an | |
5684 | # unsuccessful exit. | |
b8908782 DD |
5685 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5686 | # given a .adb file, but produce no object file. So we must check | |
5687 | # if an object file was really produced to guard against this. | |
9e07f89d | 5688 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5689 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5690 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5691 | fi |
5692 | rm -f conftest.* | |
5693 | fi | |
81ecdfbb RW |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5695 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5696 | |
64b986c0 | 5697 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5698 | have_gnat=yes |
5699 | else | |
5700 | have_gnat=no | |
5701 | fi | |
5702 | ||
b95bb526 AM |
5703 | |
5704 | ||
5705 | if test -n "$ac_tool_prefix"; then | |
5706 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5707 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5709 | $as_echo_n "checking for $ac_word... " >&6; } | |
5710 | if ${ac_cv_prog_GDC+:} false; then : | |
5711 | $as_echo_n "(cached) " >&6 | |
5712 | else | |
5713 | if test -n "$GDC"; then | |
5714 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5715 | else | |
5716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5717 | for as_dir in $PATH | |
5718 | do | |
5719 | IFS=$as_save_IFS | |
5720 | test -z "$as_dir" && as_dir=. | |
5721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5723 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5725 | break 2 | |
5726 | fi | |
5727 | done | |
5728 | done | |
5729 | IFS=$as_save_IFS | |
5730 | ||
5731 | fi | |
5732 | fi | |
5733 | GDC=$ac_cv_prog_GDC | |
5734 | if test -n "$GDC"; then | |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5736 | $as_echo "$GDC" >&6; } | |
5737 | else | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5739 | $as_echo "no" >&6; } | |
5740 | fi | |
5741 | ||
5742 | ||
5743 | fi | |
5744 | if test -z "$ac_cv_prog_GDC"; then | |
5745 | ac_ct_GDC=$GDC | |
5746 | # Extract the first word of "gdc", so it can be a program name with args. | |
5747 | set dummy gdc; ac_word=$2 | |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5749 | $as_echo_n "checking for $ac_word... " >&6; } | |
5750 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5751 | $as_echo_n "(cached) " >&6 | |
5752 | else | |
5753 | if test -n "$ac_ct_GDC"; then | |
5754 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5755 | else | |
5756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5757 | for as_dir in $PATH | |
5758 | do | |
5759 | IFS=$as_save_IFS | |
5760 | test -z "$as_dir" && as_dir=. | |
5761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5763 | ac_cv_prog_ac_ct_GDC="gdc" | |
5764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5765 | break 2 | |
5766 | fi | |
5767 | done | |
5768 | done | |
5769 | IFS=$as_save_IFS | |
5770 | ||
5771 | fi | |
5772 | fi | |
5773 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5774 | if test -n "$ac_ct_GDC"; then | |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5776 | $as_echo "$ac_ct_GDC" >&6; } | |
5777 | else | |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5779 | $as_echo "no" >&6; } | |
5780 | fi | |
5781 | ||
5782 | if test "x$ac_ct_GDC" = x; then | |
5783 | GDC="no" | |
5784 | else | |
5785 | case $cross_compiling:$ac_tool_warned in | |
5786 | yes:) | |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5789 | ac_tool_warned=yes ;; | |
5790 | esac | |
5791 | GDC=$ac_ct_GDC | |
5792 | fi | |
5793 | else | |
5794 | GDC="$ac_cv_prog_GDC" | |
5795 | fi | |
5796 | ||
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5 | |
5798 | $as_echo_n "checking whether the D compiler works... " >&6; } | |
5799 | if ${acx_cv_d_compiler_works+:} false; then : | |
5800 | $as_echo_n "(cached) " >&6 | |
5801 | else | |
5802 | cat >conftest.d <<EOF | |
5803 | module conftest; int main() { return 0; } | |
5804 | EOF | |
5805 | acx_cv_d_compiler_works=no | |
5806 | if test "x$GDC" != xno; then | |
5807 | errors=`(${GDC} -c conftest.d) 2>&1 || echo failure` | |
5808 | if test x"$errors" = x && test -f conftest.$ac_objext; then | |
5809 | acx_cv_d_compiler_works=yes | |
5810 | fi | |
5811 | rm -f conftest.* | |
5812 | fi | |
5813 | fi | |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5 | |
5815 | $as_echo "$acx_cv_d_compiler_works" >&6; } | |
5816 | if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then | |
5817 | have_gdc=yes | |
5818 | else | |
5819 | have_gdc=no | |
5820 | fi | |
5821 | ||
81ecdfbb RW |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5823 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
d0ac1c44 | 5824 | if ${gcc_cv_prog_cmp_skip+:} false; then : |
81ecdfbb | 5825 | $as_echo_n "(cached) " >&6 |
b8908782 DD |
5826 | else |
5827 | echo abfoo >t1 | |
5828 | echo cdfoo >t2 | |
da17fe9d | 5829 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
4b1cb4fe DD |
5830 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5831 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5832 | : | |
5833 | else | |
5834 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5835 | fi | |
5836 | fi | |
b8908782 DD |
5837 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5838 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5839 | : |
b8908782 DD |
5840 | else |
5841 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5842 | fi | |
5843 | fi | |
5844 | rm t1 t2 | |
5845 | ||
5846 | fi | |
81ecdfbb RW |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5848 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5849 | do_compare="$gcc_cv_prog_cmp_skip" |
5850 | ||
5851 | ||
9e07f89d | 5852 | |
ffdd6afc ILT |
5853 | # Check whether --enable-bootstrap was given. |
5854 | if test "${enable_bootstrap+set}" = set; then : | |
5855 | enableval=$enable_bootstrap; | |
5856 | else | |
5857 | enable_bootstrap=default | |
5858 | fi | |
5859 | ||
5860 | ||
5861 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5862 | if test -r $srcdir/gcc/configure; then | |
5863 | have_compiler=yes | |
5864 | else | |
5865 | have_compiler=no | |
5866 | fi | |
5867 | ||
5868 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5869 | *:*:*:no) ;; | |
5870 | ||
5871 | # Default behavior. Enable bootstrap if we have a compiler | |
5872 | # and we are in a native configuration. | |
5873 | yes:$build:$build:default) | |
5874 | enable_bootstrap=yes ;; | |
5875 | ||
5876 | *:*:*:default) | |
5877 | enable_bootstrap=no ;; | |
5878 | ||
5879 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5880 | yes:$build:$build:yes) | |
5881 | ;; | |
5882 | ||
5883 | # Other configurations, but we have a compiler. Assume the user knows | |
5884 | # what he's doing. | |
5885 | yes:*:*:yes) | |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5887 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5888 | ;; | |
5889 | ||
5890 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5891 | no:*:*:yes) | |
d0ac1c44 | 5892 | as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ffdd6afc ILT |
5893 | |
5894 | # Fail if wrong command line | |
5895 | *) | |
d0ac1c44 | 5896 | as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5 |
ffdd6afc ILT |
5897 | ;; |
5898 | esac | |
5899 | ||
228cf97d AM |
5900 | # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a |
5901 | # C++11 compiler can still start the bootstrap. Otherwise, if building GCC, | |
5902 | # require C++11 (or higher). | |
ce6c656d | 5903 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then |
228cf97d AM |
5904 | CXX="$CXX -std=c++11" |
5905 | elif test "$have_compiler" = yes; then | |
5906 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
5907 | ac_ext=cpp | |
5908 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5912 | ac_success=no | |
ce6c656d | 5913 | |
228cf97d AM |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
5915 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
5916 | if ${ax_cv_cxx_compile_cxx11+:} false; then : | |
5917 | $as_echo_n "(cached) " >&6 | |
af019bfd | 5918 | else |
228cf97d AM |
5919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5920 | /* end confdefs.h. */ | |
af019bfd L |
5921 | |
5922 | ||
228cf97d AM |
5923 | // If the compiler admits that it is not ready for C++11, why torture it? |
5924 | // Hopefully, this will speed up the test. | |
af019bfd | 5925 | |
228cf97d | 5926 | #ifndef __cplusplus |
af019bfd | 5927 | |
228cf97d | 5928 | #error "This is not a C++ compiler" |
af019bfd | 5929 | |
228cf97d | 5930 | #elif __cplusplus < 201103L |
af019bfd | 5931 | |
228cf97d | 5932 | #error "This is not a C++11 compiler" |
af019bfd | 5933 | |
228cf97d | 5934 | #else |
af019bfd | 5935 | |
228cf97d AM |
5936 | namespace cxx11 |
5937 | { | |
af019bfd | 5938 | |
228cf97d AM |
5939 | namespace test_static_assert |
5940 | { | |
af019bfd | 5941 | |
228cf97d AM |
5942 | template <typename T> |
5943 | struct check | |
5944 | { | |
5945 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
5946 | }; | |
af019bfd | 5947 | |
228cf97d | 5948 | } |
af019bfd | 5949 | |
228cf97d AM |
5950 | namespace test_final_override |
5951 | { | |
af019bfd | 5952 | |
228cf97d AM |
5953 | struct Base |
5954 | { | |
5955 | virtual ~Base() {} | |
5956 | virtual void f() {} | |
5957 | }; | |
af019bfd | 5958 | |
228cf97d AM |
5959 | struct Derived : public Base |
5960 | { | |
5961 | virtual ~Derived() override {} | |
5962 | virtual void f() override {} | |
5963 | }; | |
d5f2ee2e | 5964 | |
228cf97d | 5965 | } |
d5f2ee2e | 5966 | |
228cf97d AM |
5967 | namespace test_double_right_angle_brackets |
5968 | { | |
d5f2ee2e | 5969 | |
228cf97d AM |
5970 | template < typename T > |
5971 | struct check {}; | |
d5f2ee2e | 5972 | |
228cf97d AM |
5973 | typedef check<void> single_type; |
5974 | typedef check<check<void>> double_type; | |
5975 | typedef check<check<check<void>>> triple_type; | |
5976 | typedef check<check<check<check<void>>>> quadruple_type; | |
d5f2ee2e | 5977 | |
228cf97d | 5978 | } |
d5f2ee2e | 5979 | |
228cf97d AM |
5980 | namespace test_decltype |
5981 | { | |
d5f2ee2e | 5982 | |
228cf97d AM |
5983 | int |
5984 | f() | |
5985 | { | |
5986 | int a = 1; | |
5987 | decltype(a) b = 2; | |
5988 | return a + b; | |
5989 | } | |
d5f2ee2e | 5990 | |
228cf97d | 5991 | } |
e8a5fa9c | 5992 | |
228cf97d AM |
5993 | namespace test_type_deduction |
5994 | { | |
e8a5fa9c | 5995 | |
228cf97d AM |
5996 | template < typename T1, typename T2 > |
5997 | struct is_same | |
5998 | { | |
5999 | static const bool value = false; | |
6000 | }; | |
e8a5fa9c | 6001 | |
228cf97d AM |
6002 | template < typename T > |
6003 | struct is_same<T, T> | |
6004 | { | |
6005 | static const bool value = true; | |
6006 | }; | |
e8a5fa9c | 6007 | |
228cf97d AM |
6008 | template < typename T1, typename T2 > |
6009 | auto | |
6010 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6011 | { | |
6012 | return a1 + a2; | |
6013 | } | |
e8a5fa9c | 6014 | |
228cf97d AM |
6015 | int |
6016 | test(const int c, volatile int v) | |
6017 | { | |
6018 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6019 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6020 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6021 | auto ac = c; | |
6022 | auto av = v; | |
6023 | auto sumi = ac + av + 'x'; | |
6024 | auto sumf = ac + av + 1.0; | |
6025 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6026 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6027 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6028 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6029 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6030 | return (sumf > 0.0) ? sumi : add(c, v); | |
6031 | } | |
e8a5fa9c | 6032 | |
228cf97d | 6033 | } |
e8a5fa9c | 6034 | |
228cf97d AM |
6035 | namespace test_noexcept |
6036 | { | |
e8a5fa9c | 6037 | |
228cf97d AM |
6038 | int f() { return 0; } |
6039 | int g() noexcept { return 0; } | |
4b900473 | 6040 | |
228cf97d AM |
6041 | static_assert(noexcept(f()) == false, ""); |
6042 | static_assert(noexcept(g()) == true, ""); | |
c6b750e1 | 6043 | |
228cf97d | 6044 | } |
81ecdfbb | 6045 | |
228cf97d AM |
6046 | namespace test_constexpr |
6047 | { | |
11b04d1f | 6048 | |
228cf97d AM |
6049 | template < typename CharT > |
6050 | unsigned long constexpr | |
6051 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6052 | { | |
6053 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6054 | } | |
11b04d1f | 6055 | |
228cf97d AM |
6056 | template < typename CharT > |
6057 | unsigned long constexpr | |
6058 | strlen_c(const CharT *const s) noexcept | |
6059 | { | |
6060 | return strlen_c_r(s, 0UL); | |
6061 | } | |
6062 | ||
6063 | static_assert(strlen_c("") == 0UL, ""); | |
6064 | static_assert(strlen_c("1") == 1UL, ""); | |
6065 | static_assert(strlen_c("example") == 7UL, ""); | |
6066 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6067 | ||
6068 | } | |
6069 | ||
6070 | namespace test_rvalue_references | |
6071 | { | |
6072 | ||
6073 | template < int N > | |
6074 | struct answer | |
6075 | { | |
6076 | static constexpr int value = N; | |
6077 | }; | |
6078 | ||
6079 | answer<1> f(int&) { return answer<1>(); } | |
6080 | answer<2> f(const int&) { return answer<2>(); } | |
6081 | answer<3> f(int&&) { return answer<3>(); } | |
6082 | ||
6083 | void | |
6084 | test() | |
6085 | { | |
6086 | int i = 0; | |
6087 | const int c = 0; | |
6088 | static_assert(decltype(f(i))::value == 1, ""); | |
6089 | static_assert(decltype(f(c))::value == 2, ""); | |
6090 | static_assert(decltype(f(0))::value == 3, ""); | |
6091 | } | |
6092 | ||
6093 | } | |
6094 | ||
6095 | namespace test_uniform_initialization | |
6096 | { | |
6097 | ||
6098 | struct test | |
6099 | { | |
6100 | static const int zero {}; | |
6101 | static const int one {1}; | |
6102 | }; | |
6103 | ||
6104 | static_assert(test::zero == 0, ""); | |
6105 | static_assert(test::one == 1, ""); | |
6106 | ||
6107 | } | |
6108 | ||
6109 | namespace test_lambdas | |
6110 | { | |
6111 | ||
6112 | void | |
6113 | test1() | |
6114 | { | |
6115 | auto lambda1 = [](){}; | |
6116 | auto lambda2 = lambda1; | |
6117 | lambda1(); | |
6118 | lambda2(); | |
6119 | } | |
6120 | ||
6121 | int | |
6122 | test2() | |
6123 | { | |
6124 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6125 | auto b = []() -> int { return '0'; }(); | |
6126 | auto c = [=](){ return a + b; }(); | |
6127 | auto d = [&](){ return c; }(); | |
6128 | auto e = [a, &b](int x) mutable { | |
6129 | const auto identity = [](int y){ return y; }; | |
6130 | for (auto i = 0; i < a; ++i) | |
6131 | a += b--; | |
6132 | return x + identity(a + b); | |
6133 | }(0); | |
6134 | return a + b + c + d + e; | |
6135 | } | |
6136 | ||
6137 | int | |
6138 | test3() | |
6139 | { | |
6140 | const auto nullary = [](){ return 0; }; | |
6141 | const auto unary = [](int x){ return x; }; | |
6142 | using nullary_t = decltype(nullary); | |
6143 | using unary_t = decltype(unary); | |
6144 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6145 | const auto higher2nd = [unary](nullary_t f1){ | |
6146 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6147 | }; | |
6148 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6149 | } | |
6150 | ||
6151 | } | |
6152 | ||
6153 | namespace test_variadic_templates | |
6154 | { | |
6155 | ||
6156 | template <int...> | |
6157 | struct sum; | |
6158 | ||
6159 | template <int N0, int... N1toN> | |
6160 | struct sum<N0, N1toN...> | |
6161 | { | |
6162 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6163 | }; | |
6164 | ||
6165 | template <> | |
6166 | struct sum<> | |
6167 | { | |
6168 | static constexpr auto value = 0; | |
6169 | }; | |
6170 | ||
6171 | static_assert(sum<>::value == 0, ""); | |
6172 | static_assert(sum<1>::value == 1, ""); | |
6173 | static_assert(sum<23>::value == 23, ""); | |
6174 | static_assert(sum<1, 2>::value == 3, ""); | |
6175 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6176 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6177 | ||
6178 | } | |
6179 | ||
6180 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6181 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6182 | // because of this. | |
6183 | namespace test_template_alias_sfinae | |
6184 | { | |
6185 | ||
6186 | struct foo {}; | |
6187 | ||
6188 | template<typename T> | |
6189 | using member = typename T::member_type; | |
6190 | ||
6191 | template<typename T> | |
6192 | void func(...) {} | |
6193 | ||
6194 | template<typename T> | |
6195 | void func(member<T>*) {} | |
6196 | ||
6197 | void test(); | |
6198 | ||
6199 | void test() { func<foo>(0); } | |
6200 | ||
6201 | } | |
6202 | ||
6203 | } // namespace cxx11 | |
6204 | ||
6205 | #endif // __cplusplus >= 201103L | |
6206 | ||
6207 | ||
6208 | ||
6209 | _ACEOF | |
6210 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6211 | ax_cv_cxx_compile_cxx11=yes | |
6212 | else | |
6213 | ax_cv_cxx_compile_cxx11=no | |
6214 | fi | |
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6216 | fi | |
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 | |
6218 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } | |
6219 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then | |
6220 | ac_success=yes | |
6221 | fi | |
6222 | ||
6223 | if test x$ac_success = xno; then | |
6224 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6225 | switch="-std=gnu++${alternative}" | |
6226 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6228 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6229 | if eval \${$cachevar+:} false; then : | |
6230 | $as_echo_n "(cached) " >&6 | |
6231 | else | |
6232 | ac_save_CXX="$CXX" | |
6233 | CXX="$CXX $switch" | |
6234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6235 | /* end confdefs.h. */ | |
6236 | ||
6237 | ||
6238 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6239 | // Hopefully, this will speed up the test. | |
6240 | ||
6241 | #ifndef __cplusplus | |
6242 | ||
6243 | #error "This is not a C++ compiler" | |
6244 | ||
6245 | #elif __cplusplus < 201103L | |
6246 | ||
6247 | #error "This is not a C++11 compiler" | |
6248 | ||
6249 | #else | |
6250 | ||
6251 | namespace cxx11 | |
6252 | { | |
6253 | ||
6254 | namespace test_static_assert | |
6255 | { | |
6256 | ||
6257 | template <typename T> | |
6258 | struct check | |
6259 | { | |
6260 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6261 | }; | |
6262 | ||
6263 | } | |
6264 | ||
6265 | namespace test_final_override | |
6266 | { | |
6267 | ||
6268 | struct Base | |
6269 | { | |
6270 | virtual ~Base() {} | |
6271 | virtual void f() {} | |
6272 | }; | |
6273 | ||
6274 | struct Derived : public Base | |
6275 | { | |
6276 | virtual ~Derived() override {} | |
6277 | virtual void f() override {} | |
6278 | }; | |
6279 | ||
6280 | } | |
6281 | ||
6282 | namespace test_double_right_angle_brackets | |
6283 | { | |
6284 | ||
6285 | template < typename T > | |
6286 | struct check {}; | |
6287 | ||
6288 | typedef check<void> single_type; | |
6289 | typedef check<check<void>> double_type; | |
6290 | typedef check<check<check<void>>> triple_type; | |
6291 | typedef check<check<check<check<void>>>> quadruple_type; | |
6292 | ||
6293 | } | |
6294 | ||
6295 | namespace test_decltype | |
6296 | { | |
6297 | ||
6298 | int | |
6299 | f() | |
6300 | { | |
6301 | int a = 1; | |
6302 | decltype(a) b = 2; | |
6303 | return a + b; | |
6304 | } | |
6305 | ||
6306 | } | |
6307 | ||
6308 | namespace test_type_deduction | |
6309 | { | |
6310 | ||
6311 | template < typename T1, typename T2 > | |
6312 | struct is_same | |
6313 | { | |
6314 | static const bool value = false; | |
6315 | }; | |
6316 | ||
6317 | template < typename T > | |
6318 | struct is_same<T, T> | |
6319 | { | |
6320 | static const bool value = true; | |
6321 | }; | |
6322 | ||
6323 | template < typename T1, typename T2 > | |
6324 | auto | |
6325 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6326 | { | |
6327 | return a1 + a2; | |
6328 | } | |
6329 | ||
6330 | int | |
6331 | test(const int c, volatile int v) | |
6332 | { | |
6333 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6334 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6335 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6336 | auto ac = c; | |
6337 | auto av = v; | |
6338 | auto sumi = ac + av + 'x'; | |
6339 | auto sumf = ac + av + 1.0; | |
6340 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6341 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6342 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6343 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6344 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6345 | return (sumf > 0.0) ? sumi : add(c, v); | |
6346 | } | |
6347 | ||
6348 | } | |
6349 | ||
6350 | namespace test_noexcept | |
6351 | { | |
6352 | ||
6353 | int f() { return 0; } | |
6354 | int g() noexcept { return 0; } | |
6355 | ||
6356 | static_assert(noexcept(f()) == false, ""); | |
6357 | static_assert(noexcept(g()) == true, ""); | |
6358 | ||
6359 | } | |
6360 | ||
6361 | namespace test_constexpr | |
6362 | { | |
6363 | ||
6364 | template < typename CharT > | |
6365 | unsigned long constexpr | |
6366 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6367 | { | |
6368 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6369 | } | |
6370 | ||
6371 | template < typename CharT > | |
6372 | unsigned long constexpr | |
6373 | strlen_c(const CharT *const s) noexcept | |
6374 | { | |
6375 | return strlen_c_r(s, 0UL); | |
6376 | } | |
6377 | ||
6378 | static_assert(strlen_c("") == 0UL, ""); | |
6379 | static_assert(strlen_c("1") == 1UL, ""); | |
6380 | static_assert(strlen_c("example") == 7UL, ""); | |
6381 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6382 | ||
6383 | } | |
6384 | ||
6385 | namespace test_rvalue_references | |
6386 | { | |
6387 | ||
6388 | template < int N > | |
6389 | struct answer | |
6390 | { | |
6391 | static constexpr int value = N; | |
6392 | }; | |
6393 | ||
6394 | answer<1> f(int&) { return answer<1>(); } | |
6395 | answer<2> f(const int&) { return answer<2>(); } | |
6396 | answer<3> f(int&&) { return answer<3>(); } | |
6397 | ||
6398 | void | |
6399 | test() | |
6400 | { | |
6401 | int i = 0; | |
6402 | const int c = 0; | |
6403 | static_assert(decltype(f(i))::value == 1, ""); | |
6404 | static_assert(decltype(f(c))::value == 2, ""); | |
6405 | static_assert(decltype(f(0))::value == 3, ""); | |
6406 | } | |
6407 | ||
6408 | } | |
6409 | ||
6410 | namespace test_uniform_initialization | |
6411 | { | |
6412 | ||
6413 | struct test | |
6414 | { | |
6415 | static const int zero {}; | |
6416 | static const int one {1}; | |
6417 | }; | |
6418 | ||
6419 | static_assert(test::zero == 0, ""); | |
6420 | static_assert(test::one == 1, ""); | |
6421 | ||
6422 | } | |
6423 | ||
6424 | namespace test_lambdas | |
6425 | { | |
6426 | ||
6427 | void | |
6428 | test1() | |
6429 | { | |
6430 | auto lambda1 = [](){}; | |
6431 | auto lambda2 = lambda1; | |
6432 | lambda1(); | |
6433 | lambda2(); | |
6434 | } | |
6435 | ||
6436 | int | |
6437 | test2() | |
6438 | { | |
6439 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6440 | auto b = []() -> int { return '0'; }(); | |
6441 | auto c = [=](){ return a + b; }(); | |
6442 | auto d = [&](){ return c; }(); | |
6443 | auto e = [a, &b](int x) mutable { | |
6444 | const auto identity = [](int y){ return y; }; | |
6445 | for (auto i = 0; i < a; ++i) | |
6446 | a += b--; | |
6447 | return x + identity(a + b); | |
6448 | }(0); | |
6449 | return a + b + c + d + e; | |
6450 | } | |
6451 | ||
6452 | int | |
6453 | test3() | |
6454 | { | |
6455 | const auto nullary = [](){ return 0; }; | |
6456 | const auto unary = [](int x){ return x; }; | |
6457 | using nullary_t = decltype(nullary); | |
6458 | using unary_t = decltype(unary); | |
6459 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6460 | const auto higher2nd = [unary](nullary_t f1){ | |
6461 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6462 | }; | |
6463 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6464 | } | |
6465 | ||
6466 | } | |
6467 | ||
6468 | namespace test_variadic_templates | |
6469 | { | |
6470 | ||
6471 | template <int...> | |
6472 | struct sum; | |
6473 | ||
6474 | template <int N0, int... N1toN> | |
6475 | struct sum<N0, N1toN...> | |
6476 | { | |
6477 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6478 | }; | |
6479 | ||
6480 | template <> | |
6481 | struct sum<> | |
6482 | { | |
6483 | static constexpr auto value = 0; | |
6484 | }; | |
6485 | ||
6486 | static_assert(sum<>::value == 0, ""); | |
6487 | static_assert(sum<1>::value == 1, ""); | |
6488 | static_assert(sum<23>::value == 23, ""); | |
6489 | static_assert(sum<1, 2>::value == 3, ""); | |
6490 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6491 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6492 | ||
6493 | } | |
6494 | ||
6495 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6496 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6497 | // because of this. | |
6498 | namespace test_template_alias_sfinae | |
6499 | { | |
6500 | ||
6501 | struct foo {}; | |
6502 | ||
6503 | template<typename T> | |
6504 | using member = typename T::member_type; | |
6505 | ||
6506 | template<typename T> | |
6507 | void func(...) {} | |
6508 | ||
6509 | template<typename T> | |
6510 | void func(member<T>*) {} | |
6511 | ||
6512 | void test(); | |
6513 | ||
6514 | void test() { func<foo>(0); } | |
6515 | ||
6516 | } | |
6517 | ||
6518 | } // namespace cxx11 | |
6519 | ||
6520 | #endif // __cplusplus >= 201103L | |
6521 | ||
6522 | ||
6523 | ||
6524 | _ACEOF | |
6525 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6526 | eval $cachevar=yes | |
6527 | else | |
6528 | eval $cachevar=no | |
6529 | fi | |
6530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6531 | CXX="$ac_save_CXX" | |
6532 | fi | |
6533 | eval ac_res=\$$cachevar | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6535 | $as_echo "$ac_res" >&6; } | |
6536 | if eval test x\$$cachevar = xyes; then | |
6537 | CXX="$CXX $switch" | |
6538 | if test -n "$CXXCPP" ; then | |
6539 | CXXCPP="$CXXCPP $switch" | |
6540 | fi | |
6541 | ac_success=yes | |
6542 | break | |
6543 | fi | |
6544 | done | |
6545 | fi | |
6546 | ||
6547 | if test x$ac_success = xno; then | |
6548 | for alternative in ${ax_cxx_compile_alternatives}; do | |
6549 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
6550 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` | |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
6552 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
6553 | if eval \${$cachevar+:} false; then : | |
6554 | $as_echo_n "(cached) " >&6 | |
6555 | else | |
6556 | ac_save_CXX="$CXX" | |
6557 | CXX="$CXX $switch" | |
6558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6559 | /* end confdefs.h. */ | |
6560 | ||
6561 | ||
6562 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6563 | // Hopefully, this will speed up the test. | |
6564 | ||
6565 | #ifndef __cplusplus | |
6566 | ||
6567 | #error "This is not a C++ compiler" | |
6568 | ||
6569 | #elif __cplusplus < 201103L | |
6570 | ||
6571 | #error "This is not a C++11 compiler" | |
6572 | ||
6573 | #else | |
6574 | ||
6575 | namespace cxx11 | |
6576 | { | |
6577 | ||
6578 | namespace test_static_assert | |
6579 | { | |
6580 | ||
6581 | template <typename T> | |
6582 | struct check | |
6583 | { | |
6584 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6585 | }; | |
6586 | ||
6587 | } | |
6588 | ||
6589 | namespace test_final_override | |
6590 | { | |
6591 | ||
6592 | struct Base | |
6593 | { | |
6594 | virtual ~Base() {} | |
6595 | virtual void f() {} | |
6596 | }; | |
6597 | ||
6598 | struct Derived : public Base | |
6599 | { | |
6600 | virtual ~Derived() override {} | |
6601 | virtual void f() override {} | |
6602 | }; | |
6603 | ||
6604 | } | |
6605 | ||
6606 | namespace test_double_right_angle_brackets | |
6607 | { | |
6608 | ||
6609 | template < typename T > | |
6610 | struct check {}; | |
6611 | ||
6612 | typedef check<void> single_type; | |
6613 | typedef check<check<void>> double_type; | |
6614 | typedef check<check<check<void>>> triple_type; | |
6615 | typedef check<check<check<check<void>>>> quadruple_type; | |
6616 | ||
6617 | } | |
6618 | ||
6619 | namespace test_decltype | |
6620 | { | |
6621 | ||
6622 | int | |
6623 | f() | |
6624 | { | |
6625 | int a = 1; | |
6626 | decltype(a) b = 2; | |
6627 | return a + b; | |
6628 | } | |
6629 | ||
6630 | } | |
6631 | ||
6632 | namespace test_type_deduction | |
6633 | { | |
6634 | ||
6635 | template < typename T1, typename T2 > | |
6636 | struct is_same | |
6637 | { | |
6638 | static const bool value = false; | |
6639 | }; | |
6640 | ||
6641 | template < typename T > | |
6642 | struct is_same<T, T> | |
6643 | { | |
6644 | static const bool value = true; | |
6645 | }; | |
6646 | ||
6647 | template < typename T1, typename T2 > | |
6648 | auto | |
6649 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
6650 | { | |
6651 | return a1 + a2; | |
6652 | } | |
6653 | ||
6654 | int | |
6655 | test(const int c, volatile int v) | |
6656 | { | |
6657 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
6658 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
6659 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
6660 | auto ac = c; | |
6661 | auto av = v; | |
6662 | auto sumi = ac + av + 'x'; | |
6663 | auto sumf = ac + av + 1.0; | |
6664 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
6665 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
6666 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
6667 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
6668 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
6669 | return (sumf > 0.0) ? sumi : add(c, v); | |
6670 | } | |
6671 | ||
6672 | } | |
6673 | ||
6674 | namespace test_noexcept | |
6675 | { | |
6676 | ||
6677 | int f() { return 0; } | |
6678 | int g() noexcept { return 0; } | |
6679 | ||
6680 | static_assert(noexcept(f()) == false, ""); | |
6681 | static_assert(noexcept(g()) == true, ""); | |
6682 | ||
6683 | } | |
6684 | ||
6685 | namespace test_constexpr | |
6686 | { | |
6687 | ||
6688 | template < typename CharT > | |
6689 | unsigned long constexpr | |
6690 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
6691 | { | |
6692 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
6693 | } | |
6694 | ||
6695 | template < typename CharT > | |
6696 | unsigned long constexpr | |
6697 | strlen_c(const CharT *const s) noexcept | |
6698 | { | |
6699 | return strlen_c_r(s, 0UL); | |
6700 | } | |
6701 | ||
6702 | static_assert(strlen_c("") == 0UL, ""); | |
6703 | static_assert(strlen_c("1") == 1UL, ""); | |
6704 | static_assert(strlen_c("example") == 7UL, ""); | |
6705 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
6706 | ||
6707 | } | |
6708 | ||
6709 | namespace test_rvalue_references | |
6710 | { | |
6711 | ||
6712 | template < int N > | |
6713 | struct answer | |
6714 | { | |
6715 | static constexpr int value = N; | |
6716 | }; | |
6717 | ||
6718 | answer<1> f(int&) { return answer<1>(); } | |
6719 | answer<2> f(const int&) { return answer<2>(); } | |
6720 | answer<3> f(int&&) { return answer<3>(); } | |
6721 | ||
6722 | void | |
6723 | test() | |
6724 | { | |
6725 | int i = 0; | |
6726 | const int c = 0; | |
6727 | static_assert(decltype(f(i))::value == 1, ""); | |
6728 | static_assert(decltype(f(c))::value == 2, ""); | |
6729 | static_assert(decltype(f(0))::value == 3, ""); | |
6730 | } | |
6731 | ||
6732 | } | |
6733 | ||
6734 | namespace test_uniform_initialization | |
6735 | { | |
6736 | ||
6737 | struct test | |
6738 | { | |
6739 | static const int zero {}; | |
6740 | static const int one {1}; | |
6741 | }; | |
6742 | ||
6743 | static_assert(test::zero == 0, ""); | |
6744 | static_assert(test::one == 1, ""); | |
6745 | ||
6746 | } | |
6747 | ||
6748 | namespace test_lambdas | |
6749 | { | |
6750 | ||
6751 | void | |
6752 | test1() | |
6753 | { | |
6754 | auto lambda1 = [](){}; | |
6755 | auto lambda2 = lambda1; | |
6756 | lambda1(); | |
6757 | lambda2(); | |
6758 | } | |
6759 | ||
6760 | int | |
6761 | test2() | |
6762 | { | |
6763 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
6764 | auto b = []() -> int { return '0'; }(); | |
6765 | auto c = [=](){ return a + b; }(); | |
6766 | auto d = [&](){ return c; }(); | |
6767 | auto e = [a, &b](int x) mutable { | |
6768 | const auto identity = [](int y){ return y; }; | |
6769 | for (auto i = 0; i < a; ++i) | |
6770 | a += b--; | |
6771 | return x + identity(a + b); | |
6772 | }(0); | |
6773 | return a + b + c + d + e; | |
6774 | } | |
6775 | ||
6776 | int | |
6777 | test3() | |
6778 | { | |
6779 | const auto nullary = [](){ return 0; }; | |
6780 | const auto unary = [](int x){ return x; }; | |
6781 | using nullary_t = decltype(nullary); | |
6782 | using unary_t = decltype(unary); | |
6783 | const auto higher1st = [](nullary_t f){ return f(); }; | |
6784 | const auto higher2nd = [unary](nullary_t f1){ | |
6785 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
6786 | }; | |
6787 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
6788 | } | |
6789 | ||
6790 | } | |
6791 | ||
6792 | namespace test_variadic_templates | |
6793 | { | |
6794 | ||
6795 | template <int...> | |
6796 | struct sum; | |
6797 | ||
6798 | template <int N0, int... N1toN> | |
6799 | struct sum<N0, N1toN...> | |
6800 | { | |
6801 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
6802 | }; | |
6803 | ||
6804 | template <> | |
6805 | struct sum<> | |
6806 | { | |
6807 | static constexpr auto value = 0; | |
6808 | }; | |
6809 | ||
6810 | static_assert(sum<>::value == 0, ""); | |
6811 | static_assert(sum<1>::value == 1, ""); | |
6812 | static_assert(sum<23>::value == 23, ""); | |
6813 | static_assert(sum<1, 2>::value == 3, ""); | |
6814 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
6815 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
6816 | ||
6817 | } | |
6818 | ||
6819 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
6820 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
6821 | // because of this. | |
6822 | namespace test_template_alias_sfinae | |
6823 | { | |
6824 | ||
6825 | struct foo {}; | |
6826 | ||
6827 | template<typename T> | |
6828 | using member = typename T::member_type; | |
6829 | ||
6830 | template<typename T> | |
6831 | void func(...) {} | |
6832 | ||
6833 | template<typename T> | |
6834 | void func(member<T>*) {} | |
6835 | ||
6836 | void test(); | |
6837 | ||
6838 | void test() { func<foo>(0); } | |
6839 | ||
6840 | } | |
6841 | ||
6842 | } // namespace cxx11 | |
6843 | ||
6844 | #endif // __cplusplus >= 201103L | |
6845 | ||
6846 | ||
6847 | ||
6848 | _ACEOF | |
6849 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6850 | eval $cachevar=yes | |
6851 | else | |
6852 | eval $cachevar=no | |
6853 | fi | |
6854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6855 | CXX="$ac_save_CXX" | |
6856 | fi | |
6857 | eval ac_res=\$$cachevar | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6859 | $as_echo "$ac_res" >&6; } | |
6860 | if eval test x\$$cachevar = xyes; then | |
6861 | CXX="$CXX $switch" | |
6862 | if test -n "$CXXCPP" ; then | |
6863 | CXXCPP="$CXXCPP $switch" | |
6864 | fi | |
6865 | ac_success=yes | |
6866 | break | |
6867 | fi | |
6868 | done | |
6869 | if test x$ac_success = xyes; then | |
6870 | break | |
6871 | fi | |
6872 | done | |
6873 | fi | |
6874 | ||
6875 | ac_ext=c | |
6876 | ac_cpp='$CPP $CPPFLAGS' | |
6877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6880 | ||
6881 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
6882 | if test x$ac_success = xno; then | |
6883 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
6884 | fi | |
6885 | fi | |
6886 | if test x$ac_success = xno; then | |
6887 | HAVE_CXX11=0 | |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
6889 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
6890 | else | |
6891 | HAVE_CXX11=1 | |
6892 | ||
6893 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h | |
6894 | ||
6895 | fi | |
6896 | ||
6897 | ||
6898 | ||
6899 | if test "${build}" != "${host}"; then | |
6900 | ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true | |
6901 | ac_ext=cpp | |
6902 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6906 | ac_success=no | |
6907 | ax_cv_cxx_compile_cxx11_orig_cxx="$CXX" | |
6908 | ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS" | |
6909 | ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS" | |
6910 | CXX="$CXX_FOR_BUILD" | |
6911 | CXXFLAGS="$CXXFLAGS_FOR_BUILD" | |
6912 | CPPFLAGS="$CPPFLAGS_FOR_BUILD" | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 | |
6914 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } | |
6915 | if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then : | |
6916 | $as_echo_n "(cached) " >&6 | |
6917 | else | |
6918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6919 | /* end confdefs.h. */ | |
6920 | ||
6921 | ||
6922 | // If the compiler admits that it is not ready for C++11, why torture it? | |
6923 | // Hopefully, this will speed up the test. | |
6924 | ||
6925 | #ifndef __cplusplus | |
6926 | ||
6927 | #error "This is not a C++ compiler" | |
6928 | ||
6929 | #elif __cplusplus < 201103L | |
6930 | ||
6931 | #error "This is not a C++11 compiler" | |
6932 | ||
6933 | #else | |
6934 | ||
6935 | namespace cxx11 | |
6936 | { | |
6937 | ||
6938 | namespace test_static_assert | |
6939 | { | |
6940 | ||
6941 | template <typename T> | |
6942 | struct check | |
6943 | { | |
6944 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
6945 | }; | |
6946 | ||
6947 | } | |
6948 | ||
6949 | namespace test_final_override | |
6950 | { | |
6951 | ||
6952 | struct Base | |
6953 | { | |
6954 | virtual ~Base() {} | |
6955 | virtual void f() {} | |
6956 | }; | |
6957 | ||
6958 | struct Derived : public Base | |
6959 | { | |
6960 | virtual ~Derived() override {} | |
6961 | virtual void f() override {} | |
6962 | }; | |
6963 | ||
6964 | } | |
6965 | ||
6966 | namespace test_double_right_angle_brackets | |
6967 | { | |
6968 | ||
6969 | template < typename T > | |
6970 | struct check {}; | |
6971 | ||
6972 | typedef check<void> single_type; | |
6973 | typedef check<check<void>> double_type; | |
6974 | typedef check<check<check<void>>> triple_type; | |
6975 | typedef check<check<check<check<void>>>> quadruple_type; | |
6976 | ||
6977 | } | |
6978 | ||
6979 | namespace test_decltype | |
6980 | { | |
6981 | ||
6982 | int | |
6983 | f() | |
6984 | { | |
6985 | int a = 1; | |
6986 | decltype(a) b = 2; | |
6987 | return a + b; | |
6988 | } | |
6989 | ||
6990 | } | |
6991 | ||
6992 | namespace test_type_deduction | |
6993 | { | |
6994 | ||
6995 | template < typename T1, typename T2 > | |
6996 | struct is_same | |
6997 | { | |
6998 | static const bool value = false; | |
6999 | }; | |
7000 | ||
7001 | template < typename T > | |
7002 | struct is_same<T, T> | |
7003 | { | |
7004 | static const bool value = true; | |
7005 | }; | |
7006 | ||
7007 | template < typename T1, typename T2 > | |
7008 | auto | |
7009 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7010 | { | |
7011 | return a1 + a2; | |
7012 | } | |
7013 | ||
7014 | int | |
7015 | test(const int c, volatile int v) | |
7016 | { | |
7017 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7018 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7019 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7020 | auto ac = c; | |
7021 | auto av = v; | |
7022 | auto sumi = ac + av + 'x'; | |
7023 | auto sumf = ac + av + 1.0; | |
7024 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7025 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7026 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7027 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7028 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7029 | return (sumf > 0.0) ? sumi : add(c, v); | |
7030 | } | |
7031 | ||
7032 | } | |
7033 | ||
7034 | namespace test_noexcept | |
7035 | { | |
7036 | ||
7037 | int f() { return 0; } | |
7038 | int g() noexcept { return 0; } | |
7039 | ||
7040 | static_assert(noexcept(f()) == false, ""); | |
7041 | static_assert(noexcept(g()) == true, ""); | |
7042 | ||
7043 | } | |
7044 | ||
7045 | namespace test_constexpr | |
7046 | { | |
7047 | ||
7048 | template < typename CharT > | |
7049 | unsigned long constexpr | |
7050 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7051 | { | |
7052 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7053 | } | |
7054 | ||
7055 | template < typename CharT > | |
7056 | unsigned long constexpr | |
7057 | strlen_c(const CharT *const s) noexcept | |
7058 | { | |
7059 | return strlen_c_r(s, 0UL); | |
7060 | } | |
7061 | ||
7062 | static_assert(strlen_c("") == 0UL, ""); | |
7063 | static_assert(strlen_c("1") == 1UL, ""); | |
7064 | static_assert(strlen_c("example") == 7UL, ""); | |
7065 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7066 | ||
7067 | } | |
7068 | ||
7069 | namespace test_rvalue_references | |
7070 | { | |
7071 | ||
7072 | template < int N > | |
7073 | struct answer | |
7074 | { | |
7075 | static constexpr int value = N; | |
7076 | }; | |
7077 | ||
7078 | answer<1> f(int&) { return answer<1>(); } | |
7079 | answer<2> f(const int&) { return answer<2>(); } | |
7080 | answer<3> f(int&&) { return answer<3>(); } | |
7081 | ||
7082 | void | |
7083 | test() | |
7084 | { | |
7085 | int i = 0; | |
7086 | const int c = 0; | |
7087 | static_assert(decltype(f(i))::value == 1, ""); | |
7088 | static_assert(decltype(f(c))::value == 2, ""); | |
7089 | static_assert(decltype(f(0))::value == 3, ""); | |
7090 | } | |
7091 | ||
7092 | } | |
7093 | ||
7094 | namespace test_uniform_initialization | |
7095 | { | |
7096 | ||
7097 | struct test | |
7098 | { | |
7099 | static const int zero {}; | |
7100 | static const int one {1}; | |
7101 | }; | |
7102 | ||
7103 | static_assert(test::zero == 0, ""); | |
7104 | static_assert(test::one == 1, ""); | |
7105 | ||
7106 | } | |
7107 | ||
7108 | namespace test_lambdas | |
7109 | { | |
7110 | ||
7111 | void | |
7112 | test1() | |
7113 | { | |
7114 | auto lambda1 = [](){}; | |
7115 | auto lambda2 = lambda1; | |
7116 | lambda1(); | |
7117 | lambda2(); | |
7118 | } | |
7119 | ||
7120 | int | |
7121 | test2() | |
7122 | { | |
7123 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7124 | auto b = []() -> int { return '0'; }(); | |
7125 | auto c = [=](){ return a + b; }(); | |
7126 | auto d = [&](){ return c; }(); | |
7127 | auto e = [a, &b](int x) mutable { | |
7128 | const auto identity = [](int y){ return y; }; | |
7129 | for (auto i = 0; i < a; ++i) | |
7130 | a += b--; | |
7131 | return x + identity(a + b); | |
7132 | }(0); | |
7133 | return a + b + c + d + e; | |
7134 | } | |
7135 | ||
7136 | int | |
7137 | test3() | |
7138 | { | |
7139 | const auto nullary = [](){ return 0; }; | |
7140 | const auto unary = [](int x){ return x; }; | |
7141 | using nullary_t = decltype(nullary); | |
7142 | using unary_t = decltype(unary); | |
7143 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7144 | const auto higher2nd = [unary](nullary_t f1){ | |
7145 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7146 | }; | |
7147 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7148 | } | |
7149 | ||
7150 | } | |
7151 | ||
7152 | namespace test_variadic_templates | |
7153 | { | |
7154 | ||
7155 | template <int...> | |
7156 | struct sum; | |
7157 | ||
7158 | template <int N0, int... N1toN> | |
7159 | struct sum<N0, N1toN...> | |
7160 | { | |
7161 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7162 | }; | |
7163 | ||
7164 | template <> | |
7165 | struct sum<> | |
7166 | { | |
7167 | static constexpr auto value = 0; | |
7168 | }; | |
7169 | ||
7170 | static_assert(sum<>::value == 0, ""); | |
7171 | static_assert(sum<1>::value == 1, ""); | |
7172 | static_assert(sum<23>::value == 23, ""); | |
7173 | static_assert(sum<1, 2>::value == 3, ""); | |
7174 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7175 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7176 | ||
7177 | } | |
7178 | ||
7179 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7180 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7181 | // because of this. | |
7182 | namespace test_template_alias_sfinae | |
7183 | { | |
7184 | ||
7185 | struct foo {}; | |
7186 | ||
7187 | template<typename T> | |
7188 | using member = typename T::member_type; | |
7189 | ||
7190 | template<typename T> | |
7191 | void func(...) {} | |
7192 | ||
7193 | template<typename T> | |
7194 | void func(member<T>*) {} | |
7195 | ||
7196 | void test(); | |
7197 | ||
7198 | void test() { func<foo>(0); } | |
7199 | ||
7200 | } | |
7201 | ||
7202 | } // namespace cxx11 | |
7203 | ||
7204 | #endif // __cplusplus >= 201103L | |
7205 | ||
7206 | ||
7207 | ||
7208 | _ACEOF | |
7209 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7210 | ax_cv_cxx_compile_cxx11_FOR_BUILD=yes | |
7211 | else | |
7212 | ax_cv_cxx_compile_cxx11_FOR_BUILD=no | |
7213 | fi | |
7214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7215 | fi | |
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5 | |
7217 | $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; } | |
7218 | if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then | |
7219 | ac_success=yes | |
7220 | fi | |
7221 | ||
7222 | if test x$ac_success = xno; then | |
7223 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7224 | switch="-std=gnu++${alternative}" | |
7225 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7227 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7228 | if eval \${$cachevar+:} false; then : | |
7229 | $as_echo_n "(cached) " >&6 | |
7230 | else | |
7231 | ac_save_CXX="$CXX" | |
7232 | CXX="$CXX $switch" | |
7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7234 | /* end confdefs.h. */ | |
7235 | ||
7236 | ||
7237 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7238 | // Hopefully, this will speed up the test. | |
7239 | ||
7240 | #ifndef __cplusplus | |
7241 | ||
7242 | #error "This is not a C++ compiler" | |
7243 | ||
7244 | #elif __cplusplus < 201103L | |
7245 | ||
7246 | #error "This is not a C++11 compiler" | |
7247 | ||
7248 | #else | |
7249 | ||
7250 | namespace cxx11 | |
7251 | { | |
7252 | ||
7253 | namespace test_static_assert | |
7254 | { | |
7255 | ||
7256 | template <typename T> | |
7257 | struct check | |
7258 | { | |
7259 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7260 | }; | |
7261 | ||
7262 | } | |
7263 | ||
7264 | namespace test_final_override | |
7265 | { | |
7266 | ||
7267 | struct Base | |
7268 | { | |
7269 | virtual ~Base() {} | |
7270 | virtual void f() {} | |
7271 | }; | |
7272 | ||
7273 | struct Derived : public Base | |
7274 | { | |
7275 | virtual ~Derived() override {} | |
7276 | virtual void f() override {} | |
7277 | }; | |
7278 | ||
7279 | } | |
7280 | ||
7281 | namespace test_double_right_angle_brackets | |
7282 | { | |
7283 | ||
7284 | template < typename T > | |
7285 | struct check {}; | |
7286 | ||
7287 | typedef check<void> single_type; | |
7288 | typedef check<check<void>> double_type; | |
7289 | typedef check<check<check<void>>> triple_type; | |
7290 | typedef check<check<check<check<void>>>> quadruple_type; | |
7291 | ||
7292 | } | |
7293 | ||
7294 | namespace test_decltype | |
7295 | { | |
7296 | ||
7297 | int | |
7298 | f() | |
7299 | { | |
7300 | int a = 1; | |
7301 | decltype(a) b = 2; | |
7302 | return a + b; | |
7303 | } | |
7304 | ||
7305 | } | |
7306 | ||
7307 | namespace test_type_deduction | |
7308 | { | |
7309 | ||
7310 | template < typename T1, typename T2 > | |
7311 | struct is_same | |
7312 | { | |
7313 | static const bool value = false; | |
7314 | }; | |
7315 | ||
7316 | template < typename T > | |
7317 | struct is_same<T, T> | |
7318 | { | |
7319 | static const bool value = true; | |
7320 | }; | |
7321 | ||
7322 | template < typename T1, typename T2 > | |
7323 | auto | |
7324 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7325 | { | |
7326 | return a1 + a2; | |
7327 | } | |
7328 | ||
7329 | int | |
7330 | test(const int c, volatile int v) | |
7331 | { | |
7332 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7333 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7334 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7335 | auto ac = c; | |
7336 | auto av = v; | |
7337 | auto sumi = ac + av + 'x'; | |
7338 | auto sumf = ac + av + 1.0; | |
7339 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7340 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7341 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7342 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7343 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7344 | return (sumf > 0.0) ? sumi : add(c, v); | |
7345 | } | |
7346 | ||
7347 | } | |
7348 | ||
7349 | namespace test_noexcept | |
7350 | { | |
7351 | ||
7352 | int f() { return 0; } | |
7353 | int g() noexcept { return 0; } | |
7354 | ||
7355 | static_assert(noexcept(f()) == false, ""); | |
7356 | static_assert(noexcept(g()) == true, ""); | |
7357 | ||
7358 | } | |
7359 | ||
7360 | namespace test_constexpr | |
7361 | { | |
7362 | ||
7363 | template < typename CharT > | |
7364 | unsigned long constexpr | |
7365 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7366 | { | |
7367 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7368 | } | |
7369 | ||
7370 | template < typename CharT > | |
7371 | unsigned long constexpr | |
7372 | strlen_c(const CharT *const s) noexcept | |
7373 | { | |
7374 | return strlen_c_r(s, 0UL); | |
7375 | } | |
7376 | ||
7377 | static_assert(strlen_c("") == 0UL, ""); | |
7378 | static_assert(strlen_c("1") == 1UL, ""); | |
7379 | static_assert(strlen_c("example") == 7UL, ""); | |
7380 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7381 | ||
7382 | } | |
7383 | ||
7384 | namespace test_rvalue_references | |
7385 | { | |
7386 | ||
7387 | template < int N > | |
7388 | struct answer | |
7389 | { | |
7390 | static constexpr int value = N; | |
7391 | }; | |
7392 | ||
7393 | answer<1> f(int&) { return answer<1>(); } | |
7394 | answer<2> f(const int&) { return answer<2>(); } | |
7395 | answer<3> f(int&&) { return answer<3>(); } | |
7396 | ||
7397 | void | |
7398 | test() | |
7399 | { | |
7400 | int i = 0; | |
7401 | const int c = 0; | |
7402 | static_assert(decltype(f(i))::value == 1, ""); | |
7403 | static_assert(decltype(f(c))::value == 2, ""); | |
7404 | static_assert(decltype(f(0))::value == 3, ""); | |
7405 | } | |
7406 | ||
7407 | } | |
7408 | ||
7409 | namespace test_uniform_initialization | |
7410 | { | |
7411 | ||
7412 | struct test | |
7413 | { | |
7414 | static const int zero {}; | |
7415 | static const int one {1}; | |
7416 | }; | |
7417 | ||
7418 | static_assert(test::zero == 0, ""); | |
7419 | static_assert(test::one == 1, ""); | |
7420 | ||
7421 | } | |
7422 | ||
7423 | namespace test_lambdas | |
7424 | { | |
7425 | ||
7426 | void | |
7427 | test1() | |
7428 | { | |
7429 | auto lambda1 = [](){}; | |
7430 | auto lambda2 = lambda1; | |
7431 | lambda1(); | |
7432 | lambda2(); | |
7433 | } | |
7434 | ||
7435 | int | |
7436 | test2() | |
7437 | { | |
7438 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7439 | auto b = []() -> int { return '0'; }(); | |
7440 | auto c = [=](){ return a + b; }(); | |
7441 | auto d = [&](){ return c; }(); | |
7442 | auto e = [a, &b](int x) mutable { | |
7443 | const auto identity = [](int y){ return y; }; | |
7444 | for (auto i = 0; i < a; ++i) | |
7445 | a += b--; | |
7446 | return x + identity(a + b); | |
7447 | }(0); | |
7448 | return a + b + c + d + e; | |
7449 | } | |
7450 | ||
7451 | int | |
7452 | test3() | |
7453 | { | |
7454 | const auto nullary = [](){ return 0; }; | |
7455 | const auto unary = [](int x){ return x; }; | |
7456 | using nullary_t = decltype(nullary); | |
7457 | using unary_t = decltype(unary); | |
7458 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7459 | const auto higher2nd = [unary](nullary_t f1){ | |
7460 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7461 | }; | |
7462 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7463 | } | |
7464 | ||
7465 | } | |
7466 | ||
7467 | namespace test_variadic_templates | |
7468 | { | |
7469 | ||
7470 | template <int...> | |
7471 | struct sum; | |
7472 | ||
7473 | template <int N0, int... N1toN> | |
7474 | struct sum<N0, N1toN...> | |
7475 | { | |
7476 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7477 | }; | |
7478 | ||
7479 | template <> | |
7480 | struct sum<> | |
7481 | { | |
7482 | static constexpr auto value = 0; | |
7483 | }; | |
7484 | ||
7485 | static_assert(sum<>::value == 0, ""); | |
7486 | static_assert(sum<1>::value == 1, ""); | |
7487 | static_assert(sum<23>::value == 23, ""); | |
7488 | static_assert(sum<1, 2>::value == 3, ""); | |
7489 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7490 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7491 | ||
7492 | } | |
7493 | ||
7494 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7495 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7496 | // because of this. | |
7497 | namespace test_template_alias_sfinae | |
7498 | { | |
7499 | ||
7500 | struct foo {}; | |
7501 | ||
7502 | template<typename T> | |
7503 | using member = typename T::member_type; | |
7504 | ||
7505 | template<typename T> | |
7506 | void func(...) {} | |
7507 | ||
7508 | template<typename T> | |
7509 | void func(member<T>*) {} | |
7510 | ||
7511 | void test(); | |
7512 | ||
7513 | void test() { func<foo>(0); } | |
7514 | ||
7515 | } | |
7516 | ||
7517 | } // namespace cxx11 | |
7518 | ||
7519 | #endif // __cplusplus >= 201103L | |
7520 | ||
7521 | ||
7522 | ||
7523 | _ACEOF | |
7524 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7525 | eval $cachevar=yes | |
7526 | else | |
7527 | eval $cachevar=no | |
7528 | fi | |
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7530 | CXX="$ac_save_CXX" | |
7531 | fi | |
7532 | eval ac_res=\$$cachevar | |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7534 | $as_echo "$ac_res" >&6; } | |
7535 | if eval test x\$$cachevar = xyes; then | |
7536 | CXX="$CXX $switch" | |
7537 | if test -n "$CXXCPP" ; then | |
7538 | CXXCPP="$CXXCPP $switch" | |
7539 | fi | |
7540 | ac_success=yes | |
7541 | break | |
7542 | fi | |
7543 | done | |
7544 | fi | |
7545 | ||
7546 | if test x$ac_success = xno; then | |
7547 | for alternative in ${ax_cxx_compile_alternatives}; do | |
7548 | for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do | |
7549 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh` | |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 | |
7551 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } | |
7552 | if eval \${$cachevar+:} false; then : | |
7553 | $as_echo_n "(cached) " >&6 | |
7554 | else | |
7555 | ac_save_CXX="$CXX" | |
7556 | CXX="$CXX $switch" | |
7557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7558 | /* end confdefs.h. */ | |
7559 | ||
7560 | ||
7561 | // If the compiler admits that it is not ready for C++11, why torture it? | |
7562 | // Hopefully, this will speed up the test. | |
7563 | ||
7564 | #ifndef __cplusplus | |
7565 | ||
7566 | #error "This is not a C++ compiler" | |
7567 | ||
7568 | #elif __cplusplus < 201103L | |
7569 | ||
7570 | #error "This is not a C++11 compiler" | |
7571 | ||
7572 | #else | |
7573 | ||
7574 | namespace cxx11 | |
7575 | { | |
7576 | ||
7577 | namespace test_static_assert | |
7578 | { | |
7579 | ||
7580 | template <typename T> | |
7581 | struct check | |
7582 | { | |
7583 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | |
7584 | }; | |
7585 | ||
7586 | } | |
7587 | ||
7588 | namespace test_final_override | |
7589 | { | |
7590 | ||
7591 | struct Base | |
7592 | { | |
7593 | virtual ~Base() {} | |
7594 | virtual void f() {} | |
7595 | }; | |
7596 | ||
7597 | struct Derived : public Base | |
7598 | { | |
7599 | virtual ~Derived() override {} | |
7600 | virtual void f() override {} | |
7601 | }; | |
7602 | ||
7603 | } | |
7604 | ||
7605 | namespace test_double_right_angle_brackets | |
7606 | { | |
7607 | ||
7608 | template < typename T > | |
7609 | struct check {}; | |
7610 | ||
7611 | typedef check<void> single_type; | |
7612 | typedef check<check<void>> double_type; | |
7613 | typedef check<check<check<void>>> triple_type; | |
7614 | typedef check<check<check<check<void>>>> quadruple_type; | |
7615 | ||
7616 | } | |
7617 | ||
7618 | namespace test_decltype | |
7619 | { | |
7620 | ||
7621 | int | |
7622 | f() | |
7623 | { | |
7624 | int a = 1; | |
7625 | decltype(a) b = 2; | |
7626 | return a + b; | |
7627 | } | |
7628 | ||
7629 | } | |
7630 | ||
7631 | namespace test_type_deduction | |
7632 | { | |
7633 | ||
7634 | template < typename T1, typename T2 > | |
7635 | struct is_same | |
7636 | { | |
7637 | static const bool value = false; | |
7638 | }; | |
7639 | ||
7640 | template < typename T > | |
7641 | struct is_same<T, T> | |
7642 | { | |
7643 | static const bool value = true; | |
7644 | }; | |
7645 | ||
7646 | template < typename T1, typename T2 > | |
7647 | auto | |
7648 | add(T1 a1, T2 a2) -> decltype(a1 + a2) | |
7649 | { | |
7650 | return a1 + a2; | |
7651 | } | |
7652 | ||
7653 | int | |
7654 | test(const int c, volatile int v) | |
7655 | { | |
7656 | static_assert(is_same<int, decltype(0)>::value == true, ""); | |
7657 | static_assert(is_same<int, decltype(c)>::value == false, ""); | |
7658 | static_assert(is_same<int, decltype(v)>::value == false, ""); | |
7659 | auto ac = c; | |
7660 | auto av = v; | |
7661 | auto sumi = ac + av + 'x'; | |
7662 | auto sumf = ac + av + 1.0; | |
7663 | static_assert(is_same<int, decltype(ac)>::value == true, ""); | |
7664 | static_assert(is_same<int, decltype(av)>::value == true, ""); | |
7665 | static_assert(is_same<int, decltype(sumi)>::value == true, ""); | |
7666 | static_assert(is_same<int, decltype(sumf)>::value == false, ""); | |
7667 | static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); | |
7668 | return (sumf > 0.0) ? sumi : add(c, v); | |
7669 | } | |
7670 | ||
7671 | } | |
7672 | ||
7673 | namespace test_noexcept | |
7674 | { | |
7675 | ||
7676 | int f() { return 0; } | |
7677 | int g() noexcept { return 0; } | |
7678 | ||
7679 | static_assert(noexcept(f()) == false, ""); | |
7680 | static_assert(noexcept(g()) == true, ""); | |
7681 | ||
7682 | } | |
7683 | ||
7684 | namespace test_constexpr | |
7685 | { | |
7686 | ||
7687 | template < typename CharT > | |
7688 | unsigned long constexpr | |
7689 | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | |
7690 | { | |
7691 | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | |
7692 | } | |
7693 | ||
7694 | template < typename CharT > | |
7695 | unsigned long constexpr | |
7696 | strlen_c(const CharT *const s) noexcept | |
7697 | { | |
7698 | return strlen_c_r(s, 0UL); | |
7699 | } | |
7700 | ||
7701 | static_assert(strlen_c("") == 0UL, ""); | |
7702 | static_assert(strlen_c("1") == 1UL, ""); | |
7703 | static_assert(strlen_c("example") == 7UL, ""); | |
7704 | static_assert(strlen_c("another\0example") == 7UL, ""); | |
7705 | ||
7706 | } | |
7707 | ||
7708 | namespace test_rvalue_references | |
7709 | { | |
7710 | ||
7711 | template < int N > | |
7712 | struct answer | |
7713 | { | |
7714 | static constexpr int value = N; | |
7715 | }; | |
7716 | ||
7717 | answer<1> f(int&) { return answer<1>(); } | |
7718 | answer<2> f(const int&) { return answer<2>(); } | |
7719 | answer<3> f(int&&) { return answer<3>(); } | |
7720 | ||
7721 | void | |
7722 | test() | |
7723 | { | |
7724 | int i = 0; | |
7725 | const int c = 0; | |
7726 | static_assert(decltype(f(i))::value == 1, ""); | |
7727 | static_assert(decltype(f(c))::value == 2, ""); | |
7728 | static_assert(decltype(f(0))::value == 3, ""); | |
7729 | } | |
7730 | ||
7731 | } | |
7732 | ||
7733 | namespace test_uniform_initialization | |
7734 | { | |
7735 | ||
7736 | struct test | |
7737 | { | |
7738 | static const int zero {}; | |
7739 | static const int one {1}; | |
7740 | }; | |
7741 | ||
7742 | static_assert(test::zero == 0, ""); | |
7743 | static_assert(test::one == 1, ""); | |
7744 | ||
7745 | } | |
7746 | ||
7747 | namespace test_lambdas | |
7748 | { | |
7749 | ||
7750 | void | |
7751 | test1() | |
7752 | { | |
7753 | auto lambda1 = [](){}; | |
7754 | auto lambda2 = lambda1; | |
7755 | lambda1(); | |
7756 | lambda2(); | |
7757 | } | |
7758 | ||
7759 | int | |
7760 | test2() | |
7761 | { | |
7762 | auto a = [](int i, int j){ return i + j; }(1, 2); | |
7763 | auto b = []() -> int { return '0'; }(); | |
7764 | auto c = [=](){ return a + b; }(); | |
7765 | auto d = [&](){ return c; }(); | |
7766 | auto e = [a, &b](int x) mutable { | |
7767 | const auto identity = [](int y){ return y; }; | |
7768 | for (auto i = 0; i < a; ++i) | |
7769 | a += b--; | |
7770 | return x + identity(a + b); | |
7771 | }(0); | |
7772 | return a + b + c + d + e; | |
7773 | } | |
7774 | ||
7775 | int | |
7776 | test3() | |
7777 | { | |
7778 | const auto nullary = [](){ return 0; }; | |
7779 | const auto unary = [](int x){ return x; }; | |
7780 | using nullary_t = decltype(nullary); | |
7781 | using unary_t = decltype(unary); | |
7782 | const auto higher1st = [](nullary_t f){ return f(); }; | |
7783 | const auto higher2nd = [unary](nullary_t f1){ | |
7784 | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | |
7785 | }; | |
7786 | return higher1st(nullary) + higher2nd(nullary)(unary); | |
7787 | } | |
7788 | ||
7789 | } | |
7790 | ||
7791 | namespace test_variadic_templates | |
7792 | { | |
7793 | ||
7794 | template <int...> | |
7795 | struct sum; | |
7796 | ||
7797 | template <int N0, int... N1toN> | |
7798 | struct sum<N0, N1toN...> | |
7799 | { | |
7800 | static constexpr auto value = N0 + sum<N1toN...>::value; | |
7801 | }; | |
7802 | ||
7803 | template <> | |
7804 | struct sum<> | |
7805 | { | |
7806 | static constexpr auto value = 0; | |
7807 | }; | |
7808 | ||
7809 | static_assert(sum<>::value == 0, ""); | |
7810 | static_assert(sum<1>::value == 1, ""); | |
7811 | static_assert(sum<23>::value == 23, ""); | |
7812 | static_assert(sum<1, 2>::value == 3, ""); | |
7813 | static_assert(sum<5, 5, 11>::value == 21, ""); | |
7814 | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | |
7815 | ||
7816 | } | |
7817 | ||
7818 | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | |
7819 | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | |
7820 | // because of this. | |
7821 | namespace test_template_alias_sfinae | |
7822 | { | |
7823 | ||
7824 | struct foo {}; | |
7825 | ||
7826 | template<typename T> | |
7827 | using member = typename T::member_type; | |
7828 | ||
7829 | template<typename T> | |
7830 | void func(...) {} | |
7831 | ||
7832 | template<typename T> | |
7833 | void func(member<T>*) {} | |
7834 | ||
7835 | void test(); | |
7836 | ||
7837 | void test() { func<foo>(0); } | |
7838 | ||
7839 | } | |
7840 | ||
7841 | } // namespace cxx11 | |
7842 | ||
7843 | #endif // __cplusplus >= 201103L | |
7844 | ||
7845 | ||
7846 | ||
7847 | _ACEOF | |
7848 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7849 | eval $cachevar=yes | |
7850 | else | |
7851 | eval $cachevar=no | |
7852 | fi | |
7853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7854 | CXX="$ac_save_CXX" | |
7855 | fi | |
7856 | eval ac_res=\$$cachevar | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7858 | $as_echo "$ac_res" >&6; } | |
7859 | if eval test x\$$cachevar = xyes; then | |
7860 | CXX="$CXX $switch" | |
7861 | if test -n "$CXXCPP" ; then | |
7862 | CXXCPP="$CXXCPP $switch" | |
7863 | fi | |
7864 | ac_success=yes | |
7865 | break | |
7866 | fi | |
7867 | done | |
7868 | if test x$ac_success = xyes; then | |
7869 | break | |
7870 | fi | |
7871 | done | |
7872 | fi | |
7873 | CXX_FOR_BUILD="$CXX" | |
7874 | CXXFLAGS_FOR_BUILD="$CXXFLAGS" | |
7875 | CPPFLAGS_FOR_BUILD="$CPPFLAGS" | |
7876 | CXX="$ax_cv_cxx_compile_cxx11_orig_cxx" | |
7877 | CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags" | |
7878 | CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags" | |
7879 | ac_ext=c | |
7880 | ac_cpp='$CPP $CPPFLAGS' | |
7881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7884 | ||
7885 | if test x$ax_cxx_compile_cxx11_required = xtrue; then | |
7886 | if test x$ac_success = xno; then | |
7887 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 | |
7888 | fi | |
7889 | fi | |
7890 | if test x$ac_success = xno; then | |
7891 | HAVE_CXX11_FOR_BUILD=0 | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 | |
7893 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} | |
7894 | else | |
7895 | HAVE_CXX11_FOR_BUILD=1 | |
7896 | ||
7897 | $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h | |
7898 | ||
7899 | fi | |
7900 | ||
7901 | ||
7902 | fi | |
7903 | fi | |
7904 | ||
7905 | # Check whether --enable-pgo-build was given. | |
7906 | if test "${enable_pgo_build+set}" = set; then : | |
7907 | enableval=$enable_pgo_build; enable_pgo_build=$enableval | |
7908 | else | |
7909 | enable_pgo_build=no | |
7910 | fi | |
7911 | ||
7912 | ||
7913 | # Issue errors and warnings for invalid/strange PGO build combinations. | |
7914 | case "$have_compiler:$host:$target:$enable_pgo_build" in | |
7915 | *:*:*:no) ;; | |
7916 | ||
7917 | # Allow the PGO build only if we aren't building a compiler and | |
7918 | # we are in a native configuration. | |
7919 | no:$build:$build:yes | no:$build:$build:lto) ;; | |
7920 | ||
7921 | # Disallow the PGO bootstrap if we are building a compiler. | |
7922 | yes:*:*:yes | yes:*:*:lto) | |
7923 | as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;; | |
7924 | ||
7925 | *) | |
7926 | as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5 | |
7927 | ;; | |
7928 | esac | |
7929 | ||
7930 | if test "$enable_pgo_build" != "no"; then | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5 | |
7932 | $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; } | |
7933 | old_CFLAGS="$CFLAGS" | |
7934 | PGO_BUILD_GEN_CFLAGS="-fprofile-generate" | |
7935 | CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS" | |
7936 | ||
7937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7938 | /* end confdefs.h. */ | |
7939 | int foo; | |
7940 | _ACEOF | |
7941 | if ac_fn_c_try_compile "$LINENO"; then : | |
7942 | ||
7943 | else | |
7944 | PGO_BUILD_GEN_CFLAGS= | |
7945 | fi | |
7946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7947 | CFLAGS="$old_CFLAGS" | |
7948 | if test -n "$PGO_BUILD_GEN_CFLAGS"; then | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7950 | $as_echo "yes" >&6; } | |
7951 | PGO_BUILD_USE_CFLAGS="-fprofile-use" | |
7952 | else | |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7954 | $as_echo "no" >&6; } | |
7955 | as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5 | |
7956 | fi | |
7957 | ||
7958 | if test "$enable_pgo_build" = "lto"; then | |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5 | |
7960 | $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; } | |
7961 | old_CFLAGS="$CFLAGS" | |
7962 | PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects" | |
7963 | CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS" | |
7964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7965 | /* end confdefs.h. */ | |
7966 | int foo; | |
7967 | _ACEOF | |
7968 | if ac_fn_c_try_compile "$LINENO"; then : | |
7969 | ||
7970 | else | |
7971 | PGO_BUILD_LTO_CFLAGS= | |
7972 | fi | |
7973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7974 | CFLAGS="$old_CFLAGS" | |
7975 | if test -n "$PGO_BUILD_LTO_CFLAGS"; then | |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7977 | $as_echo "yes" >&6; } | |
7978 | else | |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7980 | $as_echo "no" >&6; } | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5 | |
7982 | $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;} | |
7983 | fi | |
7984 | fi | |
7985 | fi | |
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | # Used for setting $lt_cv_objdir | |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7992 | $as_echo_n "checking for objdir... " >&6; } | |
7993 | if ${lt_cv_objdir+:} false; then : | |
7994 | $as_echo_n "(cached) " >&6 | |
7995 | else | |
7996 | rm -f .libs 2>/dev/null | |
7997 | mkdir .libs 2>/dev/null | |
7998 | if test -d .libs; then | |
7999 | lt_cv_objdir=.libs | |
8000 | else | |
8001 | # MS-DOS does not allow filenames that begin with a dot. | |
8002 | lt_cv_objdir=_libs | |
8003 | fi | |
8004 | rmdir .libs 2>/dev/null | |
8005 | fi | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8007 | $as_echo "$lt_cv_objdir" >&6; } | |
8008 | objdir=$lt_cv_objdir | |
8009 | ||
8010 | ||
8011 | ||
8012 | ||
8013 | ||
8014 | cat >>confdefs.h <<_ACEOF | |
8015 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8016 | _ACEOF | |
8017 | ||
8018 | ||
8019 | ||
8020 | # Check for GMP, MPFR and MPC | |
8021 | gmplibs="-lmpc -lmpfr -lgmp" | |
8022 | gmpinc= | |
8023 | have_gmp=no | |
8024 | ||
8025 | # Specify a location for mpc | |
8026 | # check for this first so it ends up on the link line before mpfr. | |
8027 | ||
8028 | # Check whether --with-mpc was given. | |
8029 | if test "${with_mpc+set}" = set; then : | |
8030 | withval=$with_mpc; | |
8031 | fi | |
8032 | ||
8033 | ||
8034 | # Check whether --with-mpc-include was given. | |
8035 | if test "${with_mpc_include+set}" = set; then : | |
8036 | withval=$with_mpc_include; | |
8037 | fi | |
8038 | ||
8039 | ||
8040 | # Check whether --with-mpc-lib was given. | |
8041 | if test "${with_mpc_lib+set}" = set; then : | |
8042 | withval=$with_mpc_lib; | |
8043 | fi | |
8044 | ||
8045 | ||
8046 | if test "x$with_mpc" != x; then | |
8047 | gmplibs="-L$with_mpc/lib $gmplibs" | |
8048 | gmpinc="-I$with_mpc/include $gmpinc" | |
8049 | fi | |
8050 | if test "x$with_mpc_include" != x; then | |
8051 | gmpinc="-I$with_mpc_include $gmpinc" | |
8052 | fi | |
8053 | if test "x$with_mpc_lib" != x; then | |
8054 | gmplibs="-L$with_mpc_lib $gmplibs" | |
8055 | fi | |
8056 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
8057 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" | |
8058 | gmpinc='-I$$s/mpc/src '"$gmpinc" | |
8059 | # Do not test the mpc version. Assume that it is sufficient, since | |
8060 | # it is in the source tree, and the library has not been built yet | |
8061 | # but it would be included on the link line in the version check below | |
8062 | # hence making the test fail. | |
8063 | have_gmp=yes | |
8064 | fi | |
8065 | ||
8066 | # Specify a location for mpfr | |
8067 | # check for this first so it ends up on the link line before gmp. | |
8068 | ||
8069 | # Check whether --with-mpfr was given. | |
8070 | if test "${with_mpfr+set}" = set; then : | |
8071 | withval=$with_mpfr; | |
8072 | fi | |
c6b750e1 | 8073 | |
11b04d1f | 8074 | |
e552509b | 8075 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
8076 | if test "${with_mpfr_include+set}" = set; then : |
8077 | withval=$with_mpfr_include; | |
8078 | fi | |
c6b750e1 | 8079 | |
8a0d8a5c | 8080 | |
e552509b | 8081 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
8082 | if test "${with_mpfr_lib+set}" = set; then : |
8083 | withval=$with_mpfr_lib; | |
8084 | fi | |
8a0d8a5c | 8085 | |
11b04d1f DD |
8086 | |
8087 | if test "x$with_mpfr" != x; then | |
8088 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 8089 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 8090 | fi |
8a0d8a5c | 8091 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 8092 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
8093 | fi |
8094 | if test "x$with_mpfr_lib" != x; then | |
8095 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
8096 | fi | |
4b900473 | 8097 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 | 8098 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
05a13254 | 8099 | if ! test -d ${srcdir}/mpfr/src; then |
d0ac1c44 | 8100 | as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 |
58b1dd21 | 8101 | fi |
05a13254 NC |
8102 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
8103 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
8104 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
4b900473 PB |
8105 | # Do not test the mpfr version. Assume that it is sufficient, since |
8106 | # it is in the source tree, and the library has not been built yet | |
8107 | # but it would be included on the link line in the version check below | |
8108 | # hence making the test fail. | |
8109 | have_gmp=yes | |
8110 | fi | |
11b04d1f | 8111 | |
4b1cb4fe | 8112 | # Specify a location for gmp |
c6b750e1 | 8113 | |
81ecdfbb RW |
8114 | # Check whether --with-gmp was given. |
8115 | if test "${with_gmp+set}" = set; then : | |
8116 | withval=$with_gmp; | |
8117 | fi | |
c6b750e1 | 8118 | |
4b1cb4fe | 8119 | |
e552509b | 8120 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
8121 | if test "${with_gmp_include+set}" = set; then : |
8122 | withval=$with_gmp_include; | |
8123 | fi | |
c6b750e1 | 8124 | |
8a0d8a5c | 8125 | |
e552509b | 8126 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
8127 | if test "${with_gmp_lib+set}" = set; then : |
8128 | withval=$with_gmp_lib; | |
8129 | fi | |
8a0d8a5c PB |
8130 | |
8131 | ||
4b1cb4fe | 8132 | |
11b04d1f DD |
8133 | if test "x$with_gmp" != x; then |
8134 | gmplibs="-L$with_gmp/lib $gmplibs" | |
8135 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 8136 | fi |
8a0d8a5c PB |
8137 | if test "x$with_gmp_include" != x; then |
8138 | gmpinc="-I$with_gmp_include $gmpinc" | |
8139 | fi | |
8140 | if test "x$with_gmp_lib" != x; then | |
8141 | gmplibs="-L$with_gmp_lib $gmplibs" | |
8142 | fi | |
4b900473 | 8143 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 8144 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 8145 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 8146 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 8147 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 8148 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
8149 | # Do not test the gmp version. Assume that it is sufficient, since |
8150 | # it is in the source tree, and the library has not been built yet | |
8151 | # but it would be included on the link line in the version check below | |
8152 | # hence making the test fail. | |
8153 | have_gmp=yes | |
8154 | fi | |
4b1cb4fe | 8155 | |
ceb92e78 | 8156 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
8157 | have_gmp=yes |
8158 | saved_CFLAGS="$CFLAGS" | |
8159 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
8160 | # Check for the recommended and required versions of GMP. |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
8162 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
af019bfd | 8163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a6b5846e KG |
8164 | /* end confdefs.h. */ |
8165 | #include "gmp.h" | |
8166 | int | |
8167 | main () | |
8168 | { | |
8169 | ||
8170 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
8171 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 8172 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
8173 | choke me |
8174 | #endif | |
8175 | ||
8176 | ; | |
8177 | return 0; | |
8178 | } | |
8179 | _ACEOF | |
8180 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 8181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8182 | /* end confdefs.h. */ |
a6b5846e | 8183 | #include <gmp.h> |
c6b750e1 DJ |
8184 | int |
8185 | main () | |
8186 | { | |
4b1cb4fe | 8187 | |
a6b5846e KG |
8188 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
8189 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8190 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
8191 | choke me |
8192 | #endif | |
c6b750e1 DJ |
8193 | |
8194 | ; | |
8195 | return 0; | |
8196 | } | |
8197 | _ACEOF | |
81ecdfbb RW |
8198 | if ac_fn_c_try_compile "$LINENO"; then : |
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8200 | $as_echo "yes" >&6; } | |
a6b5846e KG |
8201 | else |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8203 | $as_echo "buggy but acceptable" >&6; } | |
8204 | fi | |
8205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 8206 | else |
81ecdfbb RW |
8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8208 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8209 | fi |
81ecdfbb | 8210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 8211 | |
e8a5fa9c | 8212 | # If we have GMP, check the MPFR version. |
4b900473 | 8213 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
8214 | # Check for the recommended and required versions of MPFR. |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
8216 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 8217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 8218 | /* end confdefs.h. */ |
9b134994 | 8219 | #include <gmp.h> |
4b900473 | 8220 | #include <mpfr.h> |
c6b750e1 DJ |
8221 | int |
8222 | main () | |
8223 | { | |
9b134994 | 8224 | |
228cf97d | 8225 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0) |
4b900473 PB |
8226 | choke me |
8227 | #endif | |
c6b750e1 DJ |
8228 | |
8229 | ; | |
8230 | return 0; | |
8231 | } | |
8232 | _ACEOF | |
81ecdfbb RW |
8233 | if ac_fn_c_try_compile "$LINENO"; then : |
8234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 8235 | /* end confdefs.h. */ |
4b1cb4fe | 8236 | #include <gmp.h> |
4b900473 | 8237 | #include <mpfr.h> |
c6b750e1 DJ |
8238 | int |
8239 | main () | |
8240 | { | |
9dbaa842 | 8241 | |
228cf97d | 8242 | #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6) |
4b900473 PB |
8243 | choke me |
8244 | #endif | |
e8a5fa9c RW |
8245 | |
8246 | ; | |
8247 | return 0; | |
8248 | } | |
8249 | _ACEOF | |
81ecdfbb RW |
8250 | if ac_fn_c_try_compile "$LINENO"; then : |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8252 | $as_echo "yes" >&6; } | |
e8a5fa9c | 8253 | else |
81ecdfbb RW |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
8255 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 8256 | fi |
81ecdfbb | 8257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 8258 | else |
81ecdfbb RW |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8260 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 8261 | fi |
81ecdfbb | 8262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8263 | fi |
8264 | ||
8265 | # Check for the MPC header version. | |
d9b76ff9 | 8266 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 8267 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
8269 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
8270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
8271 | /* end confdefs.h. */ |
8272 | #include <mpc.h> | |
8273 | int | |
8274 | main () | |
8275 | { | |
8276 | ||
a6b5846e KG |
8277 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
8278 | choke me | |
8279 | #endif | |
8280 | ||
8281 | ; | |
8282 | return 0; | |
8283 | } | |
8284 | _ACEOF | |
8285 | if ac_fn_c_try_compile "$LINENO"; then : | |
8286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8287 | /* end confdefs.h. */ | |
8288 | #include <mpc.h> | |
8289 | int | |
8290 | main () | |
8291 | { | |
8292 | ||
8293 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
8294 | choke me |
8295 | #endif | |
8296 | ||
8297 | ; | |
8298 | return 0; | |
8299 | } | |
8300 | _ACEOF | |
81ecdfbb RW |
8301 | if ac_fn_c_try_compile "$LINENO"; then : |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 8303 | $as_echo "yes" >&6; } |
a6b5846e KG |
8304 | else |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
8306 | $as_echo "buggy but acceptable" >&6; } | |
8307 | fi | |
8308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 8309 | else |
81ecdfbb | 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 8311 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 8312 | fi |
81ecdfbb | 8313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
8314 | fi |
8315 | ||
8316 | # Now check the MPFR library. | |
8317 | if test x"$have_gmp" = xyes; then | |
8318 | saved_LIBS="$LIBS" | |
8319 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
8321 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 8322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 8323 | /* end confdefs.h. */ |
d9b76ff9 | 8324 | #include <mpc.h> |
e8a5fa9c RW |
8325 | int |
8326 | main () | |
8327 | { | |
8328 | ||
8329 | mpfr_t n; | |
8330 | mpfr_t x; | |
d9b76ff9 | 8331 | mpc_t c; |
e8a5fa9c RW |
8332 | int t; |
8333 | mpfr_init (n); | |
8334 | mpfr_init (x); | |
228cf97d AM |
8335 | mpfr_atan2 (n, n, x, MPFR_RNDN); |
8336 | mpfr_erfc (n, x, MPFR_RNDN); | |
8337 | mpfr_subnormalize (x, t, MPFR_RNDN); | |
d9b76ff9 KG |
8338 | mpfr_clear(n); |
8339 | mpfr_clear(x); | |
8340 | mpc_init2 (c, 53); | |
8341 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
8342 | mpc_cosh (c, c, MPC_RNDNN); | |
8343 | mpc_pow (c, c, c, MPC_RNDNN); | |
8344 | mpc_acosh (c, c, MPC_RNDNN); | |
8345 | mpc_clear (c); | |
c6b750e1 DJ |
8346 | |
8347 | ; | |
8348 | return 0; | |
8349 | } | |
8350 | _ACEOF | |
81ecdfbb RW |
8351 | if ac_fn_c_try_link "$LINENO"; then : |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8353 | $as_echo "yes" >&6; } | |
c6b750e1 | 8354 | else |
81ecdfbb RW |
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8356 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 8357 | fi |
81ecdfbb RW |
8358 | rm -f core conftest.err conftest.$ac_objext \ |
8359 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
8360 | LIBS="$saved_LIBS" |
8361 | fi | |
8362 | ||
4b900473 | 8363 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 8364 | |
a6b5846e KG |
8365 | # The library versions listed in the error message below should match |
8366 | # the HARD-minimums enforced above. | |
4b900473 | 8367 | if test x$have_gmp != xyes; then |
228cf97d | 8368 | as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
8369 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
8370 | their locations. Source code for these libraries can be found at | |
8371 | their respective hosting sites as well as at | |
228cf97d | 8372 | https://gcc.gnu.org/pub/gcc/infrastructure/. See also |
d9b76ff9 KG |
8373 | http://gcc.gnu.org/install/prerequisites.html for additional info. If |
8374 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
8375 | make sure that you have installed both the libraries and the header | |
8376 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 8377 | fi |
9dbaa842 DD |
8378 | fi |
8379 | ||
e8a5fa9c RW |
8380 | # Flags needed for both GMP, MPFR and/or MPC. |
8381 | ||
8382 | ||
8383 | ||
4b1cb4fe DD |
8384 | |
8385 | ||
8386 | ||
7ec59b9e | 8387 | |
b3676d82 | 8388 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8389 | |
b3676d82 EB |
8390 | # Check whether --with-stage1-libs was given. |
8391 | if test "${with_stage1_libs+set}" = set; then : | |
8392 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8393 | stage1_libs= | |
e8a5fa9c | 8394 | else |
b3676d82 | 8395 | stage1_libs=$withval |
e8a5fa9c RW |
8396 | fi |
8397 | else | |
68996839 | 8398 | stage1_libs= |
81ecdfbb RW |
8399 | fi |
8400 | ||
e8a5fa9c RW |
8401 | |
8402 | ||
c1a5d03a TT |
8403 | # Whether or not to use -static-libstdc++ and -static-libgcc. The |
8404 | # default is yes if gcc is being built; no otherwise. The reason for | |
8405 | # this default is that gdb is sometimes linked against GNU Source | |
8406 | # Highlight, which is a shared library that uses C++ exceptions. In | |
8407 | # this case, -static-libstdc++ will cause crashes. | |
8408 | ||
8409 | # Check whether --with-static-standard-libraries was given. | |
8410 | if test "${with_static_standard_libraries+set}" = set; then : | |
8411 | withval=$with_static_standard_libraries; | |
8412 | else | |
8413 | with_static_standard_libraries=auto | |
8414 | fi | |
8415 | ||
8416 | if test "$with_static_standard_libraries" = auto; then | |
8417 | with_static_standard_libraries=$have_compiler | |
8418 | fi | |
8419 | ||
b3676d82 | 8420 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 8421 | |
b3676d82 EB |
8422 | # Check whether --with-stage1-ldflags was given. |
8423 | if test "${with_stage1_ldflags+set}" = set; then : | |
8424 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8425 | stage1_ldflags= | |
e8a5fa9c | 8426 | else |
b3676d82 | 8427 | stage1_ldflags=$withval |
e8a5fa9c RW |
8428 | fi |
8429 | else | |
b3676d82 EB |
8430 | stage1_ldflags= |
8431 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
8432 | # if supported. But if the user explicitly specified the libraries to use, | |
8433 | # trust that they are doing what they want. | |
c1a5d03a TT |
8434 | if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \ |
8435 | -a "$have_static_libs" = yes; then | |
b3676d82 EB |
8436 | stage1_ldflags="-static-libstdc++ -static-libgcc" |
8437 | fi | |
81ecdfbb RW |
8438 | fi |
8439 | ||
e8a5fa9c RW |
8440 | |
8441 | ||
68996839 | 8442 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 8443 | |
81ecdfbb RW |
8444 | # Check whether --with-boot-libs was given. |
8445 | if test "${with_boot_libs+set}" = set; then : | |
8446 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
8447 | poststage1_libs= |
8448 | else | |
8449 | poststage1_libs=$withval | |
8450 | fi | |
8451 | else | |
68996839 | 8452 | poststage1_libs= |
81ecdfbb RW |
8453 | fi |
8454 | ||
e8a5fa9c RW |
8455 | |
8456 | ||
143754cd NC |
8457 | # Linker flags to use for stage2 and later builds. |
8458 | ||
8459 | # Check whether --with-boot-ldflags was given. | |
8460 | if test "${with_boot_ldflags+set}" = set; then : | |
8461 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
8462 | poststage1_ldflags= | |
8463 | else | |
8464 | poststage1_ldflags=$withval | |
8465 | fi | |
8466 | else | |
8467 | poststage1_ldflags= | |
4f11b223 ILT |
8468 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
8469 | # statically. But if the user explicitly specified the libraries to | |
8470 | # use, trust that they are doing what they want. | |
8471 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
8472 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
8473 | fi | |
8474 | fi | |
8475 | ||
8476 | ||
8477 | ||
4849dfd8 | 8478 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 8479 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
8480 | |
8481 | ||
7ec59b9e L |
8482 | # Check whether --with-isl was given. |
8483 | if test "${with_isl+set}" = set; then : | |
8484 | withval=$with_isl; | |
81ecdfbb | 8485 | fi |
e28c595f | 8486 | |
e28c595f | 8487 | |
1b6c0831 | 8488 | # Treat --without-isl as a request to disable |
8e71395b | 8489 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 8490 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 8491 | # Check for isl |
8e71395b L |
8492 | |
8493 | ||
7ec59b9e L |
8494 | # Check whether --with-isl-include was given. |
8495 | if test "${with_isl_include+set}" = set; then : | |
8496 | withval=$with_isl_include; | |
81ecdfbb RW |
8497 | fi |
8498 | ||
e28c595f | 8499 | |
7ec59b9e L |
8500 | # Check whether --with-isl-lib was given. |
8501 | if test "${with_isl_lib+set}" = set; then : | |
8502 | withval=$with_isl_lib; | |
81ecdfbb | 8503 | fi |
e28c595f | 8504 | |
e28c595f | 8505 | |
7ec59b9e L |
8506 | # Check whether --enable-isl-version-check was given. |
8507 | if test "${enable_isl_version_check+set}" = set; then : | |
8508 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
8509 | else | |
8510 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
8511 | fi |
8512 | ||
8513 | ||
7ec59b9e L |
8514 | # Initialize isllibs and islinc. |
8515 | case $with_isl in | |
8516 | no) | |
8517 | isllibs= | |
8518 | islinc= | |
8519 | ;; | |
8520 | "" | yes) | |
8521 | ;; | |
8522 | *) | |
8523 | isllibs="-L$with_isl/lib" | |
8524 | islinc="-I$with_isl/include" | |
8525 | ;; | |
8526 | esac | |
8527 | if test "x${with_isl_include}" != x ; then | |
8528 | islinc="-I$with_isl_include" | |
8529 | fi | |
8530 | if test "x${with_isl_lib}" != x; then | |
8531 | isllibs="-L$with_isl_lib" | |
8532 | fi | |
8533 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
8534 | && test -d ${srcdir}/isl; then | |
8535 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
8536 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
8537 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
8539 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 8540 | fi |
b123da99 | 8541 | |
1b6c0831 | 8542 | isllibs="${isllibs} -lisl" |
b123da99 | 8543 | |
e28c595f | 8544 | |
b3fc79f8 JBG |
8545 | |
8546 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
8547 | _isl_saved_CFLAGS=$CFLAGS | |
8548 | _isl_saved_LDFLAGS=$LDFLAGS | |
8549 | _isl_saved_LIBS=$LIBS | |
8550 | ||
8551 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
8552 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
8553 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 8554 | |
bf41f30d NC |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5 |
8556 | $as_echo_n "checking for isl 0.15 or later... " >&6; } | |
1b6c0831 | 8557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 8558 | /* end confdefs.h. */ |
bf41f30d | 8559 | #include <isl/schedule.h> |
b3fc79f8 JBG |
8560 | int |
8561 | main () | |
8562 | { | |
bf41f30d | 8563 | isl_options_set_schedule_serialize_sccs (NULL, 0); |
b3fc79f8 JBG |
8564 | ; |
8565 | return 0; | |
8566 | } | |
8567 | _ACEOF | |
1b6c0831 | 8568 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
8569 | gcc_cv_isl=yes |
8570 | else | |
8571 | gcc_cv_isl=no | |
8572 | fi | |
1b6c0831 L |
8573 | rm -f core conftest.err conftest.$ac_objext \ |
8574 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
8576 | $as_echo "$gcc_cv_isl" >&6; } | |
8577 | ||
4849dfd8 | 8578 | if test "${gcc_cv_isl}" = no ; then |
bf41f30d NC |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5 |
8580 | $as_echo "required isl version is 0.15 or later" >&6; } | |
4849dfd8 NC |
8581 | fi |
8582 | ||
b3fc79f8 JBG |
8583 | CFLAGS=$_isl_saved_CFLAGS |
8584 | LDFLAGS=$_isl_saved_LDFLAGS | |
8585 | LIBS=$_isl_saved_LIBS | |
8586 | fi | |
8587 | ||
8588 | ||
e28c595f | 8589 | |
e28c595f | 8590 | |
7ec59b9e L |
8591 | |
8592 | ||
7ec59b9e L |
8593 | if test "x${with_isl}" = xno; then |
8594 | graphite_requested=no | |
8595 | elif test "x${with_isl}" != x \ | |
8596 | || test "x${with_isl_include}" != x \ | |
8597 | || test "x${with_isl_lib}" != x ; then | |
8598 | graphite_requested=yes | |
8599 | else | |
8600 | graphite_requested=no | |
b123da99 | 8601 | fi |
e28c595f | 8602 | |
e28c595f JM |
8603 | |
8604 | ||
7ec59b9e L |
8605 | if test "${gcc_cv_isl}" = no ; then |
8606 | isllibs= | |
8607 | islinc= | |
8608 | fi | |
e28c595f | 8609 | |
7ec59b9e L |
8610 | if test "${graphite_requested}" = yes \ |
8611 | && test "x${isllibs}" = x \ | |
8612 | && test "x${islinc}" = x ; then | |
e28c595f | 8613 | |
d0ac1c44 | 8614 | as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 8615 | fi |
e552509b | 8616 | |
e28c595f | 8617 | |
e552509b ILT |
8618 | fi |
8619 | ||
4849dfd8 | 8620 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 8621 | if test "x$with_isl" = xno || |
8e71395b | 8622 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 8623 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 8624 | islinc= |
7ec59b9e L |
8625 | fi |
8626 | ||
8e71395b L |
8627 | |
8628 | ||
8629 | ||
700d40ca ILT |
8630 | # Check for LTO support. |
8631 | # Check whether --enable-lto was given. | |
8632 | if test "${enable_lto+set}" = set; then : | |
8633 | enableval=$enable_lto; enable_lto=$enableval | |
8634 | else | |
8635 | enable_lto=yes; default_enable_lto=yes | |
8636 | fi | |
8637 | ||
8638 | ||
143754cd | 8639 | |
e49e5c92 DK |
8640 | |
8641 | ||
8642 | target_elf=no | |
8643 | case $target in | |
8644 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 8645 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
8646 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8647 | nvptx-*-none) | |
e49e5c92 DK |
8648 | target_elf=no |
8649 | ;; | |
8650 | *) | |
8651 | target_elf=yes | |
8652 | ;; | |
8653 | esac | |
8654 | ||
8655 | if test $target_elf = yes; then : | |
74cea91b DK |
8656 | # ELF platforms build the lto-plugin always. |
8657 | build_lto_plugin=yes | |
e49e5c92 | 8658 | |
e49e5c92 DK |
8659 | else |
8660 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 8661 | case $target in |
bf41f30d | 8662 | *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 8663 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
8664 | *) enable_lto=no ;; |
8665 | esac | |
e49e5c92 | 8666 | else |
29821356 RW |
8667 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
8668 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
8669 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
8670 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
8671 | # -flto it won't be needed until after installation anyway. | |
8672 | case $target in | |
52cf9762 | 8673 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 | 8674 | *) if test x"$enable_lto" = x"yes"; then |
d0ac1c44 | 8675 | as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5 |
e49e5c92 DK |
8676 | fi |
8677 | ;; | |
8678 | esac | |
8679 | fi | |
a8eb3f0a | 8680 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 8681 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 8682 | case $target in |
74cea91b | 8683 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
8684 | *) ;; |
8685 | esac | |
74cea91b | 8686 | |
e49e5c92 DK |
8687 | fi |
8688 | ||
700d40ca | 8689 | |
1b6c0831 L |
8690 | # Check whether --enable-linker-plugin-configure-flags was given. |
8691 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
8692 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
8693 | else | |
8694 | extra_linker_plugin_configure_flags= | |
8695 | fi | |
8696 | ||
8697 | ||
8698 | # Check whether --enable-linker-plugin-flags was given. | |
8699 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
8700 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
8701 | else | |
8702 | extra_linker_plugin_flags= | |
8703 | fi | |
8704 | ||
8705 | ||
8706 | ||
bf41f30d NC |
8707 | # Enable --enable-host-shared. |
8708 | # Checked early to determine whether jit is an 'all' language | |
8709 | # Check whether --enable-host-shared was given. | |
8710 | if test "${enable_host_shared+set}" = set; then : | |
8711 | enableval=$enable_host_shared; host_shared=$enableval | |
228cf97d AM |
8712 | case $host in |
8713 | x86_64-*-darwin* | aarch64-*-darwin*) | |
8714 | if test x$host_shared != xyes ; then | |
8715 | # PIC is the default, and actually cannot be switched off. | |
8716 | echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2 | |
8717 | host_shared=yes | |
8718 | fi ;; | |
8719 | *) ;; | |
8720 | esac | |
bf41f30d | 8721 | else |
228cf97d AM |
8722 | case $host in |
8723 | x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; | |
8724 | *) host_shared=no ;; | |
8725 | esac | |
bf41f30d NC |
8726 | fi |
8727 | ||
8728 | ||
e28c595f | 8729 | |
7ec59b9e | 8730 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 8731 | stage1_languages=,c, |
1d39f329 | 8732 | |
e8a5fa9c | 8733 | # Target libraries that we bootstrap. |
2aa2364a | 8734 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 8735 | |
9e07f89d NN |
8736 | # Figure out what language subdirectories are present. |
8737 | # Look if the user specified --enable-languages="..."; if not, use | |
8738 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8739 | # go away some day. | |
8740 | # NB: embedded tabs in this IF block -- do not untabify | |
8741 | if test -d ${srcdir}/gcc; then | |
8742 | if test x"${enable_languages+set}" != xset; then | |
8743 | if test x"${LANGUAGES+set}" = xset; then | |
8744 | enable_languages="${LANGUAGES}" | |
136bb21f | 8745 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d | 8746 | else |
bf41f30d | 8747 | enable_languages=default |
9e07f89d NN |
8748 | fi |
8749 | else | |
8750 | if test x"${enable_languages}" = x || | |
8751 | test x"${enable_languages}" = xyes; | |
8752 | then | |
136bb21f | 8753 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
8754 | exit 1 |
8755 | fi | |
8756 | fi | |
8757 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
8758 | ||
096f7d00 DE |
8759 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
8760 | # and make the substitution. | |
8761 | case ,${enable_languages}, in | |
8762 | *,f95,*) | |
136bb21f | 8763 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
8764 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
8765 | ;; | |
8766 | esac | |
8767 | ||
7ec59b9e L |
8768 | # If bootstrapping, C++ must be enabled. |
8769 | case ",$enable_languages,:$enable_bootstrap" in | |
8770 | *,c++,*:*) ;; | |
8771 | *:yes) | |
ffdd6afc ILT |
8772 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
8773 | enable_languages="${enable_languages},c++" | |
8774 | else | |
d0ac1c44 | 8775 | as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
8776 | fi |
8777 | ;; | |
8778 | esac | |
8779 | ||
9e07f89d NN |
8780 | # First scan to see if an enabled language requires some other language. |
8781 | # We assume that a given config-lang.in will list all the language | |
8782 | # front ends it requires, even if some are required indirectly. | |
8783 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
8784 | case ${lang_frag} in | |
8785 | ..) ;; | |
8786 | # The odd quoting in the next line works around | |
8787 | # an apparent bug in bash 1.12 on linux. | |
8788 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8789 | *) | |
e552509b ILT |
8790 | # From the config-lang.in, get $language, $lang_requires, and |
8791 | # $lang_requires_boot_languages. | |
9e07f89d NN |
8792 | language= |
8793 | lang_requires= | |
e552509b | 8794 | lang_requires_boot_languages= |
bf41f30d NC |
8795 | # set srcdir during sourcing lang_frag to the gcc dir. |
8796 | # Sadly overriding srcdir on the . line doesn't work in plain sh as it | |
8797 | # polutes this shell | |
8798 | saved_srcdir=${srcdir} | |
8799 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8800 | srcdir=${saved_srcdir} | |
e552509b | 8801 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
8802 | case ,${enable_languages}, in |
8803 | *,$other,*) ;; | |
bf41f30d | 8804 | *,default,*) ;; |
9e07f89d NN |
8805 | *,all,*) ;; |
8806 | *,$language,*) | |
8807 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
8808 | enable_languages="${enable_languages},${other}" | |
8809 | ;; | |
8810 | esac | |
8811 | done | |
e552509b ILT |
8812 | for other in ${lang_requires_boot_languages} ; do |
8813 | if test "$other" != "c"; then | |
8814 | case ,${enable_stage1_languages}, in | |
8815 | *,$other,*) ;; | |
bf41f30d | 8816 | *,default,*) ;; |
e552509b ILT |
8817 | *,all,*) ;; |
8818 | *) | |
8819 | case ,${enable_languages}, in | |
8820 | *,$language,*) | |
8821 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
8822 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
8823 | ;; | |
8824 | esac | |
8825 | ;; | |
8826 | esac | |
8827 | fi | |
8828 | done | |
9e07f89d NN |
8829 | ;; |
8830 | esac | |
8831 | done | |
8832 | ||
9b134994 | 8833 | new_enable_languages=,c, |
700d40ca ILT |
8834 | |
8835 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 8836 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
8837 | case ,${enable_languages}, in |
8838 | *,lto,*) ;; | |
8839 | *) enable_languages="${enable_languages},lto" ;; | |
8840 | esac | |
a8eb3f0a | 8841 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 8842 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
8843 | fi |
8844 | fi | |
8845 | ||
1b6c0831 L |
8846 | # If we're building an offloading compiler, add the LTO front end. |
8847 | if test x"$enable_as_accelerator_for" != x ; then | |
8848 | case ,${enable_languages}, in | |
8849 | *,lto,*) ;; | |
8850 | *) enable_languages="${enable_languages},lto" ;; | |
8851 | esac | |
8852 | fi | |
700d40ca | 8853 | |
bf41f30d | 8854 | missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 8855 | potential_languages=,c, |
9e07f89d | 8856 | |
9e1a94f4 ILT |
8857 | enabled_target_libs= |
8858 | disabled_target_libs= | |
8859 | ||
9e07f89d NN |
8860 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
8861 | case ${lang_frag} in | |
8862 | ..) ;; | |
8863 | # The odd quoting in the next line works around | |
8864 | # an apparent bug in bash 1.12 on linux. | |
8865 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
8866 | *) | |
c6b750e1 | 8867 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 8868 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
8869 | language= |
8870 | target_libs= | |
8871 | lang_dirs= | |
64ce424c | 8872 | subdir_requires= |
9b134994 PB |
8873 | boot_language=no |
8874 | build_by_default=yes | |
bf41f30d NC |
8875 | # set srcdir during sourcing. See above about save & restore |
8876 | saved_srcdir=${srcdir} | |
8877 | srcdir=${srcdir}/gcc . ${lang_frag} | |
8878 | srcdir=${saved_srcdir} | |
9b134994 PB |
8879 | if test x${language} = x; then |
8880 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
8881 | exit 1 | |
8882 | fi | |
8883 | ||
ffdd6afc | 8884 | if test "$language" = "c++"; then |
7ec59b9e | 8885 | boot_language=yes |
e8a5fa9c RW |
8886 | fi |
8887 | ||
8e71395b | 8888 | add_this_lang=no |
bf41f30d NC |
8889 | # C is always enabled, so no need to add it again |
8890 | if test "$language" != "c"; then | |
8891 | case ,${enable_languages}, in | |
8892 | *,${language},*) | |
8893 | # Language was explicitly selected; include it | |
7ec59b9e | 8894 | add_this_lang=yes |
bf41f30d NC |
8895 | ;; |
8896 | *,all,*) | |
8897 | # All languages are enabled | |
8898 | add_this_lang=all | |
8899 | ;; | |
8900 | *,default,*) | |
8901 | # 'default' was selected, select it if it is a default language | |
8e71395b | 8902 | add_this_lang=${build_by_default} |
bf41f30d NC |
8903 | ;; |
8904 | esac | |
8905 | fi | |
4b1cb4fe | 8906 | |
64ce424c | 8907 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 8908 | for i in $subdir_requires; do |
3d3adb43 | 8909 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
bf41f30d NC |
8910 | case ${add_this_lang} in |
8911 | yes) | |
64ce424c | 8912 | # Specifically requested language; tell them. |
d0ac1c44 | 8913 | as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c | 8914 | ;; |
bf41f30d NC |
8915 | all) |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5 | |
8917 | $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;} | |
8918 | add_this_lang=unsupported | |
8919 | ;; | |
64ce424c PB |
8920 | *) |
8921 | # Silently disable. | |
9b134994 | 8922 | add_this_lang=unsupported |
64ce424c PB |
8923 | ;; |
8924 | esac | |
8925 | done | |
8926 | ||
9b134994 | 8927 | # Disable Ada if no preexisting GNAT is available. |
bf41f30d NC |
8928 | case ${add_this_lang}:${language}:${have_gnat} in |
8929 | yes:ada:no) | |
9b134994 | 8930 | # Specifically requested language; tell them. |
d0ac1c44 | 8931 | as_fn_error $? "GNAT is required to build $language" "$LINENO" 5 |
9b134994 | 8932 | ;; |
bf41f30d NC |
8933 | all:ada:no) |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5 | |
8935 | $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;} | |
8936 | add_this_lang=unsupported | |
8937 | ;; | |
9b134994 PB |
8938 | *:ada:no) |
8939 | # Silently disable. | |
8940 | add_this_lang=unsupported | |
8941 | ;; | |
8942 | esac | |
8943 | ||
228cf97d AM |
8944 | # Disable D if no preexisting GDC is available. |
8945 | case ${add_this_lang}:${language}:${have_gdc} in | |
8946 | yes:d:no) | |
8947 | # Specifically requested language; tell them. | |
8948 | as_fn_error $? "GDC is required to build $language" "$LINENO" 5 | |
8949 | ;; | |
8950 | all:d:no) | |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5 | |
8952 | $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;} | |
8953 | add_this_lang=unsupported | |
8954 | ;; | |
8955 | *:d:no) | |
8956 | # Silently disable. | |
8957 | add_this_lang=unsupported | |
8958 | ;; | |
8959 | esac | |
8960 | ||
bf41f30d | 8961 | # Disable jit if -enable-host-shared not specified |
228cf97d AM |
8962 | # but not if building for Mingw. All code in Windows |
8963 | # is position independent code (PIC). | |
8964 | case $target in | |
8965 | *mingw*) ;; | |
8966 | *) | |
8967 | case ${add_this_lang}:${language}:${host_shared} in | |
8968 | yes:jit:no) | |
8969 | # PR jit/64780: explicitly specify --enable-host-shared | |
d0ac1c44 | 8970 | as_fn_error $? " |
bf41f30d NC |
8971 | Enabling language \"jit\" requires --enable-host-shared. |
8972 | ||
8973 | --enable-host-shared typically slows the rest of the compiler down by | |
8974 | a few %, so you must explicitly enable it. | |
8975 | ||
8976 | If you want to build both the jit and the regular compiler, it is often | |
8977 | best to do this via two separate configure/builds, in separate | |
8978 | directories, to avoid imposing the performance cost of | |
8979 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
228cf97d AM |
8980 | ;; |
8981 | all:jit:no) | |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5 | |
bf41f30d | 8983 | $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;} |
228cf97d AM |
8984 | add_this_lang=unsupported |
8985 | ;; | |
8986 | *:jit:no) | |
8987 | # Silently disable. | |
8988 | add_this_lang=unsupported | |
8989 | ;; | |
8990 | esac | |
8991 | ;; | |
8992 | esac | |
bf41f30d NC |
8993 | |
8994 | # Disable a language that is unsupported by the target. | |
8995 | case "${add_this_lang}: $unsupported_languages " in | |
8996 | no:*) ;; | |
8997 | unsupported:*) ;; | |
8998 | *:*" $language "*) | |
8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5 | |
9000 | $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;} | |
9b134994 | 9001 | add_this_lang=unsupported |
59f7ec45 HPN |
9002 | ;; |
9003 | esac | |
9004 | ||
4b1cb4fe | 9005 | case $add_this_lang in |
9b134994 | 9006 | unsupported) |
9e07f89d | 9007 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
9008 | disabled_target_libs="$disabled_target_libs $target_libs" |
9009 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 9010 | ;; |
9b134994 PB |
9011 | no) |
9012 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
9013 | disabled_target_libs="$disabled_target_libs $target_libs" |
9014 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
9015 | potential_languages="${potential_languages}${language}," |
9016 | ;; | |
bf41f30d | 9017 | all|yes) |
9b134994 PB |
9018 | new_enable_languages="${new_enable_languages}${language}," |
9019 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 9020 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 9021 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
9022 | case "${boot_language}:,$enable_stage1_languages," in |
9023 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 9024 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
9025 | case ",$stage1_languages," in |
9026 | *,$language,* | ,yes, | ,all,) ;; | |
9027 | *) stage1_languages="${stage1_languages}${language}," ;; | |
9028 | esac | |
e8a5fa9c | 9029 | # We need to bootstrap any supporting libraries. |
228cf97d | 9030 | bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"` |
1d39f329 NN |
9031 | ;; |
9032 | esac | |
9033 | ;; | |
9e07f89d NN |
9034 | esac |
9035 | ;; | |
9036 | esac | |
9037 | done | |
9038 | ||
9e1a94f4 ILT |
9039 | # Add target libraries which are only needed for disabled languages |
9040 | # to noconfigdirs. | |
9041 | if test -n "$disabled_target_libs"; then | |
9042 | for dir in $disabled_target_libs; do | |
9043 | case " $enabled_target_libs " in | |
9044 | *" ${dir} "*) ;; | |
9045 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
9046 | esac | |
9047 | done | |
9048 | fi | |
9049 | ||
81ecdfbb RW |
9050 | # Check whether --enable-stage1-languages was given. |
9051 | if test "${enable_stage1_languages+set}" = set; then : | |
9052 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
9053 | ,no,|,,) |
9054 | # Set it to something that will have no effect in the loop below | |
9055 | enable_stage1_languages=c ;; | |
9056 | ,yes,) | |
9057 | enable_stage1_languages=`echo $new_enable_languages | \ | |
9058 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
9059 | *,all,*) | |
9060 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
9061 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
9062 | esac | |
9063 | ||
9064 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
9065 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
9066 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
9067 | case $potential_languages in | |
9068 | *,$i,*) | |
9069 | case $stage1_languages in | |
9070 | *,$i,*) ;; | |
9071 | *) stage1_languages="$stage1_languages$i," ;; | |
9072 | esac ;; | |
9073 | *) | |
9074 | case $missing_languages in | |
9075 | *,$i,*) ;; | |
9076 | *) missing_languages="$missing_languages$i," ;; | |
9077 | esac ;; | |
9078 | esac | |
9079 | done | |
81ecdfbb RW |
9080 | fi |
9081 | ||
9b134994 PB |
9082 | |
9083 | # Remove leading/trailing commas that were added for simplicity | |
9084 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 9085 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
9086 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
9087 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
9088 | ||
9e07f89d | 9089 | if test "x$missing_languages" != x; then |
d0ac1c44 | 9090 | as_fn_error $? " |
27258dd4 | 9091 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 9092 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 9093 | fi |
9e07f89d NN |
9094 | if test "x$new_enable_languages" != "x$enable_languages"; then |
9095 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 9096 | enable_languages="$new_enable_languages" |
9e07f89d | 9097 | fi |
9b134994 | 9098 | |
c6b750e1 | 9099 | |
81ec575a | 9100 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
9101 | fi |
9102 | ||
a6df5a19 PB |
9103 | # Handle --disable-<component> generically. |
9104 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
9105 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
9106 | varname=`echo $dirname | sed -e s/+/_/g` |
9107 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
9108 | noconfigdirs="$noconfigdirs $dir" |
9109 | fi | |
9110 | done | |
9111 | ||
4f0ef2d8 | 9112 | # Check for Boehm's garbage collector |
81ecdfbb RW |
9113 | # Check whether --enable-objc-gc was given. |
9114 | if test "${enable_objc_gc+set}" = set; then : | |
05a13254 | 9115 | enableval=$enable_objc_gc; |
81ecdfbb RW |
9116 | fi |
9117 | ||
4f0ef2d8 | 9118 | |
05a13254 NC |
9119 | # Check whether --with-target-bdw-gc was given. |
9120 | if test "${with_target_bdw_gc+set}" = set; then : | |
9121 | withval=$with_target_bdw_gc; | |
9122 | fi | |
9123 | ||
9124 | ||
9125 | # Check whether --with-target-bdw-gc-include was given. | |
9126 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
9127 | withval=$with_target_bdw_gc_include; | |
9128 | fi | |
9129 | ||
9130 | ||
9131 | # Check whether --with-target-bdw-gc-lib was given. | |
9132 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
9133 | withval=$with_target_bdw_gc_lib; | |
9134 | fi | |
9135 | ||
9136 | ||
9137 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
9139 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
9140 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 | |
9142 | $as_echo "using bdw-gc in default locations" >&6; } | |
9143 | else | |
9144 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
d0ac1c44 | 9145 | as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 |
05a13254 | 9146 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then |
d0ac1c44 | 9147 | as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 |
05a13254 NC |
9148 | else |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
9150 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
d42c4017 | 9151 | fi |
05a13254 | 9152 | fi |
4f0ef2d8 CD |
9153 | esac |
9154 | ||
bf41f30d | 9155 | # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 9156 | case ,${enable_languages}, in |
1b6c0831 | 9157 | *,c++,*) |
bf41f30d | 9158 | # Disable libitm, libsanitizer if we're not building libstdc++ |
1b6c0831 L |
9159 | case "${noconfigdirs}" in |
9160 | *target-libstdc++-v3*) | |
bf41f30d | 9161 | noconfigdirs="$noconfigdirs target-libitm target-libsanitizer" |
1b6c0831 L |
9162 | ;; |
9163 | *) ;; | |
9164 | esac | |
9165 | ;; | |
7ec59b9e | 9166 | *) |
bf41f30d | 9167 | noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
9168 | ;; |
9169 | esac | |
9170 | ||
d33228c9 AB |
9171 | # If gcc/ is not in the source tree then we'll not be building a |
9172 | # target compiler, assume in that case we don't want to build any | |
9173 | # target libraries or tools. | |
9174 | # | |
9175 | # This was added primarily for the benefit for binutils-gdb who reuse | |
9176 | # this configure script, but don't always have target tools available. | |
9177 | if test ! -d ${srcdir}/gcc; then | |
9178 | skipdirs="${skipdirs} ${target_configdirs}" | |
9179 | fi | |
9180 | ||
caeba88f AL |
9181 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
9182 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
9183 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
9184 | ||
9185 | notsupp="" | |
9186 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 9187 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
9188 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9189 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
9190 | if test -r $srcdir/$dirname/configure ; then | |
9191 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9192 | true | |
9193 | else | |
9194 | notsupp="$notsupp $dir" | |
9195 | fi | |
9196 | fi | |
9197 | fi | |
caeba88f AL |
9198 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9199 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
9200 | if test -r $srcdir/$dirname/configure ; then | |
9201 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9202 | true | |
9203 | else | |
9204 | notsupp="$notsupp $dir" | |
9205 | fi | |
9206 | fi | |
9207 | fi | |
9e07f89d NN |
9208 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
9209 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
9210 | if test -r $srcdir/$dirname/configure ; then | |
9211 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9212 | true | |
9213 | else | |
9214 | notsupp="$notsupp $dir" | |
9215 | fi | |
9216 | fi | |
9217 | fi | |
9218 | done | |
9219 | ||
9e07f89d NN |
9220 | # Quietly strip out all directories which aren't configurable in this tree. |
9221 | # This relies on all configurable subdirectories being autoconfiscated, which | |
9222 | # is now the case. | |
6a9cf61e PB |
9223 | build_configdirs_all="$build_configdirs" |
9224 | build_configdirs= | |
9225 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 9226 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
9227 | if test -f ${srcdir}/$j/configure ; then |
9228 | build_configdirs="${build_configdirs} $i" | |
9229 | fi | |
9230 | done | |
9231 | ||
9e07f89d NN |
9232 | configdirs_all="$configdirs" |
9233 | configdirs= | |
9234 | for i in ${configdirs_all} ; do | |
9235 | if test -f ${srcdir}/$i/configure ; then | |
9236 | configdirs="${configdirs} $i" | |
9237 | fi | |
9238 | done | |
6a9cf61e | 9239 | |
9e07f89d NN |
9240 | target_configdirs_all="$target_configdirs" |
9241 | target_configdirs= | |
9242 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 9243 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
9244 | if test -f ${srcdir}/$j/configure ; then |
9245 | target_configdirs="${target_configdirs} $i" | |
9246 | fi | |
9247 | done | |
9248 | ||
1b6c0831 L |
9249 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
9250 | # so we have to add it after the preceding checks. | |
9251 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
9252 | then | |
9253 | case " $configdirs " in | |
9254 | *" libiberty "*) | |
9255 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
9256 | configdirs="$configdirs libiberty-linker-plugin" | |
9257 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
9258 | --with-libiberty=../libiberty-linker-plugin";; | |
9259 | *) | |
d0ac1c44 | 9260 | as_fn_error $? "libiberty missing" "$LINENO" 5;; |
1b6c0831 L |
9261 | esac |
9262 | fi | |
9263 | ||
9264 | # Sometimes we have special requirements for the host libiberty. | |
9265 | extra_host_libiberty_configure_flags= | |
9266 | case " $configdirs " in | |
a08bdb15 | 9267 | *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*) |
1b6c0831 L |
9268 | # When these are to be built as shared libraries, the same applies to |
9269 | # libiberty. | |
9270 | extra_host_libiberty_configure_flags=--enable-shared | |
9271 | ;; | |
95127faf TV |
9272 | esac |
9273 | ||
9274 | ||
9275 | # Sometimes we have special requirements for the host zlib. | |
9276 | extra_host_zlib_configure_flags= | |
9277 | case " $configdirs " in | |
e81d5d05 L |
9278 | *" bfd "*) |
9279 | # When bfd is to be built as a shared library, the same applies to | |
9280 | # zlib. | |
9281 | if test "$enable_shared" = "yes"; then | |
9282 | extra_host_zlib_configure_flags=--enable-host-shared | |
9283 | fi | |
9284 | ;; | |
1b6c0831 L |
9285 | esac |
9286 | ||
9287 | ||
9e07f89d NN |
9288 | # Produce a warning message for the subdirs we can't configure. |
9289 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
9290 | # FSF releases, it's important to let people know when their machine isn't | |
9291 | # supported by the one or two programs in a package. | |
9292 | ||
9293 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
9294 | # If $appdirs is non-empty, at least one of those directories must still | |
9295 | # be configured, or we error out. (E.g., if the gas release supports a | |
9296 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
9297 | # pretend that all is well.) | |
9298 | if test -n "$appdirs" ; then | |
9299 | for dir in $appdirs ; do | |
9300 | if test -r $dir/Makefile.in ; then | |
9301 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
9302 | appdirs="" | |
9303 | break | |
9304 | fi | |
6a9cf61e | 9305 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
9306 | appdirs="" |
9307 | break | |
9308 | fi | |
9309 | fi | |
9310 | done | |
9311 | if test -n "$appdirs" ; then | |
9312 | echo "*** This configuration is not supported by this package." 1>&2 | |
9313 | exit 1 | |
9314 | fi | |
9315 | fi | |
9316 | # Okay, some application will build, or we don't care to check. Still | |
9317 | # notify of subdirs not getting built. | |
9318 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
9319 | echo " ${notsupp}" 1>&2 | |
9320 | echo " (Any other directories should still work fine.)" 1>&2 | |
9321 | fi | |
9322 | ||
9323 | case "$host" in | |
9324 | *msdosdjgpp*) | |
9325 | enable_gdbtk=no ;; | |
9326 | esac | |
9327 | ||
18f6b6ee PB |
9328 | # To find our prefix, in gcc_cv_tool_prefix. |
9329 | ||
9330 | # The user is always right. | |
9331 | if test "${PATH_SEPARATOR+set}" != set; then | |
9332 | echo "#! /bin/sh" >conf$$.sh | |
9333 | echo "exit 0" >>conf$$.sh | |
9334 | chmod +x conf$$.sh | |
9335 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9336 | PATH_SEPARATOR=';' | |
9337 | else | |
9338 | PATH_SEPARATOR=: | |
9339 | fi | |
9340 | rm -f conf$$.sh | |
9341 | fi | |
9342 | ||
9343 | ||
bf41f30d NC |
9344 | get_gcc_base_ver="cat" |
9345 | ||
9346 | # Check whether --with-gcc-major-version-only was given. | |
9347 | if test "${with_gcc_major_version_only+set}" = set; then : | |
9348 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
37f980dc | 9349 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
bf41f30d NC |
9350 | fi |
9351 | ||
9352 | fi | |
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
18f6b6ee PB |
9358 | |
9359 | if test "x$exec_prefix" = xNONE; then | |
9360 | if test "x$prefix" = xNONE; then | |
9361 | gcc_cv_tool_prefix=$ac_default_prefix | |
9362 | else | |
9363 | gcc_cv_tool_prefix=$prefix | |
9364 | fi | |
9365 | else | |
9366 | gcc_cv_tool_prefix=$exec_prefix | |
9367 | fi | |
9368 | ||
9369 | # If there is no compiler in the tree, use the PATH only. In any | |
9370 | # case, if there is no compiler in the tree nobody should use | |
9371 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
9372 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
bf41f30d NC |
9373 | if test x$with_gcc_major_version_only = xyes ; then |
9374 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
9375 | else | |
9376 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
9377 | fi | |
18f6b6ee PB |
9378 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
9379 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9380 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9381 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
9382 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
9383 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
9384 | else | |
9385 | gcc_cv_tool_dirs= | |
9386 | fi | |
9387 | ||
9388 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
9389 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
9390 | fi | |
9391 | ||
9392 | ||
9393 | ||
9e07f89d NN |
9394 | copy_dirs= |
9395 | ||
c6b750e1 | 9396 | |
81ecdfbb RW |
9397 | # Check whether --with-build-sysroot was given. |
9398 | if test "${with_build_sysroot+set}" = set; then : | |
9399 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
9400 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
9401 | fi | |
9402 | else | |
9403 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 9404 | fi |
a19b6204 MM |
9405 | |
9406 | ||
8a6ee3ab | 9407 | |
81ecdfbb RW |
9408 | |
9409 | # Check whether --with-debug-prefix-map was given. | |
9410 | if test "${with_debug_prefix_map+set}" = set; then : | |
9411 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
9412 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
9413 | for debug_map in $withval; do | |
9414 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
9415 | done | |
9416 | fi | |
9417 | else | |
9418 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
9419 | fi |
9420 | ||
8a6ee3ab JM |
9421 | |
9422 | ||
7f6ef0c0 PB |
9423 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
9424 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
9425 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
9426 | # We want to ensure that TARGET libraries (which we know are built with | |
9427 | # gcc) are built with "-O2 -g", so include those options when setting | |
9428 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
9429 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9430 | if test "x${is_cross_compiler}" = xyes; then |
9431 | CFLAGS_FOR_TARGET="-g -O2" | |
9432 | else | |
9433 | CFLAGS_FOR_TARGET=$CFLAGS | |
9434 | case " $CFLAGS " in | |
9435 | *" -O2 "*) ;; | |
9436 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
9437 | esac | |
9438 | case " $CFLAGS " in | |
9439 | *" -g "* | *" -g3 "*) ;; | |
9440 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
9441 | esac | |
9442 | fi | |
7f6ef0c0 PB |
9443 | fi |
9444 | ||
9445 | ||
9446 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
9447 | if test "x${is_cross_compiler}" = xyes; then |
9448 | CXXFLAGS_FOR_TARGET="-g -O2" | |
9449 | else | |
9450 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
9451 | case " $CXXFLAGS " in | |
9452 | *" -O2 "*) ;; | |
9453 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
9454 | esac | |
9455 | case " $CXXFLAGS " in | |
9456 | *" -g "* | *" -g3 "*) ;; | |
9457 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
9458 | esac | |
9459 | fi | |
7f6ef0c0 PB |
9460 | fi |
9461 | ||
9462 | ||
91c1f14c DK |
9463 | |
9464 | ||
9e07f89d NN |
9465 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
9466 | # the named directory are copied to $(tooldir)/sys-include. | |
9467 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
9468 | if test x${is_cross_compiler} = xno ; then | |
9469 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
9470 | exit 1 | |
9471 | fi | |
9472 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 9473 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 9474 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
9475 | fi |
9476 | fi | |
9477 | ||
9478 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
9479 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
9480 | # are permitted. | |
9481 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
9482 | if test x${is_cross_compiler} = xno ; then | |
9483 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
9484 | exit 1 | |
9485 | fi | |
9486 | if test x"${with_libs}" != xyes ; then | |
9487 | # Copy the libraries in reverse order, so that files in the first named | |
9488 | # library override files in subsequent libraries. | |
18f6b6ee | 9489 | x=${gcc_cv_tool_prefix} |
9e07f89d | 9490 | for l in ${with_libs}; do |
c6b750e1 | 9491 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
9492 | done |
9493 | fi | |
9494 | fi | |
9495 | ||
700d40ca | 9496 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
9497 | # |
9498 | # This is done by determining whether or not the appropriate directory | |
9499 | # is available, and by checking whether or not specific configurations | |
9500 | # have requested that this magic not happen. | |
c6b750e1 DJ |
9501 | # |
9502 | # The command line options always override the explicit settings in | |
136bb21f | 9503 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 9504 | # |
c6b750e1 | 9505 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 9506 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
9507 | # --without-gnu-ld options for the configure script. Similarly, if |
9508 | # the default is to use the included zlib and you don't want to do that, | |
9509 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
9510 | |
9511 | if test x${use_gnu_as} = x && | |
9512 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
9513 | with_gnu_as=yes | |
9514 | extra_host_args="$extra_host_args --with-gnu-as" | |
9515 | fi | |
9516 | ||
9517 | if test x${use_gnu_ld} = x && | |
93f9b408 | 9518 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
9519 | with_gnu_ld=yes |
9520 | extra_host_args="$extra_host_args --with-gnu-ld" | |
9521 | fi | |
9522 | ||
700d40ca ILT |
9523 | if test x${use_included_zlib} = x && |
9524 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
9525 | : | |
9526 | else | |
9527 | with_system_zlib=yes | |
9528 | extra_host_args="$extra_host_args --with-system-zlib" | |
9529 | fi | |
9530 | ||
2429c060 PB |
9531 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
9532 | # can detect this case. | |
9533 | ||
9534 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
9535 | with_newlib=yes | |
9536 | extra_host_args="$extra_host_args --with-newlib" | |
9537 | fi | |
9538 | ||
9e07f89d NN |
9539 | # Handle ${copy_dirs} |
9540 | set fnord ${copy_dirs} | |
9541 | shift | |
9542 | while test $# != 0 ; do | |
9543 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
9544 | : | |
9545 | else | |
9546 | echo Copying $1 to $2 | |
9547 | ||
9548 | # Use the install script to create the directory and all required | |
9549 | # parent directories. | |
9550 | if test -d $2 ; then | |
9551 | : | |
9552 | else | |
9553 | echo >config.temp | |
9554 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
9555 | fi | |
9556 | ||
9557 | # Copy the directory, assuming we have tar. | |
9558 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
9559 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
9560 | ||
9561 | # It is the responsibility of the user to correctly adjust all | |
9562 | # symlinks. If somebody can figure out how to handle them correctly | |
9563 | # here, feel free to add the code. | |
9564 | ||
9565 | echo $1 > $2/COPIED | |
9566 | fi | |
9567 | shift; shift | |
9568 | done | |
9569 | ||
2429c060 PB |
9570 | # Determine a target-dependent exec_prefix that the installed |
9571 | # gcc will search in. Keep this list sorted by triplet, with | |
9572 | # the *-*-osname triplets last. | |
9573 | md_exec_prefix= | |
9574 | case "${target}" in | |
521ec477 | 9575 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
9576 | md_exec_prefix=/dev/env/DJDIR/bin |
9577 | ;; | |
2429c060 | 9578 | *-*-hpux* | \ |
2429c060 | 9579 | *-*-nto-qnx* | \ |
1f111696 | 9580 | *-*-solaris2*) |
2429c060 PB |
9581 | md_exec_prefix=/usr/ccs/bin |
9582 | ;; | |
9583 | esac | |
9584 | ||
a0da8069 NN |
9585 | extra_arflags_for_target= |
9586 | extra_nmflags_for_target= | |
9587 | extra_ranlibflags_for_target= | |
9588 | target_makefile_frag=/dev/null | |
9589 | case "${target}" in | |
77d7106f AM |
9590 | spu-*-*) |
9591 | target_makefile_frag="config/mt-spu" | |
9592 | ;; | |
a9d58c06 | 9593 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
9594 | target_makefile_frag="config/mt-sde" |
9595 | ;; | |
f3b1e08e RS |
9596 | mipsisa*-*-elfoabi*) |
9597 | target_makefile_frag="config/mt-mips-elfoabi" | |
9598 | ;; | |
e7c8859c RS |
9599 | mips*-*-*linux* | mips*-*-gnu*) |
9600 | target_makefile_frag="config/mt-mips-gnu" | |
9601 | ;; | |
d9e042ac SL |
9602 | nios2-*-elf*) |
9603 | target_makefile_frag="config/mt-nios2-elf" | |
9604 | ;; | |
bf41f30d NC |
9605 | *-*-linux-android*) |
9606 | target_makefile_frag="config/mt-android" | |
9607 | ;; | |
29383458 | 9608 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 9609 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
9610 | ;; |
9611 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 9612 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
9613 | # commands to handle both 32-bit and 64-bit objects. These flags are |
9614 | # harmless if we're using GNU nm or ar. | |
9615 | extra_arflags_for_target=" -X32_64" | |
9616 | extra_nmflags_for_target=" -B -X32_64" | |
9617 | ;; | |
a0da8069 NN |
9618 | esac |
9619 | ||
9620 | alphaieee_frag=/dev/null | |
9621 | case $target in | |
9622 | alpha*-*-*) | |
9623 | # This just makes sure to use the -mieee option to build target libs. | |
9624 | # This should probably be set individually by each library. | |
9625 | alphaieee_frag="config/mt-alphaieee" | |
9626 | ;; | |
9627 | esac | |
9628 | ||
9629 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
9630 | # the target libraries, similarly if it is not specified, use -Os | |
9631 | # on selected platforms. | |
9632 | ospace_frag=/dev/null | |
9633 | case "${enable_target_optspace}:${target}" in | |
9634 | yes:*) | |
9635 | ospace_frag="config/mt-ospace" | |
9636 | ;; | |
9637 | :d30v-*) | |
9638 | ospace_frag="config/mt-d30v" | |
9639 | ;; | |
16beab3d | 9640 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
9641 | ospace_frag="config/mt-ospace" |
9642 | ;; | |
9643 | no:* | :*) | |
9644 | ;; | |
9645 | *) | |
9646 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
9647 | ;; | |
9648 | esac | |
9649 | ||
a0da8069 NN |
9650 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
9651 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 9652 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
9653 | build_tooldir=${tooldir} |
9654 | ||
a0da8069 NN |
9655 | # Create a .gdbinit file which runs the one in srcdir |
9656 | # and tells GDB to look there for source files. | |
9657 | ||
9658 | if test -r ${srcdir}/.gdbinit ; then | |
9659 | case ${srcdir} in | |
9660 | .) ;; | |
9661 | *) cat > ./.gdbinit <<EOF | |
9662 | # ${NO_EDIT} | |
9663 | dir ${srcdir} | |
9664 | dir . | |
9665 | source ${srcdir}/.gdbinit | |
9666 | EOF | |
9667 | ;; | |
9668 | esac | |
9669 | fi | |
9670 | ||
a0da8069 NN |
9671 | # Make sure that the compiler is able to generate an executable. If it |
9672 | # can't, we are probably in trouble. We don't care whether we can run the | |
9673 | # executable--we might be using a cross compiler--we only care whether it | |
9674 | # can be created. At this point the main configure script has set CC. | |
9675 | we_are_ok=no | |
9676 | echo "int main () { return 0; }" > conftest.c | |
9677 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
9678 | if test $? = 0 ; then | |
9679 | if test -s conftest || test -s conftest.exe ; then | |
9680 | we_are_ok=yes | |
9681 | fi | |
c6b750e1 | 9682 | fi |
a0da8069 NN |
9683 | case $we_are_ok in |
9684 | no) | |
9685 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
9686 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
9687 | rm -f conftest* | |
9688 | exit 1 | |
9689 | ;; | |
9690 | esac | |
9691 | rm -f conftest* | |
9692 | ||
3bbd2f8f | 9693 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
9694 | case "${host}" in |
9695 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 9696 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 9697 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
9698 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
9699 | esac | |
9700 | ||
3bbd2f8f | 9701 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
9702 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
9703 | # built executables to PATH. | |
3bbd2f8f AL |
9704 | if test "$RPATH_ENVVAR" = PATH; then |
9705 | GCC_SHLIB_SUBDIR=/shlib | |
9706 | else | |
9707 | GCC_SHLIB_SUBDIR= | |
9708 | fi | |
9709 | ||
730af8ee | 9710 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
9711 | case $enable_bootstrap in | |
9712 | yes) | |
9713 | bootstrap_suffix=bootstrap | |
9714 | BUILD_CONFIG=bootstrap-debug | |
9715 | ;; | |
9716 | no) | |
9717 | bootstrap_suffix=no-bootstrap | |
9718 | BUILD_CONFIG= | |
9719 | ;; | |
9720 | esac | |
9721 | ||
9722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
9723 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
9724 | ||
9725 | ||
9726 | # Check whether --with-build-config was given. | |
9727 | if test "${with_build_config+set}" = set; then : | |
9728 | withval=$with_build_config; case $with_build_config in | |
9729 | yes) with_build_config= ;; | |
9730 | no) with_build_config= BUILD_CONFIG= ;; | |
9731 | esac | |
9732 | fi | |
9733 | ||
9734 | ||
9735 | if test "x${with_build_config}" != x; then | |
9736 | BUILD_CONFIG=$with_build_config | |
9737 | else | |
9738 | case $BUILD_CONFIG in | |
9739 | bootstrap-debug) | |
9740 | if echo "int f (void) { return 0; }" > conftest.c && | |
9741 | ${CC} -c conftest.c && | |
9742 | mv conftest.o conftest.o.g0 && | |
9743 | ${CC} -c -g conftest.c && | |
9744 | mv conftest.o conftest.o.g && | |
9745 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
9746 | : | |
9747 | else | |
9748 | BUILD_CONFIG= | |
9749 | fi | |
9750 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
9751 | ;; | |
9752 | esac | |
9753 | fi | |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
9755 | $as_echo "$BUILD_CONFIG" >&6; } | |
9756 | ||
9757 | ||
9758 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
9760 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
9761 | # Check whether --enable-vtable-verify was given. | |
9762 | if test "${enable_vtable_verify+set}" = set; then : | |
9763 | enableval=$enable_vtable_verify; case "$enableval" in | |
9764 | yes) enable_vtable_verify=yes ;; | |
9765 | no) enable_vtable_verify=no ;; | |
9766 | *) enable_vtable_verify=no;; | |
9767 | esac | |
9768 | else | |
9769 | enable_vtable_verify=no | |
9770 | fi | |
9771 | ||
9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
9773 | $as_echo "$enable_vtable_verify" >&6; } | |
9774 | ||
a0da8069 NN |
9775 | # Record target_configdirs and the configure arguments for target and |
9776 | # build configuration in Makefile. | |
9777 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 9778 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 9779 | bootstrap_fixincludes=no |
a0da8069 | 9780 | |
2aa2364a JR |
9781 | # If we are building libgomp, bootstrap it. |
9782 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
9783 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
9784 | fi | |
9785 | ||
730af8ee | 9786 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
9787 | # or bootstrap-ubsan, bootstrap it. | |
9788 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
9789 | case "$BUILD_CONFIG" in | |
228cf97d | 9790 | *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* ) |
730af8ee | 9791 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, |
201f096f | 9792 | bootstrap_fixincludes=yes |
730af8ee | 9793 | ;; |
9794 | esac | |
5eb08693 L |
9795 | fi |
9796 | ||
730af8ee | 9797 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
9798 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
9799 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
9800 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
9801 | fi | |
9802 | ||
228cf97d AM |
9803 | # If we are building libatomic and the list of enabled languages includes the |
9804 | # D frontend, bootstrap it. | |
9805 | if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then | |
9806 | case ,${enable_languages}, in | |
9807 | *,d,*) | |
9808 | bootstrap_target_libs=${bootstrap_target_libs}target-libatomic, | |
9809 | ;; | |
9810 | esac | |
9811 | fi | |
9812 | ||
a0da8069 NN |
9813 | # Determine whether gdb needs tk/tcl or not. |
9814 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
9815 | # and in that case we want gdb to be built without tk. Ugh! | |
9816 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
9817 | # so we should be able to put the 'maybe's in unconditionally and | |
9818 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
9819 | # 100% sure that that's safe though. | |
c180f501 | 9820 | |
675c6968 | 9821 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
9822 | case "$enable_gdbtk" in |
9823 | no) | |
9824 | GDB_TK="" ;; | |
c180f501 AC |
9825 | yes) |
9826 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 9827 | *) |
c180f501 AC |
9828 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
9829 | # distro. Eventually someone will fix this and move Insight, nee | |
9830 | # gdbtk to a separate directory. | |
9831 | if test -d ${srcdir}/gdb/gdbtk ; then | |
9832 | GDB_TK="${gdb_tk}" | |
9833 | else | |
9834 | GDB_TK="" | |
9835 | fi | |
9836 | ;; | |
a0da8069 | 9837 | esac |
907be67c DJ |
9838 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
9839 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 9840 | |
b6f9caee TT |
9841 | # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing |
9842 | # else does, only include them if one of these is built. The Makefile | |
9843 | # provides the ordering, so it's enough here to add to the list. | |
9844 | case " ${configdirs} " in | |
9845 | *\ gdb\ *) | |
9846 | configdirs="${configdirs} gnulib gdbsupport" | |
9847 | ;; | |
9848 | *\ gdbserver\ *) | |
9849 | configdirs="${configdirs} gnulib gdbsupport" | |
9850 | ;; | |
5c9e84c2 MF |
9851 | *\ sim\ *) |
9852 | configdirs="${configdirs} gnulib" | |
9853 | ;; | |
b6f9caee | 9854 | esac |
73cc7272 | 9855 | |
6bd3dfaa | 9856 | # Strip out unwanted targets. |
dd12c3a8 NN |
9857 | |
9858 | # While at that, we remove Makefiles if we were started for recursive | |
9859 | # configuration, so that the top-level Makefile reconfigures them, | |
9860 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 9861 | |
06a51eac RW |
9862 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
9863 | # but now we're fixing up the Makefile ourselves with the additional | |
9864 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
9865 | # extrasub-{build,host,target} not because there is any reason to split | |
9866 | # the substitutions up that way, but only to remain below the limit of | |
9867 | # 99 commands in a script, for HP-UX sed. | |
4119873a AO |
9868 | |
9869 | # Do not nest @if/@endif or @unless/@endunless pairs, because | |
9870 | # configure will not warn you at all. | |
dd12c3a8 | 9871 | |
16b1ad29 RW |
9872 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
9873 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
9874 | yes:yes:*\ gold\ *:*) | |
d0ac1c44 | 9875 | as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 |
16b1ad29 RW |
9876 | ;; |
9877 | esac | |
9878 | ||
06a51eac | 9879 | extrasub_build= |
6a9cf61e | 9880 | for module in ${build_configdirs} ; do |
498d4a71 CF |
9881 | if test -z "${no_recursion}" \ |
9882 | && test -f ${build_subdir}/${module}/Makefile; then | |
9883 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
9884 | rm -f ${build_subdir}/${module}/Makefile | |
9885 | fi | |
06a51eac | 9886 | extrasub_build="$extrasub_build |
498d4a71 CF |
9887 | /^@if build-$module\$/d |
9888 | /^@endif build-$module\$/d | |
4119873a | 9889 | /^@unless build-$module\$/,/^@endunless build-$module\$/d |
498d4a71 | 9890 | /^@if build-$module-$bootstrap_suffix\$/d |
4119873a AO |
9891 | /^@endif build-$module-$bootstrap_suffix\$/d |
9892 | /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d" | |
498d4a71 | 9893 | done |
06a51eac | 9894 | extrasub_host= |
498d4a71 | 9895 | for module in ${configdirs} ; do |
80911fe1 | 9896 | if test -z "${no_recursion}"; then |
8cf39b1b | 9897 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
9898 | if test -f ${file}; then |
9899 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
9900 | rm -f ${file} | |
9901 | fi | |
9902 | done | |
498d4a71 | 9903 | fi |
201f096f | 9904 | case ${module},${bootstrap_fixincludes} in |
9905 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
9906 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
9907 | esac | |
06a51eac | 9908 | extrasub_host="$extrasub_host |
498d4a71 CF |
9909 | /^@if $module\$/d |
9910 | /^@endif $module\$/d | |
4119873a | 9911 | /^@unless $module\$/,/^@endunless $module\$/d |
201f096f | 9912 | /^@if $module-$host_bootstrap_suffix\$/d |
4119873a AO |
9913 | /^@endif $module-$host_bootstrap_suffix\$/d |
9914 | /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 9915 | done |
06a51eac | 9916 | extrasub_target= |
498d4a71 CF |
9917 | for module in ${target_configdirs} ; do |
9918 | if test -z "${no_recursion}" \ | |
9919 | && test -f ${target_subdir}/${module}/Makefile; then | |
9920 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
9921 | rm -f ${target_subdir}/${module}/Makefile | |
9922 | fi | |
e8a5fa9c RW |
9923 | |
9924 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
9925 | case $bootstrap_target_libs in | |
9926 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
9927 | *) target_bootstrap_suffix=no-bootstrap ;; | |
9928 | esac | |
9929 | ||
06a51eac | 9930 | extrasub_target="$extrasub_target |
498d4a71 CF |
9931 | /^@if target-$module\$/d |
9932 | /^@endif target-$module\$/d | |
4119873a | 9933 | /^@unless target-$module\$/,/^@endunless target-$module\$/d |
e8a5fa9c | 9934 | /^@if target-$module-$target_bootstrap_suffix\$/d |
4119873a AO |
9935 | /^@endif target-$module-$target_bootstrap_suffix\$/d |
9936 | /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
9937 | done |
9938 | ||
06a51eac RW |
9939 | # Do the final fixup along with target modules. |
9940 | extrasub_target="$extrasub_target | |
4119873a AO |
9941 | /^@if /,/^@endif /d |
9942 | /^@unless /d | |
9943 | /^@endunless /d" | |
a0da8069 | 9944 | |
af019bfd L |
9945 | if test "$enable_pgo_build" != "no"; then |
9946 | extrasub_build="$extrasub_build | |
9947 | /^@if pgo-build\$/d | |
9948 | /^@endif pgo-build\$/d" | |
9949 | fi | |
9950 | ||
a0da8069 NN |
9951 | # Create the serialization dependencies. This uses a temporary file. |
9952 | ||
81ecdfbb RW |
9953 | # Check whether --enable-serial-configure was given. |
9954 | if test "${enable_serial_configure+set}" = set; then : | |
9955 | enableval=$enable_serial_configure; | |
9956 | fi | |
e6bfb94a AO |
9957 | |
9958 | ||
1047cb91 DD |
9959 | case ${enable_serial_configure} in |
9960 | yes) | |
9961 | enable_serial_build_configure=yes | |
9962 | enable_serial_host_configure=yes | |
9963 | enable_serial_target_configure=yes | |
9964 | ;; | |
9965 | esac | |
9966 | ||
a0da8069 NN |
9967 | # These force 'configure's to be done one at a time, to avoid problems |
9968 | # with contention over a shared config.cache. | |
9969 | rm -f serdep.tmp | |
e6bfb94a | 9970 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 9971 | olditem= |
1047cb91 | 9972 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
9973 | for item in ${build_configdirs} ; do |
9974 | case ${olditem} in | |
9975 | "") ;; | |
e6bfb94a | 9976 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9977 | esac |
9978 | olditem=${item} | |
9979 | done | |
9980 | olditem= | |
1047cb91 | 9981 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
9982 | for item in ${configdirs} ; do |
9983 | case ${olditem} in | |
9984 | "") ;; | |
e6bfb94a | 9985 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9986 | esac |
9987 | olditem=${item} | |
9988 | done | |
9989 | olditem= | |
1047cb91 | 9990 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
9991 | for item in ${target_configdirs} ; do |
9992 | case ${olditem} in | |
9993 | "") ;; | |
e6bfb94a | 9994 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
9995 | esac |
9996 | olditem=${item} | |
9997 | done | |
9998 | serialization_dependencies=serdep.tmp | |
9999 | ||
10000 | ||
e6bfb94a | 10001 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 10002 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
10003 | # might not want to pass down to subconfigures. The exception being |
10004 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
10005 | # files altogether, and which should be passed on to subconfigures. | |
10006 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
10007 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 10008 | baseargs= |
65b4571a | 10009 | tbaseargs= |
c6b750e1 DJ |
10010 | keep_next=no |
10011 | skip_next=no | |
10012 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
10013 | for ac_arg |
10014 | do | |
c6b750e1 DJ |
10015 | if test X"$skip_next" = X"yes"; then |
10016 | skip_next=no | |
10017 | continue | |
10018 | fi | |
10019 | if test X"$keep_next" = X"yes"; then | |
10020 | case $ac_arg in | |
10021 | *\'*) | |
10022 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10023 | esac | |
10024 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10025 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
10026 | keep_next=no |
10027 | continue | |
10028 | fi | |
10029 | ||
10030 | # Handle separated arguments. Based on the logic generated by | |
10031 | # autoconf 2.59. | |
10032 | case $ac_arg in | |
10033 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
10034 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
10035 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
10036 | | -with-* | --with-* | -without-* | --without-* | --x) | |
10037 | separate_arg=no | |
10038 | ;; | |
10039 | -*) | |
10040 | separate_arg=yes | |
10041 | ;; | |
10042 | *) | |
10043 | separate_arg=no | |
10044 | ;; | |
10045 | esac | |
10046 | ||
65b4571a AO |
10047 | skip_targ=no |
10048 | case $ac_arg in | |
10049 | ||
10050 | --with-* | --without-*) | |
10051 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
10052 | ||
10053 | case $libopt in | |
10054 | *[-_]include) | |
10055 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
10056 | ;; | |
10057 | *[-_]lib) | |
10058 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
10059 | ;; | |
10060 | *) | |
10061 | lib=$libopt | |
10062 | ;; | |
10063 | esac | |
10064 | ||
10065 | ||
10066 | case $lib in | |
1b6c0831 | 10067 | mpc | mpfr | gmp | isl) |
65b4571a AO |
10068 | # If we're processing --with-$lib, --with-$lib-include or |
10069 | # --with-$lib-lib, for one of the libs above, and target is | |
10070 | # different from host, don't pass the current argument to any | |
10071 | # target library's configure. | |
10072 | if test x$is_cross_compiler = xyes; then | |
10073 | skip_targ=yes | |
10074 | fi | |
10075 | ;; | |
10076 | esac | |
10077 | ;; | |
10078 | esac | |
10079 | ||
c6b750e1 | 10080 | case "$ac_arg" in |
30167e0a NC |
10081 | --cache-file=/dev/null | \ |
10082 | -cache-file=/dev/null ) | |
10083 | # Handled here to avoid the test to skip args below. | |
10084 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 10085 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
10086 | # Assert: $separate_arg should always be no. |
10087 | keep_next=$separate_arg | |
10088 | ;; | |
c6b750e1 DJ |
10089 | --no*) |
10090 | continue | |
10091 | ;; | |
10092 | --c* | \ | |
10093 | --sr* | \ | |
10094 | --ho* | \ | |
10095 | --bu* | \ | |
10096 | --t* | \ | |
10097 | --program-* | \ | |
10098 | -cache_file* | \ | |
10099 | -srcdir* | \ | |
10100 | -host* | \ | |
10101 | -build* | \ | |
10102 | -target* | \ | |
10103 | -program-prefix* | \ | |
10104 | -program-suffix* | \ | |
10105 | -program-transform-name* ) | |
10106 | skip_next=$separate_arg | |
10107 | continue | |
10108 | ;; | |
10109 | -*) | |
10110 | # An option. Add it. | |
10111 | case $ac_arg in | |
10112 | *\'*) | |
10113 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10114 | esac | |
10115 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
10116 | if test X"$skip_targ" = Xno; then |
10117 | tbaseargs="$tbaseargs '$ac_arg'" | |
10118 | fi | |
c6b750e1 DJ |
10119 | keep_next=$separate_arg |
10120 | ;; | |
10121 | *) | |
10122 | # Either a variable assignment, or a nonopt (triplet). Don't | |
10123 | # pass it down; let the Makefile handle this. | |
10124 | continue | |
10125 | ;; | |
10126 | esac | |
10127 | done | |
10128 | # Remove the initial space we just introduced and, as these will be | |
10129 | # expanded by make, quote '$'. | |
10130 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 10131 | |
f27d4f92 DJ |
10132 | # Add in --program-transform-name, after --program-prefix and |
10133 | # --program-suffix have been applied to it. Autoconf has already | |
10134 | # doubled dollar signs and backslashes in program_transform_name; we want | |
10135 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 10136 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
10137 | # Also, because we want to override the logic in subdir configure scripts to |
10138 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
10139 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
10140 | ${program_transform_name} | |
10141 | EOF_SED | |
10142 | gcc_transform_name=`cat conftestsed.out` | |
10143 | rm -f conftestsed.out | |
10144 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 10145 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
10146 | if test "$silent" = yes; then |
10147 | baseargs="$baseargs --silent" | |
65b4571a | 10148 | tbaseargs="$tbaseargs --silent" |
2444379b | 10149 | fi |
e5f2f7d9 | 10150 | |
34a0f3cf | 10151 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 10152 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 10153 | |
e5f2f7d9 LM |
10154 | if test "$enable_year2038" = no; then |
10155 | baseargs="$baseargs --disable-year2038" | |
10156 | tbaseargs="$tbaseargs --disable-year2038" | |
10157 | fi | |
10158 | ||
4074d5f2 RW |
10159 | # Record and document user additions to sub configure arguments. |
10160 | ||
10161 | ||
10162 | ||
10163 | ||
a0da8069 NN |
10164 | # For the build-side libraries, we just need to pretend we're native, |
10165 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
10166 | # desired. We can't even use the same cache file for all build-side |
10167 | # libraries, as they're compiled differently; some with C, some with | |
10168 | # C++ or with different feature-enabling options. | |
10169 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
10170 | |
10171 | # For host modules, accept cache file option, or specification as blank. | |
10172 | case "${cache_file}" in | |
10173 | "") # empty | |
10174 | cache_file_option="" ;; | |
10175 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
10176 | cache_file_option="--cache-file=${cache_file}" ;; | |
10177 | *) # relative path | |
10178 | cache_file_option="--cache-file=../${cache_file}" ;; | |
10179 | esac | |
10180 | ||
82252c06 NN |
10181 | # Host dirs don't like to share a cache file either, horribly enough. |
10182 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 10183 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 10184 | |
65b4571a | 10185 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
10186 | |
10187 | # Passing a --with-cross-host argument lets the target libraries know | |
10188 | # whether they are being built with a cross-compiler or being built | |
10189 | # native. However, it would be better to use other mechanisms to make the | |
10190 | # sorts of decisions they want to make on this basis. Please consider | |
10191 | # this option to be deprecated. FIXME. | |
10192 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 10193 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
10194 | fi |
10195 | ||
afc0578d | 10196 | # Special user-friendly check for native x86_64-linux build, if |
10197 | # multilib is not explicitly enabled. | |
10198 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
10199 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 10200 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 10201 | dev64=no |
10202 | echo "int main () { return 0; }" > conftest.c | |
10203 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
10204 | if test $? = 0 ; then | |
10205 | if test -s conftest || test -s conftest.exe ; then | |
10206 | dev64=yes | |
10207 | fi | |
10208 | fi | |
10209 | rm -f conftest* | |
10210 | if test x${dev64} != xyes ; then | |
d0ac1c44 | 10211 | 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 | 10212 | fi |
10213 | ;; | |
10214 | esac | |
10215 | ||
938d2b74 RW |
10216 | # Default to --enable-multilib. |
10217 | if test x${enable_multilib} = x ; then | |
a0da8069 | 10218 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 10219 | fi |
a0da8069 NN |
10220 | |
10221 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
10222 | # changed from the earlier setting of with_newlib. | |
10223 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
10224 | target_configargs="--with-newlib ${target_configargs}" | |
10225 | fi | |
10226 | ||
95036d20 NN |
10227 | # Different target subdirs use different values of certain variables |
10228 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
10229 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
10230 | # it doesn't automatically accept command-line overrides of them. | |
10231 | # This means it's not safe for target subdirs to share a cache file, | |
10232 | # which is disgusting, but there you have it. Hopefully this can be | |
10233 | # fixed in future. It's still worthwhile to use a cache file for each | |
10234 | # directory. I think. | |
10235 | ||
ae380b45 MS |
10236 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
10237 | # We need to pass --target, as newer autoconf's requires consistency | |
10238 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 10239 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 10240 | |
a0da8069 NN |
10241 | FLAGS_FOR_TARGET= |
10242 | case " $target_configdirs " in | |
10243 | *" newlib "*) | |
10244 | case " $target_configargs " in | |
10245 | *" --with-newlib "*) | |
10246 | case "$target" in | |
1f53ca9a | 10247 | *-cygwin*) |
6d94c122 | 10248 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 10249 | ;; |
a0da8069 NN |
10250 | esac |
10251 | ||
10252 | # If we're not building GCC, don't discard standard headers. | |
10253 | if test -d ${srcdir}/gcc; then | |
10254 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
10255 | ||
10256 | if test "${build}" != "${host}"; then | |
10257 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
10258 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
10259 | # to it. This is right: we don't want to search that directory | |
10260 | # for binaries, but we want the header files in there, so add | |
10261 | # them explicitly. | |
e552509b | 10262 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
10263 | |
10264 | # Someone might think of using the pre-installed headers on | |
10265 | # Canadian crosses, in case the installed compiler is not fully | |
10266 | # compatible with the compiler being built. In this case, it | |
10267 | # would be better to flag an error than risking having | |
10268 | # incompatible object files being constructed. We can't | |
10269 | # guarantee that an error will be flagged, but let's hope the | |
10270 | # compiler will do it, when presented with incompatible header | |
10271 | # files. | |
10272 | fi | |
10273 | fi | |
10274 | ||
10275 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 10276 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
10277 | # Here host == target, so we don't need to build gcc, |
10278 | # so we don't want to discard standard headers. | |
10279 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
10280 | ;; | |
10281 | *) | |
10282 | # If we're building newlib, use its generic headers last, but search | |
10283 | # for any libc-related directories first (so make it the last -B | |
10284 | # switch). | |
10285 | 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 |
10286 | |
10287 | # If we're building libgloss, find the startup file, simulator library | |
10288 | # and linker script. | |
10289 | case " $target_configdirs " in | |
10290 | *" libgloss "*) | |
10291 | # Look for startup file, simulator library and maybe linker script. | |
10292 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
10293 | # Look for libnosys.a in case the target needs it. | |
10294 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
10295 | # Most targets have the linker script in the source directory. | |
10296 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
10297 | ;; | |
10298 | esac | |
a0da8069 NN |
10299 | ;; |
10300 | esac | |
10301 | ;; | |
10302 | esac | |
10303 | ;; | |
10304 | esac | |
1f53ca9a | 10305 | |
45055374 | 10306 | case "$target" in |
1f53ca9a AO |
10307 | x86_64-*mingw* | *-w64-mingw*) |
10308 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
10309 | # however, use a symlink named 'mingw' in ${prefix} . | |
10310 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
10311 | ;; | |
10312 | *-mingw*) | |
10313 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
10314 | 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' | |
10315 | ;; | |
45055374 | 10316 | esac |
a0da8069 | 10317 | |
5fbad20a DD |
10318 | # Allow the user to override the flags for |
10319 | # our build compiler if desired. | |
c66487f8 NC |
10320 | if test x"${build}" = x"${host}" ; then |
10321 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
e472ec9f | 10322 | CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} |
c66487f8 NC |
10323 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} |
10324 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
10325 | fi | |
5fbad20a | 10326 | |
a0da8069 NN |
10327 | # On Canadian crosses, we'll be searching the right directories for |
10328 | # the previously-installed cross compiler, so don't bother to add | |
10329 | # flags for directories within the install tree of the compiler | |
10330 | # being built; programs in there won't even run. | |
10331 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
10332 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 10333 | 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 |
10334 | fi |
10335 | ||
10336 | if test "x${use_gnu_ld}" = x && | |
10337 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
10338 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 10339 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
10340 | fi |
10341 | ||
a481dbb7 DD |
10342 | # Search for other target-specific linker scripts and such. |
10343 | case "${target}" in | |
4e206d7e DB |
10344 | mep*) |
10345 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
10346 | ;; | |
228cf97d AM |
10347 | # The VxWorks support for shared libraries is getting in |
10348 | # incrementally. Make sure it doesn't get activated implicitly: | |
10349 | *vxworks*) | |
10350 | if test "${enable_shared-unset}" = unset ; then | |
10351 | enable_shared=no | |
10352 | # So the build of libraries knows ... | |
10353 | target_configargs="${target_configargs} --disable-shared" | |
10354 | # So gcc knows ... | |
10355 | host_configargs="${host_configargs} --disable-shared" | |
10356 | fi | |
10357 | ;; | |
4e206d7e DB |
10358 | esac |
10359 | ||
a0da8069 | 10360 | # Makefile fragments. |
3e707e94 PB |
10361 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
10362 | do | |
10363 | eval fragval=\$$frag | |
10364 | if test $fragval != /dev/null; then | |
10365 | eval $frag=${srcdir}/$fragval | |
10366 | fi | |
10367 | done | |
a0da8069 NN |
10368 | |
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | # Miscellanea: directories, flags, etc. | |
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
3bbd2f8f | 10381 | |
6a9cf61e | 10382 | # Build module lists & subconfigure args. |
a0da8069 NN |
10383 | |
10384 | ||
10385 | ||
be01d343 PB |
10386 | # Host module lists & subconfigure args. |
10387 | ||
10388 | ||
10389 | ||
911e63d0 | 10390 | |
be01d343 PB |
10391 | # Target module lists & subconfigure args. |
10392 | ||
10393 | ||
10394 | ||
10395 | # Build tools. | |
10396 | ||
10397 | ||
10398 | ||
1576798e PB |
10399 | |
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
e472ec9f | 10412 | |
228cf97d AM |
10413 | |
10414 | ||
10415 | ||
be01d343 PB |
10416 | # Generate default definitions for YACC, M4, LEX and other programs that run |
10417 | # on the build machine. These are used if the Makefile can't locate these | |
10418 | # programs in objdir. | |
10419 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
10420 | ||
10421 | for ac_prog in 'bison -y' byacc yacc | |
10422 | do | |
c6b750e1 | 10423 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10424 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10426 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10427 | if ${ac_cv_prog_YACC+:} false; then : |
81ecdfbb | 10428 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10429 | else |
10430 | if test -n "$YACC"; then | |
10431 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10432 | else | |
c6b750e1 DJ |
10433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10434 | for as_dir in $PATH | |
10435 | do | |
10436 | IFS=$as_save_IFS | |
10437 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10438 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10439 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10440 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 10441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10442 | break 2 |
10443 | fi | |
10444 | done | |
81ecdfbb RW |
10445 | done |
10446 | IFS=$as_save_IFS | |
c6b750e1 | 10447 | |
be01d343 PB |
10448 | fi |
10449 | fi | |
c6b750e1 | 10450 | YACC=$ac_cv_prog_YACC |
be01d343 | 10451 | if test -n "$YACC"; then |
81ecdfbb RW |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
10453 | $as_echo "$YACC" >&6; } | |
be01d343 | 10454 | else |
81ecdfbb RW |
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10456 | $as_echo "no" >&6; } | |
be01d343 PB |
10457 | fi |
10458 | ||
81ecdfbb | 10459 | |
c6b750e1 | 10460 | test -n "$YACC" && break |
be01d343 PB |
10461 | done |
10462 | test -n "$YACC" || YACC="$MISSING bison -y" | |
10463 | ||
10464 | case " $build_configdirs " in | |
10465 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
10466 | esac |
10467 | ||
10468 | for ac_prog in bison | |
10469 | do | |
c6b750e1 | 10470 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10471 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10473 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10474 | if ${ac_cv_prog_BISON+:} false; then : |
81ecdfbb | 10475 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10476 | else |
10477 | if test -n "$BISON"; then | |
10478 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
10479 | else | |
c6b750e1 DJ |
10480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10481 | for as_dir in $PATH | |
10482 | do | |
10483 | IFS=$as_save_IFS | |
10484 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10485 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10487 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 10488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10489 | break 2 |
10490 | fi | |
10491 | done | |
81ecdfbb RW |
10492 | done |
10493 | IFS=$as_save_IFS | |
c6b750e1 | 10494 | |
be01d343 PB |
10495 | fi |
10496 | fi | |
c6b750e1 | 10497 | BISON=$ac_cv_prog_BISON |
be01d343 | 10498 | if test -n "$BISON"; then |
81ecdfbb RW |
10499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10500 | $as_echo "$BISON" >&6; } | |
be01d343 | 10501 | else |
81ecdfbb RW |
10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10503 | $as_echo "no" >&6; } | |
be01d343 PB |
10504 | fi |
10505 | ||
81ecdfbb | 10506 | |
c6b750e1 | 10507 | test -n "$BISON" && break |
be01d343 PB |
10508 | done |
10509 | test -n "$BISON" || BISON="$MISSING bison" | |
10510 | ||
10511 | case " $build_configdirs " in | |
10512 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
10513 | esac | |
10514 | ||
10515 | for ac_prog in gm4 gnum4 m4 | |
10516 | do | |
c6b750e1 | 10517 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10518 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10520 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10521 | if ${ac_cv_prog_M4+:} false; then : |
81ecdfbb | 10522 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10523 | else |
10524 | if test -n "$M4"; then | |
10525 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
10526 | else | |
c6b750e1 DJ |
10527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10528 | for as_dir in $PATH | |
10529 | do | |
10530 | IFS=$as_save_IFS | |
10531 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10532 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10534 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 10535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10536 | break 2 |
10537 | fi | |
10538 | done | |
81ecdfbb RW |
10539 | done |
10540 | IFS=$as_save_IFS | |
c6b750e1 | 10541 | |
be01d343 PB |
10542 | fi |
10543 | fi | |
c6b750e1 | 10544 | M4=$ac_cv_prog_M4 |
be01d343 | 10545 | if test -n "$M4"; then |
81ecdfbb RW |
10546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
10547 | $as_echo "$M4" >&6; } | |
be01d343 | 10548 | else |
81ecdfbb RW |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10550 | $as_echo "no" >&6; } | |
be01d343 PB |
10551 | fi |
10552 | ||
81ecdfbb | 10553 | |
c6b750e1 | 10554 | test -n "$M4" && break |
be01d343 PB |
10555 | done |
10556 | test -n "$M4" || M4="$MISSING m4" | |
10557 | ||
10558 | case " $build_configdirs " in | |
10559 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
10560 | esac | |
10561 | ||
10562 | for ac_prog in flex lex | |
10563 | do | |
c6b750e1 | 10564 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10565 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10567 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10568 | if ${ac_cv_prog_LEX+:} false; then : |
81ecdfbb | 10569 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10570 | else |
10571 | if test -n "$LEX"; then | |
10572 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10573 | else | |
c6b750e1 DJ |
10574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10575 | for as_dir in $PATH | |
10576 | do | |
10577 | IFS=$as_save_IFS | |
10578 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10579 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10581 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 10582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10583 | break 2 |
10584 | fi | |
10585 | done | |
81ecdfbb RW |
10586 | done |
10587 | IFS=$as_save_IFS | |
c6b750e1 | 10588 | |
be01d343 PB |
10589 | fi |
10590 | fi | |
c6b750e1 | 10591 | LEX=$ac_cv_prog_LEX |
be01d343 | 10592 | if test -n "$LEX"; then |
81ecdfbb RW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
10594 | $as_echo "$LEX" >&6; } | |
be01d343 | 10595 | else |
81ecdfbb RW |
10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10597 | $as_echo "no" >&6; } | |
be01d343 PB |
10598 | fi |
10599 | ||
81ecdfbb | 10600 | |
c6b750e1 | 10601 | test -n "$LEX" && break |
be01d343 PB |
10602 | done |
10603 | test -n "$LEX" || LEX="$MISSING flex" | |
10604 | ||
10605 | case " $build_configdirs " in | |
10606 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10607 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
10608 | esac | |
10609 | ||
10610 | for ac_prog in flex | |
10611 | do | |
c6b750e1 | 10612 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10613 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10615 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10616 | if ${ac_cv_prog_FLEX+:} false; then : |
81ecdfbb | 10617 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10618 | else |
10619 | if test -n "$FLEX"; then | |
10620 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
10621 | else | |
c6b750e1 DJ |
10622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10623 | for as_dir in $PATH | |
10624 | do | |
10625 | IFS=$as_save_IFS | |
10626 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10627 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10629 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 10630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10631 | break 2 |
10632 | fi | |
10633 | done | |
81ecdfbb RW |
10634 | done |
10635 | IFS=$as_save_IFS | |
c6b750e1 | 10636 | |
be01d343 PB |
10637 | fi |
10638 | fi | |
c6b750e1 | 10639 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 10640 | if test -n "$FLEX"; then |
81ecdfbb RW |
10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10642 | $as_echo "$FLEX" >&6; } | |
be01d343 | 10643 | else |
81ecdfbb RW |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10645 | $as_echo "no" >&6; } | |
be01d343 PB |
10646 | fi |
10647 | ||
81ecdfbb | 10648 | |
c6b750e1 | 10649 | test -n "$FLEX" && break |
be01d343 PB |
10650 | done |
10651 | test -n "$FLEX" || FLEX="$MISSING flex" | |
10652 | ||
10653 | case " $build_configdirs " in | |
10654 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
10655 | esac | |
10656 | ||
10657 | for ac_prog in makeinfo | |
10658 | do | |
c6b750e1 | 10659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10660 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10662 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10663 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
81ecdfbb | 10664 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10665 | else |
10666 | if test -n "$MAKEINFO"; then | |
10667 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
10668 | else | |
c6b750e1 DJ |
10669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10670 | for as_dir in $PATH | |
10671 | do | |
10672 | IFS=$as_save_IFS | |
10673 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10674 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10675 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10676 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 10677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10678 | break 2 |
10679 | fi | |
10680 | done | |
81ecdfbb RW |
10681 | done |
10682 | IFS=$as_save_IFS | |
c6b750e1 | 10683 | |
be01d343 PB |
10684 | fi |
10685 | fi | |
c6b750e1 | 10686 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 10687 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
10689 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 10690 | else |
81ecdfbb RW |
10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10692 | $as_echo "no" >&6; } | |
be01d343 PB |
10693 | fi |
10694 | ||
81ecdfbb | 10695 | |
c6b750e1 | 10696 | test -n "$MAKEINFO" && break |
be01d343 PB |
10697 | done |
10698 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
10699 | ||
10700 | case " $build_configdirs " in | |
10701 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
10702 | *) | |
10703 | ||
10ad8ef3 | 10704 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
10705 | # higher, else we use the "missing" dummy. |
10706 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 10707 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
10708 | : |
10709 | else | |
10710 | MAKEINFO="$MISSING makeinfo" | |
10711 | fi | |
10712 | ;; | |
10713 | ||
10714 | esac | |
a0da8069 | 10715 | |
be01d343 | 10716 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 10717 | |
be01d343 PB |
10718 | for ac_prog in expect |
10719 | do | |
c6b750e1 | 10720 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10721 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10723 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10724 | if ${ac_cv_prog_EXPECT+:} false; then : |
81ecdfbb | 10725 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10726 | else |
10727 | if test -n "$EXPECT"; then | |
10728 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
10729 | else | |
c6b750e1 DJ |
10730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10731 | for as_dir in $PATH | |
10732 | do | |
10733 | IFS=$as_save_IFS | |
10734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10735 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10737 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 10738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10739 | break 2 |
10740 | fi | |
10741 | done | |
81ecdfbb RW |
10742 | done |
10743 | IFS=$as_save_IFS | |
c6b750e1 | 10744 | |
be01d343 PB |
10745 | fi |
10746 | fi | |
c6b750e1 | 10747 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 10748 | if test -n "$EXPECT"; then |
81ecdfbb RW |
10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
10750 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 10751 | else |
81ecdfbb RW |
10752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10753 | $as_echo "no" >&6; } | |
be01d343 | 10754 | fi |
a0da8069 | 10755 | |
81ecdfbb | 10756 | |
c6b750e1 | 10757 | test -n "$EXPECT" && break |
be01d343 PB |
10758 | done |
10759 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 10760 | |
be01d343 PB |
10761 | case " $configdirs " in |
10762 | *" expect "*) | |
10763 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
10764 | ;; | |
10765 | esac | |
a0da8069 | 10766 | |
be01d343 PB |
10767 | for ac_prog in runtest |
10768 | do | |
c6b750e1 | 10769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 10770 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
10771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10772 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10773 | if ${ac_cv_prog_RUNTEST+:} false; then : |
81ecdfbb | 10774 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
10775 | else |
10776 | if test -n "$RUNTEST"; then | |
10777 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
10778 | else | |
c6b750e1 DJ |
10779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10780 | for as_dir in $PATH | |
10781 | do | |
10782 | IFS=$as_save_IFS | |
10783 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10784 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10786 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 10787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10788 | break 2 |
10789 | fi | |
10790 | done | |
81ecdfbb RW |
10791 | done |
10792 | IFS=$as_save_IFS | |
c6b750e1 | 10793 | |
be01d343 PB |
10794 | fi |
10795 | fi | |
c6b750e1 | 10796 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 10797 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
10799 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 10800 | else |
81ecdfbb RW |
10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10802 | $as_echo "no" >&6; } | |
be01d343 | 10803 | fi |
a0da8069 | 10804 | |
81ecdfbb | 10805 | |
c6b750e1 | 10806 | test -n "$RUNTEST" && break |
be01d343 PB |
10807 | done |
10808 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 10809 | |
be01d343 PB |
10810 | case " $configdirs " in |
10811 | *" dejagnu "*) | |
6b89cc21 | 10812 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
10813 | ;; |
10814 | esac | |
a0da8069 NN |
10815 | |
10816 | ||
a0da8069 | 10817 | # Host tools. |
859789af AC |
10818 | ncn_tool_prefix= |
10819 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
10820 | ncn_target_tool_prefix= | |
10821 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
10822 | ||
9a819804 AO |
10823 | |
10824 | ||
10825 | if test -n "$AR"; then | |
10826 | ac_cv_prog_AR=$AR | |
10827 | elif test -n "$ac_cv_prog_AR"; then | |
10828 | AR=$ac_cv_prog_AR | |
10829 | fi | |
10830 | ||
10831 | if test -n "$ac_cv_prog_AR"; then | |
10832 | for ncn_progname in ar; do | |
10833 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10834 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10836 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10837 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10838 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10839 | else |
10840 | if test -n "$AR"; then | |
10841 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10842 | else | |
10843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10844 | for as_dir in $PATH | |
10845 | do | |
10846 | IFS=$as_save_IFS | |
10847 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10848 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10849 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10850 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10852 | break 2 |
10853 | fi | |
10854 | done | |
81ecdfbb RW |
10855 | done |
10856 | IFS=$as_save_IFS | |
9a819804 AO |
10857 | |
10858 | fi | |
10859 | fi | |
10860 | AR=$ac_cv_prog_AR | |
10861 | if test -n "$AR"; then | |
81ecdfbb RW |
10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10863 | $as_echo "$AR" >&6; } | |
9a819804 | 10864 | else |
81ecdfbb RW |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10866 | $as_echo "no" >&6; } | |
9a819804 AO |
10867 | fi |
10868 | ||
81ecdfbb | 10869 | |
9a819804 AO |
10870 | done |
10871 | fi | |
10872 | ||
10873 | for ncn_progname in ar; do | |
05cbd757 PB |
10874 | if test -n "$ncn_tool_prefix"; then |
10875 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10876 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10878 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10879 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10880 | $as_echo_n "(cached) " >&6 |
859789af AC |
10881 | else |
10882 | if test -n "$AR"; then | |
10883 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10884 | else | |
c6b750e1 DJ |
10885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10886 | for as_dir in $PATH | |
10887 | do | |
10888 | IFS=$as_save_IFS | |
10889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10890 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10892 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 10893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10894 | break 2 |
10895 | fi | |
10896 | done | |
81ecdfbb RW |
10897 | done |
10898 | IFS=$as_save_IFS | |
c6b750e1 | 10899 | |
859789af AC |
10900 | fi |
10901 | fi | |
c6b750e1 | 10902 | AR=$ac_cv_prog_AR |
859789af | 10903 | if test -n "$AR"; then |
81ecdfbb RW |
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10905 | $as_echo "$AR" >&6; } | |
859789af | 10906 | else |
81ecdfbb RW |
10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10908 | $as_echo "no" >&6; } | |
859789af AC |
10909 | fi |
10910 | ||
81ecdfbb | 10911 | |
05cbd757 PB |
10912 | fi |
10913 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
10914 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10915 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10917 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10918 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 10919 | $as_echo_n "(cached) " >&6 |
859789af | 10920 | else |
05cbd757 PB |
10921 | if test -n "$AR"; then |
10922 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 10923 | else |
c6b750e1 DJ |
10924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10925 | for as_dir in $PATH | |
10926 | do | |
10927 | IFS=$as_save_IFS | |
10928 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10929 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 10931 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 10932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10933 | break 2 |
10934 | fi | |
10935 | done | |
81ecdfbb RW |
10936 | done |
10937 | IFS=$as_save_IFS | |
c6b750e1 | 10938 | |
859789af AC |
10939 | fi |
10940 | fi | |
c6b750e1 | 10941 | AR=$ac_cv_prog_AR |
05cbd757 | 10942 | if test -n "$AR"; then |
81ecdfbb RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
10944 | $as_echo "$AR" >&6; } | |
859789af | 10945 | else |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10947 | $as_echo "no" >&6; } | |
859789af | 10948 | fi |
c6b750e1 | 10949 | |
81ecdfbb | 10950 | |
05cbd757 PB |
10951 | fi |
10952 | test -n "$ac_cv_prog_AR" && break | |
10953 | done | |
10954 | ||
10955 | if test -z "$ac_cv_prog_AR" ; then | |
10956 | set dummy ar | |
10957 | if test $build = $host ; then | |
10958 | AR="$2" | |
859789af | 10959 | else |
05cbd757 | 10960 | AR="${ncn_tool_prefix}$2" |
859789af | 10961 | fi |
859789af AC |
10962 | fi |
10963 | ||
9a819804 AO |
10964 | |
10965 | ||
10966 | if test -n "$AS"; then | |
10967 | ac_cv_prog_AS=$AS | |
10968 | elif test -n "$ac_cv_prog_AS"; then | |
10969 | AS=$ac_cv_prog_AS | |
10970 | fi | |
10971 | ||
10972 | if test -n "$ac_cv_prog_AS"; then | |
10973 | for ncn_progname in as; do | |
10974 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10975 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10977 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 10978 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 10979 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
10980 | else |
10981 | if test -n "$AS"; then | |
10982 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
10983 | else | |
10984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10985 | for as_dir in $PATH | |
10986 | do | |
10987 | IFS=$as_save_IFS | |
10988 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 10989 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 10990 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 10991 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 10992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10993 | break 2 |
10994 | fi | |
10995 | done | |
81ecdfbb RW |
10996 | done |
10997 | IFS=$as_save_IFS | |
9a819804 AO |
10998 | |
10999 | fi | |
11000 | fi | |
11001 | AS=$ac_cv_prog_AS | |
11002 | if test -n "$AS"; then | |
81ecdfbb RW |
11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11004 | $as_echo "$AS" >&6; } | |
9a819804 | 11005 | else |
81ecdfbb RW |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11007 | $as_echo "no" >&6; } | |
9a819804 AO |
11008 | fi |
11009 | ||
81ecdfbb | 11010 | |
9a819804 AO |
11011 | done |
11012 | fi | |
11013 | ||
11014 | for ncn_progname in as; do | |
05cbd757 PB |
11015 | if test -n "$ncn_tool_prefix"; then |
11016 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11017 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11019 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11020 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11021 | $as_echo_n "(cached) " >&6 |
859789af AC |
11022 | else |
11023 | if test -n "$AS"; then | |
11024 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
11025 | else |
11026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11027 | for as_dir in $PATH | |
11028 | do | |
11029 | IFS=$as_save_IFS | |
11030 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11031 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11033 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11035 | break 2 |
11036 | fi | |
11037 | done | |
81ecdfbb RW |
11038 | done |
11039 | IFS=$as_save_IFS | |
c6b750e1 | 11040 | |
859789af AC |
11041 | fi |
11042 | fi | |
c6b750e1 | 11043 | AS=$ac_cv_prog_AS |
859789af | 11044 | if test -n "$AS"; then |
81ecdfbb RW |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11046 | $as_echo "$AS" >&6; } | |
859789af | 11047 | else |
81ecdfbb RW |
11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11049 | $as_echo "no" >&6; } | |
859789af AC |
11050 | fi |
11051 | ||
81ecdfbb | 11052 | |
05cbd757 PB |
11053 | fi |
11054 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
11055 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11056 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11058 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11059 | if ${ac_cv_prog_AS+:} false; then : |
81ecdfbb | 11060 | $as_echo_n "(cached) " >&6 |
859789af | 11061 | else |
05cbd757 PB |
11062 | if test -n "$AS"; then |
11063 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 11064 | else |
c6b750e1 DJ |
11065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11066 | for as_dir in $PATH | |
11067 | do | |
11068 | IFS=$as_save_IFS | |
11069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11070 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11072 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 11073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11074 | break 2 |
11075 | fi | |
11076 | done | |
81ecdfbb RW |
11077 | done |
11078 | IFS=$as_save_IFS | |
c6b750e1 | 11079 | |
859789af AC |
11080 | fi |
11081 | fi | |
c6b750e1 | 11082 | AS=$ac_cv_prog_AS |
05cbd757 | 11083 | if test -n "$AS"; then |
81ecdfbb RW |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
11085 | $as_echo "$AS" >&6; } | |
859789af | 11086 | else |
81ecdfbb RW |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11088 | $as_echo "no" >&6; } | |
859789af | 11089 | fi |
c6b750e1 | 11090 | |
81ecdfbb | 11091 | |
05cbd757 PB |
11092 | fi |
11093 | test -n "$ac_cv_prog_AS" && break | |
11094 | done | |
11095 | ||
11096 | if test -z "$ac_cv_prog_AS" ; then | |
11097 | set dummy as | |
11098 | if test $build = $host ; then | |
11099 | AS="$2" | |
859789af | 11100 | else |
05cbd757 | 11101 | AS="${ncn_tool_prefix}$2" |
859789af | 11102 | fi |
859789af AC |
11103 | fi |
11104 | ||
9a819804 AO |
11105 | |
11106 | ||
11107 | if test -n "$DLLTOOL"; then | |
11108 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
11109 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
11110 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11111 | fi | |
11112 | ||
11113 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
11114 | for ncn_progname in dlltool; do | |
11115 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11116 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11118 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11119 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11120 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11121 | else |
11122 | if test -n "$DLLTOOL"; then | |
11123 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11124 | else | |
11125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11126 | for as_dir in $PATH | |
11127 | do | |
11128 | IFS=$as_save_IFS | |
11129 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11130 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11132 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11134 | break 2 |
11135 | fi | |
11136 | done | |
81ecdfbb RW |
11137 | done |
11138 | IFS=$as_save_IFS | |
9a819804 AO |
11139 | |
11140 | fi | |
11141 | fi | |
11142 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
11143 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11145 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 11146 | else |
81ecdfbb RW |
11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11148 | $as_echo "no" >&6; } | |
9a819804 AO |
11149 | fi |
11150 | ||
81ecdfbb | 11151 | |
9a819804 AO |
11152 | done |
11153 | fi | |
11154 | ||
11155 | for ncn_progname in dlltool; do | |
05cbd757 PB |
11156 | if test -n "$ncn_tool_prefix"; then |
11157 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11158 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11160 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11161 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11162 | $as_echo_n "(cached) " >&6 |
859789af AC |
11163 | else |
11164 | if test -n "$DLLTOOL"; then | |
11165 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
11166 | else | |
c6b750e1 DJ |
11167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11168 | for as_dir in $PATH | |
11169 | do | |
11170 | IFS=$as_save_IFS | |
11171 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11172 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11173 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11174 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11176 | break 2 |
11177 | fi | |
11178 | done | |
81ecdfbb RW |
11179 | done |
11180 | IFS=$as_save_IFS | |
c6b750e1 | 11181 | |
859789af AC |
11182 | fi |
11183 | fi | |
c6b750e1 | 11184 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 11185 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11187 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11188 | else |
81ecdfbb RW |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11190 | $as_echo "no" >&6; } | |
859789af AC |
11191 | fi |
11192 | ||
81ecdfbb | 11193 | |
05cbd757 PB |
11194 | fi |
11195 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
11196 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11197 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11199 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11200 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
81ecdfbb | 11201 | $as_echo_n "(cached) " >&6 |
859789af | 11202 | else |
05cbd757 PB |
11203 | if test -n "$DLLTOOL"; then |
11204 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 11205 | else |
c6b750e1 DJ |
11206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11207 | for as_dir in $PATH | |
11208 | do | |
11209 | IFS=$as_save_IFS | |
11210 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11211 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11213 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 11214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11215 | break 2 |
11216 | fi | |
11217 | done | |
81ecdfbb RW |
11218 | done |
11219 | IFS=$as_save_IFS | |
c6b750e1 | 11220 | |
859789af AC |
11221 | fi |
11222 | fi | |
c6b750e1 | 11223 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 11224 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
11226 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 11227 | else |
81ecdfbb RW |
11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11229 | $as_echo "no" >&6; } | |
859789af | 11230 | fi |
c6b750e1 | 11231 | |
81ecdfbb | 11232 | |
05cbd757 PB |
11233 | fi |
11234 | test -n "$ac_cv_prog_DLLTOOL" && break | |
11235 | done | |
11236 | ||
11237 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
11238 | set dummy dlltool | |
11239 | if test $build = $host ; then | |
11240 | DLLTOOL="$2" | |
859789af | 11241 | else |
05cbd757 | 11242 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 11243 | fi |
859789af AC |
11244 | fi |
11245 | ||
9a819804 AO |
11246 | |
11247 | ||
228cf97d AM |
11248 | if test -n "$DSYMUTIL"; then |
11249 | ac_cv_prog_DSYMUTIL=$DSYMUTIL | |
11250 | elif test -n "$ac_cv_prog_DSYMUTIL"; then | |
11251 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11252 | fi | |
11253 | ||
11254 | if test -n "$ac_cv_prog_DSYMUTIL"; then | |
11255 | for ncn_progname in dsymutil; do | |
11256 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11257 | set dummy ${ncn_progname}; ac_word=$2 | |
11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11259 | $as_echo_n "checking for $ac_word... " >&6; } | |
11260 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11261 | $as_echo_n "(cached) " >&6 | |
11262 | else | |
11263 | if test -n "$DSYMUTIL"; then | |
11264 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11265 | else | |
11266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11267 | for as_dir in $PATH | |
11268 | do | |
11269 | IFS=$as_save_IFS | |
11270 | test -z "$as_dir" && as_dir=. | |
11271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11273 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11275 | break 2 | |
11276 | fi | |
11277 | done | |
11278 | done | |
11279 | IFS=$as_save_IFS | |
11280 | ||
11281 | fi | |
11282 | fi | |
11283 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11284 | if test -n "$DSYMUTIL"; then | |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11286 | $as_echo "$DSYMUTIL" >&6; } | |
11287 | else | |
11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11289 | $as_echo "no" >&6; } | |
11290 | fi | |
11291 | ||
11292 | ||
11293 | done | |
11294 | fi | |
11295 | ||
11296 | for ncn_progname in dsymutil; do | |
11297 | if test -n "$ncn_tool_prefix"; then | |
11298 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11299 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11301 | $as_echo_n "checking for $ac_word... " >&6; } | |
11302 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11303 | $as_echo_n "(cached) " >&6 | |
11304 | else | |
11305 | if test -n "$DSYMUTIL"; then | |
11306 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11307 | else | |
11308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11309 | for as_dir in $PATH | |
11310 | do | |
11311 | IFS=$as_save_IFS | |
11312 | test -z "$as_dir" && as_dir=. | |
11313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11315 | ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}" | |
11316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11317 | break 2 | |
11318 | fi | |
11319 | done | |
11320 | done | |
11321 | IFS=$as_save_IFS | |
11322 | ||
11323 | fi | |
11324 | fi | |
11325 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11326 | if test -n "$DSYMUTIL"; then | |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11328 | $as_echo "$DSYMUTIL" >&6; } | |
11329 | else | |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11331 | $as_echo "no" >&6; } | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | fi | |
11336 | if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then | |
11337 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11338 | set dummy ${ncn_progname}; ac_word=$2 | |
11339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11340 | $as_echo_n "checking for $ac_word... " >&6; } | |
11341 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
11342 | $as_echo_n "(cached) " >&6 | |
11343 | else | |
11344 | if test -n "$DSYMUTIL"; then | |
11345 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
11346 | else | |
11347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11348 | for as_dir in $PATH | |
11349 | do | |
11350 | IFS=$as_save_IFS | |
11351 | test -z "$as_dir" && as_dir=. | |
11352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11354 | ac_cv_prog_DSYMUTIL="${ncn_progname}" | |
11355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11356 | break 2 | |
11357 | fi | |
11358 | done | |
11359 | done | |
11360 | IFS=$as_save_IFS | |
11361 | ||
11362 | fi | |
11363 | fi | |
11364 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
11365 | if test -n "$DSYMUTIL"; then | |
11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
11367 | $as_echo "$DSYMUTIL" >&6; } | |
11368 | else | |
11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11370 | $as_echo "no" >&6; } | |
11371 | fi | |
11372 | ||
11373 | ||
11374 | fi | |
11375 | test -n "$ac_cv_prog_DSYMUTIL" && break | |
11376 | done | |
11377 | ||
11378 | if test -z "$ac_cv_prog_DSYMUTIL" ; then | |
11379 | set dummy dsymutil | |
11380 | if test $build = $host ; then | |
11381 | DSYMUTIL="$2" | |
11382 | else | |
11383 | DSYMUTIL="${ncn_tool_prefix}$2" | |
11384 | fi | |
11385 | fi | |
11386 | ||
11387 | ||
11388 | ||
9a819804 AO |
11389 | if test -n "$LD"; then |
11390 | ac_cv_prog_LD=$LD | |
11391 | elif test -n "$ac_cv_prog_LD"; then | |
11392 | LD=$ac_cv_prog_LD | |
11393 | fi | |
11394 | ||
11395 | if test -n "$ac_cv_prog_LD"; then | |
11396 | for ncn_progname in ld; do | |
11397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11398 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11400 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11401 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11402 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11403 | else |
11404 | if test -n "$LD"; then | |
11405 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11406 | else | |
11407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11408 | for as_dir in $PATH | |
11409 | do | |
11410 | IFS=$as_save_IFS | |
11411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11412 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11414 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11416 | break 2 |
11417 | fi | |
11418 | done | |
81ecdfbb RW |
11419 | done |
11420 | IFS=$as_save_IFS | |
9a819804 AO |
11421 | |
11422 | fi | |
11423 | fi | |
11424 | LD=$ac_cv_prog_LD | |
11425 | if test -n "$LD"; then | |
81ecdfbb RW |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11427 | $as_echo "$LD" >&6; } | |
9a819804 | 11428 | else |
81ecdfbb RW |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11430 | $as_echo "no" >&6; } | |
9a819804 AO |
11431 | fi |
11432 | ||
81ecdfbb | 11433 | |
9a819804 AO |
11434 | done |
11435 | fi | |
11436 | ||
11437 | for ncn_progname in ld; do | |
05cbd757 PB |
11438 | if test -n "$ncn_tool_prefix"; then |
11439 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11440 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11442 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11443 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11444 | $as_echo_n "(cached) " >&6 |
859789af AC |
11445 | else |
11446 | if test -n "$LD"; then | |
11447 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
11448 | else | |
c6b750e1 DJ |
11449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11450 | for as_dir in $PATH | |
11451 | do | |
11452 | IFS=$as_save_IFS | |
11453 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11454 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11456 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11458 | break 2 |
11459 | fi | |
11460 | done | |
81ecdfbb RW |
11461 | done |
11462 | IFS=$as_save_IFS | |
c6b750e1 | 11463 | |
859789af AC |
11464 | fi |
11465 | fi | |
c6b750e1 | 11466 | LD=$ac_cv_prog_LD |
859789af | 11467 | if test -n "$LD"; then |
81ecdfbb RW |
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11469 | $as_echo "$LD" >&6; } | |
859789af | 11470 | else |
81ecdfbb RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11472 | $as_echo "no" >&6; } | |
859789af AC |
11473 | fi |
11474 | ||
81ecdfbb | 11475 | |
05cbd757 PB |
11476 | fi |
11477 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
11478 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11479 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11481 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11482 | if ${ac_cv_prog_LD+:} false; then : |
81ecdfbb | 11483 | $as_echo_n "(cached) " >&6 |
859789af | 11484 | else |
05cbd757 PB |
11485 | if test -n "$LD"; then |
11486 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 11487 | else |
c6b750e1 DJ |
11488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11489 | for as_dir in $PATH | |
11490 | do | |
11491 | IFS=$as_save_IFS | |
11492 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11493 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11495 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 11496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11497 | break 2 |
11498 | fi | |
11499 | done | |
81ecdfbb RW |
11500 | done |
11501 | IFS=$as_save_IFS | |
c6b750e1 | 11502 | |
859789af AC |
11503 | fi |
11504 | fi | |
c6b750e1 | 11505 | LD=$ac_cv_prog_LD |
05cbd757 | 11506 | if test -n "$LD"; then |
81ecdfbb RW |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
11508 | $as_echo "$LD" >&6; } | |
859789af | 11509 | else |
81ecdfbb RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11511 | $as_echo "no" >&6; } | |
859789af | 11512 | fi |
c6b750e1 | 11513 | |
81ecdfbb | 11514 | |
05cbd757 PB |
11515 | fi |
11516 | test -n "$ac_cv_prog_LD" && break | |
11517 | done | |
11518 | ||
11519 | if test -z "$ac_cv_prog_LD" ; then | |
11520 | set dummy ld | |
11521 | if test $build = $host ; then | |
11522 | LD="$2" | |
859789af | 11523 | else |
05cbd757 | 11524 | LD="${ncn_tool_prefix}$2" |
859789af | 11525 | fi |
859789af AC |
11526 | fi |
11527 | ||
9a819804 AO |
11528 | |
11529 | ||
11530 | if test -n "$LIPO"; then | |
11531 | ac_cv_prog_LIPO=$LIPO | |
11532 | elif test -n "$ac_cv_prog_LIPO"; then | |
11533 | LIPO=$ac_cv_prog_LIPO | |
11534 | fi | |
11535 | ||
11536 | if test -n "$ac_cv_prog_LIPO"; then | |
11537 | for ncn_progname in lipo; do | |
11538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11539 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11541 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11542 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11543 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11544 | else |
11545 | if test -n "$LIPO"; then | |
11546 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11547 | else | |
11548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11549 | for as_dir in $PATH | |
11550 | do | |
11551 | IFS=$as_save_IFS | |
11552 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11553 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11555 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11557 | break 2 |
11558 | fi | |
11559 | done | |
81ecdfbb RW |
11560 | done |
11561 | IFS=$as_save_IFS | |
9a819804 AO |
11562 | |
11563 | fi | |
11564 | fi | |
11565 | LIPO=$ac_cv_prog_LIPO | |
11566 | if test -n "$LIPO"; then | |
81ecdfbb RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11568 | $as_echo "$LIPO" >&6; } | |
9a819804 | 11569 | else |
81ecdfbb RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11571 | $as_echo "no" >&6; } | |
9a819804 AO |
11572 | fi |
11573 | ||
81ecdfbb | 11574 | |
9a819804 AO |
11575 | done |
11576 | fi | |
11577 | ||
11578 | for ncn_progname in lipo; do | |
be01d343 PB |
11579 | if test -n "$ncn_tool_prefix"; then |
11580 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11581 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11583 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11584 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11585 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11586 | else |
11587 | if test -n "$LIPO"; then | |
11588 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11589 | else | |
c6b750e1 DJ |
11590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11591 | for as_dir in $PATH | |
11592 | do | |
11593 | IFS=$as_save_IFS | |
11594 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11595 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11597 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11599 | break 2 |
11600 | fi | |
11601 | done | |
81ecdfbb RW |
11602 | done |
11603 | IFS=$as_save_IFS | |
c6b750e1 | 11604 | |
be01d343 PB |
11605 | fi |
11606 | fi | |
c6b750e1 | 11607 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11608 | if test -n "$LIPO"; then |
81ecdfbb RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11610 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11611 | else |
81ecdfbb RW |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11613 | $as_echo "no" >&6; } | |
be01d343 PB |
11614 | fi |
11615 | ||
81ecdfbb | 11616 | |
be01d343 PB |
11617 | fi |
11618 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
11619 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11620 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11622 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11623 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 11624 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
11625 | else |
11626 | if test -n "$LIPO"; then | |
11627 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
11628 | else | |
c6b750e1 DJ |
11629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11630 | for as_dir in $PATH | |
11631 | do | |
11632 | IFS=$as_save_IFS | |
11633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11634 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11636 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 11637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11638 | break 2 |
11639 | fi | |
11640 | done | |
81ecdfbb RW |
11641 | done |
11642 | IFS=$as_save_IFS | |
c6b750e1 | 11643 | |
be01d343 PB |
11644 | fi |
11645 | fi | |
c6b750e1 | 11646 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 11647 | if test -n "$LIPO"; then |
81ecdfbb RW |
11648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
11649 | $as_echo "$LIPO" >&6; } | |
be01d343 | 11650 | else |
81ecdfbb RW |
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11652 | $as_echo "no" >&6; } | |
be01d343 | 11653 | fi |
c6b750e1 | 11654 | |
81ecdfbb | 11655 | |
be01d343 PB |
11656 | fi |
11657 | test -n "$ac_cv_prog_LIPO" && break | |
11658 | done | |
11659 | ||
11660 | if test -z "$ac_cv_prog_LIPO" ; then | |
11661 | set dummy lipo | |
11662 | if test $build = $host ; then | |
11663 | LIPO="$2" | |
11664 | else | |
11665 | LIPO="${ncn_tool_prefix}$2" | |
11666 | fi | |
11667 | fi | |
11668 | ||
9a819804 AO |
11669 | |
11670 | ||
11671 | if test -n "$NM"; then | |
11672 | ac_cv_prog_NM=$NM | |
11673 | elif test -n "$ac_cv_prog_NM"; then | |
11674 | NM=$ac_cv_prog_NM | |
11675 | fi | |
11676 | ||
11677 | if test -n "$ac_cv_prog_NM"; then | |
11678 | for ncn_progname in nm; do | |
11679 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11680 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11682 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11683 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11684 | $as_echo_n "(cached) " >&6 |
859789af AC |
11685 | else |
11686 | if test -n "$NM"; then | |
11687 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11688 | else | |
c6b750e1 DJ |
11689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11690 | for as_dir in $PATH | |
11691 | do | |
11692 | IFS=$as_save_IFS | |
11693 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11694 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11696 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11698 | break 2 |
11699 | fi | |
11700 | done | |
81ecdfbb RW |
11701 | done |
11702 | IFS=$as_save_IFS | |
c6b750e1 | 11703 | |
859789af AC |
11704 | fi |
11705 | fi | |
c6b750e1 | 11706 | NM=$ac_cv_prog_NM |
859789af | 11707 | if test -n "$NM"; then |
81ecdfbb RW |
11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11709 | $as_echo "$NM" >&6; } | |
859789af | 11710 | else |
81ecdfbb RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11712 | $as_echo "no" >&6; } | |
859789af AC |
11713 | fi |
11714 | ||
81ecdfbb | 11715 | |
9a819804 AO |
11716 | done |
11717 | fi | |
11718 | ||
11719 | for ncn_progname in nm; do | |
11720 | if test -n "$ncn_tool_prefix"; then | |
11721 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11722 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11724 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11725 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11726 | $as_echo_n "(cached) " >&6 |
859789af | 11727 | else |
05cbd757 PB |
11728 | if test -n "$NM"; then |
11729 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 11730 | else |
c6b750e1 DJ |
11731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11732 | for as_dir in $PATH | |
11733 | do | |
11734 | IFS=$as_save_IFS | |
11735 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11736 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11738 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11740 | break 2 |
11741 | fi | |
11742 | done | |
81ecdfbb RW |
11743 | done |
11744 | IFS=$as_save_IFS | |
c6b750e1 | 11745 | |
859789af AC |
11746 | fi |
11747 | fi | |
c6b750e1 | 11748 | NM=$ac_cv_prog_NM |
05cbd757 | 11749 | if test -n "$NM"; then |
81ecdfbb RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11751 | $as_echo "$NM" >&6; } | |
859789af | 11752 | else |
81ecdfbb RW |
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11754 | $as_echo "no" >&6; } | |
859789af | 11755 | fi |
c6b750e1 | 11756 | |
81ecdfbb | 11757 | |
05cbd757 | 11758 | fi |
9a819804 AO |
11759 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
11760 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11761 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11763 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11764 | if ${ac_cv_prog_NM+:} false; then : |
81ecdfbb | 11765 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11766 | else |
11767 | if test -n "$NM"; then | |
11768 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
11769 | else | |
11770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11771 | for as_dir in $PATH | |
11772 | do | |
11773 | IFS=$as_save_IFS | |
11774 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11775 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11777 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 11778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11779 | break 2 |
11780 | fi | |
11781 | done | |
81ecdfbb RW |
11782 | done |
11783 | IFS=$as_save_IFS | |
9a819804 AO |
11784 | |
11785 | fi | |
11786 | fi | |
11787 | NM=$ac_cv_prog_NM | |
11788 | if test -n "$NM"; then | |
81ecdfbb RW |
11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
11790 | $as_echo "$NM" >&6; } | |
9a819804 | 11791 | else |
81ecdfbb RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11793 | $as_echo "no" >&6; } | |
9a819804 AO |
11794 | fi |
11795 | ||
81ecdfbb | 11796 | |
9a819804 AO |
11797 | fi |
11798 | test -n "$ac_cv_prog_NM" && break | |
11799 | done | |
11800 | ||
11801 | if test -z "$ac_cv_prog_NM" ; then | |
11802 | set dummy nm | |
11803 | if test $build = $host ; then | |
11804 | NM="$2" | |
11805 | else | |
11806 | NM="${ncn_tool_prefix}$2" | |
11807 | fi | |
11808 | fi | |
11809 | ||
11810 | ||
11811 | ||
11812 | if test -n "$RANLIB"; then | |
11813 | ac_cv_prog_RANLIB=$RANLIB | |
11814 | elif test -n "$ac_cv_prog_RANLIB"; then | |
11815 | RANLIB=$ac_cv_prog_RANLIB | |
11816 | fi | |
11817 | ||
11818 | if test -n "$ac_cv_prog_RANLIB"; then | |
11819 | for ncn_progname in ranlib; do | |
11820 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11821 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11823 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11824 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11825 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11826 | else |
11827 | if test -n "$RANLIB"; then | |
11828 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11829 | else | |
11830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11831 | for as_dir in $PATH | |
11832 | do | |
11833 | IFS=$as_save_IFS | |
11834 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11835 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11837 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11839 | break 2 |
11840 | fi | |
11841 | done | |
81ecdfbb RW |
11842 | done |
11843 | IFS=$as_save_IFS | |
9a819804 AO |
11844 | |
11845 | fi | |
11846 | fi | |
11847 | RANLIB=$ac_cv_prog_RANLIB | |
11848 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11850 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 11851 | else |
81ecdfbb RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11853 | $as_echo "no" >&6; } | |
9a819804 AO |
11854 | fi |
11855 | ||
81ecdfbb | 11856 | |
9a819804 AO |
11857 | done |
11858 | fi | |
859789af | 11859 | |
9a819804 | 11860 | for ncn_progname in ranlib; do |
05cbd757 PB |
11861 | if test -n "$ncn_tool_prefix"; then |
11862 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11863 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11865 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11866 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11867 | $as_echo_n "(cached) " >&6 |
859789af AC |
11868 | else |
11869 | if test -n "$RANLIB"; then | |
11870 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11871 | else | |
c6b750e1 DJ |
11872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11873 | for as_dir in $PATH | |
11874 | do | |
11875 | IFS=$as_save_IFS | |
11876 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11877 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11879 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 11880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11881 | break 2 |
11882 | fi | |
11883 | done | |
81ecdfbb RW |
11884 | done |
11885 | IFS=$as_save_IFS | |
c6b750e1 | 11886 | |
859789af AC |
11887 | fi |
11888 | fi | |
c6b750e1 | 11889 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 11890 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11892 | $as_echo "$RANLIB" >&6; } | |
859789af | 11893 | else |
81ecdfbb RW |
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11895 | $as_echo "no" >&6; } | |
859789af AC |
11896 | fi |
11897 | ||
81ecdfbb | 11898 | |
05cbd757 PB |
11899 | fi |
11900 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
11901 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11902 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11904 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11905 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 11906 | $as_echo_n "(cached) " >&6 |
859789af | 11907 | else |
05cbd757 PB |
11908 | if test -n "$RANLIB"; then |
11909 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 11910 | else |
c6b750e1 DJ |
11911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11912 | for as_dir in $PATH | |
11913 | do | |
11914 | IFS=$as_save_IFS | |
11915 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11916 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 11918 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 11919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11920 | break 2 |
11921 | fi | |
11922 | done | |
81ecdfbb RW |
11923 | done |
11924 | IFS=$as_save_IFS | |
c6b750e1 | 11925 | |
859789af AC |
11926 | fi |
11927 | fi | |
c6b750e1 | 11928 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 11929 | if test -n "$RANLIB"; then |
81ecdfbb RW |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11931 | $as_echo "$RANLIB" >&6; } | |
859789af | 11932 | else |
81ecdfbb RW |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11934 | $as_echo "no" >&6; } | |
859789af | 11935 | fi |
c6b750e1 | 11936 | |
81ecdfbb | 11937 | |
859789af | 11938 | fi |
05cbd757 PB |
11939 | test -n "$ac_cv_prog_RANLIB" && break |
11940 | done | |
11941 | ||
11942 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 11943 | RANLIB="true" |
859789af AC |
11944 | fi |
11945 | ||
9a819804 AO |
11946 | |
11947 | ||
11948 | if test -n "$STRIP"; then | |
11949 | ac_cv_prog_STRIP=$STRIP | |
11950 | elif test -n "$ac_cv_prog_STRIP"; then | |
11951 | STRIP=$ac_cv_prog_STRIP | |
11952 | fi | |
11953 | ||
11954 | if test -n "$ac_cv_prog_STRIP"; then | |
11955 | for ncn_progname in strip; do | |
11956 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11957 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11959 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 11960 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 11961 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
11962 | else |
11963 | if test -n "$STRIP"; then | |
11964 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11965 | else | |
11966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11967 | for as_dir in $PATH | |
11968 | do | |
11969 | IFS=$as_save_IFS | |
11970 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 11971 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 11972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 11973 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 11974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11975 | break 2 |
11976 | fi | |
11977 | done | |
81ecdfbb RW |
11978 | done |
11979 | IFS=$as_save_IFS | |
9a819804 AO |
11980 | |
11981 | fi | |
11982 | fi | |
11983 | STRIP=$ac_cv_prog_STRIP | |
11984 | if test -n "$STRIP"; then | |
81ecdfbb RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11986 | $as_echo "$STRIP" >&6; } | |
9a819804 | 11987 | else |
81ecdfbb RW |
11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11989 | $as_echo "no" >&6; } | |
9a819804 AO |
11990 | fi |
11991 | ||
81ecdfbb | 11992 | |
9a819804 AO |
11993 | done |
11994 | fi | |
11995 | ||
11996 | for ncn_progname in strip; do | |
be01d343 PB |
11997 | if test -n "$ncn_tool_prefix"; then |
11998 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11999 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12001 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12002 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12003 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12004 | else |
12005 | if test -n "$STRIP"; then | |
12006 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12007 | else | |
c6b750e1 DJ |
12008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12009 | for as_dir in $PATH | |
12010 | do | |
12011 | IFS=$as_save_IFS | |
12012 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12013 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12015 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12017 | break 2 |
12018 | fi | |
12019 | done | |
81ecdfbb RW |
12020 | done |
12021 | IFS=$as_save_IFS | |
c6b750e1 | 12022 | |
be01d343 PB |
12023 | fi |
12024 | fi | |
c6b750e1 | 12025 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12026 | if test -n "$STRIP"; then |
81ecdfbb RW |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12028 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12029 | else |
81ecdfbb RW |
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12031 | $as_echo "no" >&6; } | |
be01d343 PB |
12032 | fi |
12033 | ||
81ecdfbb | 12034 | |
be01d343 PB |
12035 | fi |
12036 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
12037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12038 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12040 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12041 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 12042 | $as_echo_n "(cached) " >&6 |
be01d343 PB |
12043 | else |
12044 | if test -n "$STRIP"; then | |
12045 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12046 | else | |
c6b750e1 DJ |
12047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12048 | for as_dir in $PATH | |
12049 | do | |
12050 | IFS=$as_save_IFS | |
12051 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12052 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12054 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 12055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12056 | break 2 |
12057 | fi | |
12058 | done | |
81ecdfbb RW |
12059 | done |
12060 | IFS=$as_save_IFS | |
c6b750e1 | 12061 | |
be01d343 PB |
12062 | fi |
12063 | fi | |
c6b750e1 | 12064 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 12065 | if test -n "$STRIP"; then |
81ecdfbb RW |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
12067 | $as_echo "$STRIP" >&6; } | |
be01d343 | 12068 | else |
81ecdfbb RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12070 | $as_echo "no" >&6; } | |
be01d343 | 12071 | fi |
c6b750e1 | 12072 | |
81ecdfbb | 12073 | |
be01d343 PB |
12074 | fi |
12075 | test -n "$ac_cv_prog_STRIP" && break | |
12076 | done | |
12077 | ||
12078 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 12079 | STRIP="true" |
be01d343 PB |
12080 | fi |
12081 | ||
9a819804 AO |
12082 | |
12083 | ||
12084 | if test -n "$WINDRES"; then | |
12085 | ac_cv_prog_WINDRES=$WINDRES | |
12086 | elif test -n "$ac_cv_prog_WINDRES"; then | |
12087 | WINDRES=$ac_cv_prog_WINDRES | |
12088 | fi | |
12089 | ||
12090 | if test -n "$ac_cv_prog_WINDRES"; then | |
12091 | for ncn_progname in windres; do | |
12092 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12093 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12095 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12096 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12097 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12098 | else |
12099 | if test -n "$WINDRES"; then | |
12100 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12101 | else | |
12102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12103 | for as_dir in $PATH | |
12104 | do | |
12105 | IFS=$as_save_IFS | |
12106 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12107 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12109 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12111 | break 2 |
12112 | fi | |
12113 | done | |
81ecdfbb RW |
12114 | done |
12115 | IFS=$as_save_IFS | |
9a819804 AO |
12116 | |
12117 | fi | |
12118 | fi | |
12119 | WINDRES=$ac_cv_prog_WINDRES | |
12120 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12122 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 12123 | else |
81ecdfbb RW |
12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12125 | $as_echo "no" >&6; } | |
9a819804 AO |
12126 | fi |
12127 | ||
81ecdfbb | 12128 | |
9a819804 AO |
12129 | done |
12130 | fi | |
12131 | ||
12132 | for ncn_progname in windres; do | |
05cbd757 PB |
12133 | if test -n "$ncn_tool_prefix"; then |
12134 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12135 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12137 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12138 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12139 | $as_echo_n "(cached) " >&6 |
859789af AC |
12140 | else |
12141 | if test -n "$WINDRES"; then | |
12142 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
12143 | else | |
c6b750e1 DJ |
12144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12145 | for as_dir in $PATH | |
12146 | do | |
12147 | IFS=$as_save_IFS | |
12148 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12149 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12151 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12153 | break 2 |
12154 | fi | |
12155 | done | |
81ecdfbb RW |
12156 | done |
12157 | IFS=$as_save_IFS | |
c6b750e1 | 12158 | |
859789af AC |
12159 | fi |
12160 | fi | |
c6b750e1 | 12161 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 12162 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12164 | $as_echo "$WINDRES" >&6; } | |
859789af | 12165 | else |
81ecdfbb RW |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12167 | $as_echo "no" >&6; } | |
859789af AC |
12168 | fi |
12169 | ||
81ecdfbb | 12170 | |
05cbd757 PB |
12171 | fi |
12172 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
12173 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12174 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12176 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12177 | if ${ac_cv_prog_WINDRES+:} false; then : |
81ecdfbb | 12178 | $as_echo_n "(cached) " >&6 |
859789af | 12179 | else |
05cbd757 PB |
12180 | if test -n "$WINDRES"; then |
12181 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 12182 | else |
c6b750e1 DJ |
12183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12184 | for as_dir in $PATH | |
12185 | do | |
12186 | IFS=$as_save_IFS | |
12187 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12188 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 12190 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 12191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12192 | break 2 |
12193 | fi | |
12194 | done | |
81ecdfbb RW |
12195 | done |
12196 | IFS=$as_save_IFS | |
c6b750e1 | 12197 | |
859789af AC |
12198 | fi |
12199 | fi | |
c6b750e1 | 12200 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 12201 | if test -n "$WINDRES"; then |
81ecdfbb RW |
12202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
12203 | $as_echo "$WINDRES" >&6; } | |
859789af | 12204 | else |
81ecdfbb RW |
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12206 | $as_echo "no" >&6; } | |
859789af | 12207 | fi |
c6b750e1 | 12208 | |
81ecdfbb | 12209 | |
05cbd757 PB |
12210 | fi |
12211 | test -n "$ac_cv_prog_WINDRES" && break | |
12212 | done | |
12213 | ||
12214 | if test -z "$ac_cv_prog_WINDRES" ; then | |
12215 | set dummy windres | |
12216 | if test $build = $host ; then | |
12217 | WINDRES="$2" | |
859789af | 12218 | else |
05cbd757 | 12219 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 12220 | fi |
859789af AC |
12221 | fi |
12222 | ||
9a819804 AO |
12223 | |
12224 | ||
0c24b341 NC |
12225 | if test -n "$WINDMC"; then |
12226 | ac_cv_prog_WINDMC=$WINDMC | |
12227 | elif test -n "$ac_cv_prog_WINDMC"; then | |
12228 | WINDMC=$ac_cv_prog_WINDMC | |
12229 | fi | |
12230 | ||
12231 | if test -n "$ac_cv_prog_WINDMC"; then | |
12232 | for ncn_progname in windmc; do | |
12233 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12234 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12236 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12237 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12238 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12239 | else |
12240 | if test -n "$WINDMC"; then | |
12241 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12242 | else | |
12243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12244 | for as_dir in $PATH | |
12245 | do | |
12246 | IFS=$as_save_IFS | |
12247 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12248 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12250 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12252 | break 2 |
12253 | fi | |
12254 | done | |
81ecdfbb RW |
12255 | done |
12256 | IFS=$as_save_IFS | |
0c24b341 NC |
12257 | |
12258 | fi | |
12259 | fi | |
12260 | WINDMC=$ac_cv_prog_WINDMC | |
12261 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12263 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12264 | else |
81ecdfbb RW |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12266 | $as_echo "no" >&6; } | |
0c24b341 NC |
12267 | fi |
12268 | ||
81ecdfbb | 12269 | |
0c24b341 NC |
12270 | done |
12271 | fi | |
12272 | ||
12273 | for ncn_progname in windmc; do | |
12274 | if test -n "$ncn_tool_prefix"; then | |
12275 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12276 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12278 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12279 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12280 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12281 | else |
12282 | if test -n "$WINDMC"; then | |
12283 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12284 | else | |
12285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12286 | for as_dir in $PATH | |
12287 | do | |
12288 | IFS=$as_save_IFS | |
12289 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12290 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12291 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12292 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12293 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12294 | break 2 |
12295 | fi | |
12296 | done | |
81ecdfbb RW |
12297 | done |
12298 | IFS=$as_save_IFS | |
0c24b341 NC |
12299 | |
12300 | fi | |
12301 | fi | |
12302 | WINDMC=$ac_cv_prog_WINDMC | |
12303 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12305 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12306 | else |
81ecdfbb RW |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12308 | $as_echo "no" >&6; } | |
0c24b341 NC |
12309 | fi |
12310 | ||
81ecdfbb | 12311 | |
0c24b341 NC |
12312 | fi |
12313 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
12314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12315 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12317 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12318 | if ${ac_cv_prog_WINDMC+:} false; then : |
81ecdfbb | 12319 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
12320 | else |
12321 | if test -n "$WINDMC"; then | |
12322 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
12323 | else | |
12324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12325 | for as_dir in $PATH | |
12326 | do | |
12327 | IFS=$as_save_IFS | |
12328 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12329 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 12331 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 12332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12333 | break 2 |
12334 | fi | |
12335 | done | |
81ecdfbb RW |
12336 | done |
12337 | IFS=$as_save_IFS | |
0c24b341 NC |
12338 | |
12339 | fi | |
12340 | fi | |
12341 | WINDMC=$ac_cv_prog_WINDMC | |
12342 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
12343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
12344 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 12345 | else |
81ecdfbb RW |
12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12347 | $as_echo "no" >&6; } | |
0c24b341 NC |
12348 | fi |
12349 | ||
81ecdfbb | 12350 | |
0c24b341 NC |
12351 | fi |
12352 | test -n "$ac_cv_prog_WINDMC" && break | |
12353 | done | |
12354 | ||
12355 | if test -z "$ac_cv_prog_WINDMC" ; then | |
12356 | set dummy windmc | |
12357 | if test $build = $host ; then | |
12358 | WINDMC="$2" | |
12359 | else | |
12360 | WINDMC="${ncn_tool_prefix}$2" | |
12361 | fi | |
12362 | fi | |
12363 | ||
12364 | ||
12365 | ||
9a819804 AO |
12366 | if test -n "$OBJCOPY"; then |
12367 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
12368 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
12369 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12370 | fi | |
12371 | ||
12372 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
12373 | for ncn_progname in objcopy; do | |
12374 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12375 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12377 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12378 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
81ecdfbb | 12379 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
12380 | else |
12381 | if test -n "$OBJCOPY"; then | |
12382 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12383 | else | |
12384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12385 | for as_dir in $PATH | |
12386 | do | |
12387 | IFS=$as_save_IFS | |
12388 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12389 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 12391 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 12392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12393 | break 2 |
12394 | fi | |
12395 | done | |
81ecdfbb RW |
12396 | done |
12397 | IFS=$as_save_IFS | |
9a819804 AO |
12398 | |
12399 | fi | |
12400 | fi | |
228cf97d AM |
12401 | OBJCOPY=$ac_cv_prog_OBJCOPY |
12402 | if test -n "$OBJCOPY"; then | |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12404 | $as_echo "$OBJCOPY" >&6; } | |
12405 | else | |
12406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12407 | $as_echo "no" >&6; } | |
12408 | fi | |
12409 | ||
12410 | ||
12411 | done | |
12412 | fi | |
12413 | ||
12414 | for ncn_progname in objcopy; do | |
12415 | if test -n "$ncn_tool_prefix"; then | |
12416 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12417 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12419 | $as_echo_n "checking for $ac_word... " >&6; } | |
12420 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12421 | $as_echo_n "(cached) " >&6 | |
12422 | else | |
12423 | if test -n "$OBJCOPY"; then | |
12424 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12425 | else | |
12426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12427 | for as_dir in $PATH | |
12428 | do | |
12429 | IFS=$as_save_IFS | |
12430 | test -z "$as_dir" && as_dir=. | |
12431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12433 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" | |
12434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12435 | break 2 | |
12436 | fi | |
12437 | done | |
12438 | done | |
12439 | IFS=$as_save_IFS | |
12440 | ||
12441 | fi | |
12442 | fi | |
12443 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12444 | if test -n "$OBJCOPY"; then | |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12446 | $as_echo "$OBJCOPY" >&6; } | |
12447 | else | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12449 | $as_echo "no" >&6; } | |
12450 | fi | |
12451 | ||
12452 | ||
12453 | fi | |
12454 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
12455 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12456 | set dummy ${ncn_progname}; ac_word=$2 | |
12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12458 | $as_echo_n "checking for $ac_word... " >&6; } | |
12459 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
12460 | $as_echo_n "(cached) " >&6 | |
12461 | else | |
12462 | if test -n "$OBJCOPY"; then | |
12463 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
12464 | else | |
12465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12466 | for as_dir in $PATH | |
12467 | do | |
12468 | IFS=$as_save_IFS | |
12469 | test -z "$as_dir" && as_dir=. | |
12470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12472 | ac_cv_prog_OBJCOPY="${ncn_progname}" | |
12473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12474 | break 2 | |
12475 | fi | |
12476 | done | |
12477 | done | |
12478 | IFS=$as_save_IFS | |
12479 | ||
12480 | fi | |
12481 | fi | |
12482 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
12483 | if test -n "$OBJCOPY"; then | |
12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
12485 | $as_echo "$OBJCOPY" >&6; } | |
12486 | else | |
12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12488 | $as_echo "no" >&6; } | |
12489 | fi | |
12490 | ||
12491 | ||
12492 | fi | |
12493 | test -n "$ac_cv_prog_OBJCOPY" && break | |
12494 | done | |
12495 | ||
12496 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
12497 | set dummy objcopy | |
12498 | if test $build = $host ; then | |
12499 | OBJCOPY="$2" | |
12500 | else | |
12501 | OBJCOPY="${ncn_tool_prefix}$2" | |
12502 | fi | |
12503 | fi | |
12504 | ||
12505 | ||
12506 | ||
12507 | if test -n "$OBJDUMP"; then | |
12508 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
12509 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
12510 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12511 | fi | |
12512 | ||
12513 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
12514 | for ncn_progname in objdump; do | |
12515 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12516 | set dummy ${ncn_progname}; ac_word=$2 | |
12517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12518 | $as_echo_n "checking for $ac_word... " >&6; } | |
12519 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
12520 | $as_echo_n "(cached) " >&6 | |
12521 | else | |
12522 | if test -n "$OBJDUMP"; then | |
12523 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
12524 | else | |
12525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12526 | for as_dir in $PATH | |
12527 | do | |
12528 | IFS=$as_save_IFS | |
12529 | test -z "$as_dir" && as_dir=. | |
12530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12531 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12532 | ac_cv_prog_OBJDUMP="${ncn_progname}" | |
12533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12534 | break 2 | |
12535 | fi | |
12536 | done | |
12537 | done | |
12538 | IFS=$as_save_IFS | |
12539 | ||
12540 | fi | |
12541 | fi | |
12542 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
12543 | if test -n "$OBJDUMP"; then | |
12544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12545 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 12546 | else |
81ecdfbb RW |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12548 | $as_echo "no" >&6; } | |
9a819804 AO |
12549 | fi |
12550 | ||
81ecdfbb | 12551 | |
9a819804 AO |
12552 | done |
12553 | fi | |
12554 | ||
228cf97d | 12555 | for ncn_progname in objdump; do |
05cbd757 PB |
12556 | if test -n "$ncn_tool_prefix"; then |
12557 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12558 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12560 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12561 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12562 | $as_echo_n "(cached) " >&6 |
859789af | 12563 | else |
228cf97d AM |
12564 | if test -n "$OBJDUMP"; then |
12565 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12566 | else |
c6b750e1 DJ |
12567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12568 | for as_dir in $PATH | |
12569 | do | |
12570 | IFS=$as_save_IFS | |
12571 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12572 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12574 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12576 | break 2 |
12577 | fi | |
12578 | done | |
81ecdfbb RW |
12579 | done |
12580 | IFS=$as_save_IFS | |
c6b750e1 | 12581 | |
859789af AC |
12582 | fi |
12583 | fi | |
228cf97d AM |
12584 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12585 | if test -n "$OBJDUMP"; then | |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12587 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12588 | else |
81ecdfbb RW |
12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12590 | $as_echo "no" >&6; } | |
859789af AC |
12591 | fi |
12592 | ||
81ecdfbb | 12593 | |
05cbd757 | 12594 | fi |
228cf97d | 12595 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then |
05cbd757 PB |
12596 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12597 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12599 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12600 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 12601 | $as_echo_n "(cached) " >&6 |
859789af | 12602 | else |
228cf97d AM |
12603 | if test -n "$OBJDUMP"; then |
12604 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 12605 | else |
c6b750e1 DJ |
12606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12607 | for as_dir in $PATH | |
12608 | do | |
12609 | IFS=$as_save_IFS | |
12610 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12611 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12613 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 12614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12615 | break 2 |
12616 | fi | |
12617 | done | |
81ecdfbb RW |
12618 | done |
12619 | IFS=$as_save_IFS | |
c6b750e1 | 12620 | |
859789af AC |
12621 | fi |
12622 | fi | |
228cf97d AM |
12623 | OBJDUMP=$ac_cv_prog_OBJDUMP |
12624 | if test -n "$OBJDUMP"; then | |
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
12626 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 12627 | else |
81ecdfbb RW |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12629 | $as_echo "no" >&6; } | |
859789af | 12630 | fi |
c6b750e1 | 12631 | |
81ecdfbb | 12632 | |
05cbd757 | 12633 | fi |
228cf97d | 12634 | test -n "$ac_cv_prog_OBJDUMP" && break |
05cbd757 PB |
12635 | done |
12636 | ||
228cf97d AM |
12637 | if test -z "$ac_cv_prog_OBJDUMP" ; then |
12638 | set dummy objdump | |
05cbd757 | 12639 | if test $build = $host ; then |
228cf97d | 12640 | OBJDUMP="$2" |
859789af | 12641 | else |
228cf97d | 12642 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 12643 | fi |
859789af AC |
12644 | fi |
12645 | ||
9a819804 AO |
12646 | |
12647 | ||
228cf97d AM |
12648 | if test -n "$OTOOL"; then |
12649 | ac_cv_prog_OTOOL=$OTOOL | |
12650 | elif test -n "$ac_cv_prog_OTOOL"; then | |
12651 | OTOOL=$ac_cv_prog_OTOOL | |
9a819804 AO |
12652 | fi |
12653 | ||
228cf97d AM |
12654 | if test -n "$ac_cv_prog_OTOOL"; then |
12655 | for ncn_progname in otool; do | |
9a819804 AO |
12656 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12657 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12659 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12660 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12661 | $as_echo_n "(cached) " >&6 |
9a819804 | 12662 | else |
228cf97d AM |
12663 | if test -n "$OTOOL"; then |
12664 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9a819804 AO |
12665 | else |
12666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12667 | for as_dir in $PATH | |
12668 | do | |
12669 | IFS=$as_save_IFS | |
12670 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12671 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12672 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12673 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12675 | break 2 |
12676 | fi | |
12677 | done | |
81ecdfbb RW |
12678 | done |
12679 | IFS=$as_save_IFS | |
9a819804 AO |
12680 | |
12681 | fi | |
12682 | fi | |
228cf97d AM |
12683 | OTOOL=$ac_cv_prog_OTOOL |
12684 | if test -n "$OTOOL"; then | |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12686 | $as_echo "$OTOOL" >&6; } | |
9a819804 | 12687 | else |
81ecdfbb RW |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12689 | $as_echo "no" >&6; } | |
9a819804 AO |
12690 | fi |
12691 | ||
81ecdfbb | 12692 | |
9a819804 AO |
12693 | done |
12694 | fi | |
12695 | ||
228cf97d | 12696 | for ncn_progname in otool; do |
05cbd757 PB |
12697 | if test -n "$ncn_tool_prefix"; then |
12698 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12699 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12701 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12702 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12703 | $as_echo_n "(cached) " >&6 |
859789af | 12704 | else |
228cf97d AM |
12705 | if test -n "$OTOOL"; then |
12706 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12707 | else |
c6b750e1 DJ |
12708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12709 | for as_dir in $PATH | |
12710 | do | |
12711 | IFS=$as_save_IFS | |
12712 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12713 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12714 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12715 | ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 12716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12717 | break 2 |
12718 | fi | |
12719 | done | |
81ecdfbb RW |
12720 | done |
12721 | IFS=$as_save_IFS | |
c6b750e1 | 12722 | |
859789af AC |
12723 | fi |
12724 | fi | |
228cf97d AM |
12725 | OTOOL=$ac_cv_prog_OTOOL |
12726 | if test -n "$OTOOL"; then | |
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12728 | $as_echo "$OTOOL" >&6; } | |
859789af | 12729 | else |
81ecdfbb RW |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12731 | $as_echo "no" >&6; } | |
859789af AC |
12732 | fi |
12733 | ||
81ecdfbb | 12734 | |
05cbd757 | 12735 | fi |
228cf97d | 12736 | if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then |
05cbd757 PB |
12737 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
12738 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12740 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 12741 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 12742 | $as_echo_n "(cached) " >&6 |
859789af | 12743 | else |
228cf97d AM |
12744 | if test -n "$OTOOL"; then |
12745 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
859789af | 12746 | else |
c6b750e1 DJ |
12747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12748 | for as_dir in $PATH | |
12749 | do | |
12750 | IFS=$as_save_IFS | |
12751 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12752 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 12754 | ac_cv_prog_OTOOL="${ncn_progname}" |
81ecdfbb | 12755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12756 | break 2 |
12757 | fi | |
12758 | done | |
81ecdfbb RW |
12759 | done |
12760 | IFS=$as_save_IFS | |
c6b750e1 | 12761 | |
859789af AC |
12762 | fi |
12763 | fi | |
228cf97d AM |
12764 | OTOOL=$ac_cv_prog_OTOOL |
12765 | if test -n "$OTOOL"; then | |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
12767 | $as_echo "$OTOOL" >&6; } | |
859789af | 12768 | else |
81ecdfbb RW |
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12770 | $as_echo "no" >&6; } | |
859789af | 12771 | fi |
c6b750e1 | 12772 | |
81ecdfbb | 12773 | |
05cbd757 | 12774 | fi |
228cf97d | 12775 | test -n "$ac_cv_prog_OTOOL" && break |
05cbd757 PB |
12776 | done |
12777 | ||
228cf97d AM |
12778 | if test -z "$ac_cv_prog_OTOOL" ; then |
12779 | set dummy otool | |
05cbd757 | 12780 | if test $build = $host ; then |
228cf97d | 12781 | OTOOL="$2" |
859789af | 12782 | else |
228cf97d | 12783 | OTOOL="${ncn_tool_prefix}$2" |
859789af | 12784 | fi |
859789af AC |
12785 | fi |
12786 | ||
a0da8069 NN |
12787 | |
12788 | ||
b121d7d4 DD |
12789 | if test -n "$READELF"; then |
12790 | ac_cv_prog_READELF=$READELF | |
12791 | elif test -n "$ac_cv_prog_READELF"; then | |
12792 | READELF=$ac_cv_prog_READELF | |
12793 | fi | |
12794 | ||
12795 | if test -n "$ac_cv_prog_READELF"; then | |
12796 | for ncn_progname in readelf; do | |
12797 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12798 | set dummy ${ncn_progname}; ac_word=$2 | |
12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12800 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12801 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12802 | $as_echo_n "(cached) " >&6 |
12803 | else | |
12804 | if test -n "$READELF"; then | |
12805 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12806 | else | |
12807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12808 | for as_dir in $PATH | |
12809 | do | |
12810 | IFS=$as_save_IFS | |
12811 | test -z "$as_dir" && as_dir=. | |
12812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12814 | ac_cv_prog_READELF="${ncn_progname}" |
12815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12816 | break 2 | |
12817 | fi | |
12818 | done | |
12819 | done | |
12820 | IFS=$as_save_IFS | |
12821 | ||
12822 | fi | |
12823 | fi | |
12824 | READELF=$ac_cv_prog_READELF | |
12825 | if test -n "$READELF"; then | |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12827 | $as_echo "$READELF" >&6; } | |
12828 | else | |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12830 | $as_echo "no" >&6; } | |
12831 | fi | |
12832 | ||
12833 | ||
12834 | done | |
12835 | fi | |
12836 | ||
12837 | for ncn_progname in readelf; do | |
12838 | if test -n "$ncn_tool_prefix"; then | |
12839 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12840 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
12841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12842 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12843 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12844 | $as_echo_n "(cached) " >&6 |
12845 | else | |
12846 | if test -n "$READELF"; then | |
12847 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12848 | else | |
12849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12850 | for as_dir in $PATH | |
12851 | do | |
12852 | IFS=$as_save_IFS | |
12853 | test -z "$as_dir" && as_dir=. | |
12854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12856 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" |
12857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12858 | break 2 | |
12859 | fi | |
12860 | done | |
12861 | done | |
12862 | IFS=$as_save_IFS | |
12863 | ||
12864 | fi | |
12865 | fi | |
12866 | READELF=$ac_cv_prog_READELF | |
12867 | if test -n "$READELF"; then | |
12868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12869 | $as_echo "$READELF" >&6; } | |
12870 | else | |
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12872 | $as_echo "no" >&6; } | |
12873 | fi | |
12874 | ||
12875 | ||
12876 | fi | |
12877 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
12878 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12879 | set dummy ${ncn_progname}; ac_word=$2 | |
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12881 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12882 | if ${ac_cv_prog_READELF+:} false; then : |
b121d7d4 DD |
12883 | $as_echo_n "(cached) " >&6 |
12884 | else | |
12885 | if test -n "$READELF"; then | |
12886 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
12887 | else | |
12888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12889 | for as_dir in $PATH | |
12890 | do | |
12891 | IFS=$as_save_IFS | |
12892 | test -z "$as_dir" && as_dir=. | |
12893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 12894 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
12895 | ac_cv_prog_READELF="${ncn_progname}" |
12896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12897 | break 2 | |
12898 | fi | |
12899 | done | |
12900 | done | |
12901 | IFS=$as_save_IFS | |
12902 | ||
12903 | fi | |
12904 | fi | |
12905 | READELF=$ac_cv_prog_READELF | |
12906 | if test -n "$READELF"; then | |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
12908 | $as_echo "$READELF" >&6; } | |
12909 | else | |
12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12911 | $as_echo "no" >&6; } | |
12912 | fi | |
12913 | ||
12914 | ||
12915 | fi | |
12916 | test -n "$ac_cv_prog_READELF" && break | |
12917 | done | |
12918 | ||
12919 | if test -z "$ac_cv_prog_READELF" ; then | |
12920 | set dummy readelf | |
12921 | if test $build = $host ; then | |
12922 | READELF="$2" | |
12923 | else | |
12924 | READELF="${ncn_tool_prefix}$2" | |
12925 | fi | |
12926 | fi | |
12927 | ||
12928 | ||
12929 | ||
a0da8069 NN |
12930 | |
12931 | ||
12932 | ||
de83289e | 12933 | |
228cf97d | 12934 | |
50ad1254 L |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 |
12936 | $as_echo_n "checking for -plugin option... " >&6; } | |
12937 | ||
12938 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
12939 | plugin_option= | |
12940 | for plugin in $plugin_names; do | |
12941 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
12942 | if test x$plugin_so = x$plugin; then | |
12943 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
12944 | fi | |
12945 | if test x$plugin_so != x$plugin; then | |
12946 | plugin_option="--plugin $plugin_so" | |
12947 | break | |
12948 | fi | |
12949 | done | |
03c02f31 L |
12950 | if test -n "$ac_tool_prefix"; then |
12951 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
12952 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12954 | $as_echo_n "checking for $ac_word... " >&6; } | |
12955 | if ${ac_cv_prog_AR+:} false; then : | |
12956 | $as_echo_n "(cached) " >&6 | |
12957 | else | |
12958 | if test -n "$AR"; then | |
12959 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12960 | else | |
12961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12962 | for as_dir in $PATH | |
12963 | do | |
12964 | IFS=$as_save_IFS | |
12965 | test -z "$as_dir" && as_dir=. | |
12966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12968 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
12969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12970 | break 2 | |
12971 | fi | |
12972 | done | |
12973 | done | |
12974 | IFS=$as_save_IFS | |
12975 | ||
12976 | fi | |
12977 | fi | |
12978 | AR=$ac_cv_prog_AR | |
12979 | if test -n "$AR"; then | |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12981 | $as_echo "$AR" >&6; } | |
12982 | else | |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12984 | $as_echo "no" >&6; } | |
12985 | fi | |
12986 | ||
12987 | ||
12988 | fi | |
12989 | if test -z "$ac_cv_prog_AR"; then | |
12990 | ac_ct_AR=$AR | |
12991 | # Extract the first word of "ar", so it can be a program name with args. | |
12992 | set dummy ar; ac_word=$2 | |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12994 | $as_echo_n "checking for $ac_word... " >&6; } | |
12995 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
12996 | $as_echo_n "(cached) " >&6 | |
12997 | else | |
12998 | if test -n "$ac_ct_AR"; then | |
12999 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13000 | else | |
13001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13002 | for as_dir in $PATH | |
13003 | do | |
13004 | IFS=$as_save_IFS | |
13005 | test -z "$as_dir" && as_dir=. | |
13006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13008 | ac_cv_prog_ac_ct_AR="ar" | |
13009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13010 | break 2 | |
13011 | fi | |
13012 | done | |
13013 | done | |
13014 | IFS=$as_save_IFS | |
13015 | ||
13016 | fi | |
13017 | fi | |
13018 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13019 | if test -n "$ac_ct_AR"; then | |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
13021 | $as_echo "$ac_ct_AR" >&6; } | |
13022 | else | |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13024 | $as_echo "no" >&6; } | |
13025 | fi | |
13026 | ||
13027 | if test "x$ac_ct_AR" = x; then | |
13028 | AR="" | |
13029 | else | |
13030 | case $cross_compiling:$ac_tool_warned in | |
13031 | yes:) | |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13034 | ac_tool_warned=yes ;; | |
13035 | esac | |
13036 | AR=$ac_ct_AR | |
13037 | fi | |
13038 | else | |
13039 | AR="$ac_cv_prog_AR" | |
13040 | fi | |
13041 | ||
13042 | if test "${AR}" = "" ; then | |
13043 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 | |
13044 | fi | |
13045 | touch conftest.c | |
13046 | ${AR} $plugin_option rc conftest.a conftest.c | |
13047 | if test "$?" != 0; then | |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
13049 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
13050 | plugin_option= | |
13051 | fi | |
13052 | rm -f conftest.* | |
50ad1254 L |
13053 | if test -n "$plugin_option"; then |
13054 | PLUGIN_OPTION="$plugin_option" | |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 | |
13056 | $as_echo "$plugin_option" >&6; } | |
13057 | else | |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13059 | $as_echo "no" >&6; } | |
13060 | fi | |
13061 | ||
13062 | AR_PLUGIN_OPTION= | |
13063 | RANLIB_PLUGIN_OPTION= | |
13064 | if test -n "$PLUGIN_OPTION"; then | |
13065 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
13066 | AR_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13067 | fi | |
13068 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
13069 | RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" | |
13070 | fi | |
13071 | fi | |
13072 | ||
13073 | ||
13074 | ||
be01d343 | 13075 | # Target tools. |
c6b750e1 | 13076 | |
81ecdfbb RW |
13077 | # Check whether --with-build-time-tools was given. |
13078 | if test "${with_build_time_tools+set}" = set; then : | |
13079 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
13080 | x/*) ;; |
13081 | *) | |
13082 | with_build_time_tools= | |
81ecdfbb RW |
13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
13084 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
13085 | ;; |
13086 | esac | |
859789af | 13087 | else |
2429c060 | 13088 | with_build_time_tools= |
81ecdfbb RW |
13089 | fi |
13090 | ||
859789af | 13091 | |
9a819804 AO |
13092 | |
13093 | ||
13094 | if test -n "$CC_FOR_TARGET"; then | |
13095 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
13096 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13097 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13098 | fi | |
13099 | ||
13100 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
13101 | for ncn_progname in cc gcc; do | |
13102 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13103 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13105 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13106 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13107 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13108 | else |
13109 | if test -n "$CC_FOR_TARGET"; then | |
13110 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13111 | else | |
13112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13113 | for as_dir in $PATH | |
13114 | do | |
13115 | IFS=$as_save_IFS | |
13116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13117 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13119 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13121 | break 2 |
13122 | fi | |
13123 | done | |
81ecdfbb RW |
13124 | done |
13125 | IFS=$as_save_IFS | |
9a819804 AO |
13126 | |
13127 | fi | |
13128 | fi | |
13129 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
13130 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13132 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 13133 | else |
81ecdfbb RW |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13135 | $as_echo "no" >&6; } | |
9a819804 AO |
13136 | fi |
13137 | ||
81ecdfbb | 13138 | |
9a819804 AO |
13139 | done |
13140 | fi | |
13141 | ||
13142 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13143 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13145 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13146 | if test -x $with_build_time_tools/${ncn_progname}; then |
13147 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13149 | $as_echo "yes" >&6; } | |
cac3d6c4 | 13150 | break |
2429c060 | 13151 | else |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13153 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
13154 | fi |
13155 | done | |
55db4b87 PB |
13156 | fi |
13157 | ||
2429c060 PB |
13158 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
13159 | for ncn_progname in cc gcc; do | |
13160 | if test -n "$ncn_target_tool_prefix"; then | |
13161 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13162 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13164 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13165 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13166 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13167 | else |
13168 | if test -n "$CC_FOR_TARGET"; then | |
13169 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
13170 | else | |
c6b750e1 DJ |
13171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13172 | for as_dir in $PATH | |
13173 | do | |
13174 | IFS=$as_save_IFS | |
13175 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13176 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13178 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13180 | break 2 |
13181 | fi | |
13182 | done | |
81ecdfbb RW |
13183 | done |
13184 | IFS=$as_save_IFS | |
c6b750e1 | 13185 | |
55db4b87 PB |
13186 | fi |
13187 | fi | |
c6b750e1 | 13188 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 13189 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13191 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13192 | else |
81ecdfbb RW |
13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13194 | $as_echo "no" >&6; } | |
55db4b87 PB |
13195 | fi |
13196 | ||
81ecdfbb | 13197 | |
2429c060 PB |
13198 | fi |
13199 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
13200 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13201 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13203 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13204 | if ${ac_cv_prog_CC_FOR_TARGET+:} false; then : |
81ecdfbb | 13205 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13206 | else |
05cbd757 PB |
13207 | if test -n "$CC_FOR_TARGET"; then |
13208 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13209 | else |
c6b750e1 DJ |
13210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13211 | for as_dir in $PATH | |
13212 | do | |
13213 | IFS=$as_save_IFS | |
13214 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13215 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13217 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13219 | break 2 |
13220 | fi | |
13221 | done | |
81ecdfbb RW |
13222 | done |
13223 | IFS=$as_save_IFS | |
c6b750e1 | 13224 | |
55db4b87 PB |
13225 | fi |
13226 | fi | |
c6b750e1 | 13227 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 13228 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
13230 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 13231 | else |
81ecdfbb RW |
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13233 | $as_echo "no" >&6; } | |
55db4b87 | 13234 | fi |
c6b750e1 | 13235 | |
81ecdfbb | 13236 | |
2429c060 PB |
13237 | fi |
13238 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
13239 | done | |
13240 | fi | |
c6b750e1 | 13241 | |
05cbd757 PB |
13242 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
13243 | set dummy cc gcc | |
13244 | if test $build = $target ; then | |
13245 | CC_FOR_TARGET="$2" | |
55db4b87 | 13246 | else |
05cbd757 | 13247 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13248 | fi |
d3f5afc4 MS |
13249 | else |
13250 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
13251 | fi |
13252 | ||
9a819804 AO |
13253 | |
13254 | ||
13255 | if test -n "$CXX_FOR_TARGET"; then | |
13256 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
13257 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13258 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13259 | fi | |
13260 | ||
13261 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13262 | for ncn_progname in c++ g++ cxx gxx; do | |
13263 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13264 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13266 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13267 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13268 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13269 | else |
13270 | if test -n "$CXX_FOR_TARGET"; then | |
13271 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13272 | else | |
13273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13274 | for as_dir in $PATH | |
13275 | do | |
13276 | IFS=$as_save_IFS | |
13277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13278 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13280 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13282 | break 2 |
13283 | fi | |
13284 | done | |
81ecdfbb RW |
13285 | done |
13286 | IFS=$as_save_IFS | |
9a819804 AO |
13287 | |
13288 | fi | |
13289 | fi | |
13290 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
13291 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13293 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 13294 | else |
81ecdfbb RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13296 | $as_echo "no" >&6; } | |
9a819804 AO |
13297 | fi |
13298 | ||
81ecdfbb | 13299 | |
9a819804 AO |
13300 | done |
13301 | fi | |
13302 | ||
13303 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13304 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13306 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13307 | if test -x $with_build_time_tools/${ncn_progname}; then |
13308 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13310 | $as_echo "yes" >&6; } | |
2429c060 PB |
13311 | break |
13312 | else | |
81ecdfbb RW |
13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13314 | $as_echo "no" >&6; } | |
2429c060 PB |
13315 | fi |
13316 | done | |
13317 | fi | |
13318 | ||
13319 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
13320 | for ncn_progname in c++ g++ cxx gxx; do | |
13321 | if test -n "$ncn_target_tool_prefix"; then | |
13322 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13323 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13325 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13326 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13327 | $as_echo_n "(cached) " >&6 |
55db4b87 PB |
13328 | else |
13329 | if test -n "$CXX_FOR_TARGET"; then | |
13330 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
13331 | else | |
c6b750e1 DJ |
13332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13333 | for as_dir in $PATH | |
13334 | do | |
13335 | IFS=$as_save_IFS | |
13336 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13337 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13339 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13341 | break 2 |
13342 | fi | |
13343 | done | |
81ecdfbb RW |
13344 | done |
13345 | IFS=$as_save_IFS | |
c6b750e1 | 13346 | |
55db4b87 PB |
13347 | fi |
13348 | fi | |
c6b750e1 | 13349 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 13350 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13352 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13353 | else |
81ecdfbb RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13355 | $as_echo "no" >&6; } | |
55db4b87 PB |
13356 | fi |
13357 | ||
81ecdfbb | 13358 | |
2429c060 PB |
13359 | fi |
13360 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
13361 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13362 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13364 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13365 | if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then : |
81ecdfbb | 13366 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13367 | else |
05cbd757 PB |
13368 | if test -n "$CXX_FOR_TARGET"; then |
13369 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13370 | else |
c6b750e1 DJ |
13371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13372 | for as_dir in $PATH | |
13373 | do | |
13374 | IFS=$as_save_IFS | |
13375 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13376 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13378 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13380 | break 2 |
13381 | fi | |
13382 | done | |
81ecdfbb RW |
13383 | done |
13384 | IFS=$as_save_IFS | |
c6b750e1 | 13385 | |
55db4b87 PB |
13386 | fi |
13387 | fi | |
c6b750e1 | 13388 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 13389 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
13391 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 13392 | else |
81ecdfbb RW |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13394 | $as_echo "no" >&6; } | |
55db4b87 | 13395 | fi |
c6b750e1 | 13396 | |
81ecdfbb | 13397 | |
2429c060 PB |
13398 | fi |
13399 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
13400 | done | |
13401 | fi | |
c6b750e1 | 13402 | |
05cbd757 PB |
13403 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
13404 | set dummy c++ g++ cxx gxx | |
13405 | if test $build = $target ; then | |
13406 | CXX_FOR_TARGET="$2" | |
55db4b87 | 13407 | else |
05cbd757 | 13408 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13409 | fi |
d3f5afc4 MS |
13410 | else |
13411 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
13412 | fi |
13413 | ||
9a819804 AO |
13414 | |
13415 | ||
13416 | if test -n "$GCC_FOR_TARGET"; then | |
13417 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
13418 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13419 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13420 | fi | |
13421 | ||
13422 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13423 | for ncn_progname in gcc; do | |
13424 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13425 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13427 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13428 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13429 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
13430 | else |
13431 | if test -n "$GCC_FOR_TARGET"; then | |
13432 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
13433 | else | |
13434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13435 | for as_dir in $PATH | |
13436 | do | |
13437 | IFS=$as_save_IFS | |
13438 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13439 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13441 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13443 | break 2 |
13444 | fi | |
13445 | done | |
81ecdfbb RW |
13446 | done |
13447 | IFS=$as_save_IFS | |
9a819804 AO |
13448 | |
13449 | fi | |
13450 | fi | |
13451 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
13452 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13454 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 13455 | else |
81ecdfbb RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13457 | $as_echo "no" >&6; } | |
9a819804 AO |
13458 | fi |
13459 | ||
81ecdfbb | 13460 | |
9a819804 AO |
13461 | done |
13462 | fi | |
13463 | ||
13464 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13465 | for ncn_progname in gcc; do |
81ecdfbb RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13467 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13468 | if test -x $with_build_time_tools/${ncn_progname}; then |
13469 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13471 | $as_echo "yes" >&6; } | |
2429c060 PB |
13472 | break |
13473 | else | |
81ecdfbb RW |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13475 | $as_echo "no" >&6; } | |
2429c060 PB |
13476 | fi |
13477 | done | |
13478 | fi | |
13479 | ||
13480 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
13481 | for ncn_progname in gcc; do | |
13482 | if test -n "$ncn_target_tool_prefix"; then | |
13483 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13484 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13486 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13487 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13488 | $as_echo_n "(cached) " >&6 |
859789af | 13489 | else |
2429c060 PB |
13490 | if test -n "$GCC_FOR_TARGET"; then |
13491 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13492 | else |
c6b750e1 DJ |
13493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13494 | for as_dir in $PATH | |
13495 | do | |
13496 | IFS=$as_save_IFS | |
13497 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13498 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13500 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13502 | break 2 |
13503 | fi | |
13504 | done | |
81ecdfbb RW |
13505 | done |
13506 | IFS=$as_save_IFS | |
c6b750e1 | 13507 | |
55db4b87 PB |
13508 | fi |
13509 | fi | |
c6b750e1 | 13510 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 13511 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13513 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13514 | else |
81ecdfbb RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13516 | $as_echo "no" >&6; } | |
55db4b87 PB |
13517 | fi |
13518 | ||
81ecdfbb | 13519 | |
2429c060 PB |
13520 | fi |
13521 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
13522 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13523 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13525 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13526 | if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then : |
81ecdfbb | 13527 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13528 | else |
05cbd757 PB |
13529 | if test -n "$GCC_FOR_TARGET"; then |
13530 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13531 | else |
c6b750e1 DJ |
13532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13533 | for as_dir in $PATH | |
13534 | do | |
13535 | IFS=$as_save_IFS | |
13536 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13537 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13538 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 13539 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13541 | break 2 |
13542 | fi | |
13543 | done | |
81ecdfbb RW |
13544 | done |
13545 | IFS=$as_save_IFS | |
c6b750e1 | 13546 | |
55db4b87 PB |
13547 | fi |
13548 | fi | |
c6b750e1 | 13549 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 13550 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
13552 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 13553 | else |
81ecdfbb RW |
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13555 | $as_echo "no" >&6; } | |
55db4b87 | 13556 | fi |
c6b750e1 | 13557 | |
81ecdfbb | 13558 | |
2429c060 PB |
13559 | fi |
13560 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
13561 | done | |
13562 | fi | |
c6b750e1 | 13563 | |
05cbd757 PB |
13564 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
13565 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
13566 | else |
13567 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
13568 | fi |
13569 | ||
9a819804 AO |
13570 | |
13571 | ||
9a819804 AO |
13572 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13573 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
13574 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13575 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
13576 | fi |
13577 | ||
9a819804 AO |
13578 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
13579 | for ncn_progname in gfortran; do | |
13580 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13581 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13583 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13584 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13585 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13586 | else |
9a819804 AO |
13587 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13588 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13589 | else |
c6b750e1 DJ |
13590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13591 | for as_dir in $PATH | |
13592 | do | |
13593 | IFS=$as_save_IFS | |
13594 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13595 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 13597 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13599 | break 2 |
13600 | fi | |
13601 | done | |
81ecdfbb RW |
13602 | done |
13603 | IFS=$as_save_IFS | |
c6b750e1 | 13604 | |
55db4b87 PB |
13605 | fi |
13606 | fi | |
9a819804 AO |
13607 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
13608 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
13610 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 13611 | else |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13613 | $as_echo "no" >&6; } | |
55db4b87 | 13614 | fi |
c6b750e1 | 13615 | |
81ecdfbb | 13616 | |
2429c060 PB |
13617 | done |
13618 | fi | |
c6b750e1 | 13619 | |
9a819804 | 13620 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 13621 | for ncn_progname in gfortran; do |
81ecdfbb RW |
13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13623 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13624 | if test -x $with_build_time_tools/${ncn_progname}; then |
13625 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13627 | $as_echo "yes" >&6; } | |
2429c060 PB |
13628 | break |
13629 | else | |
81ecdfbb RW |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13631 | $as_echo "no" >&6; } | |
2429c060 PB |
13632 | fi |
13633 | done | |
13634 | fi | |
13635 | ||
13636 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
13637 | for ncn_progname in gfortran; do | |
13638 | if test -n "$ncn_target_tool_prefix"; then | |
13639 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13640 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13642 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 13643 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : |
81ecdfbb | 13644 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13645 | else |
228cf97d AM |
13646 | if test -n "$GFORTRAN_FOR_TARGET"; then |
13647 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13648 | else | |
13649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13650 | for as_dir in $PATH | |
13651 | do | |
13652 | IFS=$as_save_IFS | |
13653 | test -z "$as_dir" && as_dir=. | |
13654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13656 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13658 | break 2 | |
13659 | fi | |
13660 | done | |
13661 | done | |
13662 | IFS=$as_save_IFS | |
13663 | ||
13664 | fi | |
13665 | fi | |
13666 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13667 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13669 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13670 | else | |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13672 | $as_echo "no" >&6; } | |
13673 | fi | |
13674 | ||
13675 | ||
13676 | fi | |
13677 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
13678 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13679 | set dummy ${ncn_progname}; ac_word=$2 | |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13681 | $as_echo_n "checking for $ac_word... " >&6; } | |
13682 | if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then : | |
13683 | $as_echo_n "(cached) " >&6 | |
13684 | else | |
13685 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13686 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
13687 | else | |
13688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13689 | for as_dir in $PATH | |
13690 | do | |
13691 | IFS=$as_save_IFS | |
13692 | test -z "$as_dir" && as_dir=. | |
13693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13695 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" | |
13696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13697 | break 2 | |
13698 | fi | |
13699 | done | |
13700 | done | |
13701 | IFS=$as_save_IFS | |
13702 | ||
13703 | fi | |
13704 | fi | |
13705 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
13706 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 | |
13708 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
13709 | else | |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13711 | $as_echo "no" >&6; } | |
13712 | fi | |
13713 | ||
13714 | ||
13715 | fi | |
13716 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
13717 | done | |
13718 | fi | |
13719 | ||
13720 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then | |
13721 | set dummy gfortran | |
13722 | if test $build = $target ; then | |
13723 | GFORTRAN_FOR_TARGET="$2" | |
13724 | else | |
13725 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13726 | fi | |
13727 | else | |
13728 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
13729 | fi | |
13730 | ||
13731 | ||
13732 | ||
13733 | if test -n "$GOC_FOR_TARGET"; then | |
13734 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
13735 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13736 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13737 | fi | |
13738 | ||
13739 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13740 | for ncn_progname in gccgo; do | |
13741 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13742 | set dummy ${ncn_progname}; ac_word=$2 | |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13744 | $as_echo_n "checking for $ac_word... " >&6; } | |
13745 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13746 | $as_echo_n "(cached) " >&6 | |
13747 | else | |
13748 | if test -n "$GOC_FOR_TARGET"; then | |
13749 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
13750 | else | |
13751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13752 | for as_dir in $PATH | |
13753 | do | |
13754 | IFS=$as_save_IFS | |
13755 | test -z "$as_dir" && as_dir=. | |
13756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13758 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
13759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13760 | break 2 | |
13761 | fi | |
13762 | done | |
13763 | done | |
13764 | IFS=$as_save_IFS | |
13765 | ||
13766 | fi | |
13767 | fi | |
13768 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
13769 | if test -n "$GOC_FOR_TARGET"; then | |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13771 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
13772 | else | |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13774 | $as_echo "no" >&6; } | |
13775 | fi | |
13776 | ||
13777 | ||
13778 | done | |
13779 | fi | |
13780 | ||
13781 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13782 | for ncn_progname in gccgo; do | |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13784 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13785 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13786 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13788 | $as_echo "yes" >&6; } | |
13789 | break | |
13790 | else | |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13792 | $as_echo "no" >&6; } | |
13793 | fi | |
13794 | done | |
13795 | fi | |
13796 | ||
13797 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
13798 | for ncn_progname in gccgo; do | |
13799 | if test -n "$ncn_target_tool_prefix"; then | |
13800 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13801 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13803 | $as_echo_n "checking for $ac_word... " >&6; } | |
13804 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : | |
13805 | $as_echo_n "(cached) " >&6 | |
13806 | else | |
13807 | if test -n "$GOC_FOR_TARGET"; then | |
13808 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 13809 | else |
c6b750e1 DJ |
13810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13811 | for as_dir in $PATH | |
13812 | do | |
13813 | IFS=$as_save_IFS | |
13814 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13815 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13817 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13819 | break 2 |
13820 | fi | |
13821 | done | |
81ecdfbb RW |
13822 | done |
13823 | IFS=$as_save_IFS | |
c6b750e1 | 13824 | |
55db4b87 PB |
13825 | fi |
13826 | fi | |
228cf97d AM |
13827 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13828 | if test -n "$GOC_FOR_TARGET"; then | |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13830 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13831 | else |
81ecdfbb RW |
13832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13833 | $as_echo "no" >&6; } | |
55db4b87 PB |
13834 | fi |
13835 | ||
81ecdfbb | 13836 | |
2429c060 | 13837 | fi |
228cf97d | 13838 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then |
2429c060 | 13839 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
05cbd757 | 13840 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13842 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13843 | if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then : |
81ecdfbb | 13844 | $as_echo_n "(cached) " >&6 |
55db4b87 | 13845 | else |
228cf97d AM |
13846 | if test -n "$GOC_FOR_TARGET"; then |
13847 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13848 | else |
13849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13850 | for as_dir in $PATH | |
13851 | do | |
13852 | IFS=$as_save_IFS | |
13853 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 13854 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 13855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13856 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13858 | break 2 |
13859 | fi | |
13860 | done | |
81ecdfbb RW |
13861 | done |
13862 | IFS=$as_save_IFS | |
c6b750e1 | 13863 | |
55db4b87 PB |
13864 | fi |
13865 | fi | |
228cf97d AM |
13866 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET |
13867 | if test -n "$GOC_FOR_TARGET"; then | |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
13869 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
55db4b87 | 13870 | else |
81ecdfbb RW |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13872 | $as_echo "no" >&6; } | |
55db4b87 | 13873 | fi |
c6b750e1 | 13874 | |
81ecdfbb | 13875 | |
2429c060 | 13876 | fi |
228cf97d | 13877 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break |
2429c060 PB |
13878 | done |
13879 | fi | |
c6b750e1 | 13880 | |
228cf97d AM |
13881 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then |
13882 | set dummy gccgo | |
05cbd757 | 13883 | if test $build = $target ; then |
228cf97d | 13884 | GOC_FOR_TARGET="$2" |
55db4b87 | 13885 | else |
228cf97d | 13886 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 13887 | fi |
d3f5afc4 | 13888 | else |
228cf97d | 13889 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" |
859789af AC |
13890 | fi |
13891 | ||
2429c060 PB |
13892 | |
13893 | ||
228cf97d AM |
13894 | if test -n "$GDC_FOR_TARGET"; then |
13895 | ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET | |
13896 | elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then | |
13897 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET | |
e552509b ILT |
13898 | fi |
13899 | ||
228cf97d AM |
13900 | if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then |
13901 | for ncn_progname in gdc; do | |
e552509b ILT |
13902 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
13903 | set dummy ${ncn_progname}; ac_word=$2 | |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13905 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13906 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13907 | $as_echo_n "(cached) " >&6 |
13908 | else | |
228cf97d AM |
13909 | if test -n "$GDC_FOR_TARGET"; then |
13910 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13911 | else |
13912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13913 | for as_dir in $PATH | |
13914 | do | |
13915 | IFS=$as_save_IFS | |
13916 | test -z "$as_dir" && as_dir=. | |
13917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13919 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
13920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13921 | break 2 | |
13922 | fi | |
13923 | done | |
13924 | done | |
13925 | IFS=$as_save_IFS | |
13926 | ||
13927 | fi | |
13928 | fi | |
228cf97d AM |
13929 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13930 | if test -n "$GDC_FOR_TARGET"; then | |
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13932 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13933 | else |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13935 | $as_echo "no" >&6; } | |
13936 | fi | |
13937 | ||
13938 | ||
13939 | done | |
13940 | fi | |
13941 | ||
228cf97d AM |
13942 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then |
13943 | for ncn_progname in gdc; do | |
e552509b ILT |
13944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13945 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13946 | if test -x $with_build_time_tools/${ncn_progname}; then | |
228cf97d | 13947 | ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname} |
e552509b ILT |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13949 | $as_echo "yes" >&6; } | |
13950 | break | |
13951 | else | |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13953 | $as_echo "no" >&6; } | |
13954 | fi | |
13955 | done | |
13956 | fi | |
13957 | ||
228cf97d AM |
13958 | if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then |
13959 | for ncn_progname in gdc; do | |
e552509b ILT |
13960 | if test -n "$ncn_target_tool_prefix"; then |
13961 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13962 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13964 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 13965 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
13966 | $as_echo_n "(cached) " >&6 |
13967 | else | |
228cf97d AM |
13968 | if test -n "$GDC_FOR_TARGET"; then |
13969 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
13970 | else |
13971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13972 | for as_dir in $PATH | |
13973 | do | |
13974 | IFS=$as_save_IFS | |
13975 | test -z "$as_dir" && as_dir=. | |
13976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 13977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 13978 | ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
e552509b ILT |
13979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13980 | break 2 | |
13981 | fi | |
13982 | done | |
13983 | done | |
13984 | IFS=$as_save_IFS | |
13985 | ||
13986 | fi | |
13987 | fi | |
228cf97d AM |
13988 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
13989 | if test -n "$GDC_FOR_TARGET"; then | |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
13991 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
13992 | else |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13994 | $as_echo "no" >&6; } | |
13995 | fi | |
13996 | ||
13997 | ||
13998 | fi | |
228cf97d | 13999 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then |
e552509b ILT |
14000 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. |
14001 | set dummy ${ncn_progname}; ac_word=$2 | |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14003 | $as_echo_n "checking for $ac_word... " >&6; } | |
228cf97d | 14004 | if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then : |
e552509b ILT |
14005 | $as_echo_n "(cached) " >&6 |
14006 | else | |
228cf97d AM |
14007 | if test -n "$GDC_FOR_TARGET"; then |
14008 | ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test. | |
e552509b ILT |
14009 | else |
14010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14011 | for as_dir in $PATH | |
14012 | do | |
14013 | IFS=$as_save_IFS | |
14014 | test -z "$as_dir" && as_dir=. | |
14015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 14016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
228cf97d | 14017 | ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}" |
e552509b ILT |
14018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14019 | break 2 | |
14020 | fi | |
14021 | done | |
14022 | done | |
14023 | IFS=$as_save_IFS | |
14024 | ||
14025 | fi | |
14026 | fi | |
228cf97d AM |
14027 | GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET |
14028 | if test -n "$GDC_FOR_TARGET"; then | |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5 | |
14030 | $as_echo "$GDC_FOR_TARGET" >&6; } | |
e552509b ILT |
14031 | else |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14033 | $as_echo "no" >&6; } | |
14034 | fi | |
14035 | ||
14036 | ||
14037 | fi | |
228cf97d | 14038 | test -n "$ac_cv_prog_GDC_FOR_TARGET" && break |
e552509b ILT |
14039 | done |
14040 | fi | |
14041 | ||
228cf97d AM |
14042 | if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then |
14043 | set dummy gdc | |
e552509b | 14044 | if test $build = $target ; then |
228cf97d | 14045 | GDC_FOR_TARGET="$2" |
e552509b | 14046 | else |
228cf97d | 14047 | GDC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
e552509b ILT |
14048 | fi |
14049 | else | |
228cf97d | 14050 | GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET" |
e552509b ILT |
14051 | fi |
14052 | ||
14053 | ||
14054 | ||
2429c060 PB |
14055 | cat > conftest.c << \EOF |
14056 | #ifdef __GNUC__ | |
14057 | gcc_yay; | |
14058 | #endif | |
14059 | EOF | |
14060 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
14061 | have_gcc_for_target=yes | |
859789af | 14062 | else |
2429c060 PB |
14063 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
14064 | have_gcc_for_target=no | |
859789af | 14065 | fi |
2429c060 PB |
14066 | rm conftest.c |
14067 | ||
14068 | ||
14069 | ||
859789af | 14070 | |
2429c060 PB |
14071 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
14072 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
14074 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14075 | if test -x $with_build_time_tools/ar; then |
14076 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
14077 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
14079 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 14080 | else |
81ecdfbb RW |
14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14082 | $as_echo "no" >&6; } | |
3a35eeb3 | 14083 | fi |
2429c060 PB |
14084 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14085 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
14086 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
14087 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 14088 | fi |
2429c060 | 14089 | fi |
c6b750e1 | 14090 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14091 | # Extract the first word of "ar", so it can be a program name with args. |
14092 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14094 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14095 | if ${ac_cv_path_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14096 | $as_echo_n "(cached) " >&6 |
859789af | 14097 | else |
c6b750e1 DJ |
14098 | case $AR_FOR_TARGET in |
14099 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14100 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
14101 | ;; | |
2429c060 | 14102 | *) |
c6b750e1 DJ |
14103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14104 | for as_dir in $gcc_cv_tool_dirs | |
14105 | do | |
14106 | IFS=$as_save_IFS | |
14107 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14108 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14110 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14112 | break 2 |
14113 | fi | |
14114 | done | |
81ecdfbb RW |
14115 | done |
14116 | IFS=$as_save_IFS | |
c6b750e1 | 14117 | |
2429c060 PB |
14118 | ;; |
14119 | esac | |
859789af | 14120 | fi |
c6b750e1 | 14121 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 14122 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14124 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 14125 | else |
81ecdfbb RW |
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14127 | $as_echo "no" >&6; } | |
859789af | 14128 | fi |
05cbd757 | 14129 | |
81ecdfbb | 14130 | |
2429c060 PB |
14131 | fi |
14132 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
14133 | |
14134 | ||
14135 | if test -n "$AR_FOR_TARGET"; then | |
14136 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
14137 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14138 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14139 | fi | |
14140 | ||
14141 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
14142 | for ncn_progname in ar; do | |
14143 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14144 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14146 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14147 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14148 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14149 | else |
14150 | if test -n "$AR_FOR_TARGET"; then | |
14151 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
14152 | else | |
14153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14154 | for as_dir in $PATH | |
14155 | do | |
14156 | IFS=$as_save_IFS | |
14157 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14158 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14160 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14162 | break 2 |
14163 | fi | |
14164 | done | |
81ecdfbb RW |
14165 | done |
14166 | IFS=$as_save_IFS | |
9a819804 AO |
14167 | |
14168 | fi | |
14169 | fi | |
14170 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
14171 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14173 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 14174 | else |
81ecdfbb RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14176 | $as_echo "no" >&6; } | |
9a819804 AO |
14177 | fi |
14178 | ||
81ecdfbb | 14179 | |
9a819804 AO |
14180 | done |
14181 | fi | |
14182 | ||
14183 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14184 | for ncn_progname in ar; do |
81ecdfbb RW |
14185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14186 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14187 | if test -x $with_build_time_tools/${ncn_progname}; then |
14188 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14190 | $as_echo "yes" >&6; } | |
2429c060 PB |
14191 | break |
14192 | else | |
81ecdfbb RW |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14194 | $as_echo "no" >&6; } | |
2429c060 PB |
14195 | fi |
14196 | done | |
859789af AC |
14197 | fi |
14198 | ||
2429c060 PB |
14199 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
14200 | for ncn_progname in ar; do | |
14201 | if test -n "$ncn_target_tool_prefix"; then | |
14202 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 14203 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14205 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14206 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14207 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14208 | else |
2429c060 PB |
14209 | if test -n "$AR_FOR_TARGET"; then |
14210 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 14211 | else |
c6b750e1 DJ |
14212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14213 | for as_dir in $PATH | |
14214 | do | |
14215 | IFS=$as_save_IFS | |
14216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14217 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14219 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14221 | break 2 |
14222 | fi | |
14223 | done | |
81ecdfbb RW |
14224 | done |
14225 | IFS=$as_save_IFS | |
c6b750e1 | 14226 | |
7e0f7140 GK |
14227 | fi |
14228 | fi | |
c6b750e1 | 14229 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14230 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14232 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14233 | else |
81ecdfbb RW |
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14235 | $as_echo "no" >&6; } | |
7e0f7140 GK |
14236 | fi |
14237 | ||
81ecdfbb | 14238 | |
2429c060 PB |
14239 | fi |
14240 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
14241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 14242 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14244 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14245 | if ${ac_cv_prog_AR_FOR_TARGET+:} false; then : |
81ecdfbb | 14246 | $as_echo_n "(cached) " >&6 |
7e0f7140 | 14247 | else |
2429c060 PB |
14248 | if test -n "$AR_FOR_TARGET"; then |
14249 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 14250 | else |
c6b750e1 DJ |
14251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14252 | for as_dir in $PATH | |
14253 | do | |
14254 | IFS=$as_save_IFS | |
14255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14256 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14258 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14260 | break 2 |
14261 | fi | |
14262 | done | |
81ecdfbb RW |
14263 | done |
14264 | IFS=$as_save_IFS | |
c6b750e1 | 14265 | |
7e0f7140 GK |
14266 | fi |
14267 | fi | |
c6b750e1 | 14268 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 14269 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
14271 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 14272 | else |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14274 | $as_echo "no" >&6; } | |
7e0f7140 | 14275 | fi |
c6b750e1 | 14276 | |
81ecdfbb | 14277 | |
2429c060 PB |
14278 | fi |
14279 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
14280 | done | |
14281 | fi | |
c6b750e1 | 14282 | |
2429c060 PB |
14283 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
14284 | set dummy ar | |
7e0f7140 | 14285 | if test $build = $target ; then |
2429c060 | 14286 | AR_FOR_TARGET="$2" |
7e0f7140 | 14287 | else |
2429c060 | 14288 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 14289 | fi |
d3f5afc4 MS |
14290 | else |
14291 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
14292 | fi |
14293 | ||
3a35eeb3 PB |
14294 | else |
14295 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
14296 | fi |
14297 | ||
14298 | ||
14299 | ||
14300 | ||
14301 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
14302 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
14304 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14305 | if test -x $with_build_time_tools/as; then |
14306 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
14307 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
14309 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 14310 | else |
81ecdfbb RW |
14311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14312 | $as_echo "no" >&6; } | |
3a35eeb3 | 14313 | fi |
2429c060 PB |
14314 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14315 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
14316 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
14317 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
14318 | fi |
14319 | fi | |
c6b750e1 | 14320 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14321 | # Extract the first word of "as", so it can be a program name with args. |
14322 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14324 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14325 | if ${ac_cv_path_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14326 | $as_echo_n "(cached) " >&6 |
2429c060 | 14327 | else |
c6b750e1 DJ |
14328 | case $AS_FOR_TARGET in |
14329 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14330 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
14331 | ;; | |
2429c060 | 14332 | *) |
c6b750e1 DJ |
14333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14334 | for as_dir in $gcc_cv_tool_dirs | |
14335 | do | |
14336 | IFS=$as_save_IFS | |
14337 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14338 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14339 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14340 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14342 | break 2 |
14343 | fi | |
14344 | done | |
81ecdfbb RW |
14345 | done |
14346 | IFS=$as_save_IFS | |
c6b750e1 | 14347 | |
2429c060 PB |
14348 | ;; |
14349 | esac | |
14350 | fi | |
c6b750e1 | 14351 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 14352 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14354 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14355 | else |
81ecdfbb RW |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14357 | $as_echo "no" >&6; } | |
2429c060 PB |
14358 | fi |
14359 | ||
81ecdfbb | 14360 | |
2429c060 PB |
14361 | fi |
14362 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
14363 | |
14364 | ||
14365 | if test -n "$AS_FOR_TARGET"; then | |
14366 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
14367 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14368 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14369 | fi | |
14370 | ||
14371 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
14372 | for ncn_progname in as; do | |
14373 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14374 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14376 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14377 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14378 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14379 | else |
14380 | if test -n "$AS_FOR_TARGET"; then | |
14381 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14382 | else | |
14383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14384 | for as_dir in $PATH | |
14385 | do | |
14386 | IFS=$as_save_IFS | |
14387 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14388 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14390 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14392 | break 2 |
14393 | fi | |
14394 | done | |
81ecdfbb RW |
14395 | done |
14396 | IFS=$as_save_IFS | |
9a819804 AO |
14397 | |
14398 | fi | |
14399 | fi | |
14400 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
14401 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14403 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 14404 | else |
81ecdfbb RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14406 | $as_echo "no" >&6; } | |
9a819804 AO |
14407 | fi |
14408 | ||
81ecdfbb | 14409 | |
9a819804 AO |
14410 | done |
14411 | fi | |
14412 | ||
14413 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14414 | for ncn_progname in as; do |
81ecdfbb RW |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14416 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14417 | if test -x $with_build_time_tools/${ncn_progname}; then |
14418 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14420 | $as_echo "yes" >&6; } | |
2429c060 PB |
14421 | break |
14422 | else | |
81ecdfbb RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14424 | $as_echo "no" >&6; } | |
2429c060 PB |
14425 | fi |
14426 | done | |
14427 | fi | |
14428 | ||
14429 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
14430 | for ncn_progname in as; do | |
14431 | if test -n "$ncn_target_tool_prefix"; then | |
14432 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14433 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14435 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14436 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14437 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14438 | else |
14439 | if test -n "$AS_FOR_TARGET"; then | |
14440 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14441 | else | |
c6b750e1 DJ |
14442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14443 | for as_dir in $PATH | |
14444 | do | |
14445 | IFS=$as_save_IFS | |
14446 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14447 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14449 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14451 | break 2 |
14452 | fi | |
14453 | done | |
81ecdfbb RW |
14454 | done |
14455 | IFS=$as_save_IFS | |
c6b750e1 | 14456 | |
2429c060 PB |
14457 | fi |
14458 | fi | |
c6b750e1 | 14459 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14460 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14462 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14463 | else |
81ecdfbb RW |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14465 | $as_echo "no" >&6; } | |
2429c060 PB |
14466 | fi |
14467 | ||
81ecdfbb | 14468 | |
2429c060 PB |
14469 | fi |
14470 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
14471 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14472 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14474 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14475 | if ${ac_cv_prog_AS_FOR_TARGET+:} false; then : |
81ecdfbb | 14476 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14477 | else |
14478 | if test -n "$AS_FOR_TARGET"; then | |
14479 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
14480 | else | |
c6b750e1 DJ |
14481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14482 | for as_dir in $PATH | |
14483 | do | |
14484 | IFS=$as_save_IFS | |
14485 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14486 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14488 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14490 | break 2 |
14491 | fi | |
14492 | done | |
81ecdfbb RW |
14493 | done |
14494 | IFS=$as_save_IFS | |
c6b750e1 | 14495 | |
2429c060 PB |
14496 | fi |
14497 | fi | |
c6b750e1 | 14498 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 14499 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
14500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
14501 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 14502 | else |
81ecdfbb RW |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14504 | $as_echo "no" >&6; } | |
2429c060 | 14505 | fi |
c6b750e1 | 14506 | |
81ecdfbb | 14507 | |
2429c060 PB |
14508 | fi |
14509 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
14510 | done | |
14511 | fi | |
c6b750e1 | 14512 | |
2429c060 PB |
14513 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
14514 | set dummy as | |
14515 | if test $build = $target ; then | |
14516 | AS_FOR_TARGET="$2" | |
14517 | else | |
14518 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14519 | fi | |
d3f5afc4 MS |
14520 | else |
14521 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
14522 | fi |
14523 | ||
3a35eeb3 PB |
14524 | else |
14525 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
14526 | fi |
14527 | ||
14528 | ||
14529 | ||
14530 | ||
14531 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
14532 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
14534 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14535 | if test -x $with_build_time_tools/dlltool; then |
14536 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
14537 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
14539 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 14540 | else |
81ecdfbb RW |
14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14542 | $as_echo "no" >&6; } | |
3a35eeb3 | 14543 | fi |
2429c060 PB |
14544 | elif test $build != $host && test $have_gcc_for_target = yes; then |
14545 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
14546 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
14547 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
14548 | fi |
14549 | fi | |
c6b750e1 | 14550 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
14551 | # Extract the first word of "dlltool", so it can be a program name with args. |
14552 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14554 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14555 | if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14556 | $as_echo_n "(cached) " >&6 |
2429c060 | 14557 | else |
c6b750e1 DJ |
14558 | case $DLLTOOL_FOR_TARGET in |
14559 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
14560 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
14561 | ;; | |
2429c060 | 14562 | *) |
c6b750e1 DJ |
14563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14564 | for as_dir in $gcc_cv_tool_dirs | |
14565 | do | |
14566 | IFS=$as_save_IFS | |
14567 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14568 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14570 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 14571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14572 | break 2 |
14573 | fi | |
14574 | done | |
81ecdfbb RW |
14575 | done |
14576 | IFS=$as_save_IFS | |
c6b750e1 | 14577 | |
2429c060 PB |
14578 | ;; |
14579 | esac | |
14580 | fi | |
c6b750e1 | 14581 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 14582 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14584 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14585 | else |
81ecdfbb RW |
14586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14587 | $as_echo "no" >&6; } | |
2429c060 PB |
14588 | fi |
14589 | ||
81ecdfbb | 14590 | |
2429c060 PB |
14591 | fi |
14592 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
14593 | |
14594 | ||
14595 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14596 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
14597 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14598 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14599 | fi | |
14600 | ||
14601 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14602 | for ncn_progname in dlltool; do | |
14603 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14604 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14606 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14607 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14608 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
14609 | else |
14610 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14611 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14612 | else | |
14613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14614 | for as_dir in $PATH | |
14615 | do | |
14616 | IFS=$as_save_IFS | |
14617 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14618 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 14620 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
14622 | break 2 |
14623 | fi | |
14624 | done | |
81ecdfbb RW |
14625 | done |
14626 | IFS=$as_save_IFS | |
9a819804 AO |
14627 | |
14628 | fi | |
14629 | fi | |
14630 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
14631 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
14632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14633 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 14634 | else |
81ecdfbb RW |
14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14636 | $as_echo "no" >&6; } | |
9a819804 AO |
14637 | fi |
14638 | ||
81ecdfbb | 14639 | |
9a819804 AO |
14640 | done |
14641 | fi | |
14642 | ||
14643 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 14644 | for ncn_progname in dlltool; do |
81ecdfbb RW |
14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
14646 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14647 | if test -x $with_build_time_tools/${ncn_progname}; then |
14648 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14650 | $as_echo "yes" >&6; } | |
2429c060 PB |
14651 | break |
14652 | else | |
81ecdfbb RW |
14653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14654 | $as_echo "no" >&6; } | |
2429c060 PB |
14655 | fi |
14656 | done | |
14657 | fi | |
14658 | ||
14659 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
14660 | for ncn_progname in dlltool; do | |
14661 | if test -n "$ncn_target_tool_prefix"; then | |
14662 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14663 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14665 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14666 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14667 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14668 | else |
14669 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14670 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14671 | else | |
c6b750e1 DJ |
14672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14673 | for as_dir in $PATH | |
14674 | do | |
14675 | IFS=$as_save_IFS | |
14676 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14677 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14679 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 14680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14681 | break 2 |
14682 | fi | |
14683 | done | |
81ecdfbb RW |
14684 | done |
14685 | IFS=$as_save_IFS | |
c6b750e1 | 14686 | |
2429c060 PB |
14687 | fi |
14688 | fi | |
c6b750e1 | 14689 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14690 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14692 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14693 | else |
81ecdfbb RW |
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14695 | $as_echo "no" >&6; } | |
2429c060 PB |
14696 | fi |
14697 | ||
81ecdfbb | 14698 | |
2429c060 PB |
14699 | fi |
14700 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
14701 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14702 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14704 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 14705 | if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then : |
81ecdfbb | 14706 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
14707 | else |
14708 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
14709 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
14710 | else | |
c6b750e1 DJ |
14711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14712 | for as_dir in $PATH | |
14713 | do | |
14714 | IFS=$as_save_IFS | |
14715 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 14716 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 14717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 14718 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 14719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
14720 | break 2 |
14721 | fi | |
14722 | done | |
81ecdfbb RW |
14723 | done |
14724 | IFS=$as_save_IFS | |
c6b750e1 | 14725 | |
2429c060 PB |
14726 | fi |
14727 | fi | |
c6b750e1 | 14728 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 14729 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
14731 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 14732 | else |
81ecdfbb RW |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14734 | $as_echo "no" >&6; } | |
2429c060 | 14735 | fi |
c6b750e1 | 14736 | |
81ecdfbb | 14737 | |
2429c060 | 14738 | fi |
228cf97d AM |
14739 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break |
14740 | done | |
14741 | fi | |
14742 | ||
14743 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then | |
14744 | set dummy dlltool | |
14745 | if test $build = $target ; then | |
14746 | DLLTOOL_FOR_TARGET="$2" | |
14747 | else | |
14748 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
14749 | fi | |
14750 | else | |
14751 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
14752 | fi | |
14753 | ||
14754 | else | |
14755 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
14756 | fi | |
14757 | ||
14758 | ||
14759 | ||
14760 | ||
14761 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14762 | if test -n "$with_build_time_tools"; then | |
14763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 | |
14764 | $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; } | |
14765 | if test -x $with_build_time_tools/dsymutil; then | |
14766 | DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil | |
14767 | ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5 | |
14769 | $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; } | |
14770 | else | |
14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14772 | $as_echo "no" >&6; } | |
14773 | fi | |
14774 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
14775 | DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil` | |
14776 | test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET= | |
14777 | test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14778 | fi | |
14779 | fi | |
14780 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
14781 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
14782 | set dummy dsymutil; ac_word=$2 | |
14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14784 | $as_echo_n "checking for $ac_word... " >&6; } | |
14785 | if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then : | |
14786 | $as_echo_n "(cached) " >&6 | |
14787 | else | |
14788 | case $DSYMUTIL_FOR_TARGET in | |
14789 | [\\/]* | ?:[\\/]*) | |
14790 | ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path. | |
14791 | ;; | |
14792 | *) | |
14793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14794 | for as_dir in $gcc_cv_tool_dirs | |
14795 | do | |
14796 | IFS=$as_save_IFS | |
14797 | test -z "$as_dir" && as_dir=. | |
14798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14800 | ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
14801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14802 | break 2 | |
14803 | fi | |
14804 | done | |
14805 | done | |
14806 | IFS=$as_save_IFS | |
14807 | ||
14808 | ;; | |
14809 | esac | |
14810 | fi | |
14811 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET | |
14812 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14814 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14815 | else | |
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14817 | $as_echo "no" >&6; } | |
14818 | fi | |
14819 | ||
14820 | ||
14821 | fi | |
14822 | if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then | |
14823 | ||
14824 | ||
14825 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14826 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET | |
14827 | elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14828 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14829 | fi | |
14830 | ||
14831 | if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14832 | for ncn_progname in dsymutil; do | |
14833 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14834 | set dummy ${ncn_progname}; ac_word=$2 | |
14835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14836 | $as_echo_n "checking for $ac_word... " >&6; } | |
14837 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14838 | $as_echo_n "(cached) " >&6 | |
14839 | else | |
14840 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14841 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14842 | else | |
14843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14844 | for as_dir in $PATH | |
14845 | do | |
14846 | IFS=$as_save_IFS | |
14847 | test -z "$as_dir" && as_dir=. | |
14848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14849 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14850 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14852 | break 2 | |
14853 | fi | |
14854 | done | |
14855 | done | |
14856 | IFS=$as_save_IFS | |
14857 | ||
14858 | fi | |
14859 | fi | |
14860 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14861 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14863 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14864 | else | |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14866 | $as_echo "no" >&6; } | |
14867 | fi | |
14868 | ||
14869 | ||
14870 | done | |
14871 | fi | |
14872 | ||
14873 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
14874 | for ncn_progname in dsymutil; do | |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
14876 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
14877 | if test -x $with_build_time_tools/${ncn_progname}; then | |
14878 | ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
14879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14880 | $as_echo "yes" >&6; } | |
14881 | break | |
14882 | else | |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14884 | $as_echo "no" >&6; } | |
14885 | fi | |
14886 | done | |
14887 | fi | |
14888 | ||
14889 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then | |
14890 | for ncn_progname in dsymutil; do | |
14891 | if test -n "$ncn_target_tool_prefix"; then | |
14892 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
14893 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14895 | $as_echo_n "checking for $ac_word... " >&6; } | |
14896 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14897 | $as_echo_n "(cached) " >&6 | |
14898 | else | |
14899 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14900 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14901 | else | |
14902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14903 | for as_dir in $PATH | |
14904 | do | |
14905 | IFS=$as_save_IFS | |
14906 | test -z "$as_dir" && as_dir=. | |
14907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14909 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
14910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14911 | break 2 | |
14912 | fi | |
14913 | done | |
14914 | done | |
14915 | IFS=$as_save_IFS | |
14916 | ||
14917 | fi | |
14918 | fi | |
14919 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14920 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14922 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14923 | else | |
14924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14925 | $as_echo "no" >&6; } | |
14926 | fi | |
14927 | ||
14928 | ||
14929 | fi | |
14930 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then | |
14931 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
14932 | set dummy ${ncn_progname}; ac_word=$2 | |
14933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14934 | $as_echo_n "checking for $ac_word... " >&6; } | |
14935 | if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then : | |
14936 | $as_echo_n "(cached) " >&6 | |
14937 | else | |
14938 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14939 | ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test. | |
14940 | else | |
14941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14942 | for as_dir in $PATH | |
14943 | do | |
14944 | IFS=$as_save_IFS | |
14945 | test -z "$as_dir" && as_dir=. | |
14946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14948 | ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}" | |
14949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14950 | break 2 | |
14951 | fi | |
14952 | done | |
14953 | done | |
14954 | IFS=$as_save_IFS | |
14955 | ||
14956 | fi | |
14957 | fi | |
14958 | DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET | |
14959 | if test -n "$DSYMUTIL_FOR_TARGET"; then | |
14960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5 | |
14961 | $as_echo "$DSYMUTIL_FOR_TARGET" >&6; } | |
14962 | else | |
14963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14964 | $as_echo "no" >&6; } | |
14965 | fi | |
14966 | ||
14967 | ||
14968 | fi | |
14969 | test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break | |
2429c060 PB |
14970 | done |
14971 | fi | |
c6b750e1 | 14972 | |
228cf97d AM |
14973 | if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then |
14974 | set dummy dsymutil | |
2429c060 | 14975 | if test $build = $target ; then |
228cf97d | 14976 | DSYMUTIL_FOR_TARGET="$2" |
2429c060 | 14977 | else |
228cf97d | 14978 | DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2" |
2429c060 | 14979 | fi |
d3f5afc4 | 14980 | else |
228cf97d | 14981 | DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET" |
2429c060 PB |
14982 | fi |
14983 | ||
3a35eeb3 | 14984 | else |
228cf97d | 14985 | DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET |
2429c060 PB |
14986 | fi |
14987 | ||
14988 | ||
14989 | ||
14990 | ||
14991 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
14992 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
14993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
14994 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
14995 | if test -x $with_build_time_tools/ld; then |
14996 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
14997 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
14999 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 15000 | else |
81ecdfbb RW |
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15002 | $as_echo "no" >&6; } | |
3a35eeb3 | 15003 | fi |
2429c060 PB |
15004 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15005 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
15006 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
15007 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
15008 | fi |
15009 | fi | |
c6b750e1 | 15010 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15011 | # Extract the first word of "ld", so it can be a program name with args. |
15012 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
15013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15014 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15015 | if ${ac_cv_path_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15016 | $as_echo_n "(cached) " >&6 |
2429c060 | 15017 | else |
c6b750e1 DJ |
15018 | case $LD_FOR_TARGET in |
15019 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15020 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
15021 | ;; | |
2429c060 | 15022 | *) |
c6b750e1 DJ |
15023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15024 | for as_dir in $gcc_cv_tool_dirs | |
15025 | do | |
15026 | IFS=$as_save_IFS | |
15027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15028 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15030 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15032 | break 2 |
15033 | fi | |
15034 | done | |
81ecdfbb RW |
15035 | done |
15036 | IFS=$as_save_IFS | |
c6b750e1 | 15037 | |
2429c060 PB |
15038 | ;; |
15039 | esac | |
15040 | fi | |
c6b750e1 | 15041 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 15042 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15044 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15045 | else |
81ecdfbb RW |
15046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15047 | $as_echo "no" >&6; } | |
2429c060 PB |
15048 | fi |
15049 | ||
81ecdfbb | 15050 | |
2429c060 PB |
15051 | fi |
15052 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
15053 | |
15054 | ||
15055 | if test -n "$LD_FOR_TARGET"; then | |
15056 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
15057 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15058 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15059 | fi | |
15060 | ||
15061 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
15062 | for ncn_progname in ld; do | |
15063 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15064 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15066 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15067 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15068 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15069 | else |
15070 | if test -n "$LD_FOR_TARGET"; then | |
15071 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15072 | else | |
15073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15074 | for as_dir in $PATH | |
15075 | do | |
15076 | IFS=$as_save_IFS | |
15077 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15078 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15080 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15082 | break 2 |
15083 | fi | |
15084 | done | |
81ecdfbb RW |
15085 | done |
15086 | IFS=$as_save_IFS | |
9a819804 AO |
15087 | |
15088 | fi | |
15089 | fi | |
15090 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
15091 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15093 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 15094 | else |
81ecdfbb RW |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15096 | $as_echo "no" >&6; } | |
9a819804 AO |
15097 | fi |
15098 | ||
81ecdfbb | 15099 | |
9a819804 AO |
15100 | done |
15101 | fi | |
15102 | ||
15103 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15104 | for ncn_progname in ld; do |
81ecdfbb RW |
15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15106 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15107 | if test -x $with_build_time_tools/${ncn_progname}; then |
15108 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15110 | $as_echo "yes" >&6; } | |
2429c060 PB |
15111 | break |
15112 | else | |
81ecdfbb RW |
15113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15114 | $as_echo "no" >&6; } | |
2429c060 PB |
15115 | fi |
15116 | done | |
15117 | fi | |
15118 | ||
15119 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
15120 | for ncn_progname in ld; do | |
15121 | if test -n "$ncn_target_tool_prefix"; then | |
15122 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15123 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15125 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15126 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15127 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15128 | else |
15129 | if test -n "$LD_FOR_TARGET"; then | |
15130 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15131 | else | |
c6b750e1 DJ |
15132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15133 | for as_dir in $PATH | |
15134 | do | |
15135 | IFS=$as_save_IFS | |
15136 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15137 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15138 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15139 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15141 | break 2 |
15142 | fi | |
15143 | done | |
81ecdfbb RW |
15144 | done |
15145 | IFS=$as_save_IFS | |
c6b750e1 | 15146 | |
2429c060 PB |
15147 | fi |
15148 | fi | |
c6b750e1 | 15149 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15150 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15152 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15153 | else |
81ecdfbb RW |
15154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15155 | $as_echo "no" >&6; } | |
2429c060 PB |
15156 | fi |
15157 | ||
81ecdfbb | 15158 | |
2429c060 PB |
15159 | fi |
15160 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
15161 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15162 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15164 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15165 | if ${ac_cv_prog_LD_FOR_TARGET+:} false; then : |
81ecdfbb | 15166 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15167 | else |
15168 | if test -n "$LD_FOR_TARGET"; then | |
15169 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
15170 | else | |
c6b750e1 DJ |
15171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15172 | for as_dir in $PATH | |
15173 | do | |
15174 | IFS=$as_save_IFS | |
15175 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15176 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15178 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15180 | break 2 |
15181 | fi | |
15182 | done | |
81ecdfbb RW |
15183 | done |
15184 | IFS=$as_save_IFS | |
c6b750e1 | 15185 | |
2429c060 PB |
15186 | fi |
15187 | fi | |
c6b750e1 | 15188 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 15189 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
15190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
15191 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 15192 | else |
81ecdfbb RW |
15193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15194 | $as_echo "no" >&6; } | |
2429c060 | 15195 | fi |
c6b750e1 | 15196 | |
81ecdfbb | 15197 | |
2429c060 PB |
15198 | fi |
15199 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
15200 | done | |
15201 | fi | |
c6b750e1 | 15202 | |
2429c060 PB |
15203 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
15204 | set dummy ld | |
15205 | if test $build = $target ; then | |
15206 | LD_FOR_TARGET="$2" | |
15207 | else | |
15208 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15209 | fi | |
d3f5afc4 MS |
15210 | else |
15211 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
15212 | fi |
15213 | ||
3a35eeb3 PB |
15214 | else |
15215 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
15216 | fi |
15217 | ||
15218 | ||
15219 | ||
15220 | ||
15221 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15222 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
15224 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15225 | if test -x $with_build_time_tools/lipo; then |
15226 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
15227 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
15229 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 15230 | else |
81ecdfbb RW |
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15232 | $as_echo "no" >&6; } | |
3a35eeb3 | 15233 | fi |
2429c060 PB |
15234 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15235 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
15236 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
15237 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
15238 | fi |
15239 | fi | |
9a819804 AO |
15240 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
15241 | # Extract the first word of "lipo", so it can be a program name with args. | |
15242 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
15243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15244 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15245 | if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15246 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15247 | else |
15248 | case $LIPO_FOR_TARGET in | |
15249 | [\\/]* | ?:[\\/]*) | |
15250 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
15251 | ;; | |
15252 | *) | |
15253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15254 | for as_dir in $gcc_cv_tool_dirs | |
15255 | do | |
15256 | IFS=$as_save_IFS | |
15257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15258 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15260 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15262 | break 2 |
15263 | fi | |
15264 | done | |
81ecdfbb RW |
15265 | done |
15266 | IFS=$as_save_IFS | |
9a819804 AO |
15267 | |
15268 | ;; | |
15269 | esac | |
15270 | fi | |
15271 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 15272 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15274 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 15275 | else |
81ecdfbb RW |
15276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15277 | $as_echo "no" >&6; } | |
9a819804 AO |
15278 | fi |
15279 | ||
81ecdfbb | 15280 | |
9a819804 AO |
15281 | fi |
15282 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
15283 | ||
15284 | ||
15285 | if test -n "$LIPO_FOR_TARGET"; then | |
15286 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
15287 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15288 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
15289 | fi | |
15290 | ||
15291 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15292 | for ncn_progname in lipo; do | |
15293 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15294 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15296 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15297 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15298 | $as_echo_n "(cached) " >&6 |
2429c060 | 15299 | else |
9a819804 AO |
15300 | if test -n "$LIPO_FOR_TARGET"; then |
15301 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15302 | else | |
15303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15304 | for as_dir in $PATH | |
c6b750e1 DJ |
15305 | do |
15306 | IFS=$as_save_IFS | |
15307 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15308 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15309 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15310 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15312 | break 2 |
15313 | fi | |
15314 | done | |
81ecdfbb RW |
15315 | done |
15316 | IFS=$as_save_IFS | |
c6b750e1 | 15317 | |
2429c060 | 15318 | fi |
9a819804 AO |
15319 | fi |
15320 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 15321 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15323 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15324 | else |
81ecdfbb RW |
15325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15326 | $as_echo "no" >&6; } | |
2429c060 PB |
15327 | fi |
15328 | ||
81ecdfbb | 15329 | |
9a819804 | 15330 | done |
2429c060 | 15331 | fi |
9a819804 AO |
15332 | |
15333 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15334 | for ncn_progname in lipo; do |
81ecdfbb RW |
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15336 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15337 | if test -x $with_build_time_tools/${ncn_progname}; then |
15338 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15340 | $as_echo "yes" >&6; } | |
2429c060 PB |
15341 | break |
15342 | else | |
81ecdfbb RW |
15343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15344 | $as_echo "no" >&6; } | |
2429c060 PB |
15345 | fi |
15346 | done | |
15347 | fi | |
15348 | ||
15349 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
15350 | for ncn_progname in lipo; do | |
15351 | if test -n "$ncn_target_tool_prefix"; then | |
15352 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15353 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15356 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15357 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15358 | else |
15359 | if test -n "$LIPO_FOR_TARGET"; then | |
15360 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15361 | else | |
c6b750e1 DJ |
15362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15363 | for as_dir in $PATH | |
15364 | do | |
15365 | IFS=$as_save_IFS | |
15366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15369 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15371 | break 2 |
15372 | fi | |
15373 | done | |
81ecdfbb RW |
15374 | done |
15375 | IFS=$as_save_IFS | |
c6b750e1 | 15376 | |
2429c060 PB |
15377 | fi |
15378 | fi | |
c6b750e1 | 15379 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15380 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15382 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15383 | else |
81ecdfbb RW |
15384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15385 | $as_echo "no" >&6; } | |
2429c060 PB |
15386 | fi |
15387 | ||
81ecdfbb | 15388 | |
2429c060 PB |
15389 | fi |
15390 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
15391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15392 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15394 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15395 | if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then : |
81ecdfbb | 15396 | $as_echo_n "(cached) " >&6 |
2429c060 PB |
15397 | else |
15398 | if test -n "$LIPO_FOR_TARGET"; then | |
15399 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
15400 | else | |
c6b750e1 DJ |
15401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15402 | for as_dir in $PATH | |
15403 | do | |
15404 | IFS=$as_save_IFS | |
15405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15406 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15408 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15410 | break 2 |
15411 | fi | |
15412 | done | |
81ecdfbb RW |
15413 | done |
15414 | IFS=$as_save_IFS | |
c6b750e1 | 15415 | |
2429c060 PB |
15416 | fi |
15417 | fi | |
c6b750e1 | 15418 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 15419 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
15421 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 15422 | else |
81ecdfbb RW |
15423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15424 | $as_echo "no" >&6; } | |
2429c060 | 15425 | fi |
c6b750e1 | 15426 | |
81ecdfbb | 15427 | |
2429c060 PB |
15428 | fi |
15429 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
15430 | done | |
15431 | fi | |
c6b750e1 | 15432 | |
2429c060 PB |
15433 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
15434 | set dummy lipo | |
15435 | if test $build = $target ; then | |
15436 | LIPO_FOR_TARGET="$2" | |
15437 | else | |
15438 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15439 | fi | |
d3f5afc4 MS |
15440 | else |
15441 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
15442 | fi |
15443 | ||
3a35eeb3 PB |
15444 | else |
15445 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
15446 | fi |
15447 | ||
15448 | ||
15449 | ||
15450 | ||
15451 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
15452 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
15454 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15455 | if test -x $with_build_time_tools/nm; then |
15456 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
15457 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
15459 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 15460 | else |
81ecdfbb RW |
15461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15462 | $as_echo "no" >&6; } | |
3a35eeb3 | 15463 | fi |
2429c060 PB |
15464 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15465 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
15466 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
15467 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
15468 | fi |
15469 | fi | |
c6b750e1 | 15470 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15471 | # Extract the first word of "nm", so it can be a program name with args. |
15472 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15474 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15475 | if ${ac_cv_path_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15476 | $as_echo_n "(cached) " >&6 |
2429c060 | 15477 | else |
c6b750e1 DJ |
15478 | case $NM_FOR_TARGET in |
15479 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15480 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
15481 | ;; | |
2429c060 | 15482 | *) |
c6b750e1 DJ |
15483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15484 | for as_dir in $gcc_cv_tool_dirs | |
15485 | do | |
15486 | IFS=$as_save_IFS | |
15487 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15488 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15490 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15492 | break 2 |
15493 | fi | |
15494 | done | |
81ecdfbb RW |
15495 | done |
15496 | IFS=$as_save_IFS | |
c6b750e1 | 15497 | |
2429c060 PB |
15498 | ;; |
15499 | esac | |
15500 | fi | |
c6b750e1 | 15501 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 15502 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15504 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 15505 | else |
81ecdfbb RW |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15507 | $as_echo "no" >&6; } | |
2429c060 PB |
15508 | fi |
15509 | ||
81ecdfbb | 15510 | |
2429c060 PB |
15511 | fi |
15512 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
15513 | |
15514 | ||
15515 | if test -n "$NM_FOR_TARGET"; then | |
15516 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
15517 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15518 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15519 | fi | |
15520 | ||
15521 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
15522 | for ncn_progname in nm; do | |
15523 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15524 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15526 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15527 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15528 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15529 | else |
15530 | if test -n "$NM_FOR_TARGET"; then | |
15531 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
15532 | else | |
15533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15534 | for as_dir in $PATH | |
15535 | do | |
15536 | IFS=$as_save_IFS | |
15537 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15538 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15539 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 15540 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
15542 | break 2 |
15543 | fi | |
15544 | done | |
81ecdfbb RW |
15545 | done |
15546 | IFS=$as_save_IFS | |
9a819804 AO |
15547 | |
15548 | fi | |
15549 | fi | |
15550 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
15551 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
15552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15553 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 15554 | else |
81ecdfbb RW |
15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15556 | $as_echo "no" >&6; } | |
9a819804 AO |
15557 | fi |
15558 | ||
81ecdfbb | 15559 | |
9a819804 AO |
15560 | done |
15561 | fi | |
15562 | ||
15563 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 15564 | for ncn_progname in nm; do |
81ecdfbb RW |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
15566 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15567 | if test -x $with_build_time_tools/${ncn_progname}; then |
15568 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
15569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15570 | $as_echo "yes" >&6; } | |
2429c060 PB |
15571 | break |
15572 | else | |
81ecdfbb RW |
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15574 | $as_echo "no" >&6; } | |
2429c060 PB |
15575 | fi |
15576 | done | |
15577 | fi | |
15578 | ||
15579 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
15580 | for ncn_progname in nm; do | |
15581 | if test -n "$ncn_target_tool_prefix"; then | |
15582 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 15583 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15585 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15586 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15587 | $as_echo_n "(cached) " >&6 |
859789af | 15588 | else |
55db4b87 PB |
15589 | if test -n "$NM_FOR_TARGET"; then |
15590 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15591 | else |
c6b750e1 DJ |
15592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15593 | for as_dir in $PATH | |
15594 | do | |
15595 | IFS=$as_save_IFS | |
15596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15597 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15599 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 15600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15601 | break 2 |
15602 | fi | |
15603 | done | |
81ecdfbb RW |
15604 | done |
15605 | IFS=$as_save_IFS | |
c6b750e1 | 15606 | |
859789af AC |
15607 | fi |
15608 | fi | |
c6b750e1 | 15609 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 15610 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15612 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15613 | else |
81ecdfbb RW |
15614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15615 | $as_echo "no" >&6; } | |
859789af AC |
15616 | fi |
15617 | ||
81ecdfbb | 15618 | |
2429c060 PB |
15619 | fi |
15620 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
15621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 15622 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15624 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15625 | if ${ac_cv_prog_NM_FOR_TARGET+:} false; then : |
81ecdfbb | 15626 | $as_echo_n "(cached) " >&6 |
859789af | 15627 | else |
05cbd757 PB |
15628 | if test -n "$NM_FOR_TARGET"; then |
15629 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 15630 | else |
c6b750e1 DJ |
15631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15632 | for as_dir in $PATH | |
15633 | do | |
15634 | IFS=$as_save_IFS | |
15635 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15636 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15638 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 15639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15640 | break 2 |
15641 | fi | |
15642 | done | |
81ecdfbb RW |
15643 | done |
15644 | IFS=$as_save_IFS | |
c6b750e1 | 15645 | |
859789af AC |
15646 | fi |
15647 | fi | |
c6b750e1 | 15648 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 15649 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
15650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
15651 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 15652 | else |
81ecdfbb RW |
15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15654 | $as_echo "no" >&6; } | |
859789af | 15655 | fi |
c6b750e1 | 15656 | |
81ecdfbb | 15657 | |
2429c060 PB |
15658 | fi |
15659 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
15660 | done | |
15661 | fi | |
c6b750e1 | 15662 | |
05cbd757 PB |
15663 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
15664 | set dummy nm | |
15665 | if test $build = $target ; then | |
15666 | NM_FOR_TARGET="$2" | |
859789af | 15667 | else |
05cbd757 | 15668 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 15669 | fi |
d3f5afc4 MS |
15670 | else |
15671 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
15672 | fi |
15673 | ||
3a35eeb3 PB |
15674 | else |
15675 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
15676 | fi |
15677 | ||
15678 | ||
15679 | ||
15680 | ||
6b91c541 AP |
15681 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
15682 | if test -n "$with_build_time_tools"; then | |
15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
15684 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
15685 | if test -x $with_build_time_tools/objcopy; then | |
15686 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
15687 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
15689 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
15690 | else | |
15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15692 | $as_echo "no" >&6; } | |
15693 | fi | |
15694 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
15695 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
15696 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
15697 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15698 | fi | |
15699 | fi | |
15700 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
15701 | # Extract the first word of "objcopy", so it can be a program name with args. | |
15702 | set dummy objcopy; ac_word=$2 | |
15703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15704 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15705 | if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15706 | $as_echo_n "(cached) " >&6 |
15707 | else | |
15708 | case $OBJCOPY_FOR_TARGET in | |
15709 | [\\/]* | ?:[\\/]*) | |
15710 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
15711 | ;; | |
15712 | *) | |
15713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15714 | for as_dir in $gcc_cv_tool_dirs | |
15715 | do | |
15716 | IFS=$as_save_IFS | |
15717 | test -z "$as_dir" && as_dir=. | |
15718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15720 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
15721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15722 | break 2 | |
15723 | fi | |
15724 | done | |
15725 | done | |
15726 | IFS=$as_save_IFS | |
15727 | ||
15728 | ;; | |
15729 | esac | |
15730 | fi | |
15731 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15732 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15734 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15735 | else | |
15736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15737 | $as_echo "no" >&6; } | |
15738 | fi | |
15739 | ||
15740 | ||
15741 | fi | |
15742 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
15743 | ||
15744 | ||
15745 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15746 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
15747 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15748 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15749 | fi | |
15750 | ||
15751 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15752 | for ncn_progname in objcopy; do | |
15753 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15754 | set dummy ${ncn_progname}; ac_word=$2 | |
15755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15756 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15757 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15758 | $as_echo_n "(cached) " >&6 |
15759 | else | |
15760 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15761 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15762 | else | |
15763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15764 | for as_dir in $PATH | |
15765 | do | |
15766 | IFS=$as_save_IFS | |
15767 | test -z "$as_dir" && as_dir=. | |
15768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15770 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15772 | break 2 | |
15773 | fi | |
15774 | done | |
15775 | done | |
15776 | IFS=$as_save_IFS | |
15777 | ||
15778 | fi | |
15779 | fi | |
15780 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15781 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15783 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15784 | else | |
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15786 | $as_echo "no" >&6; } | |
15787 | fi | |
15788 | ||
15789 | ||
15790 | done | |
15791 | fi | |
15792 | ||
15793 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
15794 | for ncn_progname in objcopy; do | |
15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
15796 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
15797 | if test -x $with_build_time_tools/${ncn_progname}; then | |
15798 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
15799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15800 | $as_echo "yes" >&6; } | |
15801 | break | |
15802 | else | |
15803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15804 | $as_echo "no" >&6; } | |
15805 | fi | |
15806 | done | |
15807 | fi | |
15808 | ||
15809 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
15810 | for ncn_progname in objcopy; do | |
15811 | if test -n "$ncn_target_tool_prefix"; then | |
15812 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
15813 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
15814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15815 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15816 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15817 | $as_echo_n "(cached) " >&6 |
15818 | else | |
15819 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15820 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15821 | else | |
15822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15823 | for as_dir in $PATH | |
15824 | do | |
15825 | IFS=$as_save_IFS | |
15826 | test -z "$as_dir" && as_dir=. | |
15827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15829 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
15830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15831 | break 2 | |
15832 | fi | |
15833 | done | |
15834 | done | |
15835 | IFS=$as_save_IFS | |
15836 | ||
15837 | fi | |
15838 | fi | |
15839 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15840 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15842 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15843 | else | |
15844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15845 | $as_echo "no" >&6; } | |
15846 | fi | |
15847 | ||
15848 | ||
15849 | fi | |
15850 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
15851 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15852 | set dummy ${ncn_progname}; ac_word=$2 | |
15853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15854 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15855 | if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then : |
6b91c541 AP |
15856 | $as_echo_n "(cached) " >&6 |
15857 | else | |
15858 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15859 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
15860 | else | |
15861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15862 | for as_dir in $PATH | |
15863 | do | |
15864 | IFS=$as_save_IFS | |
15865 | test -z "$as_dir" && as_dir=. | |
15866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 15867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6b91c541 AP |
15868 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" |
15869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15870 | break 2 | |
15871 | fi | |
15872 | done | |
15873 | done | |
15874 | IFS=$as_save_IFS | |
15875 | ||
15876 | fi | |
15877 | fi | |
15878 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
15879 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
15880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
15881 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
15882 | else | |
15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15884 | $as_echo "no" >&6; } | |
15885 | fi | |
15886 | ||
15887 | ||
15888 | fi | |
15889 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
15890 | done | |
15891 | fi | |
15892 | ||
15893 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
15894 | set dummy objcopy | |
15895 | if test $build = $target ; then | |
15896 | OBJCOPY_FOR_TARGET="$2" | |
15897 | else | |
15898 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
15899 | fi | |
15900 | else | |
15901 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
15902 | fi | |
15903 | ||
15904 | else | |
15905 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
15906 | fi | |
15907 | ||
15908 | ||
15909 | ||
15910 | ||
2429c060 PB |
15911 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
15912 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
15913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
15914 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
15915 | if test -x $with_build_time_tools/objdump; then |
15916 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
15917 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
15919 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 15920 | else |
81ecdfbb RW |
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15922 | $as_echo "no" >&6; } | |
3a35eeb3 | 15923 | fi |
2429c060 PB |
15924 | elif test $build != $host && test $have_gcc_for_target = yes; then |
15925 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
15926 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
15927 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
15928 | fi |
15929 | fi | |
c6b750e1 | 15930 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
15931 | # Extract the first word of "objdump", so it can be a program name with args. |
15932 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15934 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15935 | if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15936 | $as_echo_n "(cached) " >&6 |
2429c060 | 15937 | else |
c6b750e1 DJ |
15938 | case $OBJDUMP_FOR_TARGET in |
15939 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
15940 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
15941 | ;; | |
2429c060 | 15942 | *) |
c6b750e1 DJ |
15943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
15944 | for as_dir in $gcc_cv_tool_dirs | |
15945 | do | |
15946 | IFS=$as_save_IFS | |
15947 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15948 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15949 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 15950 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 15951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
15952 | break 2 |
15953 | fi | |
15954 | done | |
81ecdfbb RW |
15955 | done |
15956 | IFS=$as_save_IFS | |
c6b750e1 | 15957 | |
2429c060 PB |
15958 | ;; |
15959 | esac | |
15960 | fi | |
c6b750e1 | 15961 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 15962 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
15963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
15964 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 15965 | else |
81ecdfbb RW |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15967 | $as_echo "no" >&6; } | |
2429c060 PB |
15968 | fi |
15969 | ||
81ecdfbb | 15970 | |
2429c060 PB |
15971 | fi |
15972 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
15973 | |
15974 | ||
15975 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15976 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
15977 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15978 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
15979 | fi | |
15980 | ||
15981 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
15982 | for ncn_progname in objdump; do | |
15983 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
15984 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
15985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15986 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 15987 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 15988 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
15989 | else |
15990 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
15991 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
15992 | else | |
15993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15994 | for as_dir in $PATH | |
15995 | do | |
15996 | IFS=$as_save_IFS | |
15997 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 15998 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 15999 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16000 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16002 | break 2 |
16003 | fi | |
16004 | done | |
81ecdfbb RW |
16005 | done |
16006 | IFS=$as_save_IFS | |
9a819804 AO |
16007 | |
16008 | fi | |
16009 | fi | |
16010 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
16011 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
16012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16013 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 16014 | else |
81ecdfbb RW |
16015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16016 | $as_echo "no" >&6; } | |
9a819804 AO |
16017 | fi |
16018 | ||
81ecdfbb | 16019 | |
9a819804 AO |
16020 | done |
16021 | fi | |
16022 | ||
16023 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16024 | for ncn_progname in objdump; do |
81ecdfbb RW |
16025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16026 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16027 | if test -x $with_build_time_tools/${ncn_progname}; then |
16028 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16030 | $as_echo "yes" >&6; } | |
2429c060 PB |
16031 | break |
16032 | else | |
81ecdfbb RW |
16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16034 | $as_echo "no" >&6; } | |
2429c060 PB |
16035 | fi |
16036 | done | |
16037 | fi | |
16038 | ||
16039 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
16040 | for ncn_progname in objdump; do | |
16041 | if test -n "$ncn_target_tool_prefix"; then | |
16042 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16043 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16045 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16046 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16047 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16048 | else |
16049 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16050 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16051 | else | |
c6b750e1 DJ |
16052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16053 | for as_dir in $PATH | |
16054 | do | |
16055 | IFS=$as_save_IFS | |
16056 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16057 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16059 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16061 | break 2 |
16062 | fi | |
16063 | done | |
81ecdfbb RW |
16064 | done |
16065 | IFS=$as_save_IFS | |
c6b750e1 | 16066 | |
5ae72758 DJ |
16067 | fi |
16068 | fi | |
c6b750e1 | 16069 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16070 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16072 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16073 | else |
81ecdfbb RW |
16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16075 | $as_echo "no" >&6; } | |
5ae72758 DJ |
16076 | fi |
16077 | ||
81ecdfbb | 16078 | |
2429c060 PB |
16079 | fi |
16080 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
16081 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16082 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16084 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16085 | if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then : |
81ecdfbb | 16086 | $as_echo_n "(cached) " >&6 |
5ae72758 DJ |
16087 | else |
16088 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
16089 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
16090 | else | |
c6b750e1 DJ |
16091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16092 | for as_dir in $PATH | |
16093 | do | |
16094 | IFS=$as_save_IFS | |
16095 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16096 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16098 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16100 | break 2 |
16101 | fi | |
16102 | done | |
81ecdfbb RW |
16103 | done |
16104 | IFS=$as_save_IFS | |
c6b750e1 | 16105 | |
5ae72758 DJ |
16106 | fi |
16107 | fi | |
c6b750e1 | 16108 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 16109 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
16110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
16111 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 16112 | else |
81ecdfbb RW |
16113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16114 | $as_echo "no" >&6; } | |
5ae72758 | 16115 | fi |
c6b750e1 | 16116 | |
81ecdfbb | 16117 | |
2429c060 PB |
16118 | fi |
16119 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
16120 | done | |
16121 | fi | |
c6b750e1 | 16122 | |
5ae72758 DJ |
16123 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
16124 | set dummy objdump | |
16125 | if test $build = $target ; then | |
16126 | OBJDUMP_FOR_TARGET="$2" | |
16127 | else | |
16128 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16129 | fi | |
d3f5afc4 MS |
16130 | else |
16131 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
16132 | fi |
16133 | ||
3a35eeb3 PB |
16134 | else |
16135 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
16136 | fi |
16137 | ||
16138 | ||
16139 | ||
16140 | ||
228cf97d AM |
16141 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then |
16142 | if test -n "$with_build_time_tools"; then | |
16143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 | |
16144 | $as_echo_n "checking for otool in $with_build_time_tools... " >&6; } | |
16145 | if test -x $with_build_time_tools/otool; then | |
16146 | OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool | |
16147 | ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5 | |
16149 | $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; } | |
16150 | else | |
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16152 | $as_echo "no" >&6; } | |
16153 | fi | |
16154 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16155 | OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool` | |
16156 | test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET= | |
16157 | test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16158 | fi | |
16159 | fi | |
16160 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16161 | # Extract the first word of "otool", so it can be a program name with args. | |
16162 | set dummy otool; ac_word=$2 | |
16163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16164 | $as_echo_n "checking for $ac_word... " >&6; } | |
16165 | if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then : | |
16166 | $as_echo_n "(cached) " >&6 | |
16167 | else | |
16168 | case $OTOOL_FOR_TARGET in | |
16169 | [\\/]* | ?:[\\/]*) | |
16170 | ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path. | |
16171 | ;; | |
16172 | *) | |
16173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16174 | for as_dir in $gcc_cv_tool_dirs | |
16175 | do | |
16176 | IFS=$as_save_IFS | |
16177 | test -z "$as_dir" && as_dir=. | |
16178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16180 | ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
16181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16182 | break 2 | |
16183 | fi | |
16184 | done | |
16185 | done | |
16186 | IFS=$as_save_IFS | |
16187 | ||
16188 | ;; | |
16189 | esac | |
16190 | fi | |
16191 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16192 | if test -n "$OTOOL_FOR_TARGET"; then | |
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16194 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16195 | else | |
16196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16197 | $as_echo "no" >&6; } | |
16198 | fi | |
16199 | ||
16200 | ||
16201 | fi | |
16202 | if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then | |
16203 | ||
16204 | ||
16205 | if test -n "$OTOOL_FOR_TARGET"; then | |
16206 | ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET | |
16207 | elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16208 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16209 | fi | |
16210 | ||
16211 | if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16212 | for ncn_progname in otool; do | |
16213 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16214 | set dummy ${ncn_progname}; ac_word=$2 | |
16215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16216 | $as_echo_n "checking for $ac_word... " >&6; } | |
16217 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16218 | $as_echo_n "(cached) " >&6 | |
16219 | else | |
16220 | if test -n "$OTOOL_FOR_TARGET"; then | |
16221 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16222 | else | |
16223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16224 | for as_dir in $PATH | |
16225 | do | |
16226 | IFS=$as_save_IFS | |
16227 | test -z "$as_dir" && as_dir=. | |
16228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16230 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16232 | break 2 | |
16233 | fi | |
16234 | done | |
16235 | done | |
16236 | IFS=$as_save_IFS | |
16237 | ||
16238 | fi | |
16239 | fi | |
16240 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16241 | if test -n "$OTOOL_FOR_TARGET"; then | |
16242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16243 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16244 | else | |
16245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16246 | $as_echo "no" >&6; } | |
16247 | fi | |
16248 | ||
16249 | ||
16250 | done | |
16251 | fi | |
16252 | ||
16253 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16254 | for ncn_progname in otool; do | |
16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16256 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16257 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16258 | ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16260 | $as_echo "yes" >&6; } | |
16261 | break | |
16262 | else | |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16264 | $as_echo "no" >&6; } | |
16265 | fi | |
16266 | done | |
16267 | fi | |
16268 | ||
16269 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then | |
16270 | for ncn_progname in otool; do | |
16271 | if test -n "$ncn_target_tool_prefix"; then | |
16272 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16273 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16275 | $as_echo_n "checking for $ac_word... " >&6; } | |
16276 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16277 | $as_echo_n "(cached) " >&6 | |
16278 | else | |
16279 | if test -n "$OTOOL_FOR_TARGET"; then | |
16280 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16281 | else | |
16282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16283 | for as_dir in $PATH | |
16284 | do | |
16285 | IFS=$as_save_IFS | |
16286 | test -z "$as_dir" && as_dir=. | |
16287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16289 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
16290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16291 | break 2 | |
16292 | fi | |
16293 | done | |
16294 | done | |
16295 | IFS=$as_save_IFS | |
16296 | ||
16297 | fi | |
16298 | fi | |
16299 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16300 | if test -n "$OTOOL_FOR_TARGET"; then | |
16301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16302 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16303 | else | |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16305 | $as_echo "no" >&6; } | |
16306 | fi | |
16307 | ||
16308 | ||
16309 | fi | |
16310 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then | |
16311 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16312 | set dummy ${ncn_progname}; ac_word=$2 | |
16313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16314 | $as_echo_n "checking for $ac_word... " >&6; } | |
16315 | if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then : | |
16316 | $as_echo_n "(cached) " >&6 | |
16317 | else | |
16318 | if test -n "$OTOOL_FOR_TARGET"; then | |
16319 | ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test. | |
16320 | else | |
16321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16322 | for as_dir in $PATH | |
16323 | do | |
16324 | IFS=$as_save_IFS | |
16325 | test -z "$as_dir" && as_dir=. | |
16326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16328 | ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}" | |
16329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16330 | break 2 | |
16331 | fi | |
16332 | done | |
16333 | done | |
16334 | IFS=$as_save_IFS | |
16335 | ||
16336 | fi | |
16337 | fi | |
16338 | OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET | |
16339 | if test -n "$OTOOL_FOR_TARGET"; then | |
16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5 | |
16341 | $as_echo "$OTOOL_FOR_TARGET" >&6; } | |
16342 | else | |
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16344 | $as_echo "no" >&6; } | |
16345 | fi | |
16346 | ||
16347 | ||
16348 | fi | |
16349 | test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break | |
16350 | done | |
16351 | fi | |
16352 | ||
16353 | if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then | |
16354 | set dummy otool | |
16355 | if test $build = $target ; then | |
16356 | OTOOL_FOR_TARGET="$2" | |
16357 | else | |
16358 | OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16359 | fi | |
16360 | else | |
16361 | OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET" | |
16362 | fi | |
16363 | ||
16364 | else | |
16365 | OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET | |
16366 | fi | |
16367 | ||
16368 | ||
16369 | ||
16370 | ||
2429c060 PB |
16371 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then |
16372 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
16374 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16375 | if test -x $with_build_time_tools/ranlib; then |
16376 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
16377 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
16379 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 16380 | else |
81ecdfbb RW |
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16382 | $as_echo "no" >&6; } | |
3a35eeb3 | 16383 | fi |
2429c060 PB |
16384 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16385 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
16386 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
16387 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
16388 | fi |
16389 | fi | |
c6b750e1 | 16390 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16391 | # Extract the first word of "ranlib", so it can be a program name with args. |
16392 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16394 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16395 | if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16396 | $as_echo_n "(cached) " >&6 |
2429c060 | 16397 | else |
c6b750e1 DJ |
16398 | case $RANLIB_FOR_TARGET in |
16399 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16400 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
16401 | ;; | |
2429c060 | 16402 | *) |
c6b750e1 DJ |
16403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16404 | for as_dir in $gcc_cv_tool_dirs | |
16405 | do | |
16406 | IFS=$as_save_IFS | |
16407 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16408 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16409 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16410 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16412 | break 2 |
16413 | fi | |
16414 | done | |
81ecdfbb RW |
16415 | done |
16416 | IFS=$as_save_IFS | |
c6b750e1 | 16417 | |
2429c060 PB |
16418 | ;; |
16419 | esac | |
16420 | fi | |
c6b750e1 | 16421 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 16422 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16424 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 16425 | else |
81ecdfbb RW |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16427 | $as_echo "no" >&6; } | |
2429c060 PB |
16428 | fi |
16429 | ||
81ecdfbb | 16430 | |
2429c060 PB |
16431 | fi |
16432 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
16433 | |
16434 | ||
16435 | if test -n "$RANLIB_FOR_TARGET"; then | |
16436 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
16437 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16438 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16439 | fi | |
16440 | ||
16441 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16442 | for ncn_progname in ranlib; do | |
16443 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16444 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16446 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16447 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16448 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16449 | else |
16450 | if test -n "$RANLIB_FOR_TARGET"; then | |
16451 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
16452 | else | |
16453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16454 | for as_dir in $PATH | |
16455 | do | |
16456 | IFS=$as_save_IFS | |
16457 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16458 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16460 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16462 | break 2 |
16463 | fi | |
16464 | done | |
81ecdfbb RW |
16465 | done |
16466 | IFS=$as_save_IFS | |
9a819804 AO |
16467 | |
16468 | fi | |
16469 | fi | |
16470 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
16471 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
16472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16473 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 16474 | else |
81ecdfbb RW |
16475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16476 | $as_echo "no" >&6; } | |
9a819804 AO |
16477 | fi |
16478 | ||
81ecdfbb | 16479 | |
9a819804 AO |
16480 | done |
16481 | fi | |
16482 | ||
16483 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16484 | for ncn_progname in ranlib; do |
81ecdfbb RW |
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16486 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16487 | if test -x $with_build_time_tools/${ncn_progname}; then |
16488 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16490 | $as_echo "yes" >&6; } | |
2429c060 PB |
16491 | break |
16492 | else | |
81ecdfbb RW |
16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16494 | $as_echo "no" >&6; } | |
2429c060 PB |
16495 | fi |
16496 | done | |
16497 | fi | |
16498 | ||
16499 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
16500 | for ncn_progname in ranlib; do | |
16501 | if test -n "$ncn_target_tool_prefix"; then | |
16502 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 16503 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16505 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16506 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16507 | $as_echo_n "(cached) " >&6 |
859789af | 16508 | else |
55db4b87 PB |
16509 | if test -n "$RANLIB_FOR_TARGET"; then |
16510 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16511 | else |
c6b750e1 DJ |
16512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16513 | for as_dir in $PATH | |
16514 | do | |
16515 | IFS=$as_save_IFS | |
16516 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16517 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16519 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16521 | break 2 |
16522 | fi | |
16523 | done | |
81ecdfbb RW |
16524 | done |
16525 | IFS=$as_save_IFS | |
c6b750e1 | 16526 | |
859789af AC |
16527 | fi |
16528 | fi | |
c6b750e1 | 16529 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 16530 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16532 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16533 | else |
81ecdfbb RW |
16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16535 | $as_echo "no" >&6; } | |
859789af AC |
16536 | fi |
16537 | ||
81ecdfbb | 16538 | |
2429c060 PB |
16539 | fi |
16540 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
16541 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 16542 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16544 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16545 | if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then : |
81ecdfbb | 16546 | $as_echo_n "(cached) " >&6 |
859789af | 16547 | else |
05cbd757 PB |
16548 | if test -n "$RANLIB_FOR_TARGET"; then |
16549 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 16550 | else |
c6b750e1 DJ |
16551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16552 | for as_dir in $PATH | |
16553 | do | |
16554 | IFS=$as_save_IFS | |
16555 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16556 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16558 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16560 | break 2 |
16561 | fi | |
16562 | done | |
81ecdfbb RW |
16563 | done |
16564 | IFS=$as_save_IFS | |
c6b750e1 | 16565 | |
859789af AC |
16566 | fi |
16567 | fi | |
c6b750e1 | 16568 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 16569 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
16571 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 16572 | else |
81ecdfbb RW |
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16574 | $as_echo "no" >&6; } | |
859789af | 16575 | fi |
c6b750e1 | 16576 | |
81ecdfbb | 16577 | |
2429c060 PB |
16578 | fi |
16579 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
16580 | done | |
16581 | fi | |
c6b750e1 | 16582 | |
2429c060 PB |
16583 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
16584 | set dummy ranlib | |
16585 | if test $build = $target ; then | |
16586 | RANLIB_FOR_TARGET="$2" | |
16587 | else | |
16588 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 16589 | fi |
d3f5afc4 MS |
16590 | else |
16591 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 16592 | fi |
05cbd757 | 16593 | |
3a35eeb3 PB |
16594 | else |
16595 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
16596 | fi |
16597 | ||
2429c060 PB |
16598 | |
16599 | ||
16600 | ||
b121d7d4 DD |
16601 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
16602 | if test -n "$with_build_time_tools"; then | |
16603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
16604 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
16605 | if test -x $with_build_time_tools/readelf; then | |
16606 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
16607 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
16609 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
16610 | else | |
16611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16612 | $as_echo "no" >&6; } | |
16613 | fi | |
16614 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
16615 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
16616 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
16617 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16618 | fi | |
16619 | fi | |
16620 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
16621 | # Extract the first word of "readelf", so it can be a program name with args. | |
16622 | set dummy readelf; ac_word=$2 | |
16623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16624 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16625 | if ${ac_cv_path_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16626 | $as_echo_n "(cached) " >&6 |
16627 | else | |
16628 | case $READELF_FOR_TARGET in | |
16629 | [\\/]* | ?:[\\/]*) | |
16630 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
16631 | ;; | |
16632 | *) | |
16633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16634 | for as_dir in $gcc_cv_tool_dirs | |
16635 | do | |
16636 | IFS=$as_save_IFS | |
16637 | test -z "$as_dir" && as_dir=. | |
16638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16640 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
16641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16642 | break 2 | |
16643 | fi | |
16644 | done | |
16645 | done | |
16646 | IFS=$as_save_IFS | |
16647 | ||
16648 | ;; | |
16649 | esac | |
16650 | fi | |
16651 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16652 | if test -n "$READELF_FOR_TARGET"; then | |
16653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16654 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16655 | else | |
16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16657 | $as_echo "no" >&6; } | |
16658 | fi | |
16659 | ||
16660 | ||
16661 | fi | |
16662 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
16663 | ||
16664 | ||
16665 | if test -n "$READELF_FOR_TARGET"; then | |
16666 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
16667 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16668 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16669 | fi | |
16670 | ||
16671 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16672 | for ncn_progname in readelf; do | |
16673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16674 | set dummy ${ncn_progname}; ac_word=$2 | |
16675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16676 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16677 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16678 | $as_echo_n "(cached) " >&6 |
16679 | else | |
16680 | if test -n "$READELF_FOR_TARGET"; then | |
16681 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16682 | else | |
16683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16684 | for as_dir in $PATH | |
16685 | do | |
16686 | IFS=$as_save_IFS | |
16687 | test -z "$as_dir" && as_dir=. | |
16688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16690 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16692 | break 2 | |
16693 | fi | |
16694 | done | |
16695 | done | |
16696 | IFS=$as_save_IFS | |
16697 | ||
16698 | fi | |
16699 | fi | |
16700 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16701 | if test -n "$READELF_FOR_TARGET"; then | |
16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16703 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16704 | else | |
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16706 | $as_echo "no" >&6; } | |
16707 | fi | |
16708 | ||
16709 | ||
16710 | done | |
16711 | fi | |
16712 | ||
16713 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
16714 | for ncn_progname in readelf; do | |
16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
16716 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
16717 | if test -x $with_build_time_tools/${ncn_progname}; then | |
16718 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16720 | $as_echo "yes" >&6; } | |
16721 | break | |
16722 | else | |
16723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16724 | $as_echo "no" >&6; } | |
16725 | fi | |
16726 | done | |
16727 | fi | |
16728 | ||
16729 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
16730 | for ncn_progname in readelf; do | |
16731 | if test -n "$ncn_target_tool_prefix"; then | |
16732 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
16733 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
16734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16735 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16736 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16737 | $as_echo_n "(cached) " >&6 |
16738 | else | |
16739 | if test -n "$READELF_FOR_TARGET"; then | |
16740 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16741 | else | |
16742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16743 | for as_dir in $PATH | |
16744 | do | |
16745 | IFS=$as_save_IFS | |
16746 | test -z "$as_dir" && as_dir=. | |
16747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16749 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
16750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16751 | break 2 | |
16752 | fi | |
16753 | done | |
16754 | done | |
16755 | IFS=$as_save_IFS | |
16756 | ||
16757 | fi | |
16758 | fi | |
16759 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16760 | if test -n "$READELF_FOR_TARGET"; then | |
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16762 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16763 | else | |
16764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16765 | $as_echo "no" >&6; } | |
16766 | fi | |
16767 | ||
16768 | ||
16769 | fi | |
16770 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
16771 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16772 | set dummy ${ncn_progname}; ac_word=$2 | |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16774 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16775 | if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then : |
b121d7d4 DD |
16776 | $as_echo_n "(cached) " >&6 |
16777 | else | |
16778 | if test -n "$READELF_FOR_TARGET"; then | |
16779 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
16780 | else | |
16781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16782 | for as_dir in $PATH | |
16783 | do | |
16784 | IFS=$as_save_IFS | |
16785 | test -z "$as_dir" && as_dir=. | |
16786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 16787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b121d7d4 DD |
16788 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" |
16789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16790 | break 2 | |
16791 | fi | |
16792 | done | |
16793 | done | |
16794 | IFS=$as_save_IFS | |
16795 | ||
16796 | fi | |
16797 | fi | |
16798 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
16799 | if test -n "$READELF_FOR_TARGET"; then | |
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
16801 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
16802 | else | |
16803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16804 | $as_echo "no" >&6; } | |
16805 | fi | |
16806 | ||
16807 | ||
16808 | fi | |
16809 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
16810 | done | |
16811 | fi | |
16812 | ||
16813 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
16814 | set dummy readelf | |
16815 | if test $build = $target ; then | |
16816 | READELF_FOR_TARGET="$2" | |
16817 | else | |
16818 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
16819 | fi | |
16820 | else | |
16821 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
16822 | fi | |
16823 | ||
16824 | else | |
16825 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
16826 | fi | |
16827 | ||
16828 | ||
16829 | ||
16830 | ||
2429c060 PB |
16831 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
16832 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
16833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
16834 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16835 | if test -x $with_build_time_tools/strip; then |
16836 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
16837 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
16838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
16839 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 16840 | else |
81ecdfbb RW |
16841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16842 | $as_echo "no" >&6; } | |
3a35eeb3 | 16843 | fi |
2429c060 PB |
16844 | elif test $build != $host && test $have_gcc_for_target = yes; then |
16845 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
16846 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
16847 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
16848 | fi |
16849 | fi | |
c6b750e1 | 16850 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
16851 | # Extract the first word of "strip", so it can be a program name with args. |
16852 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
16853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16854 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16855 | if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16856 | $as_echo_n "(cached) " >&6 |
2429c060 | 16857 | else |
c6b750e1 DJ |
16858 | case $STRIP_FOR_TARGET in |
16859 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
16860 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
16861 | ;; | |
2429c060 | 16862 | *) |
c6b750e1 DJ |
16863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16864 | for as_dir in $gcc_cv_tool_dirs | |
16865 | do | |
16866 | IFS=$as_save_IFS | |
16867 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16868 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16870 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 16871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16872 | break 2 |
16873 | fi | |
16874 | done | |
81ecdfbb RW |
16875 | done |
16876 | IFS=$as_save_IFS | |
c6b750e1 | 16877 | |
2429c060 PB |
16878 | ;; |
16879 | esac | |
16880 | fi | |
c6b750e1 | 16881 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 16882 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16884 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 16885 | else |
81ecdfbb RW |
16886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16887 | $as_echo "no" >&6; } | |
2429c060 PB |
16888 | fi |
16889 | ||
81ecdfbb | 16890 | |
2429c060 PB |
16891 | fi |
16892 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
16893 | |
16894 | ||
16895 | if test -n "$STRIP_FOR_TARGET"; then | |
16896 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
16897 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16898 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16899 | fi | |
16900 | ||
16901 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16902 | for ncn_progname in strip; do | |
16903 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
16904 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
16905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16906 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16907 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16908 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
16909 | else |
16910 | if test -n "$STRIP_FOR_TARGET"; then | |
16911 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
16912 | else | |
16913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16914 | for as_dir in $PATH | |
16915 | do | |
16916 | IFS=$as_save_IFS | |
16917 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16918 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 16920 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 16921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
16922 | break 2 |
16923 | fi | |
16924 | done | |
81ecdfbb RW |
16925 | done |
16926 | IFS=$as_save_IFS | |
9a819804 AO |
16927 | |
16928 | fi | |
16929 | fi | |
16930 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
16931 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16933 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 16934 | else |
81ecdfbb RW |
16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16936 | $as_echo "no" >&6; } | |
9a819804 AO |
16937 | fi |
16938 | ||
81ecdfbb | 16939 | |
9a819804 AO |
16940 | done |
16941 | fi | |
16942 | ||
16943 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 16944 | for ncn_progname in strip; do |
81ecdfbb RW |
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
16946 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
16947 | if test -x $with_build_time_tools/${ncn_progname}; then |
16948 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
16949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16950 | $as_echo "yes" >&6; } | |
2429c060 PB |
16951 | break |
16952 | else | |
81ecdfbb RW |
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16954 | $as_echo "no" >&6; } | |
2429c060 PB |
16955 | fi |
16956 | done | |
16957 | fi | |
16958 | ||
16959 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
16960 | for ncn_progname in strip; do | |
16961 | if test -n "$ncn_target_tool_prefix"; then | |
16962 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 16963 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16965 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 16966 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 16967 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
16968 | else |
16969 | if test -n "$STRIP_FOR_TARGET"; then | |
16970 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
16971 | else |
16972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16973 | for as_dir in $PATH | |
16974 | do | |
16975 | IFS=$as_save_IFS | |
16976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 16977 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 16978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 16979 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 16980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
16981 | break 2 |
16982 | fi | |
16983 | done | |
81ecdfbb RW |
16984 | done |
16985 | IFS=$as_save_IFS | |
c6b750e1 | 16986 | |
7e0f7140 GK |
16987 | fi |
16988 | fi | |
c6b750e1 | 16989 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 16990 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
16992 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 16993 | else |
81ecdfbb RW |
16994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16995 | $as_echo "no" >&6; } | |
7e0f7140 GK |
16996 | fi |
16997 | ||
81ecdfbb | 16998 | |
2429c060 PB |
16999 | fi |
17000 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
17001 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 17002 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17004 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17005 | if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then : |
81ecdfbb | 17006 | $as_echo_n "(cached) " >&6 |
7e0f7140 GK |
17007 | else |
17008 | if test -n "$STRIP_FOR_TARGET"; then | |
17009 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
17010 | else | |
c6b750e1 DJ |
17011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17012 | for as_dir in $PATH | |
17013 | do | |
17014 | IFS=$as_save_IFS | |
17015 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17016 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17018 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17020 | break 2 |
17021 | fi | |
17022 | done | |
81ecdfbb RW |
17023 | done |
17024 | IFS=$as_save_IFS | |
c6b750e1 | 17025 | |
7e0f7140 GK |
17026 | fi |
17027 | fi | |
c6b750e1 | 17028 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 17029 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
17030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
17031 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 17032 | else |
81ecdfbb RW |
17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17034 | $as_echo "no" >&6; } | |
7e0f7140 | 17035 | fi |
c6b750e1 | 17036 | |
81ecdfbb | 17037 | |
2429c060 PB |
17038 | fi |
17039 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
17040 | done | |
17041 | fi | |
c6b750e1 | 17042 | |
7e0f7140 GK |
17043 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
17044 | set dummy strip | |
17045 | if test $build = $target ; then | |
17046 | STRIP_FOR_TARGET="$2" | |
17047 | else | |
17048 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17049 | fi | |
d3f5afc4 MS |
17050 | else |
17051 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
17052 | fi |
17053 | ||
3a35eeb3 PB |
17054 | else |
17055 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
17056 | fi |
17057 | ||
17058 | ||
17059 | ||
17060 | ||
17061 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
17062 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
17064 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17065 | if test -x $with_build_time_tools/windres; then |
17066 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
17067 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
17069 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 17070 | else |
81ecdfbb RW |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17072 | $as_echo "no" >&6; } | |
3a35eeb3 | 17073 | fi |
2429c060 PB |
17074 | elif test $build != $host && test $have_gcc_for_target = yes; then |
17075 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
17076 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
17077 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
17078 | fi |
17079 | fi | |
c6b750e1 | 17080 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
17081 | # Extract the first word of "windres", so it can be a program name with args. |
17082 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
17083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17084 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17085 | if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17086 | $as_echo_n "(cached) " >&6 |
2429c060 | 17087 | else |
c6b750e1 DJ |
17088 | case $WINDRES_FOR_TARGET in |
17089 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
17090 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
17091 | ;; | |
2429c060 | 17092 | *) |
c6b750e1 DJ |
17093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17094 | for as_dir in $gcc_cv_tool_dirs | |
17095 | do | |
17096 | IFS=$as_save_IFS | |
17097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17098 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17100 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17102 | break 2 |
17103 | fi | |
17104 | done | |
81ecdfbb RW |
17105 | done |
17106 | IFS=$as_save_IFS | |
c6b750e1 | 17107 | |
2429c060 PB |
17108 | ;; |
17109 | esac | |
17110 | fi | |
c6b750e1 | 17111 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 17112 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17114 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 17115 | else |
81ecdfbb RW |
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17117 | $as_echo "no" >&6; } | |
2429c060 PB |
17118 | fi |
17119 | ||
81ecdfbb | 17120 | |
2429c060 PB |
17121 | fi |
17122 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
17123 | |
17124 | ||
17125 | if test -n "$WINDRES_FOR_TARGET"; then | |
17126 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
17127 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17128 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17129 | fi | |
17130 | ||
17131 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17132 | for ncn_progname in windres; do | |
17133 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17134 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17136 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17137 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17138 | $as_echo_n "(cached) " >&6 |
9a819804 AO |
17139 | else |
17140 | if test -n "$WINDRES_FOR_TARGET"; then | |
17141 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
17142 | else | |
17143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17144 | for as_dir in $PATH | |
17145 | do | |
17146 | IFS=$as_save_IFS | |
17147 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17148 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9a819804 | 17150 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
17152 | break 2 |
17153 | fi | |
17154 | done | |
81ecdfbb RW |
17155 | done |
17156 | IFS=$as_save_IFS | |
9a819804 AO |
17157 | |
17158 | fi | |
17159 | fi | |
17160 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
17161 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
17162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17163 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 17164 | else |
81ecdfbb RW |
17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17166 | $as_echo "no" >&6; } | |
9a819804 AO |
17167 | fi |
17168 | ||
81ecdfbb | 17169 | |
9a819804 AO |
17170 | done |
17171 | fi | |
17172 | ||
17173 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 17174 | for ncn_progname in windres; do |
81ecdfbb RW |
17175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17176 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
17177 | if test -x $with_build_time_tools/${ncn_progname}; then |
17178 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17180 | $as_echo "yes" >&6; } | |
2429c060 PB |
17181 | break |
17182 | else | |
81ecdfbb RW |
17183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17184 | $as_echo "no" >&6; } | |
2429c060 PB |
17185 | fi |
17186 | done | |
17187 | fi | |
17188 | ||
17189 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
17190 | for ncn_progname in windres; do | |
17191 | if test -n "$ncn_target_tool_prefix"; then | |
17192 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17193 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17195 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17196 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17197 | $as_echo_n "(cached) " >&6 |
859789af | 17198 | else |
55db4b87 PB |
17199 | if test -n "$WINDRES_FOR_TARGET"; then |
17200 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17201 | else |
c6b750e1 DJ |
17202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17203 | for as_dir in $PATH | |
17204 | do | |
17205 | IFS=$as_save_IFS | |
17206 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17207 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17209 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17211 | break 2 |
17212 | fi | |
17213 | done | |
81ecdfbb RW |
17214 | done |
17215 | IFS=$as_save_IFS | |
c6b750e1 | 17216 | |
859789af AC |
17217 | fi |
17218 | fi | |
c6b750e1 | 17219 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 17220 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17222 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17223 | else |
81ecdfbb RW |
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17225 | $as_echo "no" >&6; } | |
859789af AC |
17226 | fi |
17227 | ||
81ecdfbb | 17228 | |
2429c060 PB |
17229 | fi |
17230 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
17231 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 17232 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
17233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17234 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17235 | if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then : |
81ecdfbb | 17236 | $as_echo_n "(cached) " >&6 |
859789af | 17237 | else |
05cbd757 PB |
17238 | if test -n "$WINDRES_FOR_TARGET"; then |
17239 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 17240 | else |
c6b750e1 DJ |
17241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17242 | for as_dir in $PATH | |
17243 | do | |
17244 | IFS=$as_save_IFS | |
17245 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17246 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c6b750e1 | 17248 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
17250 | break 2 |
17251 | fi | |
17252 | done | |
81ecdfbb RW |
17253 | done |
17254 | IFS=$as_save_IFS | |
c6b750e1 | 17255 | |
859789af AC |
17256 | fi |
17257 | fi | |
c6b750e1 | 17258 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 17259 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
17261 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 17262 | else |
81ecdfbb RW |
17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17264 | $as_echo "no" >&6; } | |
859789af | 17265 | fi |
c6b750e1 | 17266 | |
81ecdfbb | 17267 | |
2429c060 PB |
17268 | fi |
17269 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
17270 | done | |
17271 | fi | |
c6b750e1 | 17272 | |
05cbd757 PB |
17273 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
17274 | set dummy windres | |
17275 | if test $build = $target ; then | |
17276 | WINDRES_FOR_TARGET="$2" | |
859789af | 17277 | else |
05cbd757 | 17278 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 17279 | fi |
d3f5afc4 MS |
17280 | else |
17281 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
17282 | fi |
17283 | ||
3a35eeb3 PB |
17284 | else |
17285 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
17286 | fi |
17287 | ||
852e5f18 | 17288 | |
0c24b341 NC |
17289 | |
17290 | ||
17291 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17292 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
17294 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17295 | if test -x $with_build_time_tools/windmc; then |
17296 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
17297 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
17299 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17300 | else |
81ecdfbb RW |
17301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17302 | $as_echo "no" >&6; } | |
0c24b341 NC |
17303 | fi |
17304 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
17305 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
17306 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
17307 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17308 | fi | |
17309 | fi | |
17310 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
17311 | # Extract the first word of "windmc", so it can be a program name with args. | |
17312 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
17313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17314 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17315 | if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17316 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17317 | else |
17318 | case $WINDMC_FOR_TARGET in | |
17319 | [\\/]* | ?:[\\/]*) | |
17320 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
17321 | ;; | |
17322 | *) | |
17323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17324 | for as_dir in $gcc_cv_tool_dirs | |
17325 | do | |
17326 | IFS=$as_save_IFS | |
17327 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17328 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17330 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 17331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17332 | break 2 |
17333 | fi | |
17334 | done | |
81ecdfbb RW |
17335 | done |
17336 | IFS=$as_save_IFS | |
0c24b341 NC |
17337 | |
17338 | ;; | |
17339 | esac | |
17340 | fi | |
17341 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 17342 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
17343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17344 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17345 | else |
81ecdfbb RW |
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17347 | $as_echo "no" >&6; } | |
0c24b341 NC |
17348 | fi |
17349 | ||
81ecdfbb | 17350 | |
0c24b341 NC |
17351 | fi |
17352 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
17353 | ||
17354 | ||
17355 | if test -n "$WINDMC_FOR_TARGET"; then | |
17356 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
17357 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17358 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17359 | fi | |
17360 | ||
17361 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17362 | for ncn_progname in windmc; do | |
17363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17364 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17366 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17367 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17368 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17369 | else |
17370 | if test -n "$WINDMC_FOR_TARGET"; then | |
17371 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17372 | else | |
17373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17374 | for as_dir in $PATH | |
17375 | do | |
17376 | IFS=$as_save_IFS | |
17377 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17378 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17379 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17380 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17382 | break 2 |
17383 | fi | |
17384 | done | |
81ecdfbb RW |
17385 | done |
17386 | IFS=$as_save_IFS | |
0c24b341 NC |
17387 | |
17388 | fi | |
17389 | fi | |
17390 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17391 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17393 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17394 | else |
81ecdfbb RW |
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17396 | $as_echo "no" >&6; } | |
0c24b341 NC |
17397 | fi |
17398 | ||
81ecdfbb | 17399 | |
0c24b341 NC |
17400 | done |
17401 | fi | |
17402 | ||
17403 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
17404 | for ncn_progname in windmc; do | |
81ecdfbb RW |
17405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
17406 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
17407 | if test -x $with_build_time_tools/${ncn_progname}; then |
17408 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17410 | $as_echo "yes" >&6; } | |
0c24b341 NC |
17411 | break |
17412 | else | |
81ecdfbb RW |
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17414 | $as_echo "no" >&6; } | |
0c24b341 NC |
17415 | fi |
17416 | done | |
17417 | fi | |
17418 | ||
17419 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
17420 | for ncn_progname in windmc; do | |
17421 | if test -n "$ncn_target_tool_prefix"; then | |
17422 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
17423 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17425 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17426 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17427 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17428 | else |
17429 | if test -n "$WINDMC_FOR_TARGET"; then | |
17430 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17431 | else | |
17432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17433 | for as_dir in $PATH | |
17434 | do | |
17435 | IFS=$as_save_IFS | |
17436 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17437 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17439 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 17440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17441 | break 2 |
17442 | fi | |
17443 | done | |
81ecdfbb RW |
17444 | done |
17445 | IFS=$as_save_IFS | |
0c24b341 NC |
17446 | |
17447 | fi | |
17448 | fi | |
17449 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17450 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17452 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17453 | else |
81ecdfbb RW |
17454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17455 | $as_echo "no" >&6; } | |
0c24b341 NC |
17456 | fi |
17457 | ||
81ecdfbb | 17458 | |
0c24b341 NC |
17459 | fi |
17460 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
17461 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
17462 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
17463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17464 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 17465 | if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then : |
81ecdfbb | 17466 | $as_echo_n "(cached) " >&6 |
0c24b341 NC |
17467 | else |
17468 | if test -n "$WINDMC_FOR_TARGET"; then | |
17469 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
17470 | else | |
17471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17472 | for as_dir in $PATH | |
17473 | do | |
17474 | IFS=$as_save_IFS | |
17475 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 17476 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 17477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0c24b341 | 17478 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 17479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
17480 | break 2 |
17481 | fi | |
17482 | done | |
81ecdfbb RW |
17483 | done |
17484 | IFS=$as_save_IFS | |
0c24b341 NC |
17485 | |
17486 | fi | |
17487 | fi | |
17488 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
17489 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
17490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
17491 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 17492 | else |
81ecdfbb RW |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17494 | $as_echo "no" >&6; } | |
0c24b341 NC |
17495 | fi |
17496 | ||
81ecdfbb | 17497 | |
0c24b341 NC |
17498 | fi |
17499 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
17500 | done | |
17501 | fi | |
17502 | ||
17503 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
17504 | set dummy windmc | |
17505 | if test $build = $target ; then | |
17506 | WINDMC_FOR_TARGET="$2" | |
17507 | else | |
17508 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
17509 | fi | |
17510 | else | |
17511 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
17512 | fi | |
17513 | ||
17514 | else | |
17515 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
17516 | fi | |
17517 | ||
17518 | ||
be01d343 PB |
17519 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
17520 | ||
81ecdfbb RW |
17521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
17522 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 17523 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17524 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17525 | # We already found the complete path | |
b8025f34 | 17526 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17528 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17529 | else |
17530 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17532 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17533 | fi |
be01d343 PB |
17534 | else |
17535 | ok=yes | |
17536 | case " ${configdirs} " in | |
17537 | *" binutils "*) ;; | |
17538 | *) ok=no ;; | |
17539 | esac | |
c6b750e1 | 17540 | |
be01d343 PB |
17541 | if test $ok = yes; then |
17542 | # An in-tree tool is available and we can use it | |
17543 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
17544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17545 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17546 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
17547 | # We already found the complete path | |
b8025f34 | 17548 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
17549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17550 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17551 | elif test "x$target" = "x$host"; then |
17552 | # We can use an host tool | |
17553 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17555 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17556 | else |
17557 | # We need a cross tool | |
81ecdfbb RW |
17558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17559 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17560 | fi |
17561 | fi | |
4b900473 | 17562 | |
81ecdfbb RW |
17563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
17564 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 17565 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17566 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17567 | # We already found the complete path | |
b8025f34 | 17568 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17570 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17571 | else |
17572 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17574 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17575 | fi |
be01d343 PB |
17576 | else |
17577 | ok=yes | |
17578 | case " ${configdirs} " in | |
17579 | *" gas "*) ;; | |
17580 | *) ok=no ;; | |
17581 | esac | |
c6b750e1 | 17582 | |
be01d343 PB |
17583 | if test $ok = yes; then |
17584 | # An in-tree tool is available and we can use it | |
17585 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
17586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17587 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17588 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
17589 | # We already found the complete path | |
b8025f34 | 17590 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
17591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17592 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17593 | elif test "x$target" = "x$host"; then |
17594 | # We can use an host tool | |
17595 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
17596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17597 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17598 | else |
17599 | # We need a cross tool | |
81ecdfbb RW |
17600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17601 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17602 | fi |
17603 | fi | |
4b900473 | 17604 | |
81ecdfbb RW |
17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
17606 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 17607 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17608 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17609 | # We already found the complete path | |
b8025f34 | 17610 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17612 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17613 | else |
17614 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17616 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17617 | fi |
be01d343 PB |
17618 | else |
17619 | ok=yes | |
17620 | case " ${configdirs} " in | |
17621 | *" gcc "*) ;; | |
17622 | *) ok=no ;; | |
17623 | esac | |
c6b750e1 | 17624 | |
be01d343 PB |
17625 | if test $ok = yes; then |
17626 | # An in-tree tool is available and we can use it | |
17627 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17629 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17630 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
17631 | # We already found the complete path | |
b8025f34 | 17632 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
17633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17634 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17635 | elif test "x$target" = "x$host"; then |
17636 | # We can use an host tool | |
17637 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
17638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17639 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17640 | else |
17641 | # We need a cross tool | |
81ecdfbb RW |
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17643 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17644 | fi |
17645 | fi | |
4b900473 | 17646 | |
81ecdfbb RW |
17647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
17648 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 17649 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17650 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17651 | # We already found the complete path | |
b8025f34 | 17652 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17654 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17655 | else |
17656 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17658 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17659 | fi |
be01d343 PB |
17660 | else |
17661 | ok=yes | |
17662 | case " ${configdirs} " in | |
17663 | *" gcc "*) ;; | |
17664 | *) ok=no ;; | |
17665 | esac | |
17666 | case ,${enable_languages}, in | |
17667 | *,c++,*) ;; | |
17668 | *) ok=no ;; | |
17669 | esac | |
17670 | if test $ok = yes; then | |
17671 | # An in-tree tool is available and we can use it | |
95e43135 | 17672 | 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 |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17674 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17675 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
17676 | # We already found the complete path | |
b8025f34 | 17677 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17679 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17680 | elif test "x$target" = "x$host"; then |
17681 | # We can use an host tool | |
17682 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17684 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17685 | else |
17686 | # We need a cross tool | |
81ecdfbb RW |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17688 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17689 | fi |
17690 | fi | |
4b900473 | 17691 | |
81ecdfbb RW |
17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
17693 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 17694 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17695 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17696 | # We already found the complete path | |
b8025f34 | 17697 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17699 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17700 | else |
17701 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17703 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17704 | fi |
be01d343 PB |
17705 | else |
17706 | ok=yes | |
17707 | case " ${configdirs} " in | |
17708 | *" gcc "*) ;; | |
17709 | *) ok=no ;; | |
17710 | esac | |
17711 | case ,${enable_languages}, in | |
17712 | *,c++,*) ;; | |
17713 | *) ok=no ;; | |
17714 | esac | |
17715 | if test $ok = yes; then | |
17716 | # An in-tree tool is available and we can use it | |
95e43135 | 17717 | 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 |
17718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17719 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17720 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
17721 | # We already found the complete path | |
b8025f34 | 17722 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17724 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17725 | elif test "x$target" = "x$host"; then |
17726 | # We can use an host tool | |
17727 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17729 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17730 | else |
17731 | # We need a cross tool | |
81ecdfbb RW |
17732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17733 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17734 | fi |
17735 | fi | |
4b900473 | 17736 | |
81ecdfbb RW |
17737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
17738 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 17739 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17740 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17741 | # We already found the complete path | |
b8025f34 | 17742 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17744 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17745 | else |
17746 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17748 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17749 | fi |
be01d343 PB |
17750 | else |
17751 | ok=yes | |
17752 | case " ${configdirs} " in | |
17753 | *" binutils "*) ;; | |
17754 | *) ok=no ;; | |
17755 | esac | |
c6b750e1 | 17756 | |
be01d343 PB |
17757 | if test $ok = yes; then |
17758 | # An in-tree tool is available and we can use it | |
17759 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
17760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17761 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17762 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
17763 | # We already found the complete path | |
b8025f34 | 17764 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
17765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17766 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17767 | elif test "x$target" = "x$host"; then |
17768 | # We can use an host tool | |
17769 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17771 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17772 | else |
17773 | # We need a cross tool | |
81ecdfbb RW |
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17775 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17776 | fi |
17777 | fi | |
4b900473 | 17778 | |
228cf97d AM |
17779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5 |
17780 | $as_echo_n "checking where to find the target dsymutil... " >&6; } | |
17781 | if test "x${build}" != "x${host}" ; then | |
17782 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17783 | # We already found the complete path | |
17784 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17786 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17787 | else | |
17788 | # Canadian cross, just use what we found | |
17789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17790 | $as_echo "pre-installed" >&6; } | |
17791 | fi | |
17792 | else | |
17793 | if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then | |
17794 | # We already found the complete path | |
17795 | ac_dir=`dirname $DSYMUTIL_FOR_TARGET` | |
17796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17797 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17798 | elif test "x$target" = "x$host"; then | |
17799 | # We can use an host tool | |
17800 | DSYMUTIL_FOR_TARGET='$(DSYMUTIL)' | |
17801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17802 | $as_echo "host tool" >&6; } | |
17803 | else | |
17804 | # We need a cross tool | |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17806 | $as_echo "pre-installed" >&6; } | |
17807 | fi | |
17808 | fi | |
17809 | ||
81ecdfbb RW |
17810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
17811 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 17812 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17813 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17814 | # We already found the complete path | |
b8025f34 | 17815 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17817 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17818 | else |
17819 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17821 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17822 | fi |
be01d343 PB |
17823 | else |
17824 | ok=yes | |
17825 | case " ${configdirs} " in | |
17826 | *" gcc "*) ;; | |
17827 | *) ok=no ;; | |
17828 | esac | |
c6b750e1 | 17829 | |
be01d343 PB |
17830 | if test $ok = yes; then |
17831 | # An in-tree tool is available and we can use it | |
17832 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17834 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17835 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
17836 | # We already found the complete path | |
b8025f34 | 17837 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17839 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17840 | elif test "x$target" = "x$host"; then |
17841 | # We can use an host tool | |
17842 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17844 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17845 | else |
17846 | # We need a cross tool | |
81ecdfbb RW |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17848 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17849 | fi |
17850 | fi | |
4b900473 | 17851 | |
81ecdfbb RW |
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
17853 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 17854 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17855 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17856 | # We already found the complete path | |
b8025f34 | 17857 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17859 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17860 | else |
17861 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17863 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17864 | fi |
be01d343 PB |
17865 | else |
17866 | ok=yes | |
17867 | case " ${configdirs} " in | |
17868 | *" gcc "*) ;; | |
17869 | *) ok=no ;; | |
17870 | esac | |
17871 | case ,${enable_languages}, in | |
17872 | *,fortran,*) ;; | |
17873 | *) ok=no ;; | |
17874 | esac | |
17875 | if test $ok = yes; then | |
17876 | # An in-tree tool is available and we can use it | |
17877 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
17878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
17879 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
17880 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
17881 | # We already found the complete path | |
b8025f34 | 17882 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17884 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
17885 | elif test "x$target" = "x$host"; then |
17886 | # We can use an host tool | |
17887 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
17888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
17889 | $as_echo "host tool" >&6; } | |
be01d343 PB |
17890 | else |
17891 | # We need a cross tool | |
81ecdfbb RW |
17892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17893 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
17894 | fi |
17895 | fi | |
4b900473 | 17896 | |
e552509b ILT |
17897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
17898 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
17899 | if test "x${build}" != "x${host}" ; then | |
17900 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17901 | # We already found the complete path | |
17902 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17904 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17905 | else | |
17906 | # Canadian cross, just use what we found | |
17907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17908 | $as_echo "pre-installed" >&6; } | |
17909 | fi | |
17910 | else | |
17911 | ok=yes | |
17912 | case " ${configdirs} " in | |
17913 | *" gcc "*) ;; | |
17914 | *) ok=no ;; | |
17915 | esac | |
17916 | case ,${enable_languages}, in | |
17917 | *,go,*) ;; | |
17918 | *) ok=no ;; | |
17919 | esac | |
17920 | if test $ok = yes; then | |
17921 | # An in-tree tool is available and we can use it | |
17922 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
17923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17924 | $as_echo "just compiled" >&6; } | |
17925 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
17926 | # We already found the complete path | |
17927 | ac_dir=`dirname $GOC_FOR_TARGET` | |
17928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17929 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17930 | elif test "x$target" = "x$host"; then | |
17931 | # We can use an host tool | |
17932 | GOC_FOR_TARGET='$(GOC)' | |
17933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17934 | $as_echo "host tool" >&6; } | |
17935 | else | |
17936 | # We need a cross tool | |
17937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17938 | $as_echo "pre-installed" >&6; } | |
17939 | fi | |
17940 | fi | |
17941 | ||
228cf97d AM |
17942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5 |
17943 | $as_echo_n "checking where to find the target gdc... " >&6; } | |
17944 | if test "x${build}" != "x${host}" ; then | |
17945 | if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17946 | # We already found the complete path | |
17947 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17949 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17950 | else | |
17951 | # Canadian cross, just use what we found | |
17952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17953 | $as_echo "pre-installed" >&6; } | |
17954 | fi | |
17955 | else | |
17956 | ok=yes | |
17957 | case " ${configdirs} " in | |
17958 | *" gcc "*) ;; | |
17959 | *) ok=no ;; | |
17960 | esac | |
17961 | case ,${enable_languages}, in | |
17962 | *,d,*) ;; | |
17963 | *) ok=no ;; | |
17964 | esac | |
17965 | if test $ok = yes; then | |
17966 | # An in-tree tool is available and we can use it | |
17967 | GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/' | |
17968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
17969 | $as_echo "just compiled" >&6; } | |
17970 | elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then | |
17971 | # We already found the complete path | |
17972 | ac_dir=`dirname $GDC_FOR_TARGET` | |
17973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
17974 | $as_echo "pre-installed in $ac_dir" >&6; } | |
17975 | elif test "x$target" = "x$host"; then | |
17976 | # We can use an host tool | |
17977 | GDC_FOR_TARGET='$(GDC)' | |
17978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
17979 | $as_echo "host tool" >&6; } | |
17980 | else | |
17981 | # We need a cross tool | |
17982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
17983 | $as_echo "pre-installed" >&6; } | |
17984 | fi | |
17985 | fi | |
17986 | ||
81ecdfbb RW |
17987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
17988 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 17989 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
17990 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
17991 | # We already found the complete path | |
b8025f34 | 17992 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
17993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
17994 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
17995 | else |
17996 | # Canadian cross, just use what we found | |
81ecdfbb RW |
17997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
17998 | $as_echo "pre-installed" >&6; } | |
2429c060 | 17999 | fi |
be01d343 PB |
18000 | else |
18001 | ok=yes | |
18002 | case " ${configdirs} " in | |
18003 | *" ld "*) ;; | |
18004 | *) ok=no ;; | |
18005 | esac | |
c6b750e1 | 18006 | |
be01d343 PB |
18007 | if test $ok = yes; then |
18008 | # An in-tree tool is available and we can use it | |
18009 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18011 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18012 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
18013 | # We already found the complete path | |
b8025f34 | 18014 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
18015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18016 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18017 | elif test "x$target" = "x$host"; then |
18018 | # We can use an host tool | |
18019 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
18020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18021 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18022 | else |
18023 | # We need a cross tool | |
81ecdfbb RW |
18024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18025 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18026 | fi |
18027 | fi | |
4b900473 | 18028 | |
81ecdfbb RW |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
18030 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 18031 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18032 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18033 | # We already found the complete path | |
b8025f34 | 18034 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18036 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18037 | else |
18038 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18040 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18041 | fi |
be01d343 | 18042 | else |
2429c060 PB |
18043 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
18044 | # We already found the complete path | |
b8025f34 | 18045 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
18046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18047 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 18048 | elif test "x$target" = "x$host"; then |
be01d343 PB |
18049 | # We can use an host tool |
18050 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
18051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18052 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18053 | else |
18054 | # We need a cross tool | |
81ecdfbb RW |
18055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18056 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18057 | fi |
18058 | fi | |
4b900473 | 18059 | |
81ecdfbb RW |
18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
18061 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 18062 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18063 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18064 | # We already found the complete path | |
b8025f34 | 18065 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18067 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18068 | else |
18069 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18071 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18072 | fi |
be01d343 PB |
18073 | else |
18074 | ok=yes | |
18075 | case " ${configdirs} " in | |
18076 | *" binutils "*) ;; | |
18077 | *) ok=no ;; | |
18078 | esac | |
c6b750e1 | 18079 | |
be01d343 PB |
18080 | if test $ok = yes; then |
18081 | # An in-tree tool is available and we can use it | |
18082 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18084 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18085 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
18086 | # We already found the complete path | |
b8025f34 | 18087 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
18088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18089 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18090 | elif test "x$target" = "x$host"; then |
18091 | # We can use an host tool | |
18092 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18094 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18095 | else |
18096 | # We need a cross tool | |
81ecdfbb RW |
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18098 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18099 | fi |
18100 | fi | |
4b900473 | 18101 | |
6b91c541 AP |
18102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
18103 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
18104 | if test "x${build}" != "x${host}" ; then | |
18105 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18106 | # We already found the complete path | |
18107 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18109 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18110 | else | |
18111 | # Canadian cross, just use what we found | |
18112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18113 | $as_echo "pre-installed" >&6; } | |
18114 | fi | |
18115 | else | |
18116 | ok=yes | |
18117 | case " ${configdirs} " in | |
18118 | *" binutils "*) ;; | |
18119 | *) ok=no ;; | |
18120 | esac | |
18121 | ||
18122 | if test $ok = yes; then | |
18123 | # An in-tree tool is available and we can use it | |
18124 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
18125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18126 | $as_echo "just compiled" >&6; } | |
18127 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
18128 | # We already found the complete path | |
18129 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18131 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18132 | elif test "x$target" = "x$host"; then | |
18133 | # We can use an host tool | |
1b6c0831 | 18134 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
18135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18136 | $as_echo "host tool" >&6; } | |
18137 | else | |
18138 | # We need a cross tool | |
18139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18140 | $as_echo "pre-installed" >&6; } | |
18141 | fi | |
18142 | fi | |
18143 | ||
81ecdfbb RW |
18144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
18145 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 18146 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18147 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18148 | # We already found the complete path | |
b8025f34 | 18149 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18151 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18152 | else |
18153 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18155 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18156 | fi |
be01d343 PB |
18157 | else |
18158 | ok=yes | |
18159 | case " ${configdirs} " in | |
18160 | *" binutils "*) ;; | |
18161 | *) ok=no ;; | |
18162 | esac | |
c6b750e1 | 18163 | |
be01d343 PB |
18164 | if test $ok = yes; then |
18165 | # An in-tree tool is available and we can use it | |
18166 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18168 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18169 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
18170 | # We already found the complete path | |
b8025f34 | 18171 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18173 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18174 | elif test "x$target" = "x$host"; then |
18175 | # We can use an host tool | |
18176 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
18177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18178 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18179 | else |
18180 | # We need a cross tool | |
81ecdfbb RW |
18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18182 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18183 | fi |
18184 | fi | |
4b900473 | 18185 | |
228cf97d AM |
18186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5 |
18187 | $as_echo_n "checking where to find the target otool... " >&6; } | |
18188 | if test "x${build}" != "x${host}" ; then | |
18189 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18190 | # We already found the complete path | |
18191 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18193 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18194 | else | |
18195 | # Canadian cross, just use what we found | |
18196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18197 | $as_echo "pre-installed" >&6; } | |
18198 | fi | |
18199 | else | |
18200 | if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then | |
18201 | # We already found the complete path | |
18202 | ac_dir=`dirname $OTOOL_FOR_TARGET` | |
18203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18204 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18205 | elif test "x$target" = "x$host"; then | |
18206 | # We can use an host tool | |
18207 | OTOOL_FOR_TARGET='$(OTOOL)' | |
18208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18209 | $as_echo "host tool" >&6; } | |
18210 | else | |
18211 | # We need a cross tool | |
18212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18213 | $as_echo "pre-installed" >&6; } | |
18214 | fi | |
18215 | fi | |
18216 | ||
81ecdfbb RW |
18217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
18218 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 18219 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18220 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18221 | # We already found the complete path | |
b8025f34 | 18222 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18224 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18225 | else |
18226 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18228 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18229 | fi |
be01d343 PB |
18230 | else |
18231 | ok=yes | |
18232 | case " ${configdirs} " in | |
18233 | *" binutils "*) ;; | |
18234 | *) ok=no ;; | |
18235 | esac | |
c6b750e1 | 18236 | |
be01d343 PB |
18237 | if test $ok = yes; then |
18238 | # An in-tree tool is available and we can use it | |
18239 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18241 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18242 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
18243 | # We already found the complete path | |
b8025f34 | 18244 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
18245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18246 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18247 | elif test "x$target" = "x$host"; then |
18248 | # We can use an host tool | |
18249 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
18250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18251 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18252 | else |
18253 | # We need a cross tool | |
81ecdfbb RW |
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18255 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18256 | fi |
18257 | fi | |
4b900473 | 18258 | |
b121d7d4 DD |
18259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
18260 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
18261 | if test "x${build}" != "x${host}" ; then | |
18262 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18263 | # We already found the complete path | |
18264 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18266 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18267 | else | |
18268 | # Canadian cross, just use what we found | |
18269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18270 | $as_echo "pre-installed" >&6; } | |
18271 | fi | |
18272 | else | |
18273 | ok=yes | |
18274 | case " ${configdirs} " in | |
18275 | *" binutils "*) ;; | |
18276 | *) ok=no ;; | |
18277 | esac | |
18278 | ||
18279 | if test $ok = yes; then | |
18280 | # An in-tree tool is available and we can use it | |
18281 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
18282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
18283 | $as_echo "just compiled" >&6; } | |
18284 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
18285 | # We already found the complete path | |
18286 | ac_dir=`dirname $READELF_FOR_TARGET` | |
18287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
18288 | $as_echo "pre-installed in $ac_dir" >&6; } | |
18289 | elif test "x$target" = "x$host"; then | |
18290 | # We can use an host tool | |
18291 | READELF_FOR_TARGET='$(READELF)' | |
18292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
18293 | $as_echo "host tool" >&6; } | |
18294 | else | |
18295 | # We need a cross tool | |
18296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
18297 | $as_echo "pre-installed" >&6; } | |
18298 | fi | |
18299 | fi | |
18300 | ||
81ecdfbb RW |
18301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
18302 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 18303 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18304 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18305 | # We already found the complete path | |
b8025f34 | 18306 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18308 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18309 | else |
18310 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18312 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18313 | fi |
be01d343 PB |
18314 | else |
18315 | ok=yes | |
18316 | case " ${configdirs} " in | |
18317 | *" binutils "*) ;; | |
18318 | *) ok=no ;; | |
18319 | esac | |
c6b750e1 | 18320 | |
be01d343 PB |
18321 | if test $ok = yes; then |
18322 | # An in-tree tool is available and we can use it | |
9b980aa1 | 18323 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
18324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18325 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18326 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
18327 | # We already found the complete path | |
b8025f34 | 18328 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18330 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18331 | elif test "x$target" = "x$host"; then |
18332 | # We can use an host tool | |
18333 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
18334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18335 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18336 | else |
18337 | # We need a cross tool | |
81ecdfbb RW |
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18339 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
18340 | fi |
18341 | fi | |
4b900473 | 18342 | |
81ecdfbb RW |
18343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
18344 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 18345 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
18346 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18347 | # We already found the complete path | |
b8025f34 | 18348 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18350 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
18351 | else |
18352 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18354 | $as_echo "pre-installed" >&6; } | |
2429c060 | 18355 | fi |
be01d343 PB |
18356 | else |
18357 | ok=yes | |
18358 | case " ${configdirs} " in | |
18359 | *" binutils "*) ;; | |
18360 | *) ok=no ;; | |
18361 | esac | |
c6b750e1 | 18362 | |
be01d343 PB |
18363 | if test $ok = yes; then |
18364 | # An in-tree tool is available and we can use it | |
18365 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
18366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18367 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
18368 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
18369 | # We already found the complete path | |
b8025f34 | 18370 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
18371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18372 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
18373 | elif test "x$target" = "x$host"; then |
18374 | # We can use an host tool | |
18375 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
18376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18377 | $as_echo "host tool" >&6; } | |
be01d343 PB |
18378 | else |
18379 | # We need a cross tool | |
81ecdfbb RW |
18380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18381 | $as_echo "pre-installed" >&6; } | |
be01d343 | 18382 | fi |
a0da8069 | 18383 | fi |
54752a6b | 18384 | |
81ecdfbb RW |
18385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
18386 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
18387 | if test "x${build}" != "x${host}" ; then |
18388 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
18389 | # We already found the complete path | |
18390 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18392 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18393 | else |
18394 | # Canadian cross, just use what we found | |
81ecdfbb RW |
18395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18396 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18397 | fi |
18398 | else | |
18399 | ok=yes | |
18400 | case " ${configdirs} " in | |
18401 | *" binutils "*) ;; | |
18402 | *) ok=no ;; | |
18403 | esac | |
18404 | ||
18405 | if test $ok = yes; then | |
18406 | # An in-tree tool is available and we can use it | |
18407 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
18408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
18409 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
18410 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
18411 | # We already found the complete path | |
18412 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
18413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
18414 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
18415 | elif test "x$target" = "x$host"; then |
18416 | # We can use an host tool | |
18417 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
18418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
18419 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
18420 | else |
18421 | # We need a cross tool | |
81ecdfbb RW |
18422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
18423 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
18424 | fi |
18425 | fi | |
18426 | ||
54752a6b NN |
18427 | |
18428 | ||
be01d343 | 18429 | |
4b900473 | 18430 | |
a0da8069 NN |
18431 | # Certain tools may need extra flags. |
18432 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
18433 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
18434 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
18435 | ||
be01d343 PB |
18436 | # When building target libraries, except in a Canadian cross, we use |
18437 | # the same toolchain as the compiler we just built. | |
18438 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
18439 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
18440 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
18441 | if test $host = $build; then | |
18442 | case " $configdirs " in | |
18443 | *" gcc "*) | |
18444 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
18445 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
18446 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
18447 | ;; | |
18448 | esac | |
18449 | fi | |
18450 | ||
18451 | ||
18452 | ||
18453 | ||
18454 | ||
81ecdfbb RW |
18455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
18456 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
18457 | # Check whether --enable-maintainer-mode was given. | |
18458 | if test "${enable_maintainer_mode+set}" = set; then : | |
18459 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
18460 | else |
18461 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
18462 | fi |
18463 | ||
18464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
18465 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
18466 | |
18467 | ||
18468 | if test "$USE_MAINTAINER_MODE" = yes; then | |
18469 | MAINTAINER_MODE_TRUE= | |
18470 | MAINTAINER_MODE_FALSE='#' | |
18471 | else | |
18472 | MAINTAINER_MODE_TRUE='#' | |
18473 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 18474 | fi |
3d5e36ae AO |
18475 | MAINT=$MAINTAINER_MODE_TRUE |
18476 | ||
1d39f329 NN |
18477 | # --------------------- |
18478 | # GCC bootstrap support | |
18479 | # --------------------- | |
18480 | ||
18481 | # Stage specific cflags for build. | |
18482 | stage1_cflags="-g" | |
18483 | case $build in | |
18484 | vax-*-*) | |
18485 | case ${GCC} in | |
18486 | yes) stage1_cflags="-g -Wa,-J" ;; | |
18487 | *) stage1_cflags="-g -J" ;; | |
18488 | esac ;; | |
1d39f329 NN |
18489 | esac |
18490 | ||
1d89b610 | 18491 | |
1d39f329 | 18492 | |
8a0d8a5c | 18493 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
18494 | # Check whether --enable-stage1-checking was given. |
18495 | if test "${enable_stage1_checking+set}" = set; then : | |
18496 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 18497 | else |
5566c1fa | 18498 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
18499 | # For --disable-checking or implicit --enable-checking=release, avoid |
18500 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
18501 | # bootstraps. See PR62077. | |
ce6c656d L |
18502 | case $BUILD_CONFIG in |
18503 | *lto*) | |
05a13254 NC |
18504 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
18505 | *) | |
18506 | stage1_checking=--enable-checking=yes,types;; | |
ce6c656d | 18507 | esac |
05a13254 NC |
18508 | if test "x$enable_checking" = x && \ |
18509 | test -d ${srcdir}/gcc && \ | |
18510 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
18511 | stage1_checking=--enable-checking=yes,types,extra | |
18512 | fi | |
8a0d8a5c | 18513 | else |
5566c1fa | 18514 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 18515 | fi |
81ecdfbb | 18516 | fi |
8a0d8a5c PB |
18517 | |
18518 | ||
c6b750e1 | 18519 | |
81ecdfbb RW |
18520 | # Enable -Werror in bootstrap stage2 and later. |
18521 | # Check whether --enable-werror was given. | |
18522 | if test "${enable_werror+set}" = set; then : | |
18523 | enableval=$enable_werror; | |
1a6f2dc7 NN |
18524 | case ${enable_werror} in |
18525 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
18526 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
18527 | esac |
18528 | ||
82033c9b | 18529 | else |
82033c9b | 18530 | |
bf41f30d NC |
18531 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
18532 | case $BUILD_CONFIG in | |
18533 | bootstrap-debug) | |
18534 | stage2_werror_flag="--enable-werror-always" ;; | |
18535 | "") | |
18536 | stage2_werror_flag="--enable-werror-always" ;; | |
18537 | esac | |
18538 | fi | |
82033c9b | 18539 | |
bf41f30d | 18540 | fi |
82033c9b | 18541 | |
1b6c0831 | 18542 | |
1b6c0831 | 18543 | |
1b6c0831 | 18544 | |
e8a5fa9c RW |
18545 | # Specify what files to not compare during bootstrap. |
18546 | ||
18547 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
18548 | case "$target" in | |
18549 | hppa*64*-*-hpux*) ;; | |
228cf97d AM |
18550 | hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;; |
18551 | powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;; | |
e8a5fa9c RW |
18552 | esac |
18553 | ||
18554 | ||
81ecdfbb RW |
18555 | ac_config_files="$ac_config_files Makefile" |
18556 | ||
c6b750e1 | 18557 | cat >confcache <<\_ACEOF |
a0da8069 NN |
18558 | # This file is a shell script that caches the results of configure |
18559 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
18560 | # scripts and configure runs, see configure's option --config-cache. |
18561 | # It is not useful on other systems. If it contains results you don't | |
18562 | # want to keep, you may remove or edit it. | |
a0da8069 | 18563 | # |
c6b750e1 DJ |
18564 | # config.status only pays attention to the cache file if you give it |
18565 | # the --recheck option to rerun configure. | |
a0da8069 | 18566 | # |
c6b750e1 DJ |
18567 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18568 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18569 | # following values. | |
18570 | ||
18571 | _ACEOF | |
18572 | ||
a0da8069 NN |
18573 | # The following way of writing the cache mishandles newlines in values, |
18574 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 18575 | # So, we kill variables containing newlines. |
a0da8069 NN |
18576 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18577 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
18578 | ( |
18579 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18580 | eval ac_val=\$$ac_var | |
18581 | case $ac_val in #( | |
18582 | *${as_nl}*) | |
18583 | case $ac_var in #( | |
18584 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18585 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18586 | esac | |
18587 | case $ac_var in #( | |
18588 | _ | IFS | as_nl) ;; #( | |
18589 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18590 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18591 | esac ;; | |
18592 | esac | |
18593 | done | |
18594 | ||
c6b750e1 | 18595 | (set) 2>&1 | |
81ecdfbb RW |
18596 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18597 | *${as_nl}ac_space=\ *) | |
18598 | # `set' does not quote correctly, so add quotes: double-quote | |
18599 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
18600 | sed -n \ |
18601 | "s/'/'\\\\''/g; | |
18602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 18603 | ;; #( |
c6b750e1 DJ |
18604 | *) |
18605 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 18606 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 18607 | ;; |
81ecdfbb RW |
18608 | esac | |
18609 | sort | |
18610 | ) | | |
c6b750e1 | 18611 | sed ' |
81ecdfbb | 18612 | /^ac_cv_env_/b end |
c6b750e1 | 18613 | t clear |
81ecdfbb | 18614 | :clear |
c6b750e1 DJ |
18615 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18616 | t end | |
81ecdfbb RW |
18617 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18618 | :end' >>confcache | |
18619 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18620 | if test -w "$cache_file"; then | |
d0ac1c44 | 18621 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
18622 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
18623 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
18624 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
18625 | cat confcache >"$cache_file" | |
18626 | else | |
18627 | case $cache_file in #( | |
18628 | */* | ?:*) | |
18629 | mv -f confcache "$cache_file"$$ && | |
18630 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18631 | *) | |
18632 | mv -f confcache "$cache_file" ;; | |
18633 | esac | |
18634 | fi | |
18635 | fi | |
a0da8069 | 18636 | else |
81ecdfbb RW |
18637 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
18638 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 18639 | fi |
852e5f18 | 18640 | fi |
a0da8069 | 18641 | rm -f confcache |
852e5f18 | 18642 | |
a0da8069 NN |
18643 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18644 | # Let make expand exec_prefix. | |
18645 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 18646 | |
a0da8069 NN |
18647 | # Transform confdefs.h into DEFS. |
18648 | # Protect against shell expansion while executing Makefile rules. | |
18649 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
18650 | # |
18651 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 18652 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 18653 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
18654 | ac_script=' |
18655 | :mline | |
18656 | /\\$/{ | |
18657 | N | |
18658 | s,\\\n,, | |
18659 | b mline | |
18660 | } | |
c6b750e1 | 18661 | t clear |
81ecdfbb RW |
18662 | :clear |
18663 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 18664 | t quote |
81ecdfbb | 18665 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 18666 | t quote |
81ecdfbb RW |
18667 | b any |
18668 | :quote | |
18669 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18670 | s/\[/\\&/g | |
18671 | s/\]/\\&/g | |
18672 | s/\$/$$/g | |
18673 | H | |
18674 | :any | |
18675 | ${ | |
18676 | g | |
18677 | s/^\n// | |
18678 | s/\n/ /g | |
18679 | p | |
18680 | } | |
18681 | ' | |
18682 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
18683 | |
18684 | ||
18685 | ac_libobjs= | |
18686 | ac_ltlibobjs= | |
d0ac1c44 | 18687 | U= |
c6b750e1 DJ |
18688 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
18689 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
18690 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
18691 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18692 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18693 | # will be set to the directory where LIBOBJS objects are built. | |
18694 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18695 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
18696 | done |
18697 | LIBOBJS=$ac_libobjs | |
852e5f18 | 18698 | |
c6b750e1 | 18699 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 18700 | |
cac3d6c4 | 18701 | |
c6b750e1 | 18702 | |
d0ac1c44 | 18703 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 18704 | ac_write_fail=0 |
c6b750e1 DJ |
18705 | ac_clean_files_save=$ac_clean_files |
18706 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
18707 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
18708 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18709 | as_write_fail=0 | |
18710 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
18711 | #! $SHELL |
18712 | # Generated by $as_me. | |
a0da8069 | 18713 | # Run this file to recreate the current configuration. |
a0da8069 | 18714 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 18715 | # configure, is in config.log if it exists. |
376a0e54 | 18716 | |
c6b750e1 DJ |
18717 | debug=false |
18718 | ac_cs_recheck=false | |
18719 | ac_cs_silent=false | |
c6b750e1 | 18720 | |
81ecdfbb RW |
18721 | SHELL=\${CONFIG_SHELL-$SHELL} |
18722 | export SHELL | |
18723 | _ASEOF | |
18724 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18725 | ## -------------------- ## | |
18726 | ## M4sh Initialization. ## | |
18727 | ## -------------------- ## | |
18728 | ||
18729 | # Be more Bourne compatible | |
18730 | DUALCASE=1; export DUALCASE # for MKS sh | |
18731 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18732 | emulate sh |
18733 | NULLCMD=: | |
81ecdfbb | 18734 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
18735 | # is contrary to our usage. Disable this feature. |
18736 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
18737 | setopt NO_GLOB_SUBST |
18738 | else | |
18739 | case `(set -o) 2>/dev/null` in #( | |
18740 | *posix*) : | |
18741 | set -o posix ;; #( | |
18742 | *) : | |
18743 | ;; | |
18744 | esac | |
c6b750e1 | 18745 | fi |
c6b750e1 | 18746 | |
81ecdfbb RW |
18747 | |
18748 | as_nl=' | |
18749 | ' | |
18750 | export as_nl | |
18751 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18752 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18753 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18754 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18755 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18756 | # but without wasting forks for bash or zsh. | |
18757 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18758 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18759 | as_echo='print -r --' | |
18760 | as_echo_n='print -rn --' | |
18761 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18762 | as_echo='printf %s\n' | |
18763 | as_echo_n='printf %s' | |
18764 | else | |
18765 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18766 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18767 | as_echo_n='/usr/ucb/echo -n' | |
18768 | else | |
18769 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18770 | as_echo_n_body='eval | |
18771 | arg=$1; | |
18772 | case $arg in #( | |
18773 | *"$as_nl"*) | |
18774 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18775 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18776 | esac; | |
18777 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18778 | ' | |
18779 | export as_echo_n_body | |
18780 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18781 | fi | |
18782 | export as_echo_body | |
18783 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
18784 | fi |
18785 | ||
81ecdfbb RW |
18786 | # The user is always right. |
18787 | if test "${PATH_SEPARATOR+set}" != set; then | |
18788 | PATH_SEPARATOR=: | |
18789 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18790 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18791 | PATH_SEPARATOR=';' | |
18792 | } | |
18793 | fi | |
18794 | ||
18795 | ||
18796 | # IFS | |
18797 | # We need space, tab and new line, in precisely that order. Quoting is | |
18798 | # there to prevent editors from complaining about space-tab. | |
18799 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18800 | # splitting by setting IFS to empty value.) | |
18801 | IFS=" "" $as_nl" | |
18802 | ||
18803 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 18804 | as_myself= |
81ecdfbb RW |
18805 | case $0 in #(( |
18806 | *[\\/]* ) as_myself=$0 ;; | |
18807 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18808 | for as_dir in $PATH | |
18809 | do | |
18810 | IFS=$as_save_IFS | |
18811 | test -z "$as_dir" && as_dir=. | |
18812 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18813 | done | |
18814 | IFS=$as_save_IFS | |
18815 | ||
18816 | ;; | |
18817 | esac | |
18818 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18819 | # in which case we are not to be found in the path. | |
18820 | if test "x$as_myself" = x; then | |
18821 | as_myself=$0 | |
18822 | fi | |
18823 | if test ! -f "$as_myself"; then | |
18824 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18825 | exit 1 | |
18826 | fi | |
c6b750e1 | 18827 | |
81ecdfbb RW |
18828 | # Unset variables that we do not need and which cause bugs (e.g. in |
18829 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18830 | # suppresses any "Segmentation fault" message there. '((' could | |
18831 | # trigger a bug in pdksh 5.2.14. | |
18832 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18833 | do eval test x\${$as_var+set} = xset \ | |
18834 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18835 | done | |
c6b750e1 DJ |
18836 | PS1='$ ' |
18837 | PS2='> ' | |
18838 | PS4='+ ' | |
18839 | ||
18840 | # NLS nuisances. | |
81ecdfbb RW |
18841 | LC_ALL=C |
18842 | export LC_ALL | |
18843 | LANGUAGE=C | |
18844 | export LANGUAGE | |
18845 | ||
18846 | # CDPATH. | |
18847 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18848 | ||
18849 | ||
d0ac1c44 SM |
18850 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18851 | # ---------------------------------------- | |
81ecdfbb RW |
18852 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18853 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 18854 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
18855 | as_fn_error () |
18856 | { | |
d0ac1c44 SM |
18857 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18858 | if test "$4"; then | |
18859 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18860 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
c6b750e1 | 18861 | fi |
d0ac1c44 | 18862 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
18863 | as_fn_exit $as_status |
18864 | } # as_fn_error | |
18865 | ||
18866 | ||
18867 | # as_fn_set_status STATUS | |
18868 | # ----------------------- | |
18869 | # Set $? to STATUS, without forking. | |
18870 | as_fn_set_status () | |
18871 | { | |
18872 | return $1 | |
18873 | } # as_fn_set_status | |
18874 | ||
18875 | # as_fn_exit STATUS | |
18876 | # ----------------- | |
18877 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18878 | as_fn_exit () | |
18879 | { | |
18880 | set +e | |
18881 | as_fn_set_status $1 | |
18882 | exit $1 | |
18883 | } # as_fn_exit | |
18884 | ||
18885 | # as_fn_unset VAR | |
18886 | # --------------- | |
18887 | # Portably unset VAR. | |
18888 | as_fn_unset () | |
18889 | { | |
18890 | { eval $1=; unset $1;} | |
18891 | } | |
18892 | as_unset=as_fn_unset | |
18893 | # as_fn_append VAR VALUE | |
18894 | # ---------------------- | |
18895 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18896 | # advantage of any shell optimizations that allow amortized linear growth over | |
18897 | # repeated appends, instead of the typical quadratic growth present in naive | |
18898 | # implementations. | |
18899 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18900 | eval 'as_fn_append () | |
18901 | { | |
18902 | eval $1+=\$2 | |
18903 | }' | |
18904 | else | |
18905 | as_fn_append () | |
18906 | { | |
18907 | eval $1=\$$1\$2 | |
18908 | } | |
18909 | fi # as_fn_append | |
18910 | ||
18911 | # as_fn_arith ARG... | |
18912 | # ------------------ | |
18913 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18914 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18915 | # must be portable across $(()) and expr. | |
18916 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18917 | eval 'as_fn_arith () | |
18918 | { | |
18919 | as_val=$(( $* )) | |
18920 | }' | |
18921 | else | |
18922 | as_fn_arith () | |
18923 | { | |
18924 | as_val=`expr "$@" || test $? -eq 1` | |
18925 | } | |
18926 | fi # as_fn_arith | |
18927 | ||
c6b750e1 | 18928 | |
81ecdfbb RW |
18929 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18930 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
18931 | as_expr=expr |
18932 | else | |
18933 | as_expr=false | |
18934 | fi | |
18935 | ||
81ecdfbb | 18936 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
18937 | as_basename=basename |
18938 | else | |
18939 | as_basename=false | |
18940 | fi | |
18941 | ||
81ecdfbb RW |
18942 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18943 | as_dirname=dirname | |
18944 | else | |
18945 | as_dirname=false | |
18946 | fi | |
c6b750e1 | 18947 | |
81ecdfbb | 18948 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
18949 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18950 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18951 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18952 | $as_echo X/"$0" | | |
18953 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18954 | s//\1/ | |
18955 | q | |
18956 | } | |
18957 | /^X\/\(\/\/\)$/{ | |
18958 | s//\1/ | |
18959 | q | |
18960 | } | |
18961 | /^X\/\(\/\).*/{ | |
18962 | s//\1/ | |
18963 | q | |
18964 | } | |
18965 | s/.*/./; q'` | |
c6b750e1 | 18966 | |
c6b750e1 DJ |
18967 | # Avoid depending upon Character Ranges. |
18968 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18969 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18970 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18971 | as_cr_digits='0123456789' | |
18972 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18973 | ||
81ecdfbb RW |
18974 | ECHO_C= ECHO_N= ECHO_T= |
18975 | case `echo -n x` in #((((( | |
18976 | -n*) | |
18977 | case `echo 'xy\c'` in | |
18978 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18979 | xy) ECHO_C='\c';; | |
18980 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18981 | ECHO_T=' ';; | |
18982 | esac;; | |
18983 | *) | |
18984 | ECHO_N='-n';; | |
c6b750e1 DJ |
18985 | esac |
18986 | ||
81ecdfbb RW |
18987 | rm -f conf$$ conf$$.exe conf$$.file |
18988 | if test -d conf$$.dir; then | |
18989 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 18990 | else |
81ecdfbb RW |
18991 | rm -f conf$$.dir |
18992 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 18993 | fi |
81ecdfbb RW |
18994 | if (echo >conf$$.file) 2>/dev/null; then |
18995 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 18996 | as_ln_s='ln -s' |
81ecdfbb RW |
18997 | # ... but there are two gotchas: |
18998 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18999 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 19000 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 19001 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 19002 | as_ln_s='cp -pR' |
81ecdfbb RW |
19003 | elif ln conf$$.file conf$$ 2>/dev/null; then |
19004 | as_ln_s=ln | |
19005 | else | |
d0ac1c44 | 19006 | as_ln_s='cp -pR' |
c6b750e1 | 19007 | fi |
c6b750e1 | 19008 | else |
d0ac1c44 | 19009 | as_ln_s='cp -pR' |
c6b750e1 | 19010 | fi |
81ecdfbb RW |
19011 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
19012 | rmdir conf$$.dir 2>/dev/null | |
19013 | ||
19014 | ||
19015 | # as_fn_mkdir_p | |
19016 | # ------------- | |
19017 | # Create "$as_dir" as a directory, including parents if necessary. | |
19018 | as_fn_mkdir_p () | |
19019 | { | |
19020 | ||
19021 | case $as_dir in #( | |
19022 | -*) as_dir=./$as_dir;; | |
19023 | esac | |
19024 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19025 | as_dirs= | |
19026 | while :; do | |
19027 | case $as_dir in #( | |
19028 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19029 | *) as_qdir=$as_dir;; | |
19030 | esac | |
19031 | as_dirs="'$as_qdir' $as_dirs" | |
19032 | as_dir=`$as_dirname -- "$as_dir" || | |
19033 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19034 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19035 | X"$as_dir" : 'X\(//\)$' \| \ | |
19036 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19037 | $as_echo X"$as_dir" | | |
19038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19039 | s//\1/ | |
19040 | q | |
19041 | } | |
19042 | /^X\(\/\/\)[^/].*/{ | |
19043 | s//\1/ | |
19044 | q | |
19045 | } | |
19046 | /^X\(\/\/\)$/{ | |
19047 | s//\1/ | |
19048 | q | |
19049 | } | |
19050 | /^X\(\/\).*/{ | |
19051 | s//\1/ | |
19052 | q | |
19053 | } | |
19054 | s/.*/./; q'` | |
19055 | test -d "$as_dir" && break | |
19056 | done | |
19057 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 19058 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 19059 | |
c6b750e1 | 19060 | |
81ecdfbb | 19061 | } # as_fn_mkdir_p |
c6b750e1 | 19062 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 19063 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
19064 | else |
19065 | test -d ./-p && rmdir ./-p | |
19066 | as_mkdir_p=false | |
19067 | fi | |
19068 | ||
d0ac1c44 SM |
19069 | |
19070 | # as_fn_executable_p FILE | |
19071 | # ----------------------- | |
19072 | # Test if FILE is an executable regular file. | |
19073 | as_fn_executable_p () | |
19074 | { | |
19075 | test -f "$1" && test -x "$1" | |
19076 | } # as_fn_executable_p | |
19077 | as_test_x='test -x' | |
19078 | as_executable_p=as_fn_executable_p | |
c6b750e1 DJ |
19079 | |
19080 | # Sed expression to map a string onto a valid CPP name. | |
19081 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19082 | ||
19083 | # Sed expression to map a string onto a valid variable name. | |
19084 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19085 | ||
19086 | ||
c6b750e1 | 19087 | exec 6>&1 |
81ecdfbb RW |
19088 | ## ----------------------------------- ## |
19089 | ## Main body of $CONFIG_STATUS script. ## | |
19090 | ## ----------------------------------- ## | |
19091 | _ASEOF | |
19092 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19093 | ||
19094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19095 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 19096 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
19097 | # values after options handling. |
19098 | ac_log=" | |
c6b750e1 | 19099 | This file was extended by $as_me, which was |
d0ac1c44 | 19100 | generated by GNU Autoconf 2.69. Invocation command line was |
c6b750e1 DJ |
19101 | |
19102 | CONFIG_FILES = $CONFIG_FILES | |
19103 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19104 | CONFIG_LINKS = $CONFIG_LINKS | |
19105 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19106 | $ $0 $@ | |
19107 | ||
81ecdfbb RW |
19108 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
19109 | " | |
19110 | ||
c6b750e1 DJ |
19111 | _ACEOF |
19112 | ||
81ecdfbb RW |
19113 | case $ac_config_files in *" |
19114 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19115 | esac | |
c6b750e1 | 19116 | |
c6b750e1 | 19117 | |
c6b750e1 | 19118 | |
81ecdfbb RW |
19119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19120 | # Files that config.status was made for. | |
19121 | config_files="$ac_config_files" | |
c6b750e1 | 19122 | |
81ecdfbb | 19123 | _ACEOF |
c6b750e1 | 19124 | |
81ecdfbb | 19125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19126 | ac_cs_usage="\ |
81ecdfbb RW |
19127 | \`$as_me' instantiates files and other configuration actions |
19128 | from templates according to the current configuration. Unless the files | |
19129 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 19130 | |
81ecdfbb | 19131 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
19132 | |
19133 | -h, --help print this help, then exit | |
81ecdfbb | 19134 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 19135 | --config print configuration, then exit |
81ecdfbb RW |
19136 | -q, --quiet, --silent |
19137 | do not print progress messages | |
c6b750e1 DJ |
19138 | -d, --debug don't remove temporary files |
19139 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
19140 | --file=FILE[:TEMPLATE] |
19141 | instantiate the configuration file FILE | |
c6b750e1 DJ |
19142 | |
19143 | Configuration files: | |
19144 | $config_files | |
19145 | ||
81ecdfbb | 19146 | Report bugs to the package provider." |
c6b750e1 | 19147 | |
81ecdfbb RW |
19148 | _ACEOF |
19149 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19150 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
c6b750e1 DJ |
19151 | ac_cs_version="\\ |
19152 | config.status | |
d0ac1c44 SM |
19153 | configured by $0, generated by GNU Autoconf 2.69, |
19154 | with options \\"\$ac_cs_config\\" | |
c6b750e1 | 19155 | |
d0ac1c44 | 19156 | Copyright (C) 2012 Free Software Foundation, Inc. |
c6b750e1 DJ |
19157 | This config.status script is free software; the Free Software Foundation |
19158 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
19159 | |
19160 | ac_pwd='$ac_pwd' | |
19161 | srcdir='$srcdir' | |
19162 | INSTALL='$INSTALL' | |
8e957354 | 19163 | AWK='$AWK' |
81ecdfbb | 19164 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
19165 | _ACEOF |
19166 | ||
81ecdfbb RW |
19167 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19168 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
19169 | ac_need_defaults=: |
19170 | while test $# != 0 | |
a0da8069 | 19171 | do |
c6b750e1 | 19172 | case $1 in |
d0ac1c44 | 19173 | --*=?*) |
81ecdfbb RW |
19174 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19175 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
19176 | ac_shift=: |
19177 | ;; | |
d0ac1c44 SM |
19178 | --*=) |
19179 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19180 | ac_optarg= | |
19181 | ac_shift=: | |
19182 | ;; | |
81ecdfbb | 19183 | *) |
c6b750e1 DJ |
19184 | ac_option=$1 |
19185 | ac_optarg=$2 | |
19186 | ac_shift=shift | |
19187 | ;; | |
c6b750e1 DJ |
19188 | esac |
19189 | ||
19190 | case $ac_option in | |
19191 | # Handling of the options. | |
a0da8069 | 19192 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 19193 | ac_cs_recheck=: ;; |
81ecdfbb RW |
19194 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
19195 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
19196 | --config | --confi | --conf | --con | --co | --c ) |
19197 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 19198 | --debug | --debu | --deb | --de | --d | -d ) |
c6b750e1 DJ |
19199 | debug=: ;; |
19200 | --file | --fil | --fi | --f ) | |
19201 | $ac_shift | |
81ecdfbb RW |
19202 | case $ac_optarg in |
19203 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 19204 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
19205 | esac |
19206 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 19207 | ac_need_defaults=false;; |
81ecdfbb RW |
19208 | --he | --h | --help | --hel | -h ) |
19209 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
19210 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
19211 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19212 | ac_cs_silent=: ;; | |
19213 | ||
19214 | # This is an error. | |
d0ac1c44 | 19215 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 19216 | Try \`$0 --help' for more information." ;; |
c6b750e1 | 19217 | |
81ecdfbb RW |
19218 | *) as_fn_append ac_config_targets " $1" |
19219 | ac_need_defaults=false ;; | |
c6b750e1 | 19220 | |
376a0e54 | 19221 | esac |
c6b750e1 | 19222 | shift |
376a0e54 CM |
19223 | done |
19224 | ||
c6b750e1 | 19225 | ac_configure_extra_args= |
376a0e54 | 19226 | |
c6b750e1 DJ |
19227 | if $ac_cs_silent; then |
19228 | exec 6>/dev/null | |
19229 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19230 | fi | |
376a0e54 | 19231 | |
c6b750e1 | 19232 | _ACEOF |
81ecdfbb | 19233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 19234 | if \$ac_cs_recheck; then |
d0ac1c44 | 19235 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
19236 | shift |
19237 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19238 | CONFIG_SHELL='$SHELL' | |
19239 | export CONFIG_SHELL | |
19240 | exec "\$@" | |
c6b750e1 DJ |
19241 | fi |
19242 | ||
19243 | _ACEOF | |
81ecdfbb RW |
19244 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19245 | exec 5>>config.log | |
19246 | { | |
19247 | echo | |
19248 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19249 | ## Running $as_me. ## | |
19250 | _ASBOX | |
19251 | $as_echo "$ac_log" | |
19252 | } >&5 | |
c6b750e1 | 19253 | |
81ecdfbb RW |
19254 | _ACEOF |
19255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
19256 | # |
19257 | # INIT-COMMANDS | |
19258 | # | |
19259 | extrasub_build="$extrasub_build" | |
19260 | extrasub_host="$extrasub_host" | |
19261 | extrasub_target="$extrasub_target" | |
19262 | ||
81ecdfbb | 19263 | _ACEOF |
c6b750e1 | 19264 | |
81ecdfbb | 19265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 19266 | |
81ecdfbb | 19267 | # Handling of arguments. |
c6b750e1 DJ |
19268 | for ac_config_target in $ac_config_targets |
19269 | do | |
81ecdfbb RW |
19270 | case $ac_config_target in |
19271 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19272 | ||
d0ac1c44 | 19273 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c6b750e1 DJ |
19274 | esac |
19275 | done | |
19276 | ||
81ecdfbb | 19277 | |
c6b750e1 DJ |
19278 | # If the user did not use the arguments to specify the items to instantiate, |
19279 | # then the envvar interface is used. Set only those that are not. | |
19280 | # We use the long form for the default assignment because of an extremely | |
19281 | # bizarre bug on SunOS 4.1.3. | |
19282 | if $ac_need_defaults; then | |
19283 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19284 | fi | |
19285 | ||
19286 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 19287 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 19288 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
19289 | # Hook for its removal unless debugging. |
19290 | # Note that there is a small window in which the directory will not be cleaned: | |
19291 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
19292 | $debug || |
19293 | { | |
d0ac1c44 | 19294 | tmp= ac_tmp= |
81ecdfbb | 19295 | trap 'exit_status=$? |
d0ac1c44 SM |
19296 | : "${ac_tmp:=$tmp}" |
19297 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
19298 | ' 0 |
19299 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 19300 | } |
c6b750e1 DJ |
19301 | # Create a (secure) tmp directory for tmp files. |
19302 | ||
19303 | { | |
81ecdfbb | 19304 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 19305 | test -d "$tmp" |
c6b750e1 DJ |
19306 | } || |
19307 | { | |
81ecdfbb RW |
19308 | tmp=./conf$$-$RANDOM |
19309 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
19310 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
19311 | ac_tmp=$tmp | |
81ecdfbb RW |
19312 | |
19313 | # Set up the scripts for CONFIG_FILES section. | |
19314 | # No need to generate them if there are no CONFIG_FILES. | |
19315 | # This happens for instance with `./config.status config.h'. | |
19316 | if test -n "$CONFIG_FILES"; then | |
19317 | ||
19318 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
19319 | ac_cs_awk_getline=: | |
19320 | ac_cs_awk_pipe_init= | |
19321 | ac_cs_awk_read_file=' | |
19322 | while ((getline aline < (F[key])) > 0) | |
19323 | print(aline) | |
19324 | close(F[key])' | |
19325 | ac_cs_awk_pipe_fini= | |
19326 | else | |
19327 | ac_cs_awk_getline=false | |
19328 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
19329 | ac_cs_awk_read_file=' | |
19330 | print "|#_!!_#|" | |
19331 | print "cat " F[key] " &&" | |
19332 | '$ac_cs_awk_pipe_init | |
19333 | # The final `:' finishes the AND list. | |
19334 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
19335 | fi | |
19336 | ac_cr=`echo X | tr X '\015'` | |
19337 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19338 | # But we know of no other shell where ac_cr would be empty at this | |
19339 | # point, so we can use a bashism as a fallback. | |
19340 | if test "x$ac_cr" = x; then | |
19341 | eval ac_cr=\$\'\\r\' | |
19342 | fi | |
19343 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19344 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 19345 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
19346 | else |
19347 | ac_cs_awk_cr=$ac_cr | |
19348 | fi | |
19349 | ||
d0ac1c44 | 19350 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
19351 | _ACEOF |
19352 | ||
19353 | # Create commands to substitute file output variables. | |
c6b750e1 | 19354 | { |
81ecdfbb | 19355 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
d0ac1c44 | 19356 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
81ecdfbb RW |
19357 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
19358 | echo "_ACAWK" && | |
19359 | echo "_ACEOF" | |
19360 | } >conf$$files.sh && | |
19361 | . ./conf$$files.sh || | |
d0ac1c44 | 19362 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19363 | rm -f conf$$files.sh |
c6b750e1 | 19364 | |
81ecdfbb RW |
19365 | { |
19366 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19367 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19368 | echo "_ACEOF" | |
19369 | } >conf$$subs.sh || | |
d0ac1c44 SM |
19370 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
19371 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
19372 | ac_delim='%!_!# ' |
19373 | for ac_last_try in false false false false false :; do | |
19374 | . ./conf$$subs.sh || | |
d0ac1c44 | 19375 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19376 | |
19377 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19378 | if test $ac_delim_n = $ac_delim_num; then | |
19379 | break | |
19380 | elif $ac_last_try; then | |
d0ac1c44 | 19381 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
19382 | else |
19383 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19384 | fi | |
19385 | done | |
19386 | rm -f conf$$subs.sh | |
19387 | ||
19388 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 19389 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
c6b750e1 | 19390 | _ACEOF |
81ecdfbb RW |
19391 | sed -n ' |
19392 | h | |
19393 | s/^/S["/; s/!.*/"]=/ | |
19394 | p | |
19395 | g | |
19396 | s/^[^!]*!// | |
19397 | :repl | |
19398 | t repl | |
19399 | s/'"$ac_delim"'$// | |
19400 | t delim | |
19401 | :nl | |
19402 | h | |
d0ac1c44 | 19403 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19404 | t more1 |
19405 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19406 | p | |
19407 | n | |
19408 | b repl | |
19409 | :more1 | |
19410 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19411 | p | |
19412 | g | |
19413 | s/.\{148\}// | |
19414 | t nl | |
19415 | :delim | |
19416 | h | |
d0ac1c44 | 19417 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
19418 | t more2 |
19419 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19420 | p | |
19421 | b | |
19422 | :more2 | |
19423 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19424 | p | |
19425 | g | |
19426 | s/.\{148\}// | |
19427 | t delim | |
19428 | ' <conf$$subs.awk | sed ' | |
19429 | /^[^""]/{ | |
19430 | N | |
19431 | s/\n// | |
19432 | } | |
19433 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19434 | rm -f conf$$subs.awk | |
19435 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19436 | _ACAWK | |
d0ac1c44 | 19437 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
19438 | for (key in S) S_is_set[key] = 1 |
19439 | FS = "\a" | |
19440 | \$ac_cs_awk_pipe_init | |
19441 | } | |
19442 | { | |
19443 | line = $ 0 | |
19444 | nfields = split(line, field, "@") | |
19445 | substed = 0 | |
19446 | len = length(field[1]) | |
19447 | for (i = 2; i < nfields; i++) { | |
19448 | key = field[i] | |
19449 | keylen = length(key) | |
19450 | if (S_is_set[key]) { | |
19451 | value = S[key] | |
19452 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19453 | len += length(value) + length(field[++i]) | |
19454 | substed = 1 | |
19455 | } else | |
19456 | len += 1 + keylen | |
19457 | } | |
19458 | if (nfields == 3 && !substed) { | |
19459 | key = field[2] | |
19460 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
19461 | \$ac_cs_awk_read_file | |
19462 | next | |
19463 | } | |
19464 | } | |
19465 | print line | |
19466 | } | |
19467 | \$ac_cs_awk_pipe_fini | |
19468 | _ACAWK | |
19469 | _ACEOF | |
19470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19471 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19472 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19473 | else | |
19474 | cat | |
d0ac1c44 SM |
19475 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19476 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
19477 | _ACEOF |
19478 | ||
d0ac1c44 SM |
19479 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19480 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
19481 | # trailing colons and then remove the whole line if VPATH becomes empty |
19482 | # (actually we leave an empty line to preserve line numbers). | |
19483 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
19484 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19485 | h | |
19486 | s/// | |
19487 | s/^/:/ | |
19488 | s/[ ]*$/:/ | |
19489 | s/:\$(srcdir):/:/g | |
19490 | s/:\${srcdir}:/:/g | |
19491 | s/:@srcdir@:/:/g | |
19492 | s/^:*// | |
81ecdfbb | 19493 | s/:*$// |
d0ac1c44 SM |
19494 | x |
19495 | s/\(=[ ]*\).*/\1/ | |
19496 | G | |
19497 | s/\n// | |
81ecdfbb RW |
19498 | s/^[^=]*=[ ]*$// |
19499 | }' | |
19500 | fi | |
c6b750e1 | 19501 | |
81ecdfbb RW |
19502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19503 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 19504 | |
c6b750e1 | 19505 | |
81ecdfbb RW |
19506 | eval set X " :F $CONFIG_FILES " |
19507 | shift | |
19508 | for ac_tag | |
19509 | do | |
19510 | case $ac_tag in | |
19511 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19512 | esac | |
19513 | case $ac_mode$ac_tag in | |
19514 | :[FHL]*:*);; | |
d0ac1c44 | 19515 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19516 | :[FH]-) ac_tag=-:-;; |
19517 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19518 | esac | |
19519 | ac_save_IFS=$IFS | |
19520 | IFS=: | |
19521 | set x $ac_tag | |
19522 | IFS=$ac_save_IFS | |
19523 | shift | |
19524 | ac_file=$1 | |
19525 | shift | |
252b5132 | 19526 | |
81ecdfbb RW |
19527 | case $ac_mode in |
19528 | :L) ac_source=$1;; | |
19529 | :[FH]) | |
19530 | ac_file_inputs= | |
19531 | for ac_f | |
19532 | do | |
19533 | case $ac_f in | |
d0ac1c44 | 19534 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19535 | *) # Look for the file first in the build tree, then in the source tree |
19536 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19537 | # because $ac_f cannot contain `:'. | |
19538 | test -f "$ac_f" || | |
19539 | case $ac_f in | |
19540 | [\\/$]*) false;; | |
19541 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19542 | esac || | |
d0ac1c44 | 19543 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19544 | esac |
19545 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19546 | as_fn_append ac_file_inputs " '$ac_f'" | |
19547 | done | |
c6b750e1 | 19548 | |
81ecdfbb RW |
19549 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
19550 | # use $as_me), people would be surprised to read: | |
19551 | # /* config.h. Generated by config.status. */ | |
19552 | configure_input='Generated from '` | |
19553 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19554 | `' by configure.' | |
19555 | if test x"$ac_file" != x-; then | |
19556 | configure_input="$ac_file. $configure_input" | |
19557 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19558 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 19559 | fi |
81ecdfbb RW |
19560 | # Neutralize special characters interpreted by sed in replacement strings. |
19561 | case $configure_input in #( | |
19562 | *\&* | *\|* | *\\* ) | |
19563 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19564 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19565 | *) ac_sed_conf_input=$configure_input;; | |
19566 | esac | |
cac3d6c4 | 19567 | |
81ecdfbb | 19568 | case $ac_tag in |
d0ac1c44 SM |
19569 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19570 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19571 | esac |
19572 | ;; | |
a0da8069 | 19573 | esac |
252b5132 | 19574 | |
81ecdfbb | 19575 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
19576 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19577 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19578 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19579 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19580 | $as_echo X"$ac_file" | | |
19581 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19582 | s//\1/ | |
19583 | q | |
19584 | } | |
19585 | /^X\(\/\/\)[^/].*/{ | |
19586 | s//\1/ | |
19587 | q | |
19588 | } | |
19589 | /^X\(\/\/\)$/{ | |
19590 | s//\1/ | |
19591 | q | |
19592 | } | |
19593 | /^X\(\/\).*/{ | |
19594 | s//\1/ | |
19595 | q | |
19596 | } | |
19597 | s/.*/./; q'` | |
19598 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 19599 | ac_builddir=. |
252b5132 | 19600 | |
81ecdfbb RW |
19601 | case "$ac_dir" in |
19602 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19603 | *) | |
19604 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19605 | # A ".." for each directory in $ac_dir_suffix. | |
19606 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19607 | case $ac_top_builddir_sub in | |
19608 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19609 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19610 | esac ;; | |
19611 | esac | |
19612 | ac_abs_top_builddir=$ac_pwd | |
19613 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19614 | # for backward compatibility: | |
19615 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
19616 | |
19617 | case $srcdir in | |
81ecdfbb | 19618 | .) # We are building in place. |
c6b750e1 | 19619 | ac_srcdir=. |
81ecdfbb RW |
19620 | ac_top_srcdir=$ac_top_builddir_sub |
19621 | ac_abs_top_srcdir=$ac_pwd ;; | |
19622 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 19623 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19624 | ac_top_srcdir=$srcdir |
19625 | ac_abs_top_srcdir=$srcdir ;; | |
19626 | *) # Relative name. | |
19627 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19628 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19629 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 19630 | esac |
81ecdfbb | 19631 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 19632 | |
252b5132 | 19633 | |
81ecdfbb RW |
19634 | case $ac_mode in |
19635 | :F) | |
19636 | # | |
19637 | # CONFIG_FILE | |
19638 | # | |
c6b750e1 DJ |
19639 | |
19640 | case $INSTALL in | |
19641 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19642 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 19643 | esac |
81ecdfbb | 19644 | _ACEOF |
252b5132 | 19645 | |
81ecdfbb RW |
19646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19647 | # If the template does not know about datarootdir, expand it. | |
19648 | # FIXME: This hack should be removed a few years after 2.60. | |
19649 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19650 | ac_sed_dataroot=' | |
19651 | /datarootdir/ { | |
19652 | p | |
19653 | q | |
19654 | } | |
19655 | /@datadir@/p | |
19656 | /@docdir@/p | |
19657 | /@infodir@/p | |
19658 | /@localedir@/p | |
19659 | /@mandir@/p' | |
19660 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19661 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19662 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19664 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 19665 | _ACEOF |
81ecdfbb RW |
19666 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19667 | ac_datarootdir_hack=' | |
19668 | s&@datadir@&$datadir&g | |
19669 | s&@docdir@&$docdir&g | |
19670 | s&@infodir@&$infodir&g | |
19671 | s&@localedir@&$localedir&g | |
19672 | s&@mandir@&$mandir&g | |
19673 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19674 | esac | |
19675 | _ACEOF | |
19676 | ||
19677 | # Neutralize VPATH when `$srcdir' = `.'. | |
19678 | # Shell code in configure.ac might set extrasub. | |
19679 | # FIXME: do we really want to maintain this feature? | |
19680 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19681 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
19682 | $extrasub |
19683 | _ACEOF | |
81ecdfbb | 19684 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
19685 | :t |
19686 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19687 | s|@configure_input@|$ac_sed_conf_input|;t t |
19688 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19689 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19690 | s&@srcdir@&$ac_srcdir&;t t | |
19691 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19692 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19693 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19694 | s&@builddir@&$ac_builddir&;t t | |
19695 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19696 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19697 | s&@INSTALL@&$ac_INSTALL&;t t | |
19698 | $ac_datarootdir_hack | |
19699 | " | |
19700 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
19701 | if $ac_cs_awk_getline; then | |
d0ac1c44 | 19702 | $AWK -f "$ac_tmp/subs.awk" |
81ecdfbb | 19703 | else |
d0ac1c44 SM |
19704 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
19705 | fi \ | |
19706 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19707 | |
19708 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19709 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19710 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19711 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19713 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19714 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19715 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19716 | |
d0ac1c44 | 19717 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19718 | case $ac_file in |
d0ac1c44 SM |
19719 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19720 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19721 | esac \ |
d0ac1c44 | 19722 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19723 | ;; |
c148b4cb | 19724 | |
c148b4cb | 19725 | |
c148b4cb | 19726 | |
81ecdfbb RW |
19727 | esac |
19728 | ||
06a51eac RW |
19729 | |
19730 | case $ac_file$ac_mode in | |
19731 | "Makefile":F) sed "$extrasub_build" Makefile | | |
19732 | sed "$extrasub_host" | | |
19733 | sed "$extrasub_target" > mf$$ | |
19734 | mv -f mf$$ Makefile ;; | |
19735 | ||
19736 | esac | |
81ecdfbb RW |
19737 | done # for ac_tag |
19738 | ||
19739 | ||
19740 | as_fn_exit 0 | |
c6b750e1 | 19741 | _ACEOF |
c6b750e1 DJ |
19742 | ac_clean_files=$ac_clean_files_save |
19743 | ||
81ecdfbb | 19744 | test $ac_write_fail = 0 || |
d0ac1c44 | 19745 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19746 | |
c6b750e1 DJ |
19747 | |
19748 | # configure is writing to config.log, and then calls config.status. | |
19749 | # config.status does its own redirection, appending to config.log. | |
19750 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19751 | # by configure, so config.status won't be able to write to it; its | |
19752 | # output is simply discarded. So we exec the FD to /dev/null, | |
19753 | # effectively closing config.log, so it can be properly (re)opened and | |
19754 | # appended to by config.status. When coming back to configure, we | |
19755 | # need to make the FD available again. | |
19756 | if test "$no_create" != yes; then | |
19757 | ac_cs_success=: | |
19758 | ac_config_status_args= | |
19759 | test "$silent" = yes && | |
19760 | ac_config_status_args="$ac_config_status_args --quiet" | |
19761 | exec 5>/dev/null | |
19762 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19763 | exec 5>>config.log | |
19764 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19765 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 19766 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
19767 | fi |
19768 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19770 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 19771 | fi |
c148b4cb | 19772 |